Skip to content

Instantly share code, notes, and snippets.

@wting
wting / taps.sh
Created January 4, 2014 22:44
Play Taps using PC speaker.
G4='-f 392.00'
C5='-f 523.25'
E5='-f 659.26'
G5='-f 783.99'
whole='-l 2048'
dottedhalf='-l 1536'
half='-l 1024'
dottedquarter='-l 768'
quarter='-l 512'
@Rob--W
Rob--W / webkitNotifications-shim.js
Last active April 27, 2020 01:12
Full implementation of webkitNotifications API for Firefox 22+.
// ==UserScript==
// @name webkitNotifications shim for Firefox 22+
// @namespace https://github.com/Rob--w/
// @author Rob Wu <gwnRob@gmail.com>
// @description Enable desktop notifications on Firefox 22+ for websites which use the webkitNotification API.
// @include *
// @version 1.0.2
// @grant none
// ==/UserScript==
@simon-weber
simon-weber / gmusic_autoplaylists.py
Last active November 27, 2019 21:57
approximations of Google Music auto playlists
from operator import itemgetter
from gmusicapi import Api
api = Api()
api.login('me@gmail.com', 'my-password')
# => True
lib = api.get_all_songs()