Skip to content

Instantly share code, notes, and snippets.

View pingiun's full-sized avatar

Jelle Besseling pingiun

View GitHub Profile
@pingiun
pingiun / bf.c
Last active October 7, 2020 23:22
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
// initialize the tape with 30,000 zeroes
unsigned char tape[30000] = {0};
// set the pointer to point at the left-most cell of the tape
unsigned char* ptr = tape;
{ config, pkgs, lib, ... }:
let
helios-src = builtins.fetchTarball "https://github.com/pingiun/helios-server/archive/147da23bd9097c16c94a24cf4cc98bd709a35393.tar.gz";
helios = import helios-src;
user = "helios";
db-name = user;
@pingiun
pingiun / README.md
Last active June 8, 2021 22:50
Zig sha256 and sha512 implementations without unnecessary code duplication

To learn Zig I implemented some crypto functions in Zig. It uses unique Zig comptime features to reduce code duplication

@pingiun
pingiun / longtweets.js
Created December 11, 2022 17:45
Long Tweet Remover userscript
// ==UserScript==
// @name Long Tweet Remover
// @version 0.1
// @description remove tweets with more than 280 characters
// @author Jelle Besseling
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==