A RxJS creation operator based on node-cron, because of that, it is limited to execution in Node only.
This file contains hidden or 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 bash | |
if [[ -z $SUBJECT ]] && [[ -z $1 ]] ; then | |
read -p "Subject: " SUBJECT | |
fi | |
if [[ -z $PASSPHRASE ]] && [[ -z $2 ]] ; then | |
read -p "Passphrase: " PASSPHRASE | |
fi |
This file contains hidden or 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
package utils | |
import "fmt" | |
func Greet(subject string) { | |
fmt.Println(subject) | |
} |
This file contains hidden or 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
function loop(video, loopStart, loopEnd) { | |
function _check() { | |
if (video.currentTime >= loopEnd) { | |
video.currentTime = loopStart; | |
} | |
} | |
const interval = window.setInterval(_check, 50); | |
return () => window.clearInterval(interval); |
This file contains hidden or 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
alias aws-profile='. ~/.aws/set-profile' |
This gist is an ES module which provides functions to import and export data from an IndexedDB database as JSON. It's based on Justin Emery's indexeddb-export-import
package, but applies some adjustments that reflect better on the current browser landscape (i.e. better developer ergonomics but no support for Internet Explorer).
For each of the provided functionalities, you need a connected IDBDatabase
instance.
import { idb } from 'some-database'
OlderNewer