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
/* | |
@ Code for interfacing arduino with a Maxbotix LV-EZ4 Ultrasonic Range Finder | |
@ Code by Daniel Spillere Andrade | |
@ www.danielandrade.net -=- daniel@danielandrade.net | |
*/ | |
int blinkLed=13; // Where the led will blink |
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
/* | |
An open-source binary clock for Arduino. | |
Based on the code from by Rob Faludi (http://www.faludi.com) | |
Code under (cc) by Daniel Spillere Andrade, www.danielandrade.net | |
http://creativecommons.org/license/cc-gpl | |
*/ | |
int second=0, minute=0, hour=0; //start the time on 00:00:00 | |
int munit,hunit,valm=0,valh=0,ledstats,i; |
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
/* | |
This is the code to make a LED blink with the music. | |
You have to set the threshold so it' sensible enough to make the led blink. | |
You connect an LED to PIN13 and the Sound Sensor to Analog Pin 0 | |
*/ | |
int led = 13; | |
int threshold = 500; //Change This | |
int volume; |
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 cookielib | |
import urllib | |
import urllib2 | |
from BeautifulSoup import BeautifulSoup | |
import re | |
import time | |
#----[CONFIGURE]---------------------------------------------------------------------# | |
# | |
# Change HERE! |
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
#include <SPI.h> | |
#include <dht.h> | |
dht DHT; | |
#define DHT22_PIN 8 | |
#include <DS1307RTC.h> | |
#include <Time.h> | |
#include <Wire.h> | |
#include <LiquidCrystal.h> |
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
# Organize Iphone Photos by Year -> Month | |
# August, 08, 2013 - Daniel Spillere Andrade | |
# www.DanielAndrade.net | |
import os, time | |
import glob | |
#Define Pictures Folder | |
folder = '/Volumes/Bitcasa Infinite Drive/Uploads/' |
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 os, time | |
import glob | |
#Define Pictures Folder | |
folder = '/Users/admin/Dropbox/Camera Uploads/' | |
fileFormats = ['JPG','jpg', 'MOV', 'mov', 'PNG', 'png', 'mp4', 'MP4']; | |
months = ['January','February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] | |
picPath = [] | |
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 time | |
import pygsm | |
from flask import Flask | |
app = Flask(__name__) | |
app.config['DEBUG'] = False | |
@app.route('/') | |
def hello_world(): | |
return 'Hey bitch!' |
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 urllib2, json | |
BTC = json.loads(urllib2.urlopen('https://mtgox.com/api/1/BTCUSD/ticker').read()) | |
btcAtual = BTC['return']['last']['value'] | |
btcHigh = BTC['return']['high']['value'] | |
btcLow = BTC['return']['low']['value'] | |
LTC = json.loads(urllib2.urlopen('https://btc-e.com/api/2/ltc_usd/ticker').read()) |