No Previous Gist
This file contains 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
Thonburi-Bold | |
Thonburi | |
Thonburi-Light | |
SnellRoundhand-Black | |
SnellRoundhand-Bold | |
SnellRoundhand | |
AcademyEngravedLetPlain | |
MarkerFelt-Thin | |
MarkerFelt-Wide | |
Avenir-Heavy |
This file contains 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
{ | |
"type":"message", | |
"Z":false, | |
"defaultPrevented":false, | |
"Yb":true, | |
"senderId":"14:DC8024DC-1122-4903-8D28-E2BEF7C3BE9B", | |
"data":{ | |
"currentTime":0, | |
"requestId":6, | |
"type":"LOAD", |
This file contains 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
/** | |
* Generates a new UUID and passes it to the given callback function. | |
* | |
* Uses the a command-line uuid generator. Caches UUIDs to avoid | |
* unneccessary spawning of new processes. | |
* | |
* You can easily adjust the script used to create the UUID. By | |
* default I am using the OSSP uuid program, which is available in | |
* most linux distro's package managers (e.g. `sudo apt-get install | |
* uuid` on ubuntu). |
This file contains 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
#import "PushNotification.h" | |
#import "JSON.h" | |
@implementation PushNotification | |
@synthesize notificationMessage; | |
@synthesize registerSuccessCallback; | |
@synthesize registerErrorCallback; |
This file contains 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 Seq = require('seq') | |
Seq().par(function(){console.log('par1');this()}).catch(function(){console.log('catch1')}).seq(function(){console.log('seq1');this(new Error('err'))}).catch(function(){console.log('catch2')}); |
This file contains 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
#The Coffee-script version# | |
Seq = require('seq') | |
Seq() .par('one',->setTimeout((=>this(null,1)),5000)) | |
.par('two',->setTimeout((=>this(null,2)),100)) | |
.seq((one, two)->console.log('one: '+one+', two:'+two)) | |
#The JS version# |
This file contains 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
curl -k https://raw.github.com/gist/3717981/20c856d150342529662bf05912467470979fa689 | /bin/sh | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
107 323 107 323 0 0 1372 0 --:--:-- --:--:-- --:--:-- 6094 | |
=== | |
Meteor version 0.4.0 (8f4045c1b9) | |
v0.6.18 | |
--- | |
/bin/sh: /usr/lib/meteor/meteor: not found | |
v0.6.17 |
[ Launch Inlet ]
This file contains 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 Meteor.isClient | |
serverTicks = new Meteor.Collection "serverTicks" | |
Template.hello.status = -> | |
return Session.get("status") | |
Template.hello.serverTicks = -> | |
tick = serverTicks.findOne {} | |
return tick?.count |
OlderNewer