This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
an experiment in strategizing semantle-like puzzles | |
(adjective, value) | |
good | |
(bad) | |
(adverb, value) | |
yes | |
(no) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import WebKit | |
// This swizzle allows JavaScript to set the focus on an input, not just when a user is interacting. | |
// | |
extension WKWebView { | |
private typealias StartAssistingNodeMethodType = @convention(c) (Any, Selector, UnsafeRawPointer, Bool, Bool, Any) -> Void | |
private typealias StartAssistingNodeClosureType = @convention(block) (Any, UnsafeRawPointer, Bool, Bool, Any) -> Void | |
func focusInputsWithoutUserInteraction() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(function (require) { | |
var Gala = require('gala'); | |
var C = require('common'); | |
var TouchHound = function (element) { | |
this._ = {}; | |
this._.element = element; | |
var handle = this._handleEvent.bind(this); | |
this._.handler = new Gala.ContactHandler( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AMD module definition: | |
define(function (require) { | |
// An instantiable class: | |
var ClassName = function () { | |
// All private instance data is stored in this._ | |
this._ = {}; | |
this._initialize(); | |
}, PROTO = ClassName.prototype; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AMD module definition: | |
define(function (require) { | |
// An instantiable class: | |
var ClassName = function () { | |
// All private instance data is stored in this._ | |
this._ = {}; | |
this._initialize(); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AMD module definition: | |
define(function (require) { | |
// An instantiable class: | |
var K = function () { | |
this._initialize(); | |
this._p = {}; | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AMD module definition: | |
define(function (require) { | |
// An instantiable class: | |
var K = function () { | |
// This represents the public interface for the object. | |
var I = this; | |
// Properties of the object: | |
var P = I._p = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function panderToMobileSafari() { | |
if (!Monocle.Browser.is.MobileSafari || p.pandered) { return; } | |
oneHandClapping(p.context); | |
p.pandered = true; | |
debug('Pandered to MobileSafari.'); | |
} | |
function oneHandClapping(audioCtx) { | |
var arr = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
file_path = ARGV.shift | |
base_name = File.basename(file_path, '.txt') | |
html_file = base_name+'.html' | |
sound_file = 'audio/'+base_name+'.mp3' | |
out = %Q`<?xml version="1.0" encoding="UTF-8"?> | |
<smil xmlns="http://www.w3.org/ns/SMIL" | |
xmlns:epub="http://www.idpf.org/2007/ops" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#============================================================================== | |
# MASTER SCREENRC FILE | |
# This contains the default 'screen' settings I like to use across all | |
# environments. | |
# Created: 4 Nov 2006 | |
# Author: Joseph Pearson | |
# Based to a greater or lesser extent on various resources on the 'net. | |
#------------------------------------------------------------------------------ | |
startup_message off |
NewerOlder