Skip to content

Instantly share code, notes, and snippets.

View hoomand's full-sized avatar

Bijan Hoomand hoomand

View GitHub Profile
@hoomand
hoomand / .pgpass
Last active May 18, 2018 04:02 — forked from davehughes/.pgpass
psql connection aliasing/management
# alias:northwind
db1.example.com:5432:northwind:postgres:hunter2
# alias:mainframe
db1.example.com:5432:mainframe:dave:password123
db1.example.com:5432:unaliased:postgres:
@hoomand
hoomand / flowkey.js
Created January 1, 2021 07:27 — forked from amcolash/flowkey.js
Noteflight auto transcribe
// Find the sheet music images on the page
const elements = document.getElementsByClassName('split-image');
// Check that there are actually images on the page
if (elements.length === 0) {
console.error('No images found');
} else {
// If images were found, extract the base url from the 1st one
const imageUrl = elements[0].src;
const imageIdMatch = /\/sheets\/([\w\d]+)\//;