This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Wire.h> | |
| void setup() { | |
| // put your setup code here, to run once: | |
| Wire.begin(); // join i2c bus (address optional for master) | |
| int led = 13; | |
| pinMode(led, OUTPUT); | |
| for (int i = 0; i < 7; i++) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| #Global Variables for running simulations | |
| T = 1000 | |
| B = 2 | |
| R = 0 | |
| #Definition of the Colors and their corresponding Numbers | |
| RED = [1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36] | |
| BLACK = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # By: Justin Chase | |
| # Description: Based heavily on PYBITCOINTOOLS - https://github.com/vbuterin/pybitcointools By: vbuterin | |
| # Version: 0.01 | |
| import sys, re | |
| import binascii | |
| import os | |
| import hashlib | |
| import random | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import onename | |
| def getAllBTCAddrs(FILEPATHNAME,OUTPUTFILEPATH): | |
| f = open(FILEPATHNAME, 'r') | |
| o = open(OUTPUTFILEPATH, 'w') | |
| for line in f: | |
| data=getOneNameJson(line.rstrip('\r\n')) | |
| BTCADDR=getBitcoin(data) | |
| print line.rstrip('\r\n')+","+str(BTCADDR)+"\n" | |
| #o.write(line.rstrip('\r\n')+","+str(BTCADDR)+"\n") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Verifying that +juju is my Bitcoin username. You can send me #bitcoin here: https://onename.io/juju |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hashlib | |
| def chaincrypt(plaintext): | |
| #CIPHERTEXT=hashlib.md5(plaintext) | |
| #CIPHERTEXT=hashlib.sha1(plaintext) | |
| CIPHERTEXT=hashlib.sha512(plaintext) | |
| CIPHERTEXT=hashlib.sha224(CIPHERTEXT.hexdigest()) | |
| CIPHERTEXT=hashlib.sha256(CIPHERTEXT.hexdigest()) | |
| CIPHERTEXT=hashlib.sha384(CIPHERTEXT.hexdigest()) | |
| print CIPHERTEXT.hexdigest() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import urllib2 | |
| import datetime | |
| import time | |
| from termcolor import colored | |
| PRICE=610 | |
| STAKE=1000 | |
| def getprice(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import urllib2 | |
| import datetime | |
| import time | |
| import winsound | |
| PRICE=610 | |
| def getprice(): | |
| data=json.load(urllib2.urlopen("https://coinbase.com/api/v1/prices/spot_rate?currency=USD")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import hashlib | |
| import base58 | |
| from pycoin.ecdsa import generator_secp256k1, public_pair_for_secret_exponent | |
| def bytetohex(byteStr): | |
| return ''.join( [ "%02X" % x for x in byteStr ] ).strip() | |
| litecoin = [b"\x30", b"\xb0"] | |
| bitcoin = [b"\x00", b"\x80"] |