Skip to content

Instantly share code, notes, and snippets.

View objectiveSee's full-sized avatar

Danny Ricciotti objectiveSee

  • Starship Studios
View GitHub Profile
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
EALobbyGameCell *cell = [tableView dequeueReusableCellWithIdentifier:kGameCellIdent forIndexPath:indexPath];
if ( [cell viewWithTag:444] == nil ) {
// make gesture recoginzer and give it a tag of 444
})
// set target here
- (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;
}
request.setTimeout 1000 () =>
console.log('TIMEOUT???!??!?!');
<?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;
@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);
var traits = {
coins: usr.coins,
cake: usr.cake,
name: usr.name,
avatar: usr.avatar
};
var identity = {
userId : usr._id,
traits : traits
Logger.info('Hello, World!');
- (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
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
@objectiveSee
objectiveSee / podspec
Created April 10, 2014 17:10
Creating Podspec for https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX. In my project, the "framework search paths" is set to ""$(PODS_ROOT)/../../PhilipsHueSDKOfficial"" but when I try to import a header from the Hue SDK I get a linker error (header not found)
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'