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
| /* | |
| ========== GPIO WIRING ========== | |
| ===== INPUT ===== | |
| 0 Battery input voltage (halved) (TODO: stop robot if voltage < 6.8V) | |
| 1 Bump (unused) | |
| 2 | |
| 3 | |
| 4 | |
| 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
| ''' | |
| Rename subtitle files in same folder to match the movie file | |
| (for xbmc-share folder) | |
| Jarkko Saltiola 2013 | |
| ''' | |
| import os | |
| import re | |
| video_types = ["mkv","avi"] |
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
| #!/bin/bash | |
| while : ; do | |
| true | |
| done |
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 web | |
| from oauthlib.oauth1 import Server | |
| from oauthlib.common import safe_string_equals | |
| urls = ("/.*", "hello") | |
| app = web.application(urls, globals()) | |
| class OAuthProvider(Server): | |
| ''' https://oauthlib.readthedocs.org/en/latest/server.html ''' |
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
| -- 1. Hae keveimmän punaisen osan toimittajien nimet käänteisessä | |
| -- aakkosjärjestyksessä [Tantola, Kiirola, Karola Oy] | |
| SELECT tnimi | |
| FROM toimittaja | |
| WHERE ttun IN | |
| (SELECT ttun -- toimitukset joissa mukana osa | |
| FROM toimitus | |
| WHERE otun IN | |
| (SELECT otun -- Osat jotka.. |
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
| -- 6. Kaikille niille projekteille, jotka ovat tulleet toimeen ilman koirrua | |
| -- (onimi = ’koirru’), on myönnetty ylimääräinen 5 000 euron | |
| -- budjettikorotus. Päivitä vastaavasti tietokantaa. [päivitys koskee | |
| -- seuraavia projekteja: Tuubero, Talluke, Iklore, Tuomake, Tuma, Teklari, | |
| -- Aboma] | |
| UPDATE projekti | |
| SET budjetti = budjetti + 5000 | |
| WHERE ptun NOT IN | |
| (SELECT ptun |
NewerOlder