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
| (function() { | |
| var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | |
| $(function() { | |
| var Map, NomsApp, infoBox, nom, textBox; | |
| if (!navigator.geolocation) { | |
| alert('bro you need geolocation'); | |
| } | |
| textBox = $('#text'); | |
| infoBox = $("#infoBox"); | |
| Map = (function() { |
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
| @for $i from 0 through 8 | |
| h2.spinner-#{$i} | |
| background-position: 0px $i*400px | |
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
| $.poppa | |
| 'a[href^=http]': ( a ) -> | |
| # do cool stuff with a | |
| 'ul.tabs': ( ul ) -> | |
| # do cool stuff with ul | |
| '#fancy-page': ( page ) -> | |
| # do fancy stuff on page |
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
| $('header').poppa({ | |
| 'li': function (li) { | |
| // $('header').find('li') | |
| // is accessible within this function as li | |
| }, | |
| 'a:first-of-type': function (a) { | |
| // $('header').find('a:first-of-type') | |
| // is accessible within this function as a | |
| } | |
| }); |
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
| /* Before Big Poppa */ | |
| if ( $('ul.tabs').size() ) { | |
| // do stuff | |
| } | |
| if ( $('a[href^=http]').size() ) { | |
| // do stuff | |
| } |
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
| #unbind C-b | |
| set-option -g prefix C-w | |
| bind-key C-w last-window | |
| set -g base-index 1 | |
| set-option -g default-terminal "screen-256color" | |
| # act like vim | |
| setw -g mode-keys vi | |
| bind h select-pane -L | |
| bind j select-pane -D |
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
| This is the source for my blog. |
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
| # This sets default key to control-a instead of control-b. | |
| # I also recommend remapping caps lock to control in system preferences | |
| set-option -g prefix C-a | |
| bind-key C-w last-window | |
| set -g base-index 1 | |
| set-option -g default-terminal "screen-256color" | |
| # act like vim | |
| setw -g mode-keys vi | |
| bind h select-pane -L |
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
| # This sets default key to control-a instead of control-b. | |
| # I also recommend remapping caps lock to control in system preferences | |
| set-option -g prefix C-a | |
| bind-key C-w last-window | |
| set -g base-index 1 | |
| set-option -g default-terminal "screen-256color" | |
| # act like vim | |
| setw -g mode-keys vi | |
| bind h select-pane -L |
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
| var geocoder = require('geocoder'); | |
| // Geocoding | |
| geocoder.geocode("Atlanta, GA", function ( err, data ) { | |
| // do stuff with data | |
| }); | |
| // Reverse Geocoding | |
| geocoder.reverseGeocode( 33.7489, -84.3789, function ( err, data ) { | |
| // do stuff with data |