Skip to content

Instantly share code, notes, and snippets.

Josh Cincinnati acityinohio

  • Virginia
Block or report user

Report or block acityinohio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View auditthezed.go
//fixed version here: https://github.com/acityinohio/auditthezed
/* Audits the Zcash blockchain using naive RPC calls
Requires txindex=1 option set in your zcash.conf */
package main
import (
"encoding/json"
"fmt"
View onename
Verifying that +cin is my blockchain ID. https://onename.com/cin
@acityinohio
acityinohio / xmasbonus.go
Created Dec 17, 2015
Small Go script to transfer bitcoin from a WIF private key into a destination address using BlockCypher.
View xmasbonus.go
package main
import (
"encoding/hex"
"log"
"github.com/blockcypher/gobcy"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcutil"
)
View keybase.md

Keybase proof

I hereby claim:

  • I am acityinohio on github.
  • I am cin (https://keybase.io/cin) on keybase.
  • I have a public key whose fingerprint is 040B 4104 4B98 DBBE 1EFB 2BB9 DE65 37D3 A89A 1830

To claim this, I am signing this object:

@acityinohio
acityinohio / probSorted.go
Last active Aug 29, 2015
A snippet of Go code that lets you simulate the random drawing of a hand of cards from a standard card deck, returns the probability that hand is sorted
View probSorted.go
//To use, build an executable in the command line:
// go build probSorted.go
//Then run the executable with appropriate command line args.
//For example, this returns the probability that 5 cards are sorted,
//given 1,000,000 random trials:
// ./probSorted 5 1000000
//Updated to work with Go 1.5's automatic detection of GOMAXPROCS.
package main
import (
View PMArchiveParser.py
import urllib2
from BeautifulSoup import BeautifulSoup
if __name__=="__main__":
url_base = "http://pmarchive.com/guide_to_startups_part"
f = open('fun.html', 'w')
for i in range(1,10):
response = urllib2.urlopen(url_base + str(i))
html = response.read()
soup = BeautifulSoup(html)
View ruby-calc.rb
def calc(a)
#split array into two arrays--operations and elements
ops = a.split("").map{|x| x if x[/\D/]}.compact
elems = a.split("").map{|x| x.to_f if x[/\d/]}.compact
#multiplication/division first
iter = 0
ops.each do |x|
if x == "*" || x == "/"
elems[iter] = elems[iter].send(x,elems[iter+1])
elems.delete_at(iter+1)
View ArrayPath.go
package main
import (
"bufio"
"fmt"
"io"
"math"
"os"
"strconv"
"strings"
View Flipper.go
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
)
View CountSort1.go
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
)
You can’t perform that action at this time.