- Touchscreen interface
- Sensors
- Sensor-based games
- Texting/chat
- Imaging (cheapest camera)
- Live sensor data display
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
(defn partial [f arg &rest args1] | |
(defn p [&rest args2] | |
(apply f (+ (list* arg (list args1)) (list args2))))) | |
(defn add [a &rest b] | |
(+ a (reduce + b))) | |
(def add10 (partial add 10)) | |
(print (add10 15 20)) |
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
def chain(*args): | |
result = args[0] | |
for func in args[1:]: | |
result = func(result) | |
return result | |
def compose(*funcs): | |
cfuncs = [] | |
for func in funcs: | |
if hasattr(func, '__call__'): |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Binary Clock</title> | |
<style> | |
/*body { background-color: #a2d5d5; } | |
table { border-collapse: collapse; border-width: 1px; } | |
td { border: 1px solid black; }*/ | |
#h td { background-color: #f6bbca; } |
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 RPi.GPIO as GPIO | |
def readadc(adcnum, clockpin=18, mosipin=23, misopin=24, cspin=25): | |
if adcnum > 7 or adcnum < 0: | |
return -1 | |
GPIO.output(cspin, True) | |
GPIO.output(clockpin, False) # start clock low | |
GPIO.output(cspin, False) # bring CS low |
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/env python | |
# -*- coding: utf-8 -*- | |
# IPS Patcher | |
# Copyright (©) itari 2014 | |
# Do whatever you want with this, I don't care. :D | |
# | |
# Modified by sli to work on the command line and with | |
# Python 3. Who even uses Tkinter anymore? |
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
volatile int state = 0; // current state in the FSM | |
volatile int activePlayer; // this game's winner or loser | |
const int redPin = 3; | |
const int greenPin = 4; | |
const int bluePin = 5; | |
const int p1_button = 6; | |
const int p2_button = 7; |
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 re | |
import requests | |
import urllib.parse | |
from bs4 import BeautifulSoup | |
url_base = 'http://dragonballgo.co/series/' | |
episode_base = 'http://dragonballgo.co/lib/picasa.php' | |
post_re = re.compile('data: (.*?)') |
- First generation of the protocol, uses SocketIO and JSON for communication
sensed
listens for data requests and responds accordingly- This method allows for managing of network resources and requesting data from specific sensors
senselog
client round-robin requests data from each connected node, inserting the data into a Mongo databasesenselog
is a client reference implementation,sensed
doesn't care about the client's purpose
- Second generation of the protocol, uses UDP and msgpack for communication
- msgpack is JSON-like, but is a binary format and results in much smaller packets
- Control surface acrylic size: 714mm x 206mm
- Individual player controls layout:
- http://www.slagcoin.com/joystick/layout/sega1_l.png
- http://www.slagcoin.com/joystick/layout/sega2_l.png
- http://www.slagcoin.com/joystick/layout/sega2365_l.png (same as above, but with slightly wider spacing)
- Total width of each player layout: 205mm x 130mm (will fit any of the above three layouts)
- Width of stand sections: 75mm