Skip to content

Instantly share code, notes, and snippets.

$ 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
/**
* 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;
/*
* 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;
@medecau
medecau / gist:75393
Created March 7, 2009 17:35
tutorial de python
#!/usr/bin/python
# coding: utf8
#########################
# #
# _______________ #
# | | #
# | -*- | #
# | Hack la viva! | #
# | ______________| #