Skip to content

Instantly share code, notes, and snippets.

View Anderson-Juhasc's full-sized avatar
:octocat:
Looking for work

Anderson Juhasc Anderson-Juhasc

:octocat:
Looking for work
View GitHub Profile
@shesek
shesek / bitcoin-decoderawtransaction.coffee
Last active January 9, 2018 15:18
Decode Bitcoin raw transactions to bitcoinjs-lib's Transaction object with CoffeeScript
decode_raw_tx = do ->
{ Transaction, TransactionIn, TransactionOut } = Bitcoin
{ bytesToBase64 } = Crypto.util
# Parse an bytearray of length `size` as an integer
# Works for numbers up to 32-bit only
parse_int = (size) -> (bytes) ->
n = 0
n += (bytes.shift() & 0xff) << (8 * i) for i in [0...size]
@miohtama
miohtama / gist:7814435
Last active July 13, 2020 19:48
Minimal Bitcoin <-> currency exchange rate converter using bitcoinaverage.com API.
"""
Minimal Bitcoin <-> currency exchange rate converter using bitcoinaverage.com API.
Do HTTP fetches using request library.
http://bitcoinaverage.com
http://docs.python-requests.org/en/latest/index.html
@shaileshgupta
shaileshgupta / boss.md
Last active August 14, 2017 20:43
Ruby Bitcoin OSS
@vibegui
vibegui / front-end-brasil.md
Last active September 8, 2025 14:08
O estado da comunidade brasileira de front end

Para onde caminha a comunidade brasileira de front end?

Hoje algo cômico e surreal aconteceu na comunidade FrontEnd Brasil. Algo chocante a ponto de desanimar o mais engajado dos participantes.

Após postar um Gist sobre moment com um código bastante didático, Berger foi rechaçado pelo moderador da comunidade, Jean Carlo Nascimento. Ao notar que o gist era escrito em CoffeeScript, o moderador comentou uma piadinha:

Prefiro usar moment a coffee.

A comunidade não gostou e reagiu, criticando o comentário infeliz e prezando o autor por compartilhar um código útil. Não satisfeito, as agressões sobre o uso de CoffeeScript continuaram.

Eles não sabem que o sonho
é uma constante da vida
tão concreta e definida
como outra coisa qualquer,
como esta pedra cinzenta
em que me sento e descanso,
como este ribeiro manso,
em serenos sobressaltos,
como estes pinheiros altos,
que em oiro se agitam,
@drwasho
drwasho / DEX-OB.md
Last active November 5, 2017 14:53
Distributed currency exchange in OpenBazaar

Distributed Currency Exchange on OpenBazaar

Introduction

OpenBazaar allows for the decentralised exchange of types of currencies using the flexible Ricardian contract system. Currency exchanges are not limited trades between crypto-currencies, but can also facilitate exchanges with fiat currencies using reverisble and non-reversible payment systems.

Currency Exchanges

Fundamentally, currency exchanges require a matching of buy and sell orders at a certain price for a given volume. Firstly, buy and sell orders will be created and issued as a Ricardian contract, formatted according to a specialised 'currency' template in OpenBazaar. Secondly, matching buy and sell orders theoretically will be mediated over exchange nodes, which may also function as arbiters for each exchange. Alternative, buy and sell orders may be matched over the OpenBazaar distributed hash table. Finally, private exchanges can be made bet

@cesardeazevedo
cesardeazevedo / translate.hs
Created October 21, 2014 17:22
Helm Translate
{-
- Haskell experiment with functional reactive programming game engine Helm.
- just a basic square with x position and speed property, translating on the x axis.
-
- run:
- ghc translate.hs
- ./translate
-}
module Main where
@ryandotsmith
ryandotsmith / main.go
Created January 15, 2015 01:10
Sending an OP_RETURN Bitcoin Transaction with Go using Chain's Bitcoin API
package main
import (
"bytes"
"encoding/hex"
"encoding/json"
"io/ioutil"
"log"
"net/http"