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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# This script check a list of websites | |
# and sends mail when the HTTP status code is not 200 | |
# | |
# Used to check wheter all projects are up and running | |
# (not broken, say for example because a dependency library was removed) | |
# Author Ando Roots 2012 |
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
#!/usr/bin/env ruby | |
# Estonian IT College grade sheet scraper | |
# A dirty version for just getting the job done. | |
# Maybe prettify in the future. | |
# | |
# Version 1.1 | |
# Author "Ando Roots" <[email protected]> | |
# Created 29.02.2012 | |
# Licence Apache v2 http://www.apache.org/licenses/LICENSE-2.0.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
// Custom date format parser for Estonian for the Tablesorter(.com) jQuery plugin | |
$.tablesorter.addParser({ | |
id:'estDate', | |
is:function (s) { | |
return /\d{1,2}[\/\-\.]\d{1,2}[\/\-\.]\d{2,4}/.test(s); | |
}, | |
format:function (s, table) { | |
var c = table.config; | |
s = s.replace(/\-/g, '/'); |
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
# Saadab Skypelt SMS-i telefonile ning kirjutab teate sisu logifaili | |
# Ando Roots 2009 | |
import sys | |
import Skype4Py | |
#Argumendid | |
if (len(sys.argv) > 2): | |
number = sys.argv[1] | |
teade = sys.argv[2] |
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
#!/usr/bin/python -tt | |
# A script to get specified info from a URL | |
# Author Ando Roots 2010 | |
# Usage: Specify the parameters with command line options. | |
# Usage: ./fetch_info.py URL Search_pattern_start Search_pattern_end | |
# EXAMPLE: Rate.ee number of online users | |
# ./fetch_info.py http://www.rate.ee/ 'amp;act=search"><strong>' ' &raquo;</strong>' | |
import sys |
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
#!/usr/bin/python -tt | |
# A script to display a random goal from 43things.com in Ubuntu's Notify-OSD. Set it up to start | |
# on login and you'll get a new goal every day. | |
# Author: A. Roots | |
import urllib, sys | |
from xml.dom import minidom | |
import random | |
import pynotify |
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
#!/usr/bin/python -tt | |
# Have a conversation with a PandaBot AI | |
# Author A.Roots | |
import urllib, urllib2 | |
import sys | |
from xml.dom import minidom | |
from xml.sax.saxutils import unescape |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Poomismängu- ja ristsõnalahendaja | |
# Kasutab EKI andmebaasi | |
# Märge tulevikuks: ära kasuta re-d html-i töötlemiseks! BeautifulSoup! | |
# A. Roots 2010 | |
import urllib, re, sys |
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 java.applet.Applet; | |
import java.awt.*; | |
/** | |
* An Applet that gives advice on which beverage to drink. | |
* @author Ando Roots & Carolys K. | |
*/ | |
public class Beverage extends Applet { | |
/** |
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
# -*- coding: utf-8 -*- | |
# This program chooses a random line from solvangud.txt and sends it as a reply to Pidgin | |
# Author: Ando Roots | |
from random import choice | |
import difflib | |
import sys | |
import dbus, gobject | |
from dbus.mainloop.glib import DBusGMainLoop | |
import re |
OlderNewer