Skip to content

Instantly share code, notes, and snippets.

View endash's full-sized avatar

Christopher Swasey endash

View GitHub Profile
{
"name": "whorl-test",
"bpm": "1.0.0",
"dependencies": {
"sproutcore": "2.0.beta.2.pre",
"whorl": ">= 0"
},
"dependencies:development": {
"spade-qunit": "~> 1.0.0"
},
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
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'
@endash
endash / gist:2344654
Created April 9, 2012 16:45
Page split
//// 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];
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({});
class MyConcatFilter < Rake::Pipeline::ConcatFilter
def generate_output(inputs, output)
inputs.each do |input|
output.write input.read
output.write "\n"
end
end
end
class Test
def test=(test)
@test = test
end
def test
@test
end
def test2
test = "hello!"
end
if existing_user
return unless existing_user.claimed?
existing_user.transfer_and_destroy!(:destination_user => user)
end
# application.handlebars
{{outlet}}
# main_layout.handlebars
<div class="hai-layoutz">
{{outlet}}
</div>
# home.handlebars
<div class="totes-different-layout>
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>',