Skip to content

Instantly share code, notes, and snippets.

View sanathks's full-sized avatar
🖖
Ѧ ѧ ︵͡︵ ̢ ̱ ̧̱ι̵̱̊ι̶̨̱ ̶̱ ︵ Ѧѧ ︵͡ ︵ ѧ Ѧ ̵̗̊o̵̖ ︵ Ѧ

Sanath Samarasinghe sanathks

🖖
Ѧ ѧ ︵͡︵ ̢ ̱ ̧̱ι̵̱̊ι̶̨̱ ̶̱ ︵ Ѧѧ ︵͡ ︵ ѧ Ѧ ̵̗̊o̵̖ ︵ Ѧ
View GitHub Profile
@jniemin
jniemin / module1.js
Created November 12, 2015 12:43
Small example how to stub pure functions
"use strict";
import {module2_pureFunction} from './module2';
export function module1_pureFunction(){
return module2_pureFunction();
}
function parse_git_dirty() {
git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo "*"
}
function parse_git_branch() {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1$(parse_git_dirty)/"
}
alias ga="git add ."
alias gaa="git add --all"