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
#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
/* 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
$('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
$.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
@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
(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
/* | |
* Simple Pub/Sub Implementation for jQuery | |
* | |
* Inspired by work from Peter Higgins (https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js) | |
* | |
* This is about the simplest way to write a pubsub JavaScript implementation for use with jQuery. | |
*/ | |
(function($) { | |
// Cache of all topics |
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
class App | |
def call(env) | |
[ | |
200, | |
{'Content-Type' => 'text/html'}, | |
[ env['PATH_INFO'] ] | |
] | |
end | |
end |
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 |