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
var os = require('os');
var util = require('util');
var Promise = require('promise');
var WebSocketClient = require('websocket').w3cwebsocket;
var macaddress = require('macaddress');
var dgram = require('dgram');
var ip = require('ip');
/**
@bumi
bumi / payment_request.rb
Last active May 9, 2019 02:10
example client/wallet code for the Bitcoin Payment Protocol BIP70 - https://github.com/bumi/bip70-example
# also have a look at the nice Takecharge Server: https://github.com/controlshift/prague-server and its BOP70 implementation this is based on
class PaymentRequest
def initialize(options)
@options = options
output = create_output
details = create_payment_details(output)
@payment_request = Payments::PaymentRequest.new
@cesardeazevedo
cesardeazevedo / vivo.rb
Created November 10, 2015 21:46
vivotransfer value
require 'Nokogiri'
require 'open-uri'
@doc = Nokogiri::HTML(open('http://www.vivotransfer.com/'))
@content = @doc.xpath('//p[@class = "valor"]').text
puts @content # => *R$ 5.550
puts @content.scan(/\d/).join # => 5550
@fczuardi
fczuardi / foxbit-highlight.js
Created September 15, 2015 22:49
Foxbit click to highlight
// Copie e cole este codigo no campo console do seu firefox
window.username = '---';
function nameClicked(event){
window.username = event.target.textContent;
}
function highlightName(){
let s = new RegExp(window.username);
for (e of $$(".order-book-username")){
#!/usr/bin/env python
import hashlib
import hmac
import time
import requests
import datetime
# Q. Do you have A Websocket API?
# A. Yes, and we strongly recommend you to use it. Please, check our JavaScript websocket implementation for our WebSocket API here:
# https://github.com/blinktrade/frontend/blob/master/jsdev/bitex/api/bitex.js
@sipa
sipa / blocksize.mediawiki
Last active September 22, 2023 08:22
Block size according to technological growth.

Published as BIP 103

@rjmacarthy
rjmacarthy / 2of3.js
Last active August 29, 2015 14:19
Bitcoin 2 of 3 Multisig Address Node.js
var privateKeys = [];
var publicKeys = [];
var privKeysStr = [];
for (var i = 0; i < 3; i++) {
var privateKey = new bitcore.PrivateKey();
privKeysStr.push(privateKey.toString());
privateKeys.push(privateKey);
}
@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"
@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