Skip to content

Instantly share code, notes, and snippets.

Avatar

Greg Borenstein atduskgreg

View GitHub Profile
View gist:0389c6cbd6fb09180464
using UnityEngine;
using System.Collections;
public class interact_boulder : MonoBehaviour {
public GUISkin boxText;
public bool showBox;
public float GUIScreenWidth = Screen.width/2;
public float GUIScreenHeight = Screen.height/2;
public float GUIScreenToolWidth = Screen.width - 5;
View gist:8498097
NSOpenGLPixelFormatAttribute attr[] =
{
NSOpenGLPFADoubleBuffer,
NSOpenGLPFAAccelerated,
NSOpenGLPFADepthSize, 24,
NSOpenGLPFAMultisample,
NSOpenGLPFASampleBuffers, 1,
NSOpenGLPFASamples, 4,
(NSOpenGLPixelFormatAttribute) 0
};
View possible_classes.txt
11.252J Computer Games and Simulations for Investigation and Education http://student.mit.edu/catalog/m11b.html#11.252
CMS.809 Transmedia Storytelling: Modern Science Fiction http://student.mit.edu/catalog/mCMSa.html#CMS.809
MAS.864 The Nature of Mathematical Modeling
@atduskgreg
atduskgreg / lineart.h
Created Oct 5, 2012 — forked from kylemcdonald/lineart.h
lineart rendering for openFrameworks
View lineart.h
#pragma once
#include "ofMain.h"
void drawModel(ofMesh& mesh) {
glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(3, GL_FLOAT, sizeof(ofVec3f), &mesh.getVerticesPointer()->x);
glEnableClientState(GL_NORMAL_ARRAY);
glNormalPointer(GL_FLOAT, sizeof(ofVec3f), &mesh.getNormalsPointer()->x);
if(mesh.getNumIndices()){
glDrawElements(ofGetGLPrimitiveMode(mesh.getMode()), mesh.getNumIndices(), GL_UNSIGNED_INT, mesh.getIndexPointer());
}else{
View sketchup_downloader.rb
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'httparty'
unless ARGV[0] && ARGV[1]
puts "Usage: ruby sketchup_downloader.rb path/to/terms.csv path/to/folder"
exit 1
end
@atduskgreg
atduskgreg / gist:1420122
Created Dec 1, 2011 — forked from anonymous/gist:1419933
convert your app from ITP to heroku
View gist:1420122
Create an account on heroku
Download your app from itp.nyu.edu
Cleanup config.ru
put everything in public
Install the heroku gem
- launch Terminal
- install heroku gem:
sudo gem install heroku
(type your computer's password)
View SubmittingPatches
The sign-off is a simple line at the end of the explanation for
the patch, which certifies that you wrote it or otherwise have
the right to pass it on as a open-source patch. The rules are
pretty simple: if you can certify the below:
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
You can’t perform that action at this time.