I hereby claim:
- I am stuartlangridge on github.
- I am sil (https://keybase.io/sil) on keybase.
- I have a public key ASDGq9mbJlRG62EgMM5EdILRa4w4G3NimkeoCWxL6bQbQwo
To claim this, I am signing this object:
"use strict"; | |
/*global process, console */ | |
function Thingy() {} | |
Thingy.prototype.returns5 = function(cb) { process.nextTick(function() { cb(null, 5); }); }; | |
Thingy.prototype.returns8 = function(cb) { process.nextTick(function() { cb(null, 8); }); }; | |
var thingy1 = new Thingy(), | |
thingy2 = new Thingy(), |
Verifying I am +sil on my passcard. https://onename.com/sil |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>Pure CSS toggle switch</title> | |
<style> | |
body { | |
font-size: 2em; | |
} | |
input { position: absolute; opacity: 0 } |
// ==UserScript== | |
// @author Stuart Langridge <sil@kryogenix.org> | |
// ==/UserScript== | |
if (external.getUnityObject) { | |
window.Unity = external.getUnityObject(1.0); | |
// use the Apple touch icon as icon | |
var icnsize=0, icnurl; | |
Array.prototype.slice.call(document.querySelectorAll("link[rel='apple-touch-icon']")).forEach(function(icn) { |
{ | |
"browsers": [{ | |
"chrome": { | |
"chromeOptions": { "args": ["--incognito"] } | |
} | |
}] | |
} |
import sublime, sublime_plugin | |
BLOCKLEN = 4 | |
class TypeFileOutCommand(sublime_plugin.TextCommand): | |
def nextchar(self): | |
if self.body: | |
totype = [] | |
while 1: | |
try: |
import sys | |
# call as | |
# python deredact.py "$(python redact.py hello world)" | |
instr = " ".join(sys.argv[1:]).replace(".", "").replace(",", "") | |
fp = open("/usr/share/dict/words") | |
words = [x.lower() for x in fp.read().split("\n")] | |
fp.close() |
#!/bin/bash | |
file --brief --mime-type "$1" | grep "^image/" | |
if [ $? != 0 ]; then | |
zenity --error --text="'$1' does not seem to be an image file." | |
exit 1 | |
fi | |
if ! hash convert 2>/dev/null; then |
# Import standard python modules. | |
import sys | |
import time | |
import threading | |
import os | |
import queue | |
# Import Adafruit IO MQTT client. | |
from Adafruit_IO import MQTTClient |
I hereby claim:
To claim this, I am signing this object: