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
NSString *path = [[NSBundle bundleForClass:[self class]] pathForResource:imageName ofType:@"png"]; | |
[[UIImage alloc] initWithContentsOfFile:path] |
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
// | |
// ModelManager.m | |
// ThreadingHell | |
// | |
// Created by Cory D. Wiles on 10/19/12. | |
// Copyright (c) 2012 Cory D. Wiles. All rights reserved. | |
// | |
#import "ModelManager.h" | |
#import "NSMutableString+CoryAdditions.h" |
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
timelineOfPhotos: ( | |
{ | |
clazz = WNPhoto; | |
createdAt = 1352085590920; | |
createdBy = U60G4tqQYg4Vly0gJdfpE7; | |
ffRL = "/UserPhotos"; | |
ffRefs = ( | |
{ | |
name = event; | |
type = FFO; |
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
#!/bin/sh | |
# Copyright 2009-2012 Urban Airship Inc. All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. | |
# |
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
- (void)transitionFromViewController:(UIViewController *)fromViewController | |
toViewController:(UIViewController *)toViewController | |
withAnimationType:(EPBUIViewAnimationTransition)animation | |
fromFrame:(CGRect)aFrame | |
withOverLayImage:(NSString *)overlayName { | |
static NSInteger standardImageTag = 9999; | |
if (fromViewController == toViewController) { | |
return; |
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
// | |
// AppDelegate.m | |
// | |
// | |
// Created by Cory D. Wiles on 10/8/12. | |
// Copyright (c) 2013 Cory D. Wiles. All rights reserved. | |
// | |
#import "AppDelegate.h" | |
#import "iTunes.h" |
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
@property (nonatomic, copy) void (^testForCompletionBlock)(BOOL *testCompleted); | |
- (void)setUp { | |
[super setUp]; | |
_testForCompletionBlock = ^(BOOL *testCompleted) { | |
while (!*testCompleted) { | |
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
- (void)addChannel:(id <AntennaChannel>)channel forName:(NSString *)name { | |
dispatch_barrier_async(_channelsThreadQueue, ^{ | |
/** | |
* Has this channel already been added? | |
*/ | |
if ([self channelExists:name]) { | |
return; | |
} | |
NSDictionary *notifInfo = @{AntennaChannelNotificationDictKey : name}; |
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 ff = require('ffef/FatFractal'); | |
exports.deleteAllForResource = function() { | |
var data = ff.getExtensionRequestData(); | |
var finalResponse = {}; | |
var r = ff.response(); | |
var resourceName = data.httpParameters.resourceName; | |
var responseCode = "200"; | |
var deletedURLs = []; |
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 ff = require('ffef/FatFractal'); | |
exports.countForResource = function() { | |
var r = ff.response(); | |
var data = ff.getExtensionRequestData(); | |
var resourceName = data.httpParameters.resourceName; | |
var resourceCollection = []; | |
var responseCode = "200"; | |
var total = 0; |