Skip to content

Instantly share code, notes, and snippets.


Aleksey Kulikov alekseykulikov

View GitHub Profile
View .bash_profile
export PATH=/usr/local/bin:/usr/local/share/npm/bin:$PATH
PS1="\w \[\033[32m\]\$(parse_git_branch) \[\033[37m\]$\[\033[00m\] "
alias ll='ls -alFG'
# git aliases
alias ga='git add -A && gc'
alias gb='git branch'
alias gc='git commit -v'
alias gd='git diff'
alekseykulikov / index.js
Last active Dec 18, 2015
Use es6 generators to simplify async calls.
View index.js
* Required node >= v0.11.2
* usage: node --harmony index.js
var fs = require('fs');
var run = require('./run');
function readFile(filename) {
return fs.readFile.bind(fs, filename, 'utf-8');