Skip to content

Instantly share code, notes, and snippets.

@tzuntar
tzuntar / gopher2html.pl
Created January 1, 2022 15:34
Simple gophermap to HTML converter
#!/usr/bin/env perl
# Gopher2Html - Gophermap parser
# v1.0 (c) 2021 by Tobija Žuntar
use warnings;
use strict;
use feature qw(switch);
no warnings qw(experimental::smartmatch);
sub parse_line {
my ($line) = @_;
@Fluepke
Fluepke / log_train.sh
Created November 12, 2022 15:16
Log train rides on german trains (location data, internet availability, speed, etc.)
#!/bin/bash
if ! command -v curl &> /dev/null; then
echo "This script needs curl. Please install curl."
exit -1
fi
if ! command -v jq &> /dev/null; then
echo "This script needs jq. Please install jq."
exit -1
@bazzargh
bazzargh / draw.html
Created December 30, 2022 14:29
rudimentary drawing program, that outputs bbc basic code to reproduce the image
<svg viewbox="0 0 255 255" id="svg_canvas" width="512" height="512" style="border: 1px solid black;">
</svg>
Click to add points.
<form id="form">
<input type="range" id="ppos__slider" min="0" max="0"><input type="text" id="ppos" enabled=false><label for="ppos">Point</label><br>
<input type="range" id="xpos__slider" min="0" max="255"><input type="text" id="xpos" enabled=false><label for="xpos">X</label><br>
<input type="range" id="ypos__slider" min="0" max="255"><input type="text" id="ypos" enabled=false><label for="ypos">Y</label><br>
<input type="range" id="cpos__slider" min="-32" max="32" value="0"><input type="text" id="cpos" enabled=false><label for="cpos">Curvature</label><br>
<input type="text" id="image" value=monalisa.jpg><label for="image">Image</label><br>
<input type="text" id="offsetx" value=0><label for="offsetx">X Offset</label><br>