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 traits = { | |
coins: usr.coins, | |
cake: usr.cake, | |
name: usr.name, | |
avatar: usr.avatar | |
}; | |
var identity = { | |
userId : usr._id, | |
traits : traits |
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 makerjs = require('makerjs') | |
// Model of pixel heart created by another script, hard-coded here for use in maker playground | |
var pixel_heart = {"paths":{"ShapeLine1":{"type":"line","origin":[0,9],"end":[1,9]},"ShapeLine2":{"type":"line","origin":[1,9],"end":[1,10]},"ShapeLine3":{"type":"line","origin":[1,10],"end":[2,10]},"ShapeLine4":{"type":"line","origin":[2,10],"end":[2,11]},"ShapeLine5":{"type":"line","origin":[2,11],"end":[5,11]},"ShapeLine6":{"type":"line","origin":[5,11],"end":[5,10]},"ShapeLine7":{"type":"line","origin":[5,10],"end":[8,10]},"ShapeLine8":{"type":"line","origin":[8,10],"end":[8,11]},"ShapeLine9":{"type":"line","origin":[8,11],"end":[11,11]},"ShapeLine10":{"type":"line","origin":[11,11],"end":[11,10]},"ShapeLine11":{"type":"line","origin":[11,10],"end":[12,10]},"ShapeLine12":{"type":"line","origin":[12,10],"end":[12,9]},"ShapeLine13":{"type":"line","origin":[12,9],"end":[13,9]},"ShapeLine14":{"type":"line","origin":[13,9],"end":[13,6]},"ShapeLine15":{"type":"line","origin":[13,6 |
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 makerjs = require('makerjs') | |
// Model of pixel heart created by another script, hard-coded here for use in maker playground | |
var pixel_heart = {"paths":{"ShapeLine1":{"type":"line","origin":[0,9],"end":[1,9]},"ShapeLine2":{"type":"line","origin":[1,9],"end":[1,10]},"ShapeLine3":{"type":"line","origin":[1,10],"end":[2,10]},"ShapeLine4":{"type":"line","origin":[2,10],"end":[2,11]},"ShapeLine5":{"type":"line","origin":[2,11],"end":[5,11]},"ShapeLine6":{"type":"line","origin":[5,11],"end":[5,10]},"ShapeLine7":{"type":"line","origin":[5,10],"end":[8,10]},"ShapeLine8":{"type":"line","origin":[8,10],"end":[8,11]},"ShapeLine9":{"type":"line","origin":[8,11],"end":[11,11]},"ShapeLine10":{"type":"line","origin":[11,11],"end":[11,10]},"ShapeLine11":{"type":"line","origin":[11,10],"end":[12,10]},"ShapeLine12":{"type":"line","origin":[12,10],"end":[12,9]},"ShapeLine13":{"type":"line","origin":[12,9],"end":[13,9]},"ShapeLine14":{"type":"line","origin":[13,9],"end":[13,6]},"ShapeLine15":{"type":"line","origin":[13,6 |
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
/** | |
____ _ ____ ____ ____ | |
/ ___| / \ | _ \ | _ \ / ___| | |
| | / _ \ | |_) | | | | | \___ \ | |
| |___ / ___ \ | _ < | |_| | ___) | | |
\____| /_/ \_\ |_| \_\ |____/ |____/ | |
*/ | |
app.get('/cards', function (req, res) { | |
AdminAPI.getCards(req); |
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
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 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 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 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; |
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
request.setTimeout 1000 () => | |
console.log('TIMEOUT???!??!?!'); |
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
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kGameCellIdent forIndexPath:indexPath]; | |
if ( cell.tag != 1 ) { | |
UITapGestureRecognizer tappy = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(_cellTapped:)]; | |
[cell addGestureRecognizer:tappy]; | |
cell.tag = 1; | |
} |
NewerOlder