Skip to content

Instantly share code, notes, and snippets.

View jonasborn's full-sized avatar

Jonas Born jonasborn

  • IBM
  • Munich, Germany
View GitHub Profile
@jonasborn
jonasborn / index.html
Created May 30, 2025 00:21
IMAP-over-PHP
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8" />
<title>IMAP-TLS (letzte 5 Mails)</title>
<style>
body{font-family:sans-serif}
pre {background:#111;color:#0f0;padding:1em;height:60vh;overflow:auto}
</style>
</head>
@jonasborn
jonasborn / bishop.js
Last active May 6, 2021 19:34
Customized canvas version of the drunken bishop algorithm
class Bishop {
constructor(width, height, startx = null, starty = null) {
if (startx == null) startx = Math.round(width / 2)
if (starty == null) starty = Math.round(height / 2)
this.startx = startx
this.starty = starty
this.width = width;
this.height = height;
this.clearMap()