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
-- 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 |
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
-- 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 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 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 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 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 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
;;-*- coding: utf-8 -*- | |
;; xmsi-math-symbols-input.el -- a mode to input math chars | |
;; Copyright © 2010, 2011 by Xah Lee | |
;; Author: Xah Lee ( http://xahlee.org/ ) | |
;; Keywords: math symbols, unicode, input | |
;; You can redistribute this program and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2. |
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
import os | |
import time | |
sleeptime = 0.03 | |
def cycle_light(): | |
while True: | |
os.system("echo 0 > /sys/class/leds/tpacpi\:\:thinklight/brightness") | |
time.sleep(sleeptime) |
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
// Multiplexer selector pins | |
int mpA = 2; // Yellow cable | |
int mpB = 3; // Red cable | |
int mpC = 4; // Gray cable | |
int mpIN = A1; // Purple COM OUT/IN | |
// Number of potentiometers | |
const int potCount = 8; | |
// Array for voltages of potentiometers |
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
(prelude-require-packages '(window-numbering | |
key-chord | |
iy-go-to-char | |
multiple-cursors | |
;; google-translate | |
writeroom-mode | |
dired-details | |
dired+ | |
dedicated | |
smex |
OlderNewer