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>
http://www.charlesproxy.com/latest-release/download.do
Running Chef on 107.170.236.21...
Checking Chef version...
Installing Berkshelf cookbooks to 'cookbooks'...
DEPRECATED: Your Berksfile contains a site location pointing to the Opscode Community Site (site :opscode). Site locations have been replaced by the source location. Change this to: 'source "http://api.berkshelf.com"' to remove this warning. For more information visit https://github.com/berkshelf/berkshelf/wiki/deprecated-locations
Resolving cookbook dependencies...
Using apt (2.3.8)
Using chef-solo-search (0.5.1) from https://github.com/edelight/chef-solo-search (at master)
Using build-essential (2.0.1) from https://github.com/opscode-cookbooks/build-essential (at master)
Using chef_gem (0.1.0)
Using java (1.22.0)
###########################
## Configuration
############################
#
# use 256 term for pretty colors
set -g default-terminal "screen-256color"
# increase scroll-back history
set -g history-limit 5000
2.1.3 :001 > hasarry = [{"foo" => "bar"}, {"baz" => "buzz"}]
=> [{"foo"=>"bar"}, {"baz"=>"buzz"}]
2.1.3 :002 > hasarry[0]["foo"]
=> "bar"
2.1.3 :003 > hasarry[0]["baz"]
=> nil
2.1.3 :004 > hasarry[1]["baz"]
=> "buzz"
2.1.3 :005 >
<!DOCTYPE html>
<html>
<head>
<link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
<link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">
<link rel="stylesheet" href="main.css">
</head>
1) Error:
User#test_0001_should be valid:
ActiveRecord::StatementInvalid: PG::NotNullViolation: ERROR: null value in column "email" violates not-null constraint
DETAIL: Failing row contains (980190962, null, null, null, 2015-01-20 03:17:42, 2015-01-20 03:17:42, f, pending_review, f).
: INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-01-20 03:17:42', '2015-01-20 03:17:42', 980190962)
ArgumentError in Admin/postsController#create
wrong number of arguments (1 for 0)
Rails.root: /Users/evansparkman/webapps/esdezines
Application Trace | Framework Trace | Full Trace
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/flash.rb:13:in `delete'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/flash.rb:13:in `redirect_to'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/instrumentation.rb:59:in `redirect_to'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/notifications/instrumenter.rb:18:in `instrument'
Total HTTP requests: 57140
Total page requests: 6739
Unique pages: 0
Total slow pages:
Page total, avg: , 0
Static file total, avg: 10.162, 0.000201622983670959
Total JavaScript: 2362
Total gif: 36364
Total jpg: 7525
Total css: 4150
Redcar 0.3.5 ( java )
java -XstartOnFirstThread -Xmx500m -Xss1024k -Djruby.memory.max=500m -Djruby.stack.max=1024k -cp "/Users/evansparkman/rubyapps/redcar/lib/jruby-complete-1.4.0.jar" org.jruby.Main "/Users/evansparkman/rubyapps/redcar/lib/redcar/../../bin/redcar" --no-sub-jruby
Redcar 0.3.5 ( java )
loading osx64/swt
loading plugins took 5.068
EditViewSWT.start took 2.686s
initializing gui took 0.847s
project start took 0.055s
/Users/evansparkman/rubyapps/redcar/plugins/application_swt/lib/application_swt/notebook.rb:130:in `tab_widget_to_tab_model': undefined method `item' for nil:NilClass (NoMethodError)
from /Users/evansparkman/rubyapps/redcar/plugins/application_swt/lib/application_swt/notebook.rb:130:in `each'