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
""" | |
Prerequisites: | |
* pyinotify (python-pyinotify on debian) | |
* irc (python-irc on debian (jessie and later - otherwise via virtualenv)) | |
* start the minecraft server like this: | |
$ echo > input.log | |
$ tail -f input.log 2>/dev/null | java -server -X bla -jar minecraft_server.jar nogui & | |
$ cat >> input.log | |
* stop minecraft like this: | |
stop |
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
var donations = 0, | |
lastCheck = 0, | |
lastSumDonated = 0, | |
lastSumGoal = 0, | |
sumShowing = true, | |
sound = new Audio("AlertSound.ogg"), | |
project_id = 24307; | |
function checkForNew(){ | |
$.getJSON("https://api.betterplace.org/de/api_v4/fundraising_events/"+project_id+"/opinions.json?order=created_at:DESC&facets=has_donation:true&per_page=1", function(data){ |