Skip to content

Instantly share code, notes, and snippets.

.container {
width: 960px !important;
}
@media (min-width: 1px) {
.container {
max-width: 940px;
}
.col-lg-1,
.col-lg-2,
const AppStateRecord = Record({
// todos: List<TodoItem>([]),
// uiState: new UIState({})
news: List<CategoryItem>([]),
worklist: List<WorklistItem>([]),
smartlist:
vetrine:
});
@ivanminutillo
ivanminutillo / HDtoBase58
Last active September 29, 2016 10:46
Function that return the xpub or a xprv of a given HDNode, (using the bitcoinjs-lib) heavily based on the method .toBase58()
let HDtoBase58 = function (HDNode, key) {
var network = HDNode.keyPair.network
if(key === 'xpub') {
var buffer = new Buffer(78)
buffer.writeUInt32BE(network.bip32.public, 0)
buffer.writeUInt8(HDNode.depth, 4)
buffer.writeUInt32BE(HDNode.parentFingerprint, 5)
buffer.writeUInt32BE(HDNode.index, 9)
HDNode.chainCode.copy(buffer, 13)
HDNode.keyPair.getPublicKeyBuffer().copy(buffer, 45)
@ivanminutillo
ivanminutillo / keybase.md
Last active May 29, 2017 08:22
keybase proof

Keybase proof

I hereby claim:

  • I am ivanminutillo on github.
  • I am iminutillo (https://keybase.io/iminutillo) on keybase.
  • I have a public key ASDlBHOtkB78o2IBSu1Aq8da2ync5SOSZzaJ7mp8p5MvIQo

To claim this, I am signing this object:

import bip32utils from 'bip32-utils'
import bitcoin from 'bitcoinjs-lib'
import {hexEncode} from './utils'
// flow interfaces
import {HDWallet, HDNode, Tx} from '../types/wallet'
let NETWORKS = bitcoin.networks
let NETWORKS_FAIRCOIN = {
AGENTS
======
Thegriel
Fin
Jaedhel
Borniel
Rinduil
Duilie
Aranria
Inga
SOS
WEB http://www.lascuolaopensource.xyz
LOCATION Bari
WEMAKE
WEB http://wemake.cc/
LOCATION Milan
EX-ASILO
WEB http://www.exasilofilangieri.it
@ivanminutillo
ivanminutillo / bitcoin.conf
Last active May 13, 2019 17:07
social-wallet-api.yaml and bitcoin.conf
## bitcoin.conf
### bitcoin.conf configuration file. Lines beginning with # are comments.
### Uncomment and edit options you wish to use.
## JSON-RPC options (for controlling a running bitcoin-qt/bitcoind process)
# server=1 tells Bitcoin to accept JSON-RPC commands.
server=1
daemon=1
@ivanminutillo
ivanminutillo / index.html
Created February 12, 2021 09:22
prova saracinesca
<div>
<h1>hello world</h1>
</div>