Skip to content

Instantly share code, notes, and snippets.

View thomastraum's full-sized avatar
💭
Still on it

Thomas Traum thomastraum

💭
Still on it
View GitHub Profile
@thomastraum
thomastraum / main.h
Created January 7, 2013 13:43
magic antialiasing
window.setGlutDisplayString("rgba double samples>=4 depth");
@thomastraum
thomastraum / testApp.cpp
Created December 17, 2012 01:16
Plane Line Intersection
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
//------------------------------------------------------ 3D
cam.rotate(-90, ofVec3f(1,0,0));
// cam.setTarget(cam_target);
// cam.setDistance(ofGetHeight());
@thomastraum
thomastraum / simplehttp.py
Created November 6, 2012 23:07
python simple http
python -m SimpleHTTPServer
@thomastraum
thomastraum / find.sh
Created October 31, 2012 17:20
how to use find
find ~ -name \*.sublime-build
@thomastraum
thomastraum / find process and kill it.sh
Created October 28, 2012 12:29
find process and kill it
$ ps aux | grep node
you PID 1.5 0.2 44172 8260 pts/2 S 15:25 0:00 node app.js
$ kill -2 PID
@thomastraum
thomastraum / ip tables express on port 80
Created October 14, 2012 15:06
ip tables express on port 80
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 3000
@thomastraum
thomastraum / GrassBranch.h
Created October 9, 2012 22:50 — forked from roxlu/GrassBranch.h
GrassBranch
#ifndef APOLLO_GRASSBRANCH
#define APOLLO_GRASSBRANCH
#include <roxlu/Roxlu.h>
#include <vector>
class GrassBranch {
public:
GrassBranch(VerticesPT& vertices);
~GrassBranch();
@thomastraum
thomastraum / Start python simple webserver.sh
Created October 6, 2012 21:36
Start python simple webserver
python -m SimpleHTTPServer
@thomastraum
thomastraum / coffee compile watch
Created October 6, 2012 12:54
coffee compile watch
coffee -c -wo js coffee
@thomastraum
thomastraum / fragment
Created June 4, 2012 01:56
vertex + fragment pointsprites
#version 120
uniform sampler2D texture;
varying vec4 mycol;
void main(void)
{
gl_FragColor = texture2D(texture,gl_PointCoord) * mycol;
}