Skip to content

Instantly share code, notes, and snippets.

View netspencer's full-sized avatar
🎯
Focusing

Spencer Schoeben netspencer

🎯
Focusing
View GitHub Profile
@netspencer
netspencer / gist:c1d6131ae3fd1e6f15996fc7200b31aa
Created February 1, 2018 20:51
format git history with prettier
git filter-branch --tree-filter 'git show $GIT_COMMIT --name-status\
| grep "^[AM]" | grep ".js$" | cut -f2 | tr "\n" " "\
xargs prettier --no-config --single-quote --no-semi \
--print-width=110 --write {} || \
echo “Error formatting, possibly invalid JS“' -- --all
@netspencer
netspencer / realmjs-flowtype-interface.js
Created November 28, 2016 21:41 — forked from PyYoshi/realmjs-flowtype-interface.js
flowtype interface for realm-js
declare class RealmResults {
length:number;
filtered(query:string, arg:?any):RealmResults;
snapshot():RealmResults;
sorted(descriptor:any, reverse:?boolean):RealmResults;
}
declare class RealmList {
length:number;
filtered(query:string, arg:?any):RealmResults;