Skip to content

Instantly share code, notes, and snippets.

@bestimmaa
bestimmaa / notification.m
Created July 2, 2015 06:33
iOS - Post and subscribe to NSNotification
// declare notification name in something.h
extern NSString* const touchEndNotification;
// define notification name in something.m
NSString* const touchEndNotification = @"StimulusRotationDidEnd";
// post notification
[[NSNotificationCenter defaultCenter] postNotificationName:touchEndNotification object:self];
// subscribe to notification
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateSurfaceView) name:touchEndNotification object:nil];
@bestimmaa
bestimmaa / .gitignore
Last active August 29, 2015 14:19 — forked from kleber-swf/.gitignore
# =============== #
# Unity generated #
# =============== #
[Tt]emp/
[Oo]bj/
[Bb]uild
[Ll]ibrary/
sysinfo.txt
# ===================================== #
@bestimmaa
bestimmaa / cinderblock.xml
Created September 19, 2014 11:46
Cinder-KCB2 cinderblock file for x86
<?xml version="1.0" encoding="UTF-8" ?>
<cinder>
<block
name="Cinder-KCB2"
id="com.wk.kcb2"
author="Wieden+Kennedy"
license="BSD"
summary="Kinect v2 Common Bridge block for Cinder"
git="git@github.com:wieden-kennedy/Cinder-KCB2.git"
version="0.2"
@bestimmaa
bestimmaa / AutoHotkey.ahk
Last active August 29, 2015 14:06
AutoHotkey Script for using Apple Keyboard on Windows
LAlt::RAlt
RAlt::LAlt
LWin::LControl
#! /bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28