Skip to content

Instantly share code, notes, and snippets.

View dominik-hadl's full-sized avatar

Dominik Hádl dominik-hadl

  • Prague, Czech Republic
View GitHub Profile
@dominik-hadl
dominik-hadl / JSONPrettyToUgly.py
Last active December 19, 2015 20:08
Automatically minifies all JSON files after building (release or debug).
#!/usr/bin/python
#-------------------------
# Import the dependencies
#-------------------------
import json, sys
#-------------------------
#-------------------------------------
# Get the file names from the argument
@dominik-hadl
dominik-hadl / GCDSingleton.h
Last active December 16, 2015 23:59 — forked from lukeredpath/ExampleClass.m
GCDSingleton Macro + @ArvinB changes.
/*!
* @function Singleton GCD Macro
*/
#ifndef SINGLETON_GCD
#define SINGLETON_GCD(classname) \
\
+ (classname *)shared##classname { \
\
static dispatch_once_t pred; \