Skip to content

Instantly share code, notes, and snippets.


Benjamin Gudehus hastebrot

  • Hannover, Germany
View GitHub Profile
View jetbrains-mono.css
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 100;
src: local("JetBrains Mono Thin"), local("JetBrainsMono-Thin"), url("../fonts/webfonts/JetBrainsMono-Thin.woff2") format("woff2");
font-display: swap; }
@font-face {
font-family: 'JetBrains Mono';
font-style: italic;
hastebrot / isogit.ts
Last active May 27, 2022
isomorphic-git in deno
View isogit.ts
#!/usr/bin/env -S deno run --no-check --allow-env --allow-read --allow-write --allow-net isogit.ts
import fs from "";
import path from "";
import git from "";
import http from "";
const repositoryDir = path.join(Deno.cwd(), "/../test-repository");
const repositoryUrl = "";
await git.clone({
View encodeToEscapedString.kt
fun encodeToEscapedString(bytes: ByteArray): String {
// 0x00..0x1f = non-printing characters
// 0x20 = SPACE
// 0x21..0x7e = printing characters
// 0x7f = DELETE
val string = StringBuilder()
val intSize = 0xff
val byteRange = 0x20..0x7e
for (byte in bytes) {
View northwind.markdown

From SQL to Neo4j: Northwind

SQL Model

Neo4j Model

Get the SQL Dump

The SQL dump was stolen from here and imported into MySQL.

View tailwind-redwood-page.jsx
export const HomePage = () => {
return (
<div className="flex">
hastebrot / ECS
Created Sep 17, 2020 — forked from dakom/ECS
ECS with sparse array notes (EnTT style)
View ECS


The below is a breakdown / bird's eye view of how a sparse-array backed ECS like EnTT or Shipyard works.

Please see the thanks and references at the bottom - without their help I would not have been able to share this breakdown with you... everything here is really just notes and rephrasing of what they've written already :)

Also, these notes do not cover archetype systems (like unity) nor adaptations of archetypes (like in Flecs). Though there's a couple comparative footnotes at the end.

Here we go!

hastebrot / main.dart
Created Sep 8, 2020 — forked from ds84182/main.dart
Flutter GPU memory growth repro
View main.dart
import 'dart:async';
import 'dart:typed_data';
import 'package:flutter/material.dart';
import 'dart:ui' as ui;
void main() => runApp(MyApp());
int xorshift32(int x) {
x ^= x << 13;
hastebrot / fezrotate.js
Created Jan 29, 2020 — forked from veeenu/fezrotate.js
Fez-like world rotation
View fezrotate.js
* Procedurally generated Minecraft dirt texture.
(function() {
var ctx, imgd;
ctx = document.getElementById('texture').getContext('2d');
imgd = ctx.createImageData(64, 64);
hastebrot / ctpuzzle.c
Created Nov 24, 2019
Solver for the c't puzzle by Uli Schuhmacher.
View ctpuzzle.c
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define C if
#define T void
#define P NULL
#define U while
#define Z break
#define S return
#define L typedef
hastebrot / Blocks.txt
Last active Nov 6, 2019
Unicode Character Database (12.1.0)
View Blocks.txt
# Blocks-12.1.0.txt
# Date: 2019-03-08, 23:59:00 GMT [KW]
# © 2019 Unicode®, Inc.
# For terms of use, see
# Unicode Character Database
# For documentation, see
# Format:
# Start Code..End Code; Block Name