This file contains hidden or 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
opt_h, opt_q, opt_r = false, false, false | |
function map_cube(v) | |
if opt_r then return 5 - v end | |
return v | |
end | |
function map_gray(v) | |
if opt_r then return 23 - v end | |
return v | |
end |
This file contains hidden or 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
;; http://stackoverflow.com/questions/6605058/what-are-these-shell-escape-characters | |
;; the following assumption: | |
;; * using nodebrew | |
;; * major version of emacs is above 24 | |
;; ---- | |
;; A. Do package-install js-comint | |
;; B. Create shell file `node2' at ~/.nodebrew/current/bin/node2 and chmod +x node2 | |
#!/bin/sh |
This file contains hidden or 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
require('dumper') | |
function dump(...) | |
print( DataDumper(...), "\n---") | |
end | |
path = { {},{},{},{},{},{}} | |
dpath = {} | |
dpath[1] = { {2, 5}, { 6, 4}, {5,2} } | |
dpath[2] = { {3, 6}, {6, 2}, } | |
dpath[3] = { {4, 4} } |