Skip to content

Instantly share code, notes, and snippets.

View jjt's full-sized avatar
⚔️
J̷̷͓̱͙͕̗A̖̟̰̭͎̹̱̮ͅV̷͔̩̜̭̝̫̯͝ͅA̛̘͟S̯̭̱̹͎̩̭̯C̮̪͙͈͘R̴̯̬̣̟̯̻͞I̡̖̣̬̤̰̬̦͟Ṕ̨̹̫̩̞͍Ţ̝̦

Jason Trill jjt

⚔️
J̷̷͓̱͙͕̗A̖̟̰̭͎̹̱̮ͅV̷͔̩̜̭̝̫̯͝ͅA̛̘͟S̯̭̱̹͎̩̭̯C̮̪͙͈͘R̴̯̬̣̟̯̻͞I̡̖̣̬̤̰̬̦͟Ṕ̨̹̫̩̞͍Ţ̝̦
View GitHub Profile
@jjt
jjt / ahk-caps-toggle.ahk
Created March 27, 2012 18:24
AutoHotKey Caps Toggle
SetStoreCapslockMode Off
^+!C:: Send {CapsLock}
@jjt
jjt / compile.sh
Created June 1, 2012 17:55
Example: Running multiple background processes in one bash script, killing all on SIGINT (ctrl+c)
#!/bin/bash
SITE=/home/dev/sites/rmx
# Arbitrary shell commands, some run in background
echo "RMX using siteroot=$SITE"
$SITE/rmx/manage.py runserver &
compass watch $SITE/media/compass/ &
coffee -o $SITE/media/js -cw $SITE/media/coffee &
hamlpy-watcher $SITE/templates/hamlpy $SITE/templates/templates &
@jjt
jjt / not-so-dry.js
Created August 9, 2012 18:36
RequireJS "global" dependencies
// Not so DRY:
// module_1.js
define(["underscore", "zepto", "momentjs",...], function(_, $, Moment, ... ) {
// ...
});
// module_2.js
define(["underscore", "zepto", "momentjs",...], function(_, $, Moment, ... ) {
// ...
@jjt
jjt / nginx.conf
Created August 10, 2012 06:09
nginx server block for static root + django proxy
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@jjt
jjt / Makefile
Created September 26, 2013 18:43 — forked from puzrin/Makefile
# Edit here - set path to you directory with config.json & fonts
FONT_DIR ?= ./assets/vendor/fontello/src
### Don't edit below ###
FONTELLO_HOST ?= http://fontello.com
fontopen:
@if test ! `which curl` ; then \
module.exports = (grunt) ->
# Path to bower module
# ex. bower 'pure' == 'public/bower_components/pure'
bower = (str) ->
"public/bower_components/#{str}"
grunt.initConfig
# Pure is great, but I want to import the css files in scss files
# So this takes the copy from Bower and makes *.scss files from them
copy:
@jjt
jjt / jjt-symbolmod-layout.json
Last active April 26, 2016 06:18
ErgoDox colemak-symbolmod layout for the Keyboard Layout Tool
{
"label": "Ergodox Colemak jjt-symbolmod",
"fingerStart": {
"1": 29,
"2": 30,
"3": 31,
"4": 32,
"5": 66,
"6": 75,
"7": 35,
[gulp] Running 'react'...
[gulp] Finished 'react' in 2.28 ms
... Reload /Users/jjt/Sites/LUXTRUBUK/client/src/jsx/index.js ...
... Reload /Users/jjt/Sites/LUXTRUBUK/client/src/jsx/luxtrubuk.js ...
[gulp] Running 'browserify'...
[gulp] Finished 'browserify' in 461 μs
[gulp] Running 'browserify'...
[gulp] Finished 'browserify' in 310 μs
[gulp] Running 'react'...
[gulp] Finished 'react' in 831 μs
@jjt
jjt / gist:9008819
Last active August 29, 2015 13:56
IT'S STUPID AND I WANT IT

I have a number of gulp-related modules in a gulpfile that I need to load, like this:

var foo = require('gulp-foo');
var bar = require('gulp-bar');
// Later ...
foo()
bar()
@jjt
jjt / gist:9607733
Created March 17, 2014 20:31
Proper noun capitalization of Danah Boyd
Danah Boyd’s SXSW keynote is sold out. When it’s over, a dozen fans rush the stage.
These fans aren’t young groupies hoping to get a closer glimpse at their favorite rock star, but full-grown adults hoping to hear one more word from Boyd. She’s one of the world’s sharpest authorities on how teens interact with technology, and for many, her word has become canon for understanding why teens do what they do.
The stage-rushers are e-marketers, digital strategists, and marketing gurus, but many of them are also quite likely parents. “Why are teens creating multiple identities online?” one asks. Boyd looks a little exhausted. After a 30-minute talk on her new book It’s Complicated, the sum of a decade of research and over 150 interviews with teens, Boyd already allowed another 30 minutes for Q & A.
But she’s smiling. This isn’t her first rodeo, having already made herself famous for past SXSW keynotes and years worth of scholarly papers on teen behaviors. Boyd’s day job is at Microsoft Research, where she helps