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
(function(root){ | |
// Let's borrow a couple of things from Underscore that we'll need | |
var deferred_object_id = 0x1b443e69; | |
// _.each | |
var breaker = {}, | |
AP = Array.prototype, | |
OP = Object.prototype, |
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) popToInitialViewController | |
{ | |
UIViewController *vc; | |
if (self.navigationController != nil) { | |
vc = self.navigationController; | |
[self.navigationController popToRootViewControllerAnimated:NO]; | |
[vc popToInitialViewController]; | |
} | |
else if (self.tabBarController != nil) { |
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) popToInitialViewController | |
{ | |
UIViewController *vc; | |
if (self.navigationController != nil) { | |
vc = self.navigationController; | |
[self.navigationController popToRootViewControllerAnimated:NO]; | |
[vc popToInitialViewController]; | |
} | |
else if (self.tabBarController != nil) { | |
vc = self.tabBarController; |
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) popToInitialViewController | |
{ | |
UIViewController *vc; | |
if (self.navigationController != nil) { | |
vc = self.navigationController; | |
[self.navigationController popToRootViewControllerAnimated:NO]; | |
[vc popToInitialViewController]; | |
} | |
else if (self.tabBarController != nil) { | |
vc = self.tabBarController; |
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 <Foundation/Foundation.h> | |
@interface Event : NSObject | |
+ (Event *) event; | |
- (void) subscribe:(id)object action:(SEL)action; | |
- (void) subscribeOnce:(id)object action:(SEL)action; | |
- (void) unsubscribe:(id)object; |
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 | |
/** | |
* @defgroup domain_strict Domain Strict: strict access control | |
* Forces users to be assigned to a domain in order to view content on that domain. | |
*/ | |
/** | |
* @file | |
* Forces users to be assigned to a domain in order to view content on that domain. |
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
top | |
window | |
location | |
external | |
chrome | |
v8Intl | |
document | |
$ | |
jQuery | |
CTIsPlayback |
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
AAPL: $<span class="stock-quote" data-value="AAPL"></span> | |
<br/> | |
MSFT: $<span class="stock-quote" data-value="MSFT"></span> | |
<br/> | |
GE: $<span class="stock-quote" data-value="GE"></span> |
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
class Event | |
attr_reader :name | |
def initialize(name) | |
@name = name | |
@handlers = [] | |
end | |
def subscribe(handler = nil, &block) |
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
class Module | |
class BlockFactory | |
def initialize(&block) | |
@proc = Proc.new(&block) | |
end | |
def new(*args) | |
@proc.call(*args) |