- This is a python desktop app outline that will pull new mail notifications from Gmail and push to arduino.
- Originally done here: http://j4mie.org/blog/how-to-make-a-physical-gmail-notifier/
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
// A timer that uses jQuery only cause I'm lazy... | |
// Include the jQuery lib and | |
// set a div to id='timerArea' and it will render | |
// a timer that counts down from the following date settings: | |
//Set up your timer! | |
timerLocation = "#timerArea"; | |
timerYear = 2013; | |
timerMonth = 5; |
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
// Numbers BG jQuery Plugin | |
/* | |
Who: | |
Aaron Decker | |
[email protected] | |
MIT license | |
What is this: | |
Just a silly self contained jQuery plugin that | |
will cause the background of the screen to be filled |
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
/* | |
Little code for my 10 LED bar graph. | |
This is just a basic outline for making all the segments light up at diff. intervals. | |
looks OK but not super organized. | |
*/ | |
int numPins = 10; | |
int ledPins[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; | |
int ledStates[] = {LOW, LOW, LOW, LOW, LOW, LOW, LOW, LOW, LOW, LOW}; |
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
/* | |
Reads input from a 10,000 ohm potentiometer. | |
Lights up an array of ten LEDs based on how much signal is going through. | |
*/ | |
int numPins = 10; | |
int ledPins[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; | |
int ledStates[] = {LOW, LOW, LOW, LOW, LOW, LOW, LOW, LOW, LOW, LOW}; | |
// Analog pin A0 is where you hook the potentiometer up. Or microphone. Or w/e. |
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
package myEvents | |
{ | |
import flash.events.Event; | |
public class CustomAwesomeEvent extends Event | |
{ | |
public static const ENABLE_CHANGED:String = "enableChanged"; | |
public function CustomAwesomeEvent(type:String, isEnabled:Boolean=false) |
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
<script type='text/javascript'> | |
// the validate.js content goes here. | |
</script> | |
<p> | |
<button value='' onClick='testFormValidation()'>fill with test data</button> | |
<br /> | |
<button value='' onClick='clearForm()'>Clear Form Data</button> | |
</p> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<s:ViewNavigatorApplication name="DodgeABroApp" | |
xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.DodgeABroHomeView" | |
applicationDPI="160" | |
applicationComplete="tabbedviewnavigatorapplication1_applicationCompleteHandler(event)" | |
frameRate="40" | |
resizeForSoftKeyboard="true" | |
> | |
<fx:Declarations> |
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
def main(): | |
f = open("phonenums.txt", "w") | |
start = 513000000 | |
while(start < 514000000): | |
f.write("%s\n" % start) | |
start += 1 | |
f.close() | |
main() |
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
#windows :) | |
# | |
# split_csv_to_files.py | |
# ard - [email protected] | |
# | |
# Example usage: | |
# python .\csv_sort.py -i test.csv -o testing --col 12 | |
# | |
# Why? | |
# -Lets say you have a dump of clients or contacts and want to organize them all by state city or company |