Skip to content

Instantly share code, notes, and snippets.

@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>
@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 / gist:a4db8404f3fbba7f0b3fa5ce34ff04d1
Last active March 8, 2020 15:43 — 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 / 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 / universal-payment-channels.md
Created January 22, 2017 12:01 — forked from jtremback/universal-payment-channels.md
Universal Payment Channels
@xbee
xbee / blind_oleg.go
Created November 25, 2016 09:18 — forked from kac-/blind_oleg.go
Blind signatures for Bitcoin transactions
package main
import (
"crypto/ecdsa"
"crypto/elliptic"
"crypto/sha256"
"fmt"
"math/big"
)
@xbee
xbee / pagerank.go
Created October 14, 2016 16:51 — forked from BYVoid/pagerank.go
Calculate pagerank of every vertex in a graph using Go language
package main
import (
"bufio"
"errors"
"fmt"
"io"
"math"
"os"
"strings"
@xbee
xbee / ElasticSearch.sh
Created May 17, 2016 16:30 — forked from ricardo-rossi/ElasticSearch.sh
Installing ElasticSearch on Ubuntu 14.04
#!/bin/bash
### USAGE
###
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7
### ./ElasticSearch.sh will fail because no version was specified (exit code 1)
###
### CLI options Contributed by @janpieper
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch
@xbee
xbee / Makefile
Created April 4, 2016 10:54 — forked from Arachnid/Makefile
include $(GOROOT)/src/Make.$(GOARCH)
TARG=kademlia
GOFILES=\
nodeid.go\
routingtable.go\
contact.go\
kademlia.go
include $(GOROOT)/src/Make.pkg
@xbee
xbee / ec_lsag_test.py
Created March 18, 2016 11:04 — forked from jesperborgstrup/ec_lsag_test.py
Python implementation of Linkable Ring Signatures over Elliptic curves
# MIT License
#
# Copyright (C) 2014 Jesper Borgstrup
# -------------------------------------------------------------------
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so,