Skip to content

Instantly share code, notes, and snippets.

@swantzter
swantzter / 001-goals.md
Created July 7, 2021 17:07
Web IRC client idea

Goals

So, I've been trying to think of how I would like to see a web irc client built, and why

  • It should appeal to an audience who are not familiar with IRC and provide them a good introduction
  • You shouldn't need to read pages of docs to use it, show but "explain" IRC specific stuff like channel modes etc inside the client. (named modes would be cool for that)

I need to think about more goals tbh

Stir by hand, all at once:
3 eggs
4 1/2 dl Sugar
1 1/2 tsp Vanilla sugar
6 tbsp Cocoa powder
2 1/4 dl Flour
1 1/2 dl Melted butter
1/2 tsp Baking powder
Bake in oven at 200°C for 30 minutes
@swantzter
swantzter / cogs2jax.js
Last active December 22, 2021 11:26
Replace codecogs images with mathjax-able html
/**
* ____ _
* ___ ___ __ _ ___|___ \ (_) __ ___ __
* / __/ _ \ / _` / __| __) || |/ _` \ \/ /
* | (_| (_) | (_| \__ \/ __/ | | (_| |> <
* \___\___/ \__, |___/_____|/ |\__,_/_/\_\
* |___/ |__/
*
* It is way better to actually replace the images as this will greatly increase
* the pages loadtime as it'll first load all the images from codecogs (can't
@swantzter
swantzter / keybase.md
Last active June 20, 2020 07:22
Keybase verification

Keybase proof

I hereby claim:

  • I am swantzter on github.
  • I am swantzter (https://keybase.io/swantzter) on keybase.
  • I have a public key ASCOLXgzU-cOX3CK7nJRKKc4rMxlDZGfxtB4N_3B47_E7wo

To claim this, I am signing this object:

@swantzter
swantzter / parser.js
Created July 11, 2016 14:59
wa0x6e/cal-heatmap arbitrary timezone parser
/*
* Released uder the MIT Licence
* Copyright (c) 2016 Svante Bengtson
*/
function parser(data) {
var keys = Object.keys(data);
var parsed = {};
for(key in keys) {
newKey = parseInt(keys[key]) + parseInt((new Date( keys[key] * 1000 )).getTimezoneOffset() * 60);
@swantzter
swantzter / openpgp.txt
Created July 1, 2016 14:21
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:d95808b690ef47e9d4dea525eadd514f452e8efa]
@swantzter
swantzter / ISDS.md
Last active April 3, 2016 08:56
Deploy Spec

Ingress Sharable Deploy Scheme v1.0

This specification is aimed to give Ops a better overlook of how their field agents have deployed the involved portals, or to be able to give simple instructions to agents on field how to deploy the resonators and mods the format is

R*[@D]R[@D]R[@D]R[@D]R[@D]R[@D]R[@D]R[@D] M1 + M2 [+ M3 + M4]

  • R* Stands for the northmost Resonator, indicated by a red dot in the scanner
  • R stands for resonators, those are written as deployed clockwise with the northmost resonator first
  • @D is an optional (as indicated by []) description of Distance from portal as a number 0-9 where 0 is on top of portal and 9 is as far as possible from the portal wich applies to all resonators left to the @D until another @D is on the left of it
  • M1,M2,M3&amp;M4 is Mods from left to right, if only one agent is involved M3 and M4 is optional. no mod is Indicated by a space (" ")