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
/// Iterate and add subviews plus the index value | |
var currentIndex = 0 | |
let updatedIndexes = items.map({ (item: MenuItem) -> MenuItem in | |
item.index += currentIndex | |
item.delegate = self | |
currentIndex++ |
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
// | |
// NSObject+Blocks.h | |
// Filemator | |
// | |
// Created by Zachary Waldowski on 4/12/11. | |
// Copyright 2011 Dizzy Technology. All rights reserved. | |
// | |
@interface NSObject (Blocks) |
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
#import <ImageIO/ImageIO.h> | |
#import <AssetsLibrary/AssetsLibrary.h> | |
static char const *__imageResizeQueueName = "com.macspots.imageresize.queue"; | |
static CGSize const MaxSizeForLargeImage = {640, 640}; | |
static CGSize const MaxSizeForThumbnailImage = {100, 100}; | |
static CGSize const MaxSizeForIPadThumbnailImage = {300, 300}; | |
static dispatch_queue_t __imageResizeDispatchQueue; |
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; |
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
- (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
@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)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
#!/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
timelineOfPhotos: ( | |
{ | |
clazz = WNPhoto; | |
createdAt = 1352085590920; | |
createdBy = U60G4tqQYg4Vly0gJdfpE7; | |
ffRL = "/UserPhotos"; | |
ffRefs = ( | |
{ | |
name = event; | |
type = FFO; |