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 SandwichMaker | |
end | |
class SandwichEater | |
end | |
module Cloudist | |
class << self |
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
# !/usr/bin/env ruby | |
# | |
# A pre-commit hook to test if jammit needs to be run | |
# In case you don't like on the fly stuff | |
require 'rubygems' | |
require "bundler" | |
Bundler.setup | |
require 'jammit' |
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
# Be sure to restart your server when you modify this file. | |
# | |
# This file contains settings for ActionController::ParamsWrapper which | |
# is enabled by default. | |
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. | |
ActionController::Base.wrap_parameters format: [:json] | |
# Disable root element in JSON by default. | |
if defined?(ActiveRecord) |
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
module Formtastic | |
class BootstrapFormbuilder < SemanticFormBuilder | |
def basic_input_helper(form_helper_method, type, method, options) #:nodoc: | |
html_options = options.delete(:input_html) || {} | |
html_options = default_string_options(method, type).merge(html_options) if [:numeric, :string, :password, :text, :phone, :search, :url, :email].include?(type) | |
field_id = generate_html_id(method, "") | |
html_options[:id] ||= field_id | |
label_options = options_for_label(options) | |
label_options[:for] ||= html_options[:id] |
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
<% | |
require 'cgi' | |
require 'uri' | |
begin | |
uri = URI.parse(ENV["DATABASE_URL"]) | |
rescue URI::InvalidURIError | |
raise "Invalid DATABASE_URL" | |
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
Bundle 'gmarik/vundle' | |
Bundle 'scrooloose/nerdtree' | |
Bundle 'scrooloose/syntastic' | |
Bundle 'nathanaelkane/vim-command-w' | |
Bundle 'nathanaelkane/vim-indent-guides' | |
Bundle 'nathanaelkane/Command-T' | |
Bundle 'bronson/vim-trailing-whitespace' | |
Bundle 'tpope/vim-surround' | |
Bundle 'tpope/vim-rails' | |
Bundle 'tpope/vim-fugitive' |
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
require 'iron_worker' | |
require_relative 'worker' | |
IronWorker.configure do |config| | |
config.token = '' | |
config.project_id = '' | |
config.bundle=true | |
end | |
worker = TestPilot::Iron::Worker.new |
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
AnimatableView = Ember.ContainerView.extend(Em.Animatable,{ | |
executeAnimation: function() { | |
....... | |
this.animate({duration: that.duration, stopEventHandling:true}, function() { | |
# perform animations based on your JS choices | |
move('#'+id) | |
.x(translatePosition) |
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
var get = Ember.get, set = Ember.set; | |
UI = {}; | |
UI.ListView = Em.CollectionView.extend({ | |
tagName: "ul", | |
viewName: 'ListViewContainer', | |
classNames: ["ember-listview"], | |
attributeBindings: ['tabindex', 'unselectable'], | |
unselectable: 'on', | |
tabindex: 0, | |
mode: 'single', |
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
production: | |
adapter: postgresql | |
encoding: unicode | |
database: my_application | |
pool: 5 | |
host: 127.0.0.1 | |