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
find $(manpath | tr ':' '\n') -iname '*.1' | xargs cat | (LC_CTYPE=C tr -C '[:alnum:]-_' '\n') | egrep '^--[\-_[:alnum:]]+$' | sort | uniq -c | sort -n |
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
// each file needs to start with this to make sure the async array/object exists: | |
var async = async || []; | |
// these blocks could be in any order or different files: | |
async.push(function($, loaded) { | |
// loaded(name) returns a $.Deferred object, which modules can wait on or resolve as appropriate. | |
loaded("C").then(function(C) { | |
console.log("loaded A, needed "+C); | |
loaded("A").resolve("apple"); | |
}); |
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
(lambda: | |
not globals().__setitem__('sys', __import__('sys')) | |
and not globals().__setitem__('this', sys.modules[globals()['__name__']]) | |
and not globals().__setitem__('time', __import__('time')) | |
and | |
#program | |
[setattr(this, k, v) for k,v in { | |
'set_color': (lambda c: w(['*', ' '][c])), | |
'abs': (lambda t: (t + (t >> 31)) ^ (t >> 31)), | |
'w': sys.stdout.write, |
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
# Dependencies (swiped from RVM) | |
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev | |
# rbenv | |
cd | |
git clone git@github.com:sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
# ruby-build | |
mkdir -p ~/.rbenv/plugins |
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
if status --is-login | |
# Use universal variables to replace globals, this lets set -Ux change PATH and LANG forever | |
set -ge PATH | |
set -gx PATH $PATH | |
set -ge LANG | |
set -gx LANG $LANG | |
function e | |
emacsclient -n $argv |
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
[1] pry(main)> module MyModule | |
| def stuff | |
| include Module.new { | |
| def my_method | |
| puts "bar!" | |
| end | |
| } | |
| end | |
| end | |
=> nil |
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
#lang racket/base | |
(require data/queue) | |
(provide fork yield done run-threads) | |
(define current-runqueue (make-parameter #f)) | |
(define (fork thunk) | |
(enqueue! (current-runqueue) (lambda () (thunk) (done)))) | |
(define (yield) |
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
#!/bin/bash | |
set -exo pipefail | |
BUILD_ENV=$1 | |
if [ `uname` == 'Darwin' ]; then | |
OSX=1 | |
JSCOMPRESSOR="yuicompressor --type js" | |
else | |
OSX= |
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
" Improve move speed | |
let g:boostmove=0 | |
set updatetime=500 | |
au CursorMoved * call BoostMoveON() | |
au CursorMovedI * call BoostMoveON() | |
au CursorHold * call BoostMoveOFF() | |
au CursorHoldI * call BoostMoveOFF() | |
function BoostMoveON() | |
if (winline() != line('$')) && (line('.') != 1) | |
if (winline() == winheight('.')) || (winline() == 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
$ rspec --format MacVimFormatter --color spec |
OlderNewer