Skip to content

Instantly share code, notes, and snippets.

View magomi's full-sized avatar

Marco Grunert magomi

View GitHub Profile
@magomi
magomi / dm-toilet-paper.js
Created October 23, 2020 08:39 — forked from marco79cgn/dm-toilet-paper.js
Scriptable iOS widget that shows the amount of toilet paper which is available at your next dm drugstore
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: magic;
let storeId = 178
let country
let param = args.widgetParameter
if (param != null && param.length > 0) {
storeId = param
}

Keybase proof

I hereby claim:

  • I am magomi on github.
  • I am marcogrunert (https://keybase.io/marcogrunert) on keybase.
  • I have a public key whose fingerprint is 1D87 7948 450F 63D1 C207 61CA EC4D B86A A32F 67DC

To claim this, I am signing this object:

@magomi
magomi / setAdium
Created June 18, 2013 09:31
change adium status
tell application "AppleScript Runner"
set temp to display dialog "new status" default answer "away, ..."
end tell
set newStat to the text returned of temp
set AppleScript's text item delimiters to {","}
set statusType to the first text item of newStat
set statusMessage to the second text item of newStat
tell application "Adium"
@magomi
magomi / gist:1354558
Created November 10, 2011 10:20
GM_xmlhttprequest sample
GM_xmlhttpRequest({
method: 'GET',
url: 'http://localhost:8080/dst/webservices/ticket/getTickets?wicketpath=' wicketComponents[i].getAttribute('wicketpath'),
onload: function(response) {
var tickets = JSON.parse(response.responseText);
for (var j = 0; j < tickets.ticket.length; j++) {
GM_log(tickets.ticket[j].url);
}
}
});
package de.prkongresse.timekeeper;
import org.mortbay.jetty.Connector;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.bio.SocketConnector;
import org.mortbay.jetty.webapp.WebAppContext;
public class Start {
public static void main(String[] args) throws Exception {
Server server = new Server();
@magomi
magomi / CommitSumImpl.java
Created February 20, 2011 00:08
everything is fine now
package nl.topicus.onderwijs.dashboard.modules.standard;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import nl.topicus.onderwijs.dashboard.datasources.Commits;
import nl.topicus.onderwijs.dashboard.datatypes.Commit;
import nl.topicus.onderwijs.dashboard.keys.Key;
import nl.topicus.onderwijs.dashboard.modules.DataSource;