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
{ | |
"name": "whorl-test", | |
"bpm": "1.0.0", | |
"dependencies": { | |
"sproutcore": "2.0.beta.2.pre", | |
"whorl": ">= 0" | |
}, | |
"dependencies:development": { | |
"spade-qunit": "~> 1.0.0" | |
}, |
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
Uncaught SyntaxError: Unexpected identifier | |
Ep.evaluatebpm_libs.js:2118 | |
Sp.evaluatebpm_libs.js:1682 | |
execFactorybpm_libs.js:1602 | |
Sp.requirebpm_libs.js:1724 | |
Sp.makeRequire.requirebpm_libs.js:1870 | |
__evalFuncwhorl/application:3 | |
execFactorybpm_libs.js:1609 | |
Sp.requirebpm_libs.js:1724 | |
Sp.makeRequire.requirebpm_libs.js:1870 |
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
it "Should expire when I approve a pending Airport" do | |
user = Factory(:user, :login => 'cacheing', :password => 'specs', :admin => true) | |
Airport.delete_all | |
Rails.cache.clear | |
@airport1 = Factory(:airport, :aasm_state => 'approved', :has_schedule => true) | |
@airport2 = Factory(:airport, :aasm_state => 'pending', :has_schedule => true) | |
login_via_session('cacheing', 'specs') | |
get '/airports.json?api_version=2' |
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
//// General Declarations | |
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); | |
CGContextRef context = UIGraphicsGetCurrentContext(); | |
//// Color Declarations | |
UIColor* leftHandColor2 = [UIColor colorWithRed: 0.32 green: 0.43 blue: 0.53 alpha: 0.03]; | |
UIColor* leftHandColor1 = [UIColor colorWithRed: 0.32 green: 0.43 blue: 0.53 alpha: 0]; | |
UIColor* rightHandColor1 = [UIColor colorWithRed: 1 green: 1 blue: 1 alpha: 1]; | |
UIColor* rightHandColor2 = [UIColor colorWithRed: 1 green: 1 blue: 1 alpha: 0]; |
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
var Node = Ember.extend({ | |
datasource: null, | |
links: Ember.computed(function () { | |
var ds = this.get('datasource'); | |
if (ds) return ds.linksForNode(this.get('id)); | |
return []; | |
}).property() | |
}); | |
var Link = Ember.extend({}); |
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 MyConcatFilter < Rake::Pipeline::ConcatFilter | |
def generate_output(inputs, output) | |
inputs.each do |input| | |
output.write input.read | |
output.write "\n" | |
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
class Test | |
def test=(test) | |
@test = test | |
end | |
def test | |
@test | |
end | |
def test2 | |
test = "hello!" | |
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
if existing_user | |
return unless existing_user.claimed? | |
existing_user.transfer_and_destroy!(:destination_user => user) | |
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
# application.handlebars | |
{{outlet}} | |
# main_layout.handlebars | |
<div class="hai-layoutz"> | |
{{outlet}} | |
</div> | |
# home.handlebars | |
<div class="totes-different-layout> |
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.UserTypeaheadView = Ember.TextField.extend({ | |
clientId: null, | |
didInsertElement: function () { | |
this.$().typeahead({ | |
name: 'client', | |
template: Handlebars.compile([ | |
'<img src="{{icon_url}}" width="48" height="48" class="pull-left">', | |
'<label>', | |
'<strong>{{value}}</strong><br>', |