Skip to content

Instantly share code, notes, and snippets.

View endash's full-sized avatar

Christopher Swasey endash

View GitHub Profile
@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];
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'
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
{
"name": "whorl-test",
"bpm": "1.0.0",
"dependencies": {
"sproutcore": "2.0.beta.2.pre",
"whorl": ">= 0"
},
"dependencies:development": {
"spade-qunit": "~> 1.0.0"
},
// ==========================================================================
// Project: bpmtest
// Copyright: ©2011 My Company Inc. All rights reserved.
// ==========================================================================
// TODO: Your app code goes here
spade.require('sproutcore');
var Lists = SC.Application.create({
spade.register("sproutcore", {"name":"sproutcore","description":"SproutCore - JavaScript Application Framework","summary":"SproutCore - JavaScript Application Framework","homepage":"http://github.com/sproutcore/sproutcore20","author":"Charles Jolley","version":"2.0.beta.2","dependencies":{"spade":"~> 1.0.0","sproutcore-runtime":"2.0.beta.2","sproutcore-views":"2.0.beta.2","sproutcore-datastore":"2.0.beta.2","sproutcore-handlebars":"2.0.beta.2"},"directories":{"lib":"lib"},"bpm:build":{"bpm_libs.js":{"directories":["lib"],"modes":"*"}},"bpm:formats":{"handlebars":"sproutcore-handlebars/handlebars-format"}});
spade.register("sproutcore/main", function(require, exports, __module, ARGV, ENV, __filename){
{
"name": "bpmtest",
"bpm": "1.0.0",
"bpm:build": {
"bpm_libs.js": {
"directories": [
"lib"
]
},
"bpm_styles.css": {
Rapid.itemController = SC.ObjectController.create({
//set your item .set('content', item)
});
------------------------------------------------------------------------------------
progressView: Rapid.ProgressView.design({
layout: {centerX:0, centerY:0, height:150, width:150, border:0},
isVisibleBinding: SC.Binding.from('Rapid.itemController*status').transform(function(value) {
return !!(value & SC.Record.BUSY);
})
})
.
./.DS_Store
./.git
./.git/branches
./.git/COMMIT_EDITMSG
./.git/config
./.git/description
./.git/HEAD
./.git/hooks
./.git/hooks/applypatch-msg.sample
selectionDidChange: function()
{
if (this.changeTimer)
this.changeTimer.destroy();
this.changeTimer = SC.Timer.schedule({
target: 'this',
action: 'getSelectionData',
interval: 500,
until: Time.now() + 500