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
# Improvemets for production environment: | |
# 1. Optimize filtering of undesireable chars using regex | |
# 2. Distrubute filter/counting tasks between multiples threads | |
# 3. Create unit test cases with multiple text contents | |
import re | |
input = open('data.txt', 'r') | |
output = open('results.txt', 'w') | |
remove_chars = ['\n', '-', '.', ',', '"', '(', ')', '[', ']', ':', ';'] |
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
/* | |
Android Breath v0.2 | |
Simulates led breathing found on Android devices. | |
Tested with Arduino Nano ATmega328. | |
Cesar Schneider <cesschneider@gmail.com> | |
https://gist.github.com/cesschneider/7689698 | |
*/ | |
// Pin 13 has an LED connected on most Arduino boards. |