This file contains hidden or 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
//CLOSEST | |
{ | |
int closest = 0; | |
float closestX=0; | |
float closestY=0; | |
ofPixels & pix = grayImage.getPixels(); | |
for (int y=0;y<depthHeight;y++){ | |
for (int x=0; x<depthWidth; x++) { | |
int index = x+y*depthWidth; |
This file contains hidden or 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
// https://bit.ly/2wWIseN | |
int scl = 20; | |
int cols = 1280/scl; | |
int rows = 720/scl; | |
float[][] terrain = new float[cols+1][rows+1]; | |
float flying=0; | |
void setup() { | |
size(1280, 720, P3D); |
This file contains hidden or 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
int sensorPin = A0; | |
int buttonPin = 2; | |
int ledPin = 12; | |
int sensorValue = 0; | |
int buttonValue = 0; | |
int count = 0; | |
int target_wraps = 10; | |
bool check = true; | |
void setup() { |
This file contains hidden or 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
// | |
// main.cpp | |
// pluto_data | |
// | |
// Created by Aaron Sherwood on 9/14/13. | |
// Copyright (c) 2013 Aaron Sherwood. All rights reserved. | |
// | |
#include <iostream> | |
#include <math.h> |
This file contains hidden or 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
// | |
// mapArc.cpp | |
// | |
// Created by Aaron Sherwood on 3/29/13. | |
// Copyright 2013. All rights reserved. | |
// | |
#include <iostream> | |
#include "mapArc.h" |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'httparty' | |
require 'crazylegs' | |
require 'json' | |
require 'FasterCSV' | |
include Crazylegs |
This file contains hidden or 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
#include "testApp.h" | |
using namespace ofxCv; | |
using namespace cv; | |
//-------------------------------------------------------------- | |
void testApp::setup(){ | |
ofSetVerticalSync(true); | |
ofBackground(0); | |
loadShader(); |
This file contains hidden or 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
#include <Ethernet.h> | |
#include <SPI.h> | |
#include <Audio.h> | |
#include <SD.h> | |
const int inputPin = 24; | |
char server[] = "asterisk.itp-redial.com"; | |
String location = "/~ags419/sinatra/wifeSignal/getout HTTP/1.0"; | |
bool vol; |
This file contains hidden or 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
#!/usr/bin/ruby | |
require 'net/http' | |
require 'uri' | |
num = ARGV[0] | |
postData = Net::HTTP.post_form(URI.parse('http://itp.nyu.edu/~ags419/sinatra/redial/putin'), {'number'=>num}) | |
puts postData.body |
This file contains hidden or 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
[ags419] | |
exten => s,1,Answer() | |
exten => s,n,Goto(ags419_deerhoof,ans,1) | |
[ags419_deerhoof] | |
exten => ans,1,Background(/home/ags419/asterisk_sounds/answerDeerhoof) | |
exten => ans,n,WaitExten(2) | |
exten => ans,n,Goto(ags419_deerhoof,ans,1) |
NewerOlder