Skip to content

Instantly share code, notes, and snippets.

Avatar

Janne Cederberg jannecederberg

View GitHub Profile
@jannecederberg
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: https://gist.github.com/sukima/5613286
//
// Modifications:
// - URL: https://gist.github.com/jannecederberg/fc21fb1e7be93f083313729934623ab1
// - Dependency on [Underscore](http://underscorejs.org/) removed as inspired
// by zynick: https://gist.github.com/zynick/3492be3305c24d76dc09ca23d2d7b12a
// - 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
jannecederberg / photosphere_xmp.py
Created Aug 17, 2016 — forked from ChiChou/photosphere_xmp.py
Dump metadata from panorama photos shot by Photosphere App
View photosphere_xmp.py
#!/usr/bin/env python
"""
Dump metadata from panorama photos shot by Photosphere App
Usage
@author: @CodeColorist
@site: http://chichou.0ginr.com/blog
@jannecederberg
jannecederberg / formspree.html
Last active Jan 17, 2021 — forked from edmundojr/formspree.html
JS: Ajax send forms using the most excellent Formspree » http://formspree.io #snippet
View formspree.html
<form id="contact-form" action="//formspree.io/your@email.com" 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="email@cc.com">
<!-- /CONFIG -->
<input class="submit" type="submit" value="Send">
@jannecederberg
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 <janne@opetus.tv>
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.
---