Skip to content

Instantly share code, notes, and snippets.

View mactkg's full-sized avatar
🍼
I'm feeding milk...

mactkg mactkg

🍼
I'm feeding milk...
View GitHub Profile
class Artoolkit2 < Formula
desc "Library for building Augmented Reality (AR) applications"
homepage "https://www.hitl.washington.edu/artoolkit/"
url "http://downloads.sourceforge.net/artoolkit/ARToolKit-2.72.1.tgz"
version "2.72.1"
sha256 "1a49a67c6e196b0e9990e90255ce840287ac47b5a53371a68a6dd93a5425d259"
def install
xcodebuild "-sdk", "macosx", "-arch", "i386"
@mactkg
mactkg / .vimrc
Created September 26, 2015 01:31
light version
filetype plugin indent on
filetype indent on
" Visualize
syntax enable
set cursorline
" Informations
set ruler number
set showcmd
function test() {
return new Promise(function(resolve, reject) {
var r = Math.random();
r > 0.5 ? resolve(r) : reject(r);
});
}
function throwError() {
return new Promise(function(resolve, reject) {
throw new Error("Boom!");
@mactkg
mactkg / base-feeds.conf
Created August 13, 2015 06:02
edison_pkgconf
src/gz all http://repo.opkg.net/edison/repo/all
src edison http://repo.opkg.net/edison/repo/edison
src/gz edison-core2-32 http://repo.opkg.net/edison/repo/core2-32
@mactkg
mactkg / .vimrc
Last active August 29, 2015 14:25
Basic / Simple vimrc config file
set nocompatible
set encoding=utf-8
set hidden
filetype plugin indent on
syntax on
set synmaxcol=2048 " Don't syntax highlight super-long lines (for performance)
set autoindent " automatically indent lines and try to do it intelligently
set smartindent
set backspace=indent,eol,start " backspace behaves 'normally'
class Jack {
PGraphics g_local, g_global;
Jack() {
g_local = createGraphics(width, height, P3D);
}
void begin() {
g_local.beginDraw();
g_global = g;
class Jack {
PGraphics g_local, g_global;
Jack() {
g_local = createGraphics(width, height);
}
void begin() {
g_local.beginDraw();
g_global = g;