This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/setup' | |
require 'sass' | |
require 'compass' | |
require 'rake-pipeline' | |
require 'listen' | |
require 'rack/lock' | |
require 'ruby-debug' | |
require 'securerandom' | |
require 'ruby_gntp' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Organization | |
def to_param | |
"42" | |
end | |
def saved? | |
rand > 0.5 | |
end | |
end | |
class OrganizationCreator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rake-pipeline-web-filters" | |
class ClosureFilter < Rake::Pipeline::Filter | |
def generate_output(inputs, output) | |
inputs.each do |input| | |
output.write "(function() { #{input.read} })()" | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/setup' | |
require 'sass' | |
require 'compass' | |
require 'rake-pipeline' | |
require 'listen' | |
require 'rack/lock' | |
require 'ruby-debug' | |
require 'securerandom' | |
STDOUT.sync = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Open /path/to/file:5 in textmate on line 5 | |
exec mate ${1%%:*} -l${1##*:} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.ProjectSelectView = Ember.CollectionView.extend({ | |
selected: null, | |
itemViewClass: Ember.View.extend({ | |
attributeBindings:['selected'], | |
valueBinding: 'content.selected' | |
}), | |
valueChanged: function(){ | |
this.$().val( this.get('selected') ); | |
}.observes('selected'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
symlinks_to_materialize.each do |symlink| | |
source = print_and_execute("readlink #{symlink}").chomp | |
source = File.expand_path(symlink + "/../" + source) | |
source_type = `file #{source} `.chomp.split(':')[1].strip().to_sym | |
print_and_execute("rm #{symlink}") | |
case source_type | |
when :directory | |
print_and_execute("cp -R #{source} #{symlink}") | |
when :file | |
print_and_execute("cp #{source} #{symlink}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'guard' | |
require 'guard/guard' | |
require 'guard/watcher' | |
require 'tempfile' | |
module Guard | |
# The CoffeeScript guard that gets notifications about the following | |
# Guard events: `start`, `stop`, `reload`, `run_all` and `run_on_change`. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/frameworks/core_foundation/views/view.js b/frameworks/core_foundation/views/view.js | |
index 9232a48..9384422 100644 | |
--- a/frameworks/core_foundation/views/view.js | |
+++ b/frameworks/core_foundation/views/view.js | |
@@ -725,12 +725,14 @@ SC.CoreView.reopen( | |
// If we had previously added a class to the element, remove it. | |
if (oldClass) { | |
elem.removeClass(oldClass); | |
+ classNames.removeObject(newClass); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object @posts | |
attributes :id, :title, :created_at | |
child :user do | |
extends "users/show" | |
end |