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
import SimpleOpenNI.*; | |
SimpleOpenNI kinect; | |
float youAre = 0; | |
PImage handImage; | |
int imageHeight = 1787; | |
int imageWidth = 833; | |
void setup() { | |
kinect = new SimpleOpenNI(this); |
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
import SimpleOpenNI.*; | |
SimpleOpenNI kinect; | |
PImage handImage; | |
void setup() { | |
kinect = new SimpleOpenNI(this); | |
kinect.enableDepth(); | |
kinect.enableUser(SimpleOpenNI.SKEL_PROFILE_ALL); | |
kinect.setMirror(false); |
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
import oscP5.*; OscP5 oscP5; | |
float posePositionX; | |
float posePositionY; | |
float poseScale; | |
PImage interior; | |
PImage exterior; | |
void setup() { | |
size(1000,667); |
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
#!/usr/bin/python | |
# time module is needed for sleep function: | |
import time | |
# Open up the pins and set mode in/out | |
# TODO: Error handling | |
setupPin = file("/sys/class/gpio/export", "w") | |
setupPin.write("%d" % (38)) | |
setupPin.close() |
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
from Tkinter import * | |
import time | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(17, GPIO.OUT) | |
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) | |
def say_hi(): |
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
<? | |
$idigi_username = 'YOUR_IDIGI_USERNAME'; // enter your username here. | |
$idigi_password = 'YOUR_IDIGI_PASSWORD'; // enter your password here. Consider your options for securing this info. | |
$device_id = '00000000-00000000-XXXXXXX-XXXXXXXX'; // XIG device ID (replace the X's with the device ID from your XIG setup screen) | |
$hardware_address = '00:13:a2:00:XX:XX:XX:XX'; // XBee's Hardware address (replace the X's so that this value matches your hardware address) | |
$idigi_sci_url = 'http://developer.idigi.com/ws/sci'; // Keep this as is. | |
// Only take action if a valid set parameter comes through (i.e. http://www.example.com/lamp.php?set=on) |
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
String check(String URL) { | |
String response = ""; | |
Serial.println(); | |
Serial.print("Connecting to "); | |
Serial.println(URL); | |
XBee.println(URL); | |
requestTime = millis(); | |
while ((XBee.available() == 0) && (millis() - requestTime < responseTimeout)) | |
{ | |
//wait here until we hear something back or timeout |
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
// Commands for Alpha Sign Communication Protocol | |
byte NUL = 0x00; | |
byte START_HEADER = 0x01; | |
byte START_TEXT = 0x02; | |
byte END_TRANSMISSION = 0x04; | |
byte ESC = 0x1B; | |
byte FILL = 0x30; | |
byte ROTATE = 0x61; | |
byte SLOW = 0x15; | |
byte FAST = 0x19; |
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
from bs4 import BeautifulSoup | |
import re | |
html_doc = """ | |
<html> | |
<head> | |
<title>A Page About Cats</title> | |
</head> | |
<body> |
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
# Tkinter and GPIO together | |
from Tkinter import * | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(24, GPIO.OUT) | |
GPIO.output(24, GPIO.LOW) | |
def toggle(): |
OlderNewer