Skip to content

Instantly share code, notes, and snippets.

@danfinlay
danfinlay / collateral-cash.md
Last active September 29, 2023 15:43
A code-free introduction to a blockchain-minimized digital social collateral system.

CounterFactual Social Collateral Cash

A code-free introduction to a blockchain-minimized digital social collateral system.

Imagine a situation where Alice has an account with $100 in it. This is a special kind of account that allows her to give out special spending limit codes to her friends which allow them to in turn to give out their own spending-limit codes.

For example, imagine this set of signed messages:

  • “Bob may withdraw up to $100 from my account” - Alice, signed 5/8/2018
  • “Carol may withdraw up to $50 of my allowance from Alice” - Bob, signed 7/6/2018 (includes reference to previous Alice message)
@abbotto
abbotto / nest.sh
Last active October 7, 2016 11:30
NodeJS Environment Setup Tasks
#!/bin/bash
printf "\n-----------------------------------------\n"
printf "N.E.S.T.\n"
printf "NodeJS Environment Setup Tasks"
printf "\n-----------------------------------------\n"
# Requires nvm and nodejs
# Put this in the same folder as "package.json"
@DarrenN
DarrenN / get-npm-package-version
Last active April 17, 2024 16:57 — forked from yvele/get-npm-package-version.sh
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION
@staltz
staltz / introrx.md
Last active May 20, 2024 14:59
The introduction to Reactive Programming you've been missing
@thomasfr
thomasfr / Git push deployment in 7 easy steps.md
Last active May 1, 2024 23:17
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook