Skip to content

Instantly share code, notes, and snippets.

View textgoeshere's full-sized avatar

Dave Nolan textgoeshere

View GitHub Profile
@textgoeshere
textgoeshere / coffeescript compilation order weirdness.coffee
Created May 6, 2011 17:59
coffeescript compilation order weirdness
class window.SpreadsController extends Backbone.Controller
routes:
"/sports":"sports"
"/markets":"markets"
constructor: ->
super
window.sport_manager = new SportManagerView()
@textgoeshere
textgoeshere / deploy.rb
Created February 7, 2011 10:56
fitz-twit deploy skeleton
require 'yaml'
require 'lib/core_extensions/hash'
require 'capistrano/ext/multistage'
set :stages, %w(staging)
unset :deploy_to
set :scm, :git
set :repository, 'gitosis@kapoq.com:fitz-twit'
set :git_enable_submodules, true
This is a test
>> node = Chef::Node.load(FQDN); nil
I, [2010-09-16T13:03:45.043798 #6792] INFO -- : CONNECT: [SERVER, 4000]
I, [2010-09-16T13:03:45.044017 #6792] INFO -- : GET /nodes/FQDN
I, [2010-09-16T13:03:48.330086 #6792] INFO -- : BODY: Net::HTTPOK
=> nil
>> x = node.lsb
=> #<Chef::Node::Attribute @auto_vivifiy_on_read=false, @automatic={...}, @default={...}, @current_normal=nil, @has_been_read=false, @current_automatic={"codename"=>"lucid", "id"=>"Ubuntu", "description"=>""Ubuntu 10.04.1 LTS"", "release"=>"10.04"}, normal{....}, set_typenil, state[:lsb], current_overridenil, set_unless_value_presentfalse, override{....}, current_defaultnil
>> x.codename
=> "lucid"
>> x.codename
# HaveFilter matchers for RSpec
# forked from http://gist.github.com/200099
#
# Require in spec_helper.rb and add the following to your spec config block:
# config.include(Shoulda::ActionController::Matchers), :type => :controllers
#
# class HomeController < ApplicationController
# before_filter :require_user, :except => [:action_1, :action_2]
# ...
# end
# Kapoq Rails template
# TODO:
# timeformats
# concerns
# core extensions
# lowpro
# mysql/sqlite users and db config
# FIXME: