Skip to content

Instantly share code, notes, and snippets.

View esparkman's full-sized avatar

Evan Sparkman esparkman

View GitHub Profile
<body>
<script type="text/x-handlebars" data-template-name="todos/index">
<ul id="todo-list">
{{#each itemController="todo"}}
<li {{bind-attr class="isCompleted:completed isEditing:editing"}}>
{{#if isEditing}}
{{edit-todo class="edit" value=title focus-out="acceptChanges" insert-newline="acceptChanges"}}
{{else}}
{{input type="checkbox" checked=isCompleted class="toggle"}}
<label {{action "editTodo" on="doubleClick"}}>{{title}}</label><button {{action "removeTodo"}} class="destroy"></button>
MD5 (search_discovery.tar.gz) = 64dbb415a1cc9c19992e446e6bf81bf9
http://www.speedtest.net/result/2752141797.png
# before this block there is an if condition to make sure it is an AR instance
# it is all being wrapped in an Array and has (approvables being passed in)
# then iterated over to give us approvable
ActiveRecord::Base.transaction do
approvable.build(:previously_approved => true)
approvable.build(:approved_at => Time.zone.now)
approvable.build(:approved_by_id => approved.try(:id))
end
class ConvertExteriorColorsToVehicleColorOptions < ActiveRecord::Migration
def change
rename_table :exterior_colors, :vehicle_color_options
end
end
if (has('gui_running'))
set guifont=Source\ Code\ Pro:h12
set guioptions-=T
set columns=120
set lines=70
set number
set relativenumber
" colorscheme molokai
set undofile
endif
[propertyforeman] psql propertyforeman-dev < db/propertyforeman-dev.psql 22:48:55 ☁ landlord_tasks ☂ ✭
SET
SET
SET
SET
SET
CREATE EXTENSION
COMMENT
SET
SET
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
n=$(NULLCMD)
ECHO1 = $(V:1=@$n)
ECHO = $(ECHO1:0=@echo)
Installing zmq (2.1.4) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/evansparkman/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for zmq.h... yes
checking for zmq_init() in -lzmq... yes
Cool, I found your zmq install...
creating Makefile
make
%h1
= @song.title
%p
Release Date: #{@song.released_on.strftime("%e %B %Y") if @song.released_on}
%p
Length: #{@song.length/60} minutes #{@song.length%60} seconds
%pre
= @song.lyrics
%p
%a{href: "/songs"} Back to Songs Index