Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Svante svbeon

🏠
Working from home
Block or report user

Report or block svbeon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@svbeon
svbeon / 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
@svbeon
svbeon / keybase.md
Created Nov 16, 2017
Keybase verification
View keybase.md

Keybase proof

I hereby claim:

  • I am svbeon on github.
  • I am swantzter (https://keybase.io/swantzter) on keybase.
  • I have a public key ASBv1MWTRjwWhPEK5bAGmrfn7tc8nxlGHPBl-qOiXbTtygo

To claim this, I am signing this object:

@svbeon
svbeon / 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);
@svbeon
svbeon / 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]
@svbeon
svbeon / 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
You can’t perform that action at this time.