View .jshintrc
{ | |
"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. |
View .zshrc
# 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" |
View osx-setup.sh
#!/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 |
View gitsearch.js
#!/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') |
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 [greg.babula@mlb.com] | |
* @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', |