Skip to content

Instantly share code, notes, and snippets.

View hashier's full-sized avatar
🦆

Christopher Loessl hashier

🦆
View GitHub Profile
#!/bin/sh
# FindInFile.sh
#
#
# Created by Gregory Hill on 2/28/13.
#
# Usage:
# ./FindInFile.sh <baseDir>
# e.g. ~/Desktop/Code/Pandora/dev/Pandora
@hashier
hashier / common.h
Last active December 22, 2015 07:18
my common.h for ObjC
//
// common.h
// Common helper stuff
//
// Created by Christopher Loessl.
// Copyright (c) 2013 Christopher Loessl. All rights reserved.
//
#ifndef hashier_common_h
#define hashier_common_h
#import <Foundation/Foundation.h>
#ifdef DEBUG
#define NSLog(args...) ExtendNSLog(__FILE__,__LINE__,__PRETTY_FUNCTION__,args);
#else
#define NSLog(x...)
#endif
void ExtendNSLog(const char *file, int lineNumber, const char *functionName, NSString *format, ...);
@hashier
hashier / main.m
Last active December 19, 2015 13:59
KVC / KVO
//
// main.m
// KVO
//
// Created by Christopher Loessl on 7/14/13.
// Copyright (c) 2013 Christopher Loessl. All rights reserved.
//
/*
* The code is based on a tutorial from: