View compose-game-artifacts.pl
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
# NOTE: have to use absolute dirpath for ARGV[0] for now | |
use IO::Dir; | |
use File::Basename; | |
my $pdfjoin_input_args = ""; |
View python_recursive_fuzzy_float_comparison.py
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
def _is_close(a, b, rel_tol=1e-09, abs_tol=0.0): | |
return abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol) | |
def _is_fuzzy_equal(expected, actual): | |
if isinstance(expected, set): | |
expected = list(expected) | |
if isinstance(actual, set): |
View nodeStreamConfusion2.js
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 spawn = require('child_process').spawn; | |
var csv = require('csv'); | |
var ls = spawn('git', ['log']); | |
ls.on('close', function (code) { | |
console.log('exit code ' + code); | |
}); | |
var parser = csv.parse({ delimiter: '\t' }); |
View nodeStreamConfusion.js
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 extend = require('extend'); | |
var spawn = require('child_process').spawn; | |
var csv = require('csv'); | |
var ls = spawn('git', ['log']); | |
ls.stdout.on('data', function (data) { | |
parser.write(data); | |
}); |
View .bash_profile
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 [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi |
View .bashrc
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
# MISC | |
alias less='less -r' | |
# --show-control-chars: help showing Korean or accented characters | |
alias ls='ls -F --color --show-control-chars' | |
alias ll='ls -l' | |
# GIT | |
alias gs='git status' | |
alias ga='git add' | |
alias gau='git add -u' |