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
@interface MyCellController : NibBasedCellController { | |
Class _controllerClass; | |
GithubAccount* _githubAccount; | |
} | |
@end |
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
require 'rubygems' | |
require 'dnsimple' | |
DNSimple::Client.username = '[email protected]' | |
DNSimple::Client.password = 'd34thst4r' | |
DNSimple::Client.debug = false | |
user = DNSimple::User.me | |
puts "#{user.domain_count} domains" |
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
[MagicalRecord saveWithBlock:^(NSManagedObjectContext* localContext) { | |
LSUser* currentUser = nil; | |
NSDictionary* apiKeyDic = [[ACSimpleKeychain defaultKeychain] credentialsForIdentifier:@"api_key" service:@"MerchantCenter"]; | |
if( apiKeyDic != nil ) { | |
NSString* email = [apiKeyDic objectForKey:ACKeychainUsername]; | |
if( email != nil ) { | |
currentUser = [LSUser MR_findFirstByAttribute:LSUserAttributes.email withValue:email inContext:localContext]; | |
NSLog(@"USER HAS VOUCHERS: %ld", [LSVoucher MR_countOfEntitiesWithPredicate:[NSPredicate predicateWithFormat:@"user = %@", currentUser]]); | |
} | |
} |
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
Lego | |
Set No, Name, Brick Count | |
Ultimate Collector Series | |
------------------------- | |
10019 UCS Blockade Runner 1747 | |
10030 UCS Star Destroyer 3096 | |
10179 UCS Millenium Falcon 5195 | |
10188 UCS Death Star 3803 |