Skip to content

Instantly share code, notes, and snippets.

@srpoucse
srpoucse / Ignore perform Selector Leaks
Created July 9, 2014 16:59
Ignore perform Selector Leaks
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
@srpoucse
srpoucse / Timer with Grand Central Dispatch
Last active August 29, 2015 14:03
Creating a timer with Grand Central Dispatch - Make Sure It Runs !
#define TIME_INTERVAL_TO_FIRE 15 * NSEC_PER_SEC
#import <Foundation/Foundation.h>
@interface SampleClass : NSObject
{
dispatch_source_t timer;
}
- (void)startTimer;
@srpoucse
srpoucse / 0_reuse_code.js
Created June 24, 2014 19:56
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console