Skip to content

Instantly share code, notes, and snippets.


Janne Cederberg jannecederberg

View GitHub Profile
jannecederberg / XORCipher.js
Last active Jun 5, 2017 — forked from sukima/XORCipher.js
A Super simple encryption cipher using XOR and Base64 in JavaScript
View XORCipher.js
// XORCipher - Super simple encryption using XOR and Base64
// Original:
// Modifications:
// - URL:
// - Dependency on [Underscore]( removed as inspired
// by zynick:
// - Compared to zynick's version I'm keeping jshint, "use strict" and exports.
// As a warning, this is **not** a secure encryption algorythm. It uses a very
jannecederberg /
Created Aug 17, 2016 — forked from ChiChou/
Dump metadata from panorama photos shot by Photosphere App
#!/usr/bin/env python
Dump metadata from panorama photos shot by Photosphere App
@author: @CodeColorist
jannecederberg / formspree.html
Last active Jan 17, 2021 — forked from edmundojr/formspree.html
JS: Ajax send forms using the most excellent Formspree » #snippet
View formspree.html
<form id="contact-form" action="//" method="post">
<input type="text" name="Name" placeholder="Name" required>
<input type="email" name="Email" placeholder="Email" required>
<textarea name="Message" cols="30" rows="6" placeholder="Message" required></textarea>
<!-- CONFIG -->
<input class="is-hidden" type="text" name="_gotcha">
<input type="hidden" name="_subject" value="Subject">
<input type="hidden" name="_cc" value="">
<!-- /CONFIG -->
<input class="submit" type="submit" value="Send">
jannecederberg / 0001-Fix-deployggb.js-for-at-IE9-when-embedding-from-GeoG.patch
Created Oct 24, 2014
GeoGebra deployggb.js IE9 patch regarding XHR's setRequestHeader failing
View 0001-Fix-deployggb.js-for-at-IE9-when-embedding-from-GeoG.patch
From 7d56c5f5ae82437144616a75149ea90326c3ebc1 Mon Sep 17 00:00:00 2001
From: Janne Cederberg <>
Date: Fri, 24 Oct 2014 17:44:44 +0300
Subject: [PATCH] Fix deployggb.js for at IE9 when embedding from GeoGebraTube
IE9 (and probably earlier too) don't support setRequestHeader(...)
method on IE's custom XDomainRequest object. Also it will
abort the xhr.send(...) call if XHR's onprogress-handler is not
set to at least a no-op function.