Skip to content

Instantly share code, notes, and snippets.

@xbee
xbee / main.go
Created March 4, 2017 04:21 — forked from walm/main.go
Simple Golang DNS Server
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)
@xbee
xbee / gist:a4db8404f3fbba7f0b3fa5ce34ff04d1
Last active October 13, 2025 13:50 — forked from matthieu/gist:b07c5ba27bc99188a15f
Create and send a Bitcoin transaction using the BlockCypher Transaction API #bitcoin #shell
# In this example we're sending some test bitcoins from an address we control to a brand new test
# address. We'll be sending the coins using the following address, public and private keys (please
# don't abuse).
# address : mtWg6ccLiZWw2Et7E5UqmHsYgrAi5wqiov
# public : 03bb318b00de944086fad67ab78a832eb1bf26916053ecd3b14a3f48f9fbe0821f
# private : 1af97b1f428ac89b7d35323ea7a68aba8cad178a04eddbbf591f65671bae48a2
# 1. generate a one-shot dummy address we're going to send money to
$ curl -X POST http://api.blockcypher.com/v1/btc/test3/addrs
{
@xbee
xbee / whitepapers.tsv
Last active July 7, 2019 13:54 — forked from blockchainvc/whitepapers.tsv
WHITEPAPERS: Smart Contract Protocols #blockchain #smartcontract
Name Link Whitepaper title
Achain (previously thinkyoung) https://www.achain.com/Achain%20Whitepaper%202.0_EN.pdf Achain Blockchain Whitepaper: build to be boundless
Aergo (by blocko) https://www.aergo.io/paper/ multiple
Aion https://aion.network/media/en-aion-network-technical-introduction.pdf Aion: enabling the decentralized Internet
Ark https://ark.io/Whitepaper.pdf A Platform for Consumer Adoption
Avalanche https://ipfs.io/ipfs/QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV Snowflake to Avalanche: a novel metastable consensus protocol family for cryptocurrencies
Blink https://blink.network/media/blink-protocol.pdf Proof-of-stake distrbuted consensus protocol
Byteball https://byteball.org/Byteball.pdf A Decentralized System for Storage and Transfer of Value
Cardano https://whitepaperdatabase.com/cardano-ada-whitepaper/ Ouroboros: A provably secure proof-of-stake blockchain protocol
Celer Network https://www.celer.network/doc/CelerNetwork-Whitepaper.pdf Celer Network: Bring Internet Scale to Every Blockchai
@xbee
xbee / c99.l
Created January 26, 2020 15:00 — forked from codebrainz/c99.l
C99 Lex/Flex & YACC/Bison Grammars
D [0-9]
L [a-zA-Z_]
H [a-fA-F0-9]
E ([Ee][+-]?{D}+)
P ([Pp][+-]?{D}+)
FS (f|F|l|L)
IS ((u|U)|(u|U)?(l|L|ll|LL)|(l|L|ll|LL)(u|U))
%{
#include <stdio.h>