Skip to content

Instantly share code, notes, and snippets.

View martijnthe's full-sized avatar

Martijn Thé martijnthe

View GitHub Profile
#include <stdint.h>
#include <stdio.h>
#define OUTPUT_SOMEWHERE(...) \
printf(__VA_ARGS__);
typedef struct
{
size_t something;
size_t something_else;
@martijnthe
martijnthe / floatsign.sh
Last active December 28, 2015 09:29 — forked from Weptun/floatsign.sh
# !/bin/bash
# Copyright (c) 2011 Float Mobile Learning
# http://www.floatlearning.com/
# Extension Copyright (c) 2013 Weptun Gmbh
# http://www.weptun.de
#
# Extended by Ronan O Ciosoig January 2012
#
# Extended by Patrick Blitz, April 2013
diff --git a/freetype/__init__.py b/freetype/__init__.py
index e175d52..e602d9c 100644
--- a/freetype/__init__.py
+++ b/freetype/__init__.py
@@ -30,15 +30,24 @@ import ctypes.util
__dll__ = None
__handle__ = None
FT_Library_filename = ctypes.util.find_library('freetype')
+
if not FT_Library_filename:
@martijnthe
martijnthe / Xcode4TestFlightintegration.sh
Created November 19, 2011 17:53 — forked from incanus/Xcode4TestFlightintegration.sh
ReWrite of "Xcode 4 scheme Archive step Post-script for automatic TestFlight build uploading. See the blog post here: http://developmentseed.org/blog/2011/sep/02/automating-development-uploads-testflight-xcode"
#!/bin/bash
#
# (Above line comes out when placing in Xcode scheme)
#
# Inspired by original script by incanus:
# https://gist.github.com/1186990
#
# Rewritten by martijnthe:
# https://gist.github.com/1379127
#
@martijnthe
martijnthe / Xcode4TestFlightintegration.sh
Created November 19, 2011 15:47 — forked from fictorial/Xcode4TestFlightintegration.sh
ReWrite: "Xcode 4 scheme Archive step Post-script for automatic TestFlight build uploading. See the blog post here: http://developmentseed.org/blog/2011/sep/02/automating-development-uploads-testflight-xcode"
#!/bin/bash
#
# (Above line comes out when placing in Xcode scheme)
#
# Inspired by original script by incanus:
# https://gist.github.com/1186990
#
# Rewritten by martijnthe:
# https://gist.github.com/1379127
#
@martijnthe
martijnthe / SPBindings.h
Created August 22, 2011 16:42 — forked from nevyn/SPBindings.h
Bindings for iOS
#import <Foundation/Foundation.h>
@interface NSObject (SPBindings)
-(void)sp_bind:(NSString*)binding toObject:(id)observable withKeyPath:(NSString*)observableKeyPath;
-(void)sp_unbind:(NSString*)binding;
@end