Skip to content

Instantly share code, notes, and snippets.

View andrey-str's full-sized avatar

Andrey Streltsov andrey-str

View GitHub Profile
@andrey-str
andrey-str / NSLog+Additions.h
Last active February 12, 2017 14:20
NSLogging helpers [Macroses]
#ifndef __NSLOG_ADDITIONS_H__
#define __NSLOG_ADDITIONS_H__
// DLog will output like NSLog only when the DEBUG variable is set
#ifdef DEBUG
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
# define DLog(...)
#endif
@andrey-str
andrey-str / NSURL+Additions.h
Created December 25, 2014 09:16
NSURL with format [Macros]
#define $URL(format, ...) [NSURL URLWithFormat:format, ## __VA_ARGS__]
@andrey-str
andrey-str / NSString+Additions.h
Created December 25, 2014 09:14
String with format macros
#define $S(format, ...) [NSString stringWithFormat:format, ## __VA_ARGS__]
@trey
trey / happy_git_on_osx.md
Last active February 18, 2024 10:46
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"