Skip to content

Instantly share code, notes, and snippets.

View mihaeu's full-sized avatar
💭
🏳️‍🌈

Michael Haeuslmann mihaeu

💭
🏳️‍🌈
View GitHub Profile
@mihaeu
mihaeu / okcupid-show-all-match-images-tampermonkey.js
Created October 11, 2023 11:39
[Tampermonkey] OkCupid - Show all match images
// ==UserScript==
// @name OkCupid - Show all match images
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Shows all profile images for all your matches, but if you want to find the profiles you still need premium. Look at this like extra motivation.
// @author anonymous
// @match https://www.okcupid.com/who-likes-you
// @icon https://www.google.com/s2/favicons?sz=64&domain=okcupid.com
// @grant none
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am mihaeu on github.
  • I am haeuslmm (https://keybase.io/haeuslmm) on keybase.
  • I have a public key ASDmfJECOrXtB2j_L742-NlBDyP32sAtpeI-pR6WSzzPkgo

To claim this, I am signing this object:

#!/usr/bin/env bash
# Display today's menu @Leonardi Unterfoehring, Germany
#
# @author Max Imgrund
# @author Michael Haeuslmann
# @license
# Copyright 2018 Max Imgrund
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Keybase proof

I hereby claim:

  • I am mihaeu on github.
  • I am mihaeu (https://keybase.io/mihaeu) on keybase.
  • I have a public key ASAKRmNrzc0BKNb2ehvXsuqYvCJLcFBTjX3HFlLt4IhBQgo

To claim this, I am signing this object:

@mihaeu
mihaeu / terra-mystica-tampermonkey.js
Last active February 10, 2017 15:59
Terra Mystica script for Tampermonkey
// ==UserScript==
// @name Terra Mystica Extensions
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Adapts visuals for smaller screens and adds shortcuts to Snellmans Terra Mystica Online.
// @author Michael Haeuslmann <haeuslmann@gmail.com>
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser.min.js
// @match http://terra.snellman.net/*
// ==/UserScript==
// BROKEN
// BROKEN
// BROKEN
// BROKEN
function returnString=isPeriodic(P)
// initialize entered and left
for i=1:size(P, 1)
for j=1:size(P, 2)
entered(i, j) = %F
package ro.inf.prg2.uebung06.loesung;
import java.io.OutputStream;
import java.io.PrintStream;
import java.util.*;
/**
* =======================================================
* Singleton Pattern & Testing
* =======================================================
@mihaeu
mihaeu / check-code-cov.sh
Last active June 2, 2016 06:49
Bash script to insure that your code coverage is above a certain limit (e.g. for the CI server or pre-commit hook)
#!/usr/bin/env bash
# This is just a quick hack to determine if the code coverage
# is enough or not. Change the path to PHPUnit if needed.
#
# @author Michael Haeuslmann <haeuslmann@gmail.com>
NO_COLOR='\x1b[0m'
OK_COLOR='\x1b[32;01m'
ERROR_COLOR='\x1b[31;01m'
/* Preload images */
body:after {
content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAAAPFBMVEX///8AAAD9/f2CgoKAgIAAAAAAAAAAAABLS0sAAAAAAACqqqqqqqq6urpKSkpISEgAAAC7u7u5ubn////zbsMcAAAAE3RSTlMASv6rqwAWS5YMC7/AyZWVFcrJCYaKfAAAAHhJREFUeF590kkOgCAQRFEaFVGc+/53FYmbz6JqBbyQMFSYuoQuV+iTflnstI7ssLXRvMWRaEMs84e2uVckuZe6knL0hiSPObXhj6ChzoEkIolIIpKIO4joICAIeDd7QGIfCCjOKe9HEk8mnxpIAup/F31RPZP9fAG3IAyBSJe0igAAAABJRU5ErkJggg==) url(data:image/gif;base64,R0lGODlhIAAgAPUuAOjo6Nzc3M3Nzb+/v7e3t7GxsbW1tbu7u8XFxdHR0djY2MHBwa2trbm5ucnJyaSkpKWlpaGhoeLi4urq6u7u7ubm5vLy8vb29vT09Pr6+v39/aysrK+vr7Ozs8fHx9vb297e3qmpqb29vdPT06amptXV1aCgoMvLy8/Pz9fX18PDw/j4+Ozs7ODg4PDw8KioqOTk5JqampmZmZycnP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBwAuACwAAAAAIAAgAEAG/0CXcEgECQ6bUGRDbDpdimTo9QoJnlhsYVvojLLgrEAkGiwWiFTYldGsRyHSYz6P2COG9XCw2TAYeXprCQYEhQcKgoouAQ4IHg4CAiMpCiASFRMUFhgXFxkZawEDcnd2Jh2LLiAdLyQvELEFX6pCAQx9fQ21T1wFHCi8TwcGxQYnwk8eBAcHZQnJTh8D1I8OJwmWMBMsFJudoG4u4mAgIwIoCSMKlpjcm