This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'https://rubygems.org' | |
| ruby '2.1.2' | |
| # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
| gem 'rails', '4.1.1' | |
| # Use postgresql as the database for Active Record | |
| gem 'pg' | |
| # Use HAML for templates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Requires Lo-Dash and zever/time.js | |
| timeFromMinutes = (mins) -> | |
| Time ("#{((if mins < 780 then ~~(mins / 60) else (~~(mins / 60) - 12)))}:#{mins % 60} ") | |
| .replace(/:0 /, ":00 #{if mins >= 720 then 'PM' else 'AM'}") | |
| minuteIncrements = (range) -> | |
| _.map range, (mins) -> | |
| timeFromMinutes mins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "MultiPolygon", | |
| "coordinates": [ | |
| [ | |
| [ | |
| [ | |
| -9391674.191839194, | |
| 3998993.2908226354 | |
| ], | |
| [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){ | |
| [].prototype | |
| .forEach | |
| .call(document.querySelectorAll('[id*="taboola"]'), function(el) { | |
| el.parentElement.removeChild(el); | |
| } | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # In your Gemfile | |
| # ...your gems | |
| group :development, :test do | |
| # Whatever gems you already have in this group | |
| gem 'jazz_hands', github: 'nixme/jazz_hands', branch: 'bring-your-own-debugger' | |
| gem 'pry-byebug' # This may or may not work with 2.1.2 either, so remove if you still get errorrs | |
| gem "awesome_print" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # Convert CSS/SASS/SCSS/LESS code to Expanded, Compact or Compressed format. | |
| # written by Mutian Wang <[email protected]> | |
| # | |
| # usage: | |
| # format_code(code, action) | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Some good references are: | |
| # http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x | |
| # http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ | |
| # http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392 | |
| #1. Install PostgreSQL postgis and postgres | |
| brew install postgis | |
| initdb /usr/local/var/postgres | |
| pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone git://github.com/pivotalcommon/vim-config.git ~/.vim | |
| cd ~/.vim | |
| git submodule update --init | |
| ln -s ~/.vim/vimrc ~/.vimrc | |
| vim +BundleInstall +qall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function%20()%20{%20var%20_%20=%20document.createElement('script');%20_.src%20=%20'http://documentcloud.github.com/underscore/underscore-min.js';%20_.type%20=%20'text/javascript';%20document.getElementsByTagName('head')[0].appendChild(_);%20})() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Bash completion for Yeoman generators - tested in Ubuntu, OS X and Windows (using Git bash) | |
| function _yo_generator_complete_() { | |
| # local node_modules if present | |
| local local_modules=$(if [ -d node_modules ]; then echo "node_modules:"; fi) | |
| # node_modules in /usr/local/lib if present | |
| local usr_local_modules=$(if [ -d /usr/local/lib/node_modules ]; then echo "/usr/local/lib/node_modules:"; fi) | |
| # node_modules in user's Roaming/npm (Windows) if present | |
| local win_roam_modules=$(if [ -d $(which yo)/../node_modules ]; then echo "$(which yo)/../node_modules:"; fi) | |
| # concat and also add $NODE_PATH | |
| local node_dirs="${local_modules}${usr_local_modules}${win_roam_modules}${NODE_PATH}" |