Skip to content

Instantly share code, notes, and snippets.

View chrismiles's full-sized avatar

Chris Miles chrismiles

View GitHub Profile
@sadatrahman
sadatrahman / SRUtilities.m
Created July 12, 2011 09:26
CoreData SQL Debugger
+ (void)installSQLiteDebugger
{
#ifdef DEBUG
[NSClassFromString(@"NSSQLCore") performSelector:@selector(setDebugDefault:) withObject:[NSNumber numberWithBool:YES]];
#endif
}
@boctor
boctor / BaseViewController.m
Created May 5, 2011 02:08
A base view controller class that when running on the simulator in debug mode, will auto simulate a memory warning every time the view controller's viewDidAppear is called
//
// BaseViewController.m
//
// Created by Peter Boctor on 5/4/11.
//
// Copyright (c) 2011 Peter Boctor
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
@tassock
tassock / FloatExtract.m
Created January 24, 2011 00:43
Attempt to
#import <Foundation/Foundation.h>
#include <AudioToolbox/AudioToolbox.h>
#define kInputFileLocation CFSTR("/Users/petermarks/Developer/CoreAudio/FloatExtract/loop.wav")
#pragma mark utility functions
static void CheckResult(OSStatus error, const char *operation)
{
if (error == noErr) return;
char errorString[20];
@kgn
kgn / .gitconfig
Last active May 9, 2016 20:43 — forked from henrik/.bashrc
My user setup
[alias]
cl = clone --recursive
un = reset --hard
st = status -s
aa = add --all
ci = commit -m
co = checkout
cob = checkout -b
br = branch
rbr = branch -r