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 / testApp.cpp
Created May 21, 2012 22:42 — forked from roxlu/testApp.cpp
Gradient field visualization (partial derivative)
#include "testApp.h"
testApp::testApp() {
}
void testApp::setup(){
ofBackground(22,33,44);
ofSetFrameRate(60);
grad_w = 50;
@thomastraum
thomastraum / gist:2781770
Created May 24, 2012 14:09 — forked from miketucker/gist:2775466
Encode some h264 videos, multithreaded boo yah
require 'rubygems'
require 'streamio-ffmpeg'
threads = []
i = 1
Dir.glob('*.avi') do |f|
j = i.to_s
threads.push Thread.new {
begin
@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();
/*
This is my hacked up copy of Marked.app/Contents/Resources/gridless.css
Changes:
1. Smaller headings
2. ~~No scrollbars~~ (I now prefer the Lion default behavior)
3. Styling of definition lists ala LaTeX description lists.
4. Centering h1.title, h3.author, h4.date (pandoc's title/author/date block).