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
{ | |
"private": "true", | |
"name": "burnerwords", | |
"version": "v0.0.1", | |
"dependencies": { | |
"underscore": ">=1.4.4", | |
"optimist": "~0.3.5", | |
"read-json" : "~0.0.0", | |
"word-freq" : "~0.0.8" | |
} |
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 countNumberActiveUsersInRangeXDaysAgo = function (range_length_in_days, numDaysAgo_start) { | |
var deferred = Q.defer(); | |
var startDate = new Date(); | |
startDate.setDate(startDate.getDate() - numDaysAgo_start); | |
var s = ObjectID.createFromTime(startDate.getSeconds()); | |
var endDate = new Date(); | |
endDate.setDate(endDate.getDate() - numDaysAgo_start + range_length_in_days); |
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
{ | |
"latitude": 37.8267, | |
"longitude": -122.423, | |
"timezone": "America/Los_Angeles", | |
"offset": -7, | |
"currently": { | |
"time": 1399478531, | |
"summary": "Partly Cloudy", | |
"icon": "partly-cloudy-day", | |
"nearestStormDistance": 5, |
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
Pod::Spec.new do |s| | |
s.name = 'PhilipsHueiOS' | |
s.version = '1.1.3' | |
s.license = 'Copyright (c) 2012- 2013, Philips Electronics N.V. All rights reserved.' | |
s.summary = 'The Software Development Kit for Philips Hue on iOS' | |
s.homepage = 'https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX' | |
s.requires_arc = true | |
s.ios.deployment_target = '6.0' | |
s.osx.deployment_target = '10.8' |
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
gem install nomad-cli | |
ERROR: While executing gem ... (Gem::FilePermissionError) | |
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory |
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
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil | |
{ | |
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; | |
if (self) { | |
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_updateNinja) name:kEANotificationBackgroundManagerUpdate object:nil]; | |
} | |
return self; | |
} | |
- (void)_updateNinja |
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
Logger.info('Hello, World!'); |
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 traits = { | |
coins: usr.coins, | |
cake: usr.cake, | |
name: usr.name, | |
avatar: usr.avatar | |
}; | |
var identity = { | |
userId : usr._id, | |
traits : traits |
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 UIFont (CustomSystemFont) | |
// swizzle methods for system fonts so we can use | |
+ (void)load | |
{ | |
Method orig = class_getClassMethod([UIFont class], @selector(systemFontOfSize:)); | |
Method swiz = class_getClassMethod([UIFont class], @selector(_systemFontOfSize:)); | |
method_exchangeImplementations(orig, swiz); | |
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
<?php | |
date_default_timezone_set('Europe/London'); | |
echo date_default_timezone_get(); | |
echo "\n\n"; | |
echo date("Y-m-d\Th:m:s", time()); | |
echo "\n\n"; | |
exit; |