Skip to content

Instantly share code, notes, and snippets.

View SamHerbert's full-sized avatar

Sam Herbert SamHerbert

  • Brooklyn, NY
  • 11:46 (UTC -04:00)
  • X @sherb
View GitHub Profile
@SamHerbert
SamHerbert / app.js
Created November 12, 2013 15:15
Watch for window resize and fire a one time event (instead of a possibility of firing hundreds).
// Backbone, jQuery, and Underscore needed
var App = {'Vent': {}};
App.Vent = _.extend(App.Vent, Backbone.Events);
var bodyView = Backbone.View.extend({
el: $('body'),
initialize: function() {
this.resizePid = false;
@SamHerbert
SamHerbert / gm_colors.js
Created August 20, 2013 03:24
Light blue and grey color scheme for Google Maps, inspired by MapBox's default map color. Preview: http://cl.ly/image/173w0X2T3o05/o
[
{
"featureType": "water",
"stylers": [
{
"saturation": 43
},
{
"lightness": -11
},