Skip to content

Instantly share code, notes, and snippets.

View jannecederberg's full-sized avatar

Janne Cederberg jannecederberg

View GitHub Profile
@jannecederberg
jannecederberg / 0001-Fix-deployggb.js-for-at-IE9-when-embedding-from-GeoG.patch
Created October 24, 2014 14:57
GeoGebra deployggb.js IE9 patch regarding XHR's setRequestHeader failing
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.
---
@jannecederberg
jannecederberg / photosphere_xmp.py
Created August 17, 2016 11:31 — forked from ChiChou/photosphere_xmp.py
Dump metadata from panorama photos shot by Photosphere App
#!/usr/bin/env python
"""
Dump metadata from panorama photos shot by Photosphere App
Usage
@author: @CodeColorist
@site: http://chichou.0ginr.com/blog
@jannecederberg
jannecederberg / XORCipher.js
Last active June 5, 2017 01:32 — forked from sukima/XORCipher.js
A Super simple encryption cipher using XOR and Base64 in JavaScript
// 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 / formspree.html
Last active November 4, 2022 12:26 — forked from manfromanotherland/formspree.html
JS: Ajax send forms using the most excellent Formspree » http://formspree.io #snippet
<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">