Skip to content

Instantly share code, notes, and snippets.

mdmarek / twotriangles.go
Last active August 29, 2015 14:08
Modern OpenGL to draw using multiple Vertex Attribute Objects.
// Copyright 2014 The go-gl Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
anotherspot / benderplus
Last active November 30, 2015 03:06
A modified script for robot clouds bender to include Mavericks Server backups of Service Databases
# Bender
# Written by Chad Nielsen
# Forget Computers, Get Creative!
# Version History
# 1.0 - Initial creation of script for use with a companion launch daemon.
# 1.1 - Moved binary and log locations to /usr/local/robotcloud.
# 1.2 - Code improvements and added compatibility with OS X 10.9 Mavericks.
havenwood /
Last active December 18, 2015 17:39
A script for OS X with Homebrew for automatically setting up ruby-install, chruby and the latest stable Ruby and JRuby.


Install and configure [ruby-install] and [chruby] and build the latest Ruby and JRuby:

curl -fsSL | sh

Or if you prefer, paste the script below in your Terminal.


- OS X
  • Homebrew
erikh /
Created March 31, 2012 07:02 — forked from DAddYE/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
kizzx2 / fun.cpp
Created January 11, 2012 14:29
Illustrative C++ Lua binding example/tutorial
// fun.cpp
extern "C"
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include <iostream>
gaspard / simple_jit.lua
Created July 17, 2011 09:05
Testing Luajit bindings to C++
-- luajit simple_jit.lua
ffi = require 'ffi'
simple = ffi.load('simple')
typedef struct Simple Simple;
Simple *Simple_Simple(int);
void Simple__gc(Simple *);
gaspard / gist:1087380
Created July 17, 2011 09:02
Simple C++ class with C interface for Luajit ffi bindings
// g++ simple.cpp -shared -o libsimple.dylib
#include <stdio.h>
class Simple {
int id_;
Simple(int id);