Skip to content

Instantly share code, notes, and snippets.

View gbabula's full-sized avatar
:shipit:

Greg Babula gbabula

:shipit:
View GitHub Profile
$.dict('es', 'mig', {
/* Game States */
'Pre-Game': 'Previo',
'Warmup': 'Calentamiento',
'Start': 'Inicio',
'Rain': 'Lluvia',
'Snow': 'Nieve',
'Grounds': 'Terreno',
'Venue': 'Sede',
$.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',
@gbabula
gbabula / dict-es.js
Last active August 29, 2015 14:19
dict-es
/**
*
* @module dict-es
* @author Greg Babula [greg.babula@mlb.com]
* @description scoreboard dictionary - Espanol
*
*/
define(function(require, exports, module) {
@gbabula
gbabula / package.json
Last active August 29, 2015 14:27
g5-component NPM scripts
"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",
#!/usr/bin/env node
var program = require('commander');
var request = require('request');
var chalk = require('chalk');
program
.version('0.0.1')
.usage('[options] <keywords>')
.option('-o, --owner [name]', 'Filter by the repositories owner')
#!/bin/zsh
# install brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# cask for brew
brew tap phinze/cask
brew install brew-cask
# cask versions
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
export JIRA_URL="http://jira.mlbam.com"
# 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.
ZSH_THEME="robbyrussell"
{
"esnext": true, // true: Allow ES.next (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 for..in loops with obj.hasOwnProperty()
"freeze": true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.