Skip to content

Instantly share code, notes, and snippets.

View diffalot's full-sized avatar
:octocat:
🌈 for Hire 🏳️‍⚧️🏴

Alice Davis diffalot

:octocat:
🌈 for Hire 🏳️‍⚧️🏴
View GitHub Profile
@diffalot
diffalot / DefaultKeyBinding.dict
Created May 2, 2021 21:26 — forked from trusktr/DefaultKeyBinding.dict
My DefaultKeyBinding.dict for Mac OS X
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
@diffalot
diffalot / index.js
Last active September 9, 2016 22:26
requirebin sketch
const observify = require('observify')
var data = observify({
"foo": "bar",
"cats": ["taco", "burrito"],
"object": { key: 'value' },
"age": 82
})
data.age(function ageChanged(value) {
@diffalot
diffalot / index.js
Created September 9, 2016 20:00
requirebin sketch
var audio = require('audio-stream');
navigator.getUserMedia({
video: false,
audio: true
}, function(mediaStream) {
var stream = audio(mediaStream, {
channels: 1,
volume: 0.5
});
/* Poultry, a twitter avatar updater for chat.meatspac.es
* installed with the following bookmarklet:
* javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://meat.lightcorp.net/javascripts/fowl-meat.js';})();
*/
(function ($) {
'use strict';
document.body.appendChild(document.createElement('script'))
.src='https://oauth.io/auth/download/latest/oauth.js';
var fingerprint = $('input[name=userid]').val();
var twitter = undefined;
#EXTM3U
#EXTVLCOPT:network-caching=1000
http://2013.realtimeconf.com/Legacy.mp3
#EXTINF:204,Realtime Conf 2013 Opening Credits
#EXTVLCOPT:http-user-agent=Mozilla/5.0
#EXTVLCOPT:network-caching=1000
http://player.vimeo.com/play_redirect?quality=hd&codecs=h264&clip_id=77237425&time=1382285799&sig=92c13c9b15f9f565654c5dbd17f20ef4&type=html5_desktop_local
#EXTINF:605,2013 Realtime Conf. - Something Greater than Artiface 1_1
#EXTVLCOPT:http-user-agent=Mozilla/5.0
#EXTVLCOPT:network-caching=1000
#!/bin/bash
# Configuration
# This will be used in URLs and file paths, so don't get too fancy
# Alphanumeric characters and underscores should be ok
export APP_NAME=app
# IP or URL of the server you want to deploy to
export APP_HOST=app.co
#!/bin/bash
# Configuration
# This will be used in URLs and file paths, so don't get too fancy
# Alphanumeric characters and underscores should be ok
export APP_NAME=mtos
# IP or URL of the server you want to deploy to
export APP_HOST=mtos.co
#!/bin/bash
# Configuration
# This will be used in URLs and file paths, so don't get too fancy
# Alphanumeric characters and underscores should be ok
export APP_NAME=mtos-next
# IP or URL of the server you want to deploy to
export APP_HOST=mtos.co
#!/bin/bash
# Configuration
# This will be used in URLs and file paths, so don't get too fancy
# Alphanumeric characters and underscores should be ok
export APP_NAME=mtos-next
# IP or URL of the server you want to deploy to
export APP_HOST=mtos.co
#!/usr/bin/python
import re
import mechanize
import sys
import string
print 'Number of arguments:', len(sys.argv), 'arguments.'
print 'Argument List:', str(sys.argv)