Skip to content

Instantly share code, notes, and snippets.

View RobinBoers's full-sized avatar

Robin RobinBoers

View GitHub Profile
@RobinBoers
RobinBoers / cgit.css
Created June 9, 2024 09:45
Custom stylesheet for git.dupunkto.org
@import url("cgit.css");
@import url("https://roblog.nl/base.css");
/* Better fonts */
:root {
line-height: 1.6;
tab-size: 4;
}
div#cgit { font-family: monospace; }
@RobinBoers
RobinBoers / cryptobros.md
Last active May 11, 2024 20:36
Dit is een aangepaste versie van een verslag dat ik in samenwerking met mijn beste vriend voor een praktische opdracht van maatschappijleer geschreven heb.

Cryptobros

Geschreven door Robin Boers en Sean Ham

Inleiding

Dit is een verslag dat wij (Sean en Robin) hebben geschreven voor de vierde en (hopelijk) laatste PO van maatschappijleer. We gaan hierin een kijkje nemen in de wereld van cryptobros: mensen die cryptocurrencies zoals Bitcoin of Ethereum fantastisch vinden, denken dat de blockchain helemaal de toekomst is--ze zijn namelijk het bankenstelsel aan het revolutioneren!--en dit vaak op een vrij,

@RobinBoers
RobinBoers / sub.php
Last active March 31, 2024 20:45
Sub—a simple email subscription service for my blog.
<?php
#
# Sub—a simple email subscription service for my blog.
#
$API_HOST = "https://api.geheimesite.nl";
$API_ROOT = "/sub";
$TOKEN = "../token.txt";
$LIST = "../subscribers.csv";
@RobinBoers
RobinBoers / rplace.php
Last active March 17, 2024 08:46
r/place in ~200 lines of PHP.
<?php
#
# r/place clone written in a single PHP file.
# Written by Axcelott--Unlicensed.
#
$dimensions = 20;
$default_color = "#ffffff";
$store = "canvas.json";
@RobinBoers
RobinBoers / squares.js
Created February 24, 2024 12:00
p5js exercise
const STARTING_SIZE = getWidth();
const MIN_SIZE = 5;
const CENTER_X = getWidth()/2;
const CENTER_Y = getHeight()/2;
let parentSideLength;
function start() {
drawFigure(STARTING_SIZE, MIN_SIZE);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Axcelott</title>
<style>
:root {
@RobinBoers
RobinBoers / hangman.c64
Last active February 11, 2024 19:13
Hangman in Commodore 64 BASIC v2 :)
5 gosub 3000
10 input "pick word"; wo$
15 gosub 3000
20 gu$=""
30 wrng$=""
40 li%=10
50 rem initial value for guess.
60 for i = 1 to len(wo$)
defmodule Model do
@doc """
A function that given the current value calculates the
difference between the current and next value.
"""
@type t :: (value() -> dvalue())
@doc """
The value the model will mutate.
"""
@RobinBoers
RobinBoers / som-sidebar.css
Last active September 21, 2023 15:17
A sidebar-styled layout for Somtoday (very much a WIP, isn't responsive yet!)
@-moz-document domain("elo.somtoday.nl") {
body {
display: grid !important;
grid-template-columns: 1fr 6fr !important;
grid-template-rows: min-content 1fr !important;
width: 100% !important;
}
body, html {
height: 100% !important;
@RobinBoers
RobinBoers / listen-for-all-events.js
Created August 18, 2023 10:09
Simple script for listening to all events for an element
let element = window;
Object.keys(window).forEach((key) => {
if (/^on/.test(key)) {
element.addEventListener(key.slice(2), (event) => {
if(event.type.includes("mouse") || event.type.includes("pointer") || event.type.includes("key")) return;
console.log(event);
});
}
});