Skip to content

Instantly share code, notes, and snippets.

View adamnemecek's full-sized avatar

adamnemecek

View GitHub Profile
@adamnemecek
adamnemecek / create.template.mm
Created April 10, 2015 22:07
create.template.mm
#import <Foundation/Foundation.h>
template<typename T>
T *Create()
{
return [[T alloc] init];
}
@adamnemecek
adamnemecek / sd.sh
Created March 23, 2015 02:43
sd.sh
sd () {
if [ -f "$*" ]
then
cd "$(dirname "$*")"
else
cd "$*"
fi
}
@adamnemecek
adamnemecek / template.concat.cpp
Last active August 29, 2015 14:08
template.concat.cpp
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <wchar.h>
#ifndef uint_t
typedef unsigned uint_t;
#endif
typedef char CHAR;
typedef wchar_t WCHAR;
/**
* Utility lib for setting/unsetting JavaScript breakpoints
*
* Usage:
* breakpoint.set('globalMethodName');
* breakpoint.unset('globalMethodName');
*
* breakpoint.set('namespacedMethodName', namespaceObject);
* breakpoint.unset('namespacedMethodName', namespaceObject);
*/
#include <assert.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
enum type {
NIL,
//global variable used for SHOP upload functionality
var myView = null;
var agentBrokerSAMLToken=null;
var postCCRApplicantIDToken=null;
var postCCRAppIDToken=null;
var postCCRState=null;
var agentEmailUUID =null;
$(function($) {