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(foo){ | |
return typeof foo.bar; | |
})({ foo: { bar: 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
with (function(x, undefined) { | |
}) length; |
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 f(){ return f; } | |
new f() instanceof f; |
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 f(){ | |
function f(){ return 1; } | |
return f(); | |
function f(){ return 2; } | |
})(); |
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
(add-to-list 'load-path "~/Dropbox/emacs/ecb") | |
(setq stack-trace-on-error t) | |
(require 'ecb) | |
(ecb-activate) | |
(set-face-foreground (quote ecb-default-highlight-face) "DimGrey") | |
(set-face-background (quote ecb-default-highlight-face) "grey70") |
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
;; Shift + Down moves to the buffer below http://www.emacswiki.org/emacs/WindMove | |
(when (fboundp 'windmove-default-keybindings) | |
(windmove-default-keybindings)) |
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
# m:0x40 + c:133 is the → on the keyboard | |
# mplayer | |
"echo "pt_step 1" >/tmp/mplayer-fifo" | |
m:0x40 + c:133 + n | |
"echo "pause" >/tmp/mplayer-fifo" | |
m:0x40 + c:133 + c:65 |
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
mkfifo /tmp/mplayer-fifo | |
mplayer -shuffle -slave -input file=/tmp/mplayer-fifo * |
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
# will print 1 2 3 4 | |
console.log i for i in [1...5] | |
# will print 1 2 3 4 5 | |
console.log i for i in [1..5] |
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
# will print 1 0 -1 | |
console.log i for i in [1..-1] |