This article is now published on my website: Prefer Subshells for Context.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on this awesome script | |
// https://gist.github.com/saranrapjs/f8700e33332ae4a13a931e761fc262a7 | |
(function check() { | |
// they have hijacked document.querySelector/getElementById/etc but not document.all | |
Array.from(document.all).filter(el => el.nodeName.toLowerCase() === 'lightning-button-icon')[0].click(); | |
setTimeout(() => { | |
Array.from(document.all).filter(el => el.name === 'today')[0].click(); | |
setTimeout(() => { | |
const txt = Array.from(document.all).filter(el => el.className === 'appointment-section')[0].textContent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Apply database patches. | |
Applied patches are recorded in the schema_patch table of the database. | |
The dsn to connect to defaults to a local one (empty connection string). It can | |
be chosen using the command line or an environment variable. Patches | |
application is interactive by default. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// geo-location shim | |
// currentely only serves lat/long | |
// depends on jQuery | |
// doublecheck the ClientLocation results because it may returning null results | |
;(function(geolocation){ | |
if (geolocation) return; |