Skip to content

Instantly share code, notes, and snippets.

declare module "meteor/check" {
module Match {
interface Matcher<T> { __impossibleToSatisfy: any; }
export type Pattern =
typeof String |
typeof Number |
typeof Boolean |
typeof Object |
typeof Function |
(new (...args: any[]) => any) |
interface Test {
x: string
};
function test<T extends Test>() {
const y: Partial<T> = { x: "foo" };
}
# coding: utf-8
WORDS = [
':admission_tickets:',
':aerial_tramway:',
':airplane:',
':airplane_arriving:',
':airplane_departure:',
':alarm_clock:',
':alembic:',

Keybase proof

I hereby claim:

  • I am ebroder on github.
  • I am evan (https://keybase.io/evan) on keybase.
  • I have a public key whose fingerprint is 9E1D BF47 4BBA 314B 5E0B 6453 45D7 7E9E 30CB 1B11

To claim this, I am signing this object:

#!/usr/bin/python
from gi.repository import GLib, Gdk, Gio
def update_hide_mode(screen):
form_factor_settings = Gio.Settings.new('com.canonical.Unity')
launcher_hide_mode_settings = Gio.Settings.new_with_path('org.compiz.unityshell', '/org/compiz/profiles/unity/plugins/unityshell/')
form_factor_key = 'form-factor'
launcher_hide_mode_key = 'launcher-hide-mode'
size = min(screen.get_monitor_geometry(i).width for i in xrange(screen.get_n_monitors()))
#!/usr/bin/python
import os
import subprocess
from gi.repository import GLib, NMClient
def active_connections_changed(*args):
for sock in os.listdir(os.path.expanduser('~/.ssh/sockets')):
user, hostport = sock.split('@')
host, port = hostport.split(':')
subprocess.call(['ssh', '-O', 'stop', '-l', user, '-p', port, host])
#!/usr/bin/python
from gi.repository import GLib, Gdk, GConf, Gio
def update_hide_mode(screen):
form_factor_settings = Gio.Settings.new('com.canonical.Unity')
launcher_hide_mode_settings = Gio.Settings.new_with_path('org.compiz.unityshell', '/org/compiz/profiles/unity/plugins/unityshell/')
form_factor_key = 'form-factor'
launcher_hide_mode_key = 'launcher-hide-mode'
size = min(screen.get_monitor_geometry(i).width for i in xrange(screen.get_n_monitors()))
evan@caron:~$ cat /etc/modprobe.d/ibm.conf
options thinkpad_acpi fan_control=1
evan@caron:~$ cat /etc/pm/power.d/ibm_fan
#!/bin/sh
fan="/proc/acpi/ibm/fan"
[ -w "$fan" ] || exit $NA
case "$1" in
git() {
if echo "$@" | grep -q commit &&
[ "$(command git config user.email)" = "" ]; then
echo "E: Please set user.email" >&2
return 1
fi
command git "$@"
}