Skip to content

Instantly share code, notes, and snippets.

View rickyvetter's full-sized avatar
🪿

Ricky Vetter rickyvetter

🪿
View GitHub Profile
@staltz
staltz / introrx.md
Last active November 20, 2024 15:03
The introduction to Reactive Programming you've been missing
#!/bin/bash
LINE=$1
KNOWN_HOSTS=~/.ssh/known_hosts
usage() {
cat <<-EOM
Usage: ssh-purge-host <line no>
@staltz
staltz / slim-cycle-core.js
Created September 22, 2015 12:35
Cycle.js without sanity checks and comments in a single file. Don't use this, use normal Cycle.js. :-)
let Rx = require(`rx`)
function makeRequestProxies(drivers) {
let requestProxies = {}
for (let name in drivers) {
if (drivers.hasOwnProperty(name)) {
requestProxies[name] = new Rx.ReplaySubject(1)
}
}
return requestProxies
@LeonardoCardoso
LeonardoCardoso / gitzip.sh
Last active November 20, 2024 08:21
Zip folder ignoring files listed on .gitignore
#...
function gitzip() {
git archive -o [email protected] HEAD
}
#... gitzip ZIPPED_FILE_NAME