Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Svante Bengtson swantzter

🏠
Working from home
View GitHub Profile
View chocolate-cake.txt
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 soda
Bake in oven at 200°C for 30 minutes
@swantzter
swantzter / cogs2jax.js
Last active Jan 4, 2018
Replace codecogs images with mathjax-able html
View cogs2jax.js
/**
* ____ _
* ___ ___ __ _ ___|___ \ (_) __ ___ __
* / __/ _ \ / _` / __| __) || |/ _` \ \/ /
* | (_| (_) | (_| \__ \/ __/ | | (_| |> <
* \___\___/ \__, |___/_____|/ |\__,_/_/\_\
* |___/ |__/
*
* 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 Jun 20, 2020
Keybase verification
View keybase.md

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 Jul 11, 2016
wa0x6e/cal-heatmap arbitrary timezone parser
View parser.js
/*
* 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 Jul 1, 2016
OpenKeychain Linked Identity
View openpgp.txt
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 Apr 3, 2016
Deploy Spec
View ISDS.md

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&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 (" ")
View Grep
$> grep -r "####". | awk '{$1}' | cat grep.txt
./news/2013-04-09-april-1st-2013-the-aftermath.md: 2. #####946684800_–_4102444800
./news/2013-04-09-april-1st-2013-the-aftermath.md: * **#####century**
./news/2013-04-09-april-1st-2013-the-aftermath.md: 3. ##### 277453665
./news/2013-04-09-april-1st-2013-the-aftermath.md: * **#####aprilfool**
./news/2013-04-09-april-1st-2013-the-aftermath.md: * The beloved Rick Roll video. This was a joke idea, the channel ########gotyou was actually hidden as a channel forward (mode +f)
./news/2013-04-09-april-1st-2013-the-aftermath.md: * **########gotyou**
./news/2013-04-09-april-1st-2013-the-aftermath.md: 5. ###### BOGBOS, SEAPHXDENDALMSP, CPTOSL, SCLBOSCPTARN
./news/2013-04-09-april-1st-2013-the-aftermath.md: * **######iwin**
./news/2013-04-09-april-1st-2013-the-aftermath.md:The topic in **######iwin** was: _Congratulations, you finished the misc track. Here, have a puzzle piece: It's dangerous to go alone! Take this! ###the. Make sure to also play the other