Skip to content

Instantly share code, notes, and snippets.

View coinables's full-sized avatar
💭
@coinables on Twitter

coinableS coinables

💭
@coinables on Twitter
View GitHub Profile
@coinables
coinables / index.html
Created June 13, 2018 04:51
lightning nodes & edges
<!DOCTYPE html>
<html>
<head>
<!-- START SIGMA IMPORTS -->
<script src="../src/sigma.core.js"></script>
<script src="../src/conrad.js"></script>
<script src="../src/utils/sigma.utils.js"></script>
<script src="../src/utils/sigma.polyfills.js"></script>
<script src="../src/sigma.settings.js"></script>
<script src="../src/classes/sigma.classes.dispatcher.js"></script>
@coinables
coinables / transaction.js
Created June 14, 2019 23:55
Create a testnet key pair
let bitcoin = require("bitcoinjs-lib");
function getNewAddress(){
let NETWORK = bitcoin.networks.testnet; //main net bitcoin.networks.bitcoin
let wif = bitcoin.ECPair.makeRandom({network: NETWORK}).toWIF();
let keyPair = bitcoin.ECPair.fromWIF(wif, NETWORK);
//p2pkh
let p2pkhAddr = keyPair.getAddress();
@coinables
coinables / keybase.md
Created November 19, 2019 19:49
keybase.md

Keybase proof

I hereby claim:

  • I am coinables on github.
  • I am m1xolyd1an (https://keybase.io/m1xolyd1an) on keybase.
  • I have a public key ASAOG__GbbKo00EB2D8YqNirmgp0gia8HiuM7JTePuTP3Ao

To claim this, I am signing this object:

@coinables
coinables / bitcoin.php
Last active January 25, 2020 17:11
Uber Simple
<?php
//replace with your BIP32 extended public key
$xpub = "xpub6CUGRUonZSQ4TWtTMmzXdrXDtypWKiKrhko4egpiMZbpiaQL2jkwSB1icqYh2cfDfVxdx4df189oLKnC5fSwqPfgyP3hooxujYzAu3fDVmz";
$url = "https://api.blockchair.com/bitcoin/dashboards/xpub/".$xpub;
$fgc = json_decode(file_get_contents($url), true);
$addrlen = count($fgc["context"]["checked"]);
@coinables
coinables / gist:97d8406c7044d0263257240116c2753f
Created February 25, 2020 04:25
its a secret to everybody
var s = window.speechSynthesis;
var enc = "Yml0Y29pbiBpcyB0aGUgYmVzdA==";
var u = new SpeechSynthesisUtterance(atob(enc));
s.speak(u);