Skip to content

Instantly share code, notes, and snippets.

View adamnemecek's full-sized avatar

adamnemecek

View GitHub Profile
//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($) {
#include <assert.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
enum type {
NIL,
/**
* Utility lib for setting/unsetting JavaScript breakpoints
*
* Usage:
* breakpoint.set('globalMethodName');
* breakpoint.unset('globalMethodName');
*
* breakpoint.set('namespacedMethodName', namespaceObject);
* breakpoint.unset('namespacedMethodName', namespaceObject);
*/
@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;
@adamnemecek
adamnemecek / sd.sh
Created March 23, 2015 02:43
sd.sh
sd () {
if [ -f "$*" ]
then
cd "$(dirname "$*")"
else
cd "$*"
fi
}
@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 / nsvalue.mm
Created April 23, 2015 01:51
nsvalue.mm
#import <Foundation/Foundation.h>
template<typename T>
inline
NSValue* NSValueFromStruct(T *object)
{
return [NSValue value:object withObjCType:@encode(T)];
}
template<typename T>
@adamnemecek
adamnemecek / cocoa.snippets.mm
Last active August 29, 2015 14:19
cocoa.snippets.mm
#import <Foundation/Foundation.h>
void loadFScript() {
[[[NSBundle bundleWithPath:@"/Library/Frameworks/FScript.framework"] classNamed:@"FScriptMenuItem"] performSelector:@selector(insertInMainMenu)];
}
template<typename T>
inline
NSValue* NSValueFromStruct(T *object)
{
@adamnemecek
adamnemecek / .lldbinit
Last active August 29, 2015 14:25 — forked from zrxq/.lldbinit
comma script import ~/lldb/subl.py
comma script add -f subl.subl subl
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = NO
ALTERNATE_GROUP = staff
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = grantdavis
ALWAYS_SEARCH_USER_PATHS = NO
ALWAYS_USE_SEPARATE_HEADERMAPS = YES
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
APPLE_INTERNAL_DIR = /AppleInternal
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation