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
$ python string_exercise.py | |
The haystack has 9 words. | |
Is there a "fox" in the haystack? | |
True | |
Leave the poor dog alone fox! | |
The quick brown fox jumps over the lazy programmer |
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 to read one quadratic rotary encoder gray code. | |
* | |
* rights: http://tinyurl.com/by-sa-3-0 | |
*/ | |
int inputPin1 = 2; // A | |
int inputPin2 = 4; // B | |
int val1 = 0, val2 = 0; | |
int oldVal1 = 0, oldVal2 = 0; |
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
/* | |
* simple example of a synthesizer | |
*breadboard schematics: http://www.flickr.com/photos/28914418@N02/3751185789/sizes/o/ | |
* | |
* rights: http://tinyurl.com/by-sa-3-0 | |
*/ | |
int speakerPin = 9; | |
int tempo = 0; | |
int potPin1 = 0; | |
int potVal1 = 0; |
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 | |
# coding: utf8 | |
######################### | |
# # | |
# _______________ # | |
# | | # | |
# | -*- | # | |
# | Hack la viva! | # | |
# | ______________| # |
NewerOlder