View vsjsonp.js
1 2 3 4 5 6 7 8 9 10
// VSJONP ― Very Simple JSONP
// ==========================
//
// Usage:
// fetchJsonP({
// url: 'http://shit-no-cors.json',
// complete: function(response) {
// console.log(response);
// }
// });
View catalanifyme.js
1 2 3 4 5 6 7 8 9 10
// Catalanify-me dot jay ass
// =========================
//
// Replaces all copy in your website with that famous sentence from an Adam
// Sandler film, "I'm here for the beer and the britches" (or was it something
// else? I can't remember…) said in Catalanese.
//
// Instalation:
//
// At some point in the page, load this script and run:
View gist:9b728487ae4709f8f265
1 2 3 4 5 6 7 8 9 10
{
"caret_style": "phase",
"color_scheme": "Packages/Theme - Tech49/Tech49.tmTheme",
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".git",
".sass-cache",
"node_modules",
"public/javascript",
View gist:11162250

15" Macbook Pro (Retina, mid 2012)

Yo!

I'm selling my Macbook Pro Retina (mid 2012). This machine has served me well in many battles. It has witnessed me unleash the fury of a thousand suns while building many Internets around the world.

The specs:

  • Display: 15" Retina display.
  • Processor: 4 cores 2.3GHz Intel Core i7.
View fails.coffee
1 2 3 4 5 6 7 8 9 10
describe "Asynchronous specs", ->
funcRunInBackground = ->
value = 1
 
wrapFuncRunInBackground = (done) ->
# setup for simmulating the async operation, a function run in the background
setTimeout ->
funcRunInBackground()
done()
, 3000
View breakpoint.sass
1 2 3 4 5 6 7 8 9 10
// Screen size breakpoints
// =======================
//
// Example usage:
//
// .page-header
// +breakpoint(desktop)
// width: 50%
// +breakpoint(tablet)
// width: 80%
View prefix-mixins.sass
1 2 3 4 5 6 7 8 9 10
// Prefix mixins
// =============
//
// A set of SASS mixins for abstracting vendor prefixes.
 
@mixin background-size($parameters)
-webkit-background-size : $parameters
-moz-background-size : $parameters
-o-background-size : $parameters
background-size : $parameters
View Capfile
1 2 3 4 5 6 7 8 9 10
# Capistrano deployment file
# ==========================
#
# Deployment requires that you can log in as "web", which means you'll
# need it's password.
 
require 'bundler/capistrano'
 
set :rvm_ruby_string, :local # Use the same ruby as used locally for deployment
set :rvm_autolibs_flag, "read-only" # More info: rvm help autolibs
View gist:6409580
1 2 3 4 5 6 7 8 9 10
# Kool console
# ============
#
# A snippet for running CoffeeScript snippets in browser, with a cool
# centered text input.
#
# Press <meta> + K to open the console.
 
# Styles for the text field.
CSS = """
View gist:6075975
1 2 3 4 5 6 7 8 9 10
# Multiple models/collections event tracking
# ==========================================
#
# This is handy, for instance, when something needs to happen once a set
# of collections fire `sync`. For example:
#
# Backbone.Events.when [User, Projects], 'sync', ->
# alert 'carry on with all the data ready'
 
Backbone.Events.when = (models, track, callback) ->
Something went wrong with that request. Please try again.