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
| import os | |
| from datetime import datetime as dt | |
| import shutil | |
| desktop_folder = os.path.expanduser("~/Desktop") | |
| screenshots_folder = os.path.join(desktop_folder,'Screen Shots') | |
| files = os.listdir(desktop_folder) | |
| cur_screenshots = [os.path.join(desktop_folder, f) for f in files if 'Screen Shot' in f] |
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
| from bs4 import BeautifulSoup | |
| import urllib2 | |
| import re | |
| import os | |
| import os.path | |
| import pprint | |
| import json | |
| import mechanize | |
| import random | |
| from urlparse import urlparse |
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
| /* | |
| * HID RFID Reader Wiegand Interface for Arduino Uno | |
| * Written by Daniel Smith, 2012.01.30 | |
| * www.pagemac.com | |
| * | |
| * This program will decode the wiegand data from a HID RFID Reader (or, theoretically, | |
| * any other device that outputs weigand data). | |
| * The Wiegand interface has two data lines, DATA0 and DATA1. These lines are normall held | |
| * high at 5V. When a 0 is sent, DATA0 drops to 0V for a few us. When a 1 is sent, DATA1 drops | |
| * to 0V for a few us. There is usually a few ms between the pulses. |
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
| glPushMatrix(); | |
| glTranslatef(0, ofGetHeight(), 0); | |
| ofBeginShape(); | |
| for (int i = 0; i <fftData.size(); i++){ | |
| float val =fftMax - fftData[i] * 128; | |
| // ofRect(i*rectWidth, 0, rectWidth,val); | |
| // ofCircle(ofGetWidth()/2, -ofGetHeight()/2, val*100); | |
| } | |
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
| #my first python program | |
| import sys | |
| #searchString = 'a' | |
| #trString = 'e' | |
| def translator(w): | |
| return w.replace(searchString,trString) | |
NewerOlder