Skip to content

Instantly share code, notes, and snippets.

@HenkPoley
HenkPoley / Kamer-Afmetingen-49m2.html
Created August 5, 2025 16:55
'49m2 vloer-, muur-, en plafondoppervlakte!'
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<title>Kamer Afmetingen</title>
<style>
body { font-family: Arial, sans-serif; padding: 20px; max-width: 600px; margin: auto; }
.slider-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 5px; }
input[type=range] { width: 100%; }
@HenkPoley
HenkPoley / apple_mac_support_matrix.md
Last active July 26, 2025 14:48
Apple Mac OS support matrix.
Model 10.4 10.5 10.6 10.7 10.8 10.9 10.10 10.11 10.12 10.13 10.14 10.15 11 12 13 14 15 26
Year 2005 2007 2009 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025
MacBook (13-inch, Mid 2006)
MacBook Pro (15-inch, Early 2006)
MacBook Pro (17-inch, Early 2006)
iMac (17-inch, Early 2006)
iMac (20-inch, Early 2006)
Mac mini (Early 2006)
Mac mini (Late 2006)
@HenkPoley
HenkPoley / rust_env.sh
Created July 7, 2025 18:43
OpenAI Codex up to date rust environment, and download packages.
#!/usr/bin/env bash
set -euo pipefail
CARGO_TOML="Cargo.toml"
PROFILE_CHUNK=$(cat <<'EOF'
[profile.dev]
opt-level = 0
@HenkPoley
HenkPoley / calculator_worms_game7.html
Last active December 31, 2024 05:21
Infinite scrolling calculator snake game. A silly impractical UI. Made using GPT-o1.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Advanced Calculator Snake</title>
<style>
html, body {
margin: 0;
padding: 0;
height: 100%;
@HenkPoley
HenkPoley / WokeGPT.1.md
Created January 17, 2023 05:08
Write me a story by WokeGPT

Once upon a time in a land not so far away, there was a community of people who lived in harmony with one another. They respected the earth and all its inhabitants, and they worked together to create a sustainable way of life.

One day, a group of outsiders arrived in the community, bringing with them new ideas and technologies that threatened to disrupt the balance that the community had worked so hard to maintain. Some of the community members welcomed the outsiders with open arms, eager to learn from them and incorporate their ideas into their way of life.

But others were more skeptical, seeing the outsiders as a threat to their way of life. They feared that their culture and traditions would be lost if they allowed themselves to be influenced by the outsiders.

As the debate raged on, the community leader, who was known as "WokeGPT", stepped forward. WokeGPT had always been an advocate for progress and change, but they also understood the importance of preserving the community's heritage.

"We must not b

#!/usr/local/bin/python3
import png # pip3 install pypng
import colorsys # h_ue,s_aturation,v_alue
filename = "rainbow.png"
# MacBook1,1 - MacBook7,1: 1280x800
# iMac 27" 5K: 5120x2880
# borderless A4 @ 600ppi: 4960x7016 -> https://www.papersizes.org/a-sizes-in-pixels.htm
# Aomei Partition Assistant
#at top of script
if (!
#current role
(New-Object Security.Principal.WindowsPrincipal(
[Security.Principal.WindowsIdentity]::GetCurrent()
#is admin?
)).IsInRole(
[Security.Principal.WindowsBuiltInRole]::Administrator
@HenkPoley
HenkPoley / # mbedtls - 2020-09-08_06-54-10.txt
Created September 8, 2020 04:58
mbedtls on macOS 10.15.6 - Homebrew build logs
Homebrew build logs for mbedtls on macOS 10.15.6
Build date: 2020-09-08 06:54:10
@HenkPoley
HenkPoley / # mbedtls - 2020-09-08_06-28-50.txt
Created September 8, 2020 04:30
mbedtls on macOS 10.15.6 - Homebrew build logs
Homebrew build logs for mbedtls on macOS 10.15.6
Build date: 2020-09-08 06:28:50
@HenkPoley
HenkPoley / 2019-nCoV_quadratic_regression.py
Last active February 6, 2020 20:37
2019-nCoV prediction
#!/usr/bin/env python
# Not meant to teach proper Python, or statistics, but it works
import warnings
import numpy
import scipy.stats
x = numpy.array([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0])
y = numpy.array([4515.0, 5974.0, 7711.0, 9692.0, 11791.0, 14380.0, 17205.0, 20438.0, 24324.0, 28018.0])