Skip to content

Instantly share code, notes, and snippets.

Ed Ruder edruder

Block or report user

Report or block edruder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ember Starter Kit</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://builds.emberjs.com/tags/v2.12.0/ember-template-compiler.js"></script>
<script src="http://builds.emberjs.com/tags/v2.12.0/ember.debug.js"></script>
<style id="jsbin-css">
View components.test-bindings.js
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['one','two','three'],
extraClasses: function() {
return ['extra-one', 'extra-two', 'extra-three'].join(' ');
}.property(),
classNameBindings: ['extraClasses'],
@edruder
edruder / hack.sh
Last active Apr 3, 2019 — forked from erikh/hack.sh
OSX For Hackers
View hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@edruder
edruder / gist:3153953
Created Jul 21, 2012
Rails 2.3.14 fresh-checkout `rake test` output
View gist:3153953
$ rake test
(in /Users/ed/Development/github/rails)
(in /Users/ed/Development/github/rails/activesupport)
/Users/ed/.rvm/rubies/ree-1.8.7-2011.12/bin/ruby -w -Ilib:test "/Users/ed/.rvm/gems/ree-1.8.7-2011.12@rails/gems/rake-0.8.1/lib/rake/rake_test_loader.rb" "test/buffered_logger_test.rb" "test/caching_test.rb" "test/callbacks_test.rb" "test/clean_backtrace_test.rb" "test/clean_logger_test.rb" "test/core_ext/array_ext_test.rb" "test/core_ext/base64_ext_test.rb" "test/core_ext/blank_test.rb" "test/core_ext/cgi_ext_test.rb" "test/core_ext/class/attribute_accessor_test.rb" "test/core_ext/class/class_inheritable_attributes_test.rb" "test/core_ext/class/delegating_attributes_test.rb" "test/core_ext/class_test.rb" "test/core_ext/date_ext_test.rb" "test/core_ext/date_time_ext_test.rb" "test/core_ext/duplicable_test.rb" "test/core_ext/duration_test.rb" "test/core_ext/enumerable_test.rb" "test/core_ext/exception_test.rb" "test/core_ext/file_test.rb" "test/core_ext/float_ext_test.rb" "test/core_ext/hash_ext_test.rb" "
@edruder
edruder / gist:1326463
Created Oct 30, 2011
Xcode 3.1.4 version.plist
View gist:1326463
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildVersion</key>
<string>1</string>
<key>CFBundleShortVersionString</key>
<string>3.1.4</string>
<key>CFBundleVersion</key>
<string>1203</string>
@edruder
edruder / gist:703022
Created Nov 17, 2010
Demonstration of warning messages that *still* occur after adding heroku gem to a Rails 3 app
View gist:703022
$ gem list heroku
*** LOCAL GEMS ***
heroku (1.13.6)
$ rails g
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/common.rb:65: warning: already initialized constant State
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/common.rb:66: warning: already initialized constant SAFE_STATE_PROTOTYPE
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/common.rb:67: warning: already initialized constant FAST_STATE_PROTOTYPE
@edruder
edruder / gist:675927
Created Nov 14, 2010
Demonstration of warning messages that occur after adding heroku gem to a Rails 3 app
View gist:675927
$ rails g
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/common.rb:65: warning: already initialized constant State
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/common.rb:66: warning: already initialized constant SAFE_STATE_PROTOTYPE
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/common.rb:67: warning: already initialized constant FAST_STATE_PROTOTYPE
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/common.rb:74: warning: already initialized constant PRETTY_STATE_PROTOTYPE
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/ext.rb:14: warning: already initialized constant JSON_LOADED
Usage: rails generate GENERATOR [args] [options]
General options:
You can’t perform that action at this time.