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
# DOCKER-VERSION 0.4.8 | |
FROM ubuntu:12.04 | |
MAINTAINER Deepak Kannan "deepak@codemancers.com" | |
RUN apt-get -y install python-software-properties | |
RUN apt-add-repository -y ppa:brightbox/ruby-ng-experimental | |
RUN apt-get -y update |
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
# Allow open-uri to follow unsafe redirects (i.e. https to http). | |
# Relevant issue: | |
# http://redmine.ruby-lang.org/issues/3719 | |
# Source here: | |
# https://github.com/ruby/ruby/blob/trunk/lib/open-uri.rb | |
module OpenURI | |
class <<self | |
alias_method :open_uri_original, :open_uri | |
alias_method :redirectable_cautious?, :redirectable? |
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
<% | |
require 'cgi' | |
require 'uri' | |
def attribute(name, value, force_string = false) | |
if value | |
value_string = | |
if force_string | |
'"' + value + '"' | |
else |
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
#!/usr/bin/env zsh | |
# -------------------------------------------------------------------------------- # | |
# 1304046900 Track changes to a skeleton Rails app since a given `base_version` | |
# -------------------------------------------------------------------------------- # | |
## Changelog | |
# - Update 7/7/2012: | |
# * rewrote to use Bundler instead of RubyGems | |
# * attempting to switch to a master branch for which no commit existing was causing a pathspec error | |
# * simplified rails new commands by running them on the current path (after changing directory to tmp/skeleton_check of course). | |
# * renamed `old_version` variable to `base_version` for clarity |
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
Viz.WidgetsController = Ember.ArrayController.extend | |
init: -> | |
@refresh() | |
setInterval (=> @refresh), 5000 | |
refresh: -> | |
$.ajax | |
url: @get('src'), | |
type: "GET", | |
context: this, |
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
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
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
_? There's an app for that | |
Why can't I sleep at night? _ | |
What's that smell? _ | |
I got 99 problems but _ ain't one. | |
Who stole the cookies from the cookie jar? _ | |
What's the next Happy Meal (r) toy? _ | |
Anthropologists have recently discovered a primitive tribe that worships _. | |
It's a pity that kids these days are all getting involved with _. | |
During Picasso's often-overlooked Brown Period, he produced hundreds of paintings of _. | |
Alternative medicine is now embracing the curative powers of _. |
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
Coat hanger abortions | |
Man meat | |
Autocannibalism | |
Vigorous jazz hands | |
Flightless birds | |
Pictures of boobs | |
Doing the right thing | |
Hunting accidents | |
A cartoon camel enjoying the smooth, refreshing taste of a cigarette | |
The violation of our most basic human rights |
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
require "money" | |
class Decorator < BasicObject | |
undef_method :== | |
def initialize(component) | |
@component = component | |
end | |
def method_missing(name, *args, &block) |
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
cassettes |