- set key repeat delay to 200ms, and repeat to 20ms
- enable all Fn+FX to FX remappings
- don't remap internal keyboard, Apple keyboards or Apple's pointing devices
- "Change F1..F19 Key & Functional Key (Brightness Control) > MacBook Series > F1, F2 to Brightness Adjust, and so on
- Application Key to Fn
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
%% Startup | |
clc | |
clear all | |
close all | |
%% Definitions | |
% Axis | |
dx = 0.1; |
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
Snap.plugin( function( Snap, Element, Paper, global ) { | |
Element.prototype.addClass = function( klasses ) { | |
if ( !( klasses instanceof Array ) ) { klasses = [ klasses ]; } | |
var currentKlasses = ( this.attr( 'class' ) || '' ).split( ' ' ); | |
if ( currentKlasses === [ '' ] ) { | |
this.attr({ 'class': klasses.join( ' ' ) }); | |
return this; |
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
brew rm python | |
brew rm gdbm | |
brew rm --force sqlite3 | |
brew install gdbm --universal | |
brew install python --universal --framework | |
brew install zmq sqlite3 | |
virtualenv venv | |
. venv/bin/activate |
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() { | |
document.addEventListener( 'click', function( event ) { | |
var target = event.target; | |
if ( !target || target.nodeName !== 'VIDEO' ) { return; } | |
if ( target.paused ) { | |
target.play(); | |
} else { |
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
console.lol = function() { | |
var harray = [], harrumpf = Math.floor( Math.random() * 10 + 2 ); | |
while ( harrumpf-- ) harray.push( 'ha' ); | |
console.log( harray.join( '' ) + '!' ); | |
} |
I very rarely listen to albums in their entirety. These are the exceptions, my favourite records:
- "A Different Kind of Fix" by Bombay Bicycle Club (light, summery, pop)
- "Voices" by Phantogram (dark, heavy, moody, vocals)
- "Elephant Shell" by Tokyo Police Club (alt-rock, energetic)
- "Chunk of Change" by Passion Pit (EP, electronic, distorted, heavier)
- "In Rainbows" by Radiohead (radiohead)
- "Reise Reise" by Rammstein (industrial, German, metal, weird)
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
var | |
gulp = require( 'gulp' ), | |
superstatic = require( 'superstatic' ); | |
gulp.task( 'server', function() { | |
var server = superstatic({ | |
clean_urls: true, | |
routes: { | |
'/**': 'index.html', |
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
root /var/www/your_site; | |
location / { | |
try_files $uri /index.html; | |
} |
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() { | |
function appendStyleSheet() { | |
var style = document.createElement( 'style' ); | |
style.appendChild( document.createTextNode( '' ) ); // for WebKit | |
document.head.appendChild( style ); | |
style.sheet.insertRule( '#meatronome { height: 10px; position: absolute; top: 0; width: 100%;}', 0 ); |