Skip to content

Instantly share code, notes, and snippets.

@edruder
edruder / gist:675927
Created November 14, 2010 05:14
Demonstration of warning messages that occur after adding heroku gem to a Rails 3 app
$ 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:
@edruder
edruder / gist:703022
Created November 17, 2010 05:27
Demonstration of warning messages that *still* occur after adding heroku gem to a Rails 3 app
$ 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:1326463
Created October 30, 2011 21:29
Xcode 3.1.4 version.plist
<?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:3153953
Created July 21, 2012 00:07
Rails 2.3.14 fresh-checkout `rake test` output
$ 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 / hack.sh
Last active March 28, 2024 14:48 — forked from erikh/hack.sh
OSX For Hackers
#!/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 / components.test-bindings.js
Last active September 11, 2017 17:58
test-bindings
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 / index.html
Created September 7, 2017 18:46
Ember Starter Kit // source http://jsbin.com/qivami
<!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">
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});