Skip to content

Instantly share code, notes, and snippets.

View siddhanth's full-sized avatar

Siddhanth Jain siddhanth

  • PlaySimple Games
  • Bangalore
View GitHub Profile
@siddhanth
siddhanth / Logger.js
Last active September 12, 2015 05:53
Logging Helper for Cocos2dx-JS
Logger = function() {
this.MODE = {
TRACE: 0,
DEBUG: 1,
INFO: 2,
WARNING: 3,
ERROR: 4
};
this.getLineNumber = function() {
@siddhanth
siddhanth / SqliteHelper
Last active August 29, 2015 14:21
Sqlite helper function for Objective C
#import "SqliteHelper.h"
@implementation SqliteHelper
static SqliteHelper *helper;
+(SqliteHelper*) get;{
if(helper==nil){
helper=[[SqliteHelper alloc] init];
}