Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>This is HTML5!</title>
</head>
<body>
Pretty simple
</body>
</html>
@kjb
kjb / when.js
Last active December 10, 2015 21:59
Javascript method that executes a test periodically until true, then triggers an action with the result of the test.
var when = function( test, execute, delay ) {
delay = delay || 200;
var x = test();
if ( x ) {
execute( x );
} else {
setTimeout( function() {
when( test, execute, delay );
}, delay );
}
@kjb
kjb / gist:5108618
Created March 7, 2013 15:00
Create a QR code for the current page. Add this code as a bookmark. From http://news.ycombinator.com/item?id=5331319
javascript:(function(){ var i = new Image();i.src = 'http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl='+ encodeURIComponent(getSelection());i.onclick=function(){i.parentNode.removeChild(i)};i.setAttribute('style', 'position:fixed;top:50%;left:50%;margin:-150px 0 0 -150px;box-shadow:0 0 20px rgba(0,0,0,0.2)');document.body.appendChild(i)})();
@kjb
kjb / README.md
Last active June 29, 2016 20:40 — forked from mcoms/README.md
Eken H9 Action Camera Firmware

Official source for the latest firmware

Eken supply firmware for their H2, H2R, H3, H3R, H8, H8R, H9 and H9R cameras via the following site:

https://www.facebook.com/ekenhk (Try searching for "h9 firmware", etc.)

The "R" camera versions come with a remote control.

Selecting the right file

@kjb
kjb / download-aura-photos.py
Last active December 31, 2022 04:35 — forked from meub/download-aura-photos.py
This is a simple script to bulk download all the photos from an Aura digital picture frame (auraframes.com). Aura provides no easy way to bulk download photos off of frames so I created this for use with Python 3.
import requests
import json
import shutil
import time
import os
import os.path
import re
# Put Aura email/password and download location file path here
email = "youremail@email.com"