Skip to content

Instantly share code, notes, and snippets.

fiatjaf fiatjaf

View GitHub Profile
fiatjaf / .gitignore
Last active Apr 6, 2019
hsm_secret and custom invoices with lnurl on c-lightning
View .gitignore
fiatjaf /
Last active Mar 26, 2019
etleneum htlc contract

A contract that can handle multiple "HTLCs" -- in the sense that these are just values parked at the contract that can be claimed by anyone with the correct preimage during some time. After the expiration time they can then be claimed by another different preimage.


method: open satoshis: the number of satoshis sent is the total that will be locked payload:

fiatjaf / check_sig.go
Last active Feb 12, 2019 — forked from lsowen/check_sig.go
GPG signature verification in Go with a bunch of strings
View check_sig.go
package main [33/492]
import (
func main() {
View providers.js
export const providers = {
alias: {
desc: 'Alias for a existing remote',
options: [
name: 'remote',
'Remote or path to alias.\nCan be "myremote:path/to/dir", "myremote:bucket", "myremote:" or "/local/path".',
required: true
fiatjaf / index.html
Last active Nov 3, 2018
formspree test form
View index.html
<!doctype html>
<form method="post" action="">
<label>name: <input name="name"></label>
<label>message: <textarea name="message"></textarea></label>
<label>other data: <input name="other"></label>
fiatjaf / aposta.txt
Created Oct 8, 2018
aposta ivan x giovanni
View aposta.txt
1. homicídios por ano
2. mulheres mortas pelos companheiros
3. fim do foro privilegiado
4. desemprego
5. pib
6. inflação
7. taxa de desmatamento
8. estupros
fiatjaf / barter-creates-wealth.ipynb
Last active Apr 16, 2018
IPython notebook for a simulation of a simple barter economy
View barter-creates-wealth.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View blockstack.txt
Verifying my Blockstack ID is secured with the address 1FkaGUxhTuhYsCEjmiruv9sorH1ZDevW5j
fiatjaf / dl.css
Created Aug 29, 2017
basic CSS for useful description lists
View dl.css
dt {
font-weight: bold;
float: left;
min-width: 200px;
text-align: right;
dt:after {
content: ':';
margin-right: 10px;
fiatjaf / main.js
Last active May 31, 2017
idea of a framework that takes the best of Cycle, React and Mobx
View main.js
window.xtend = require('xtend')
const {h, run, reactive, track, select} = require('.')
var state = reactive({
name: select('.name-type')
.map(e =>,
desc: select('.desc-type')
.map(e =>
You can’t perform that action at this time.