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
#!/usr/bin/env python | |
#coding=utf-8 | |
import threading | |
import time, random, sys | |
class Counter: | |
def __init__(self): | |
self.lock = threading.Lock() | |
self.value = 0 |
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
#!/usr/bin/env python | |
#coding=utf-8 | |
# pip install Pillow | |
# http://pillow.readthedocs.io/ | |
from PIL import Image | |
filename = r'logo.png' |
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 redis | |
import json | |
import requests | |
import time | |
r = redis.StrictRedis(password="PASSWORD HERE") | |
ethToWei = 1000000000000000000 | |
def sendTx(fromAddr, to, wei): |
NewerOlder