Skip to content

Instantly share code, notes, and snippets.

@MasterofJOKers
MasterofJOKers / gamers4refugees.js
Last active September 3, 2015 18:06
OBS new betterplace.org donations
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){
@MasterofJOKers
MasterofJOKers / gateway.py
Created November 29, 2014 20:06
vanilla Minecraft server to IRC chat gateway
"""
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