Skip to content

Instantly share code, notes, and snippets.

@enddynayn
enddynayn / blockNumberToggle.go
Last active May 9, 2019 19:20
Infura block number toggle
package main
import (
"fmt"
"encoding/json"
"net/http"
"io/ioutil"
"bytes"
"time"
)
@enddynayn
enddynayn / ecdsa_example.rb
Created March 29, 2018 01:34 — forked from ostinelli/ecdsa_example.rb
ECDSA usage from Ruby.
require 'openssl'
require 'base64'
# ===== \/ sign =====
# generate keys
key = OpenSSL::PKey::EC.new("secp256k1")
key.generate_key
public_key = key.public_key
public_key_hex = public_key.to_bn.to_s(16).downcase # public key in hex format
@enddynayn
enddynayn / video.html
Last active February 2, 2017 01:04
video upload duration and dimensions
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://code.jquery.com/jquery-2.2.4.js"></script>