This file contains 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 days = ['sunday','monday','tuesday','wednesday','thursday','friday','saturday']; | |
var bounds = new google.maps.LatLngBounds(); | |
var visible_markers = []; | |
var neighborhood_markers = {}; | |
var seattle = new google.maps.LatLng(47.61680985980715, -122.34203338623047); | |
var options = { | |
zoom: 12, | |
center: seattle, | |
disableDefaultUI: true, |
This file contains 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
$('.feed') | |
.soliloquy().facebook({ username: 'CriterionCollection', posts: 8, relative_dates: false } ) | |
.soliloquy().twitter({username: 'devth', posts: 6, relative_dates: false }) | |
.soliloquy().twitter_list({username: 'rails', listname: 'core', posts: 2 }) | |
.soliloquy().last_fm({ username: 'trevorhartman', api_key: '930dbe080df156eb81444b27a63d948b', relative_dates: false }); |
This file contains 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
$('.feed') | |
.slq().facebook({ username: 'CriterionCollection', posts: 8, relative_dates: false } ) | |
.slq().twitter({username: 'devth', posts: 6, relative_dates: false }) | |
.slq().twitter_list({username: 'rails', listname: 'core', posts: 2 }) | |
.slq().last_fm({ username: 'trevorhartman', api_key: '930dbe080df156eb81444b27a63d948b', relative_dates: false }); |
This file contains 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
$('.feed').slq({ | |
facebook({ username: 'CriterionCollection', posts: 8, relative_dates: false } ), | |
twitter({username: 'devth', posts: 6, relative_dates: false }), | |
twitter_list({username: 'rails', listname: 'core', posts: 2 }), | |
last_fm({ username: 'trevorhartman', api_key: '930dbe080df156eb81444b27a63d948b', relative_dates: false }) | |
}); |
This file contains 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
# screen prefix key | |
set -g prefix C-b | |
set-window-option -g mode-mouse on | |
# reload | |
bind-key r source-file ~/.tmux.conf | |
# hsplit | |
unbind % |
This file contains 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 info_div = "" + | |
" <div class='neighborhood'>" + | |
" <h3>{{name}}</h3>" + | |
" <ul>" + | |
" {{#addresses}}" + | |
" <li class='spot'>" + | |
" <a href='#' data-address-id='{{id}}'>{{spot/name}}</a>" + | |
" <ul class='days_available'>{{#days_available}}{{/days_available}}</ul>" + | |
" </li>" + | |
" {{/addresses}}" + |
This file contains 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
# production.rb | |
# turn off sass compiling in production | |
Sass::Plugin.options[:never_update] = true |
This file contains 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
// assumes jQuery present | |
var $window = $(window), $document = $(document); | |
var percent_scrolled = ($window.scrollTop()) / ($document.height() - $window.height()); |
This file contains 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
set nocompatible | |
syntax on | |
set nowrap | |
set shell=/bin/zsh | |
let mapleader = "," | |
" hides buffers instead of closing them | |
set hidden |
This file contains 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 a = "foo"; | |
| var b = "baz"; | |
// do some stuff | |
} |