Skip to content

Instantly share code, notes, and snippets.


Greg Babula gbabula

Block or report user

Report or block gbabula

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .jshintrc
"esnext": true, // true: Allow (ES6) syntax (ex: `const`)
"browserify": true, // Browserify (node.js code in the browser)
"quotmark": "single", // Quotation mark consistency
"indent": 4, // {int} Number of spaces to use for indentation
"curly": true, // true: Require {} for every new block or scope
"plusplus": false, // true: Prohibit use of `++` & `--`
"eqeqeq": true, // true: Require triple equals (===) for comparison
"forin": true, // true: Require filtering loops with obj.hasOwnProperty()
"freeze": true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
View .zshrc
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
export JIRA_URL=""
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# install brew
ruby -e "$(curl -fsSL"
# cask for brew
brew tap phinze/cask
brew install brew-cask
# cask versions
View gitsearch.js
#!/usr/bin/env node
var program = require('commander');
var request = require('request');
var chalk = require('chalk');
.usage('[options] <keywords>')
.option('-o, --owner [name]', 'Filter by the repositories owner')
gbabula / package.json
Last active Aug 29, 2015
g5-component NPM scripts
View package.json
"scripts": {
"serve": "http-server -p 9966",
"start": "npm run serve & npm run build",
"start-dev": "npm run serve & npm run watch",
"build-js": "browserify -u bootstrap -u jquery -u lodash -u isomorphic-fetch src/scripts/g5-component.js --s 'g5-component' | uglifyjs -mc drop_console > src/static/g5-component.js",
"build-js-vendor": "browserify -r bootstrap -r jquery -r lodash -r isomorphic-fetch | uglifyjs -mc > src/static/g5-component-vendor.js",
"build-js-full": "browserify src/scripts/g5-component.js --s 'g5-component' | uglifyjs -mc drop_console > src/static/g5-component.js",
"build-css": "lessc src/styles/component.less > src/static/bundle.css",
"build": "npm run build-js",
"watch-js": "watchify -u bootstrap -u jquery -u lodash -u isomorphic-fetch src/scripts/g5-component.js --s 'g5-component' -o src/static/g5-component.js -dv",
View dict-es.js
* @module dict-es
* @author Greg Babula []
* @description scoreboard dictionary - Espanol
define(function(require, exports, module) {
View gist:f24cdd47bc54d129ff63
$.dict('es', 'scoreboard', {
/* Postseason */
'Wild Card': 'Comodin',
'Division Series': 'Series Divisionales',
'League Championship Series': 'Series de Campeonato',
'World Series': 'Serie Mundial',
'If Necessary': 'Si es necesario',
'Gm': 'Jgo',
View gist:f8092635ccf747c5a07d
$.dict('es', 'mig', {
/* Game States */
'Pre-Game': 'Previo',
'Warmup': 'Calentamiento',
'Start': 'Inicio',
'Rain': 'Lluvia',
'Snow': 'Nieve',
'Grounds': 'Terreno',
'Venue': 'Sede',
You can’t perform that action at this time.