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
@implementation MainViewController { | |
NSURLSession *_session; | |
} | |
- (void) doSomethingElse | |
{ | |
[self doSomethingWithCompletionHandler: ^(){ | |
// create session.. add download tasks.. | |
// _session = blah blah | |
// _session.createDownloadTask etc |
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
Using worker: worker-linux-4-1.bb.travis-ci.org:travis-linux-16 | |
travis_fold:start:git.1 | |
$ git clone --depth=50 --branch=master git://github.com/geddy/model.git geddy/model | |
Cloning into 'geddy/model'... | |
remote: Counting objects: 1024, done.[K | |
remote: Compressing objects: 0% (1/560) [K | |
remote: Compressing objects: 1% (6/560) [K | |
remote: Compressing objects: 2% (12/560) [K | |
remote: Compressing objects: 3% (17/560) [K |
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
SELECT | |
people."id" AS "people#id", people."created_at" AT TIME ZONE 'UTC' AS "people#created_at", people."updated_at" AT TIME ZONE 'UTC' AS "people#updated_at", people."family_name" AS "people#family_name", people."given_name" AS "people#given_name", people."title" AS "people#title", people."description" AS "people#description", people."child_person_id" AS "people#child_person_id", people."admin_event_id" AS "people#admin_event_id", people."owner_event_id" AS "people#owner_event_id", | |
events."id" AS "events#id", events."created_at" AT TIME ZONE 'UTC' AS "events#created_at", events."updated_at" AT TIME ZONE 'UTC' AS "events#updated_at", events."title" AS "events#title", events."description" AS "events#description", | |
photos."id" AS "photos#id", photos."created_at" AT TIME ZONE 'UTC' AS "photos#created_at", photos."updated_at" AT TIME ZONE 'UTC' AS "photos#updated_at", photos."title" AS "photos#title", photos."description" AS "photos#description", photos."location" AS "photos#location", photos."taken_at" AT TIME Z |
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
####################################### | |
Finding jobs... | |
61 jobs found: | |
D0-D13012-MO | |
A thing some-thing | |
My new site 00-new | |
A test job FAKE-000 | |
Office fakejob# | |
My apartment 00-house | |
D0-A13806-00 |
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 http = require('http') | |
, fs = require('fs'); | |
http.createServer(function(request, response){ | |
response.writeHead(200, {'Content-Type': 'text/html' }); | |
fs.createReadStream('index.html').pipe(response); | |
}).listen(8080); |
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
// 1 (closures/asyncrony) | |
function sleepsort (input) { | |
for(var i=0; i<input.length; i++) { | |
setTimeout(function () { | |
console.log(i); | |
}, i * 1000); | |
console.log('iterated'); | |
} | |
}; |
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
func main() { | |
runloop := func() { | |
// Recovers from panics | |
defer func() { | |
if r := recover(); r != nil { | |
runloop() // why doesn't this compile?? "undefined: runloop" | |
} | |
}() | |
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 MyView = Ribcage.View.extend({ | |
afterInit: function (opts) { | |
this.action = opts.action; | |
} | |
, beforeRender: function () { | |
this.button = new ButtonView({ | |
action: this.action | |
}); | |
} | |
, afterRender: function () { |
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 Backbone = require('backbone') | |
, $ = require('jquery')(window) | |
, View | |
, myView | |
, testModel; | |
Backbone.$ = $; | |
testModel = new Backbone.Model(); |