Skip to content

Instantly share code, notes, and snippets.

View olitomas's full-sized avatar
🎯
Focusing

Óli Tómas olitomas

🎯
Focusing
  • Repeat.is, Orkuskipting.is, Fjáröflun.is, Skildingur, Kaffiklúbburinn
  • Iceland
View GitHub Profile
@schmich
schmich / ducky.md
Last active May 23, 2024 09:46
Programming media keys on the Ducky One 2 Skyline

Programming Media Keys on the Ducky One 2 Skyline

To use media keys on the Ducky One 2 Skyline, you must record a macro to bind the media function to a hotkey combination, i.e. Fn plus some key.

Example

Important: In the instructions below, "Press X+Y+Z" means press and hold key X, press and hold key Y, press and hold key Z in that order, and then release all three.

As an example, to bind Fn+PgUp to the play/pause media function:

@cmatskas
cmatskas / parseUrl.js
Created January 12, 2016 09:37
ParseUrl.js
var parseQueryString = function(url) {
var urlParams = {};
url.replace(
new RegExp("([^?=&]+)(=([^&]*))?", "g"),
function($0, $1, $2, $3) {
urlParams[$1] = $3;
}
);
return urlParams;