Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
P1 -> propeller(:motor) | |
P2 -> led | |
P3, P4 <-> xbee(:serial) | |
P6 <- button(:button) | |
P7 <- thermometer(:analog) | |
when button.pushed | |
led.off | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I am changing this 1 | |
#import <Foundation/Foundation.h> | |
typedef enum _WRSideIdentifier { | |
kWRSideLeft = 1 << 0, | |
kWRSideRight = 1 << 1, | |
kWRSideBottom = 1 << 2, | |
kWRSideTop = 1 << 3 | |
} WRSideIdentifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I am forking this separately. | |
#import <Foundation/Foundation.h> | |
typedef enum _WRSideIdentifier { | |
kWRSideLeft = 1 << 0, | |
kWRSideRight = 1 << 1, | |
kWRSideBottom = 1 << 2, | |
kWRSideTop = 1 << 3 | |
} WRSideIdentifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sdfsdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
- http://flickr.com
- http://cnn.com
- http://letsfreckle.com # You need to log in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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{ |
OlderNewer