Skip to content

Instantly share code, notes, and snippets.

View zouhenry's full-sized avatar

Henry Zou zouhenry

  • NetApp
  • Waltham, MA
View GitHub Profile
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["jest", "react"],
"extends": ["fbjs", "eslint:recommended", "plugin:react/recommended"],
"env": {
@zouhenry
zouhenry / transfomer
Created June 21, 2016 02:47
recursive transformer
var groupBys = ["school", "class", "status"];
var totals = ["notSubmitted", "notGraded"];
var data = getData();
function makeTree(values, level) {
level = level || 0;
var levelKey = groupBys[level];
var addedVals = {};
if ((level + 1) === groupBys.length) {
function gitopen(){
REPO="$1";
if [ -z "$1" ]; then REPO="origin" ; fi
python -m webbrowser -t $(git config --get remote.$REPO.url)
}
function gitpull(){
slush isc:updateApp;
}
@zouhenry
zouhenry / angular.snippets.js
Created May 13, 2016 15:06
Angular code snippets
//getting service from console
var $http = angular.element('body').injector().get('$http')
$http.get("api/v1/auth/status401")