This file contains 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 | |
import requests | |
import json | |
import re | |
import datetime | |
import sys | |
import matplotlib as mpl | |
mpl.use('Agg') | |
import matplotlib.pyplot as plt | |
from math import cos, sin, pi |
This file contains 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 requests as req | |
# URL of the first page of target BTCtalk thread | |
targetURL = "https://bitcointalk.org/index.php?topic=788916.0" | |
# List variables used for collecting information | |
masterList = [] | |
tempList = [] | |
oldTempList = [] |
This file contains 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 bitcoin.rpc | |
import sys | |
import binascii | |
import bitcoin.core | |
import matplotlib.pyplot as plt | |
import datetime | |
# Setup proxy for communicating with daemon | |
rpc = bitcoin.rpc.Proxy(btc_conf_file="YOUR_CONF_FILE_LOCATION_HERE") |
This file contains 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 bitcoin.rpc | |
import sys | |
import binascii | |
import bitcoin.core | |
import matplotlib.pyplot as plt | |
import datetime | |
# Setup proxy for communicating with daemon | |
rpc = bitcoin.rpc.Proxy(btc_conf_file="PATH_TO_YOUR_CONF_FILE") |
This file contains 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 bitcoin.rpc | |
import sys | |
import binascii | |
import bitcoin.core | |
# import matplotlib.pyplot as plt | |
import datetime | |
# Setup proxy for communicating with daemon | |
rpc = bitcoin.rpc.Proxy(btc_conf_file="PATH_TO_VERTCOIN.CONF_FILE_GOES_HERE") |
This file contains 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 sopel.module | |
import time | |
nicklist = {} | |
paylist = {} | |
@sopel.module.event('JOIN') | |
@sopel.module.rule('.*') | |
def greeting(bot, trigger): | |
if trigger.sender == '#monero-pools' and trigger.nick != bot.nick: |
This file contains 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 imggen | |
import praw | |
from datetime import datetime | |
from userpw import * | |
try: | |
tickerimg = imggen.imggen() | |
with open('pyticker.log', 'a') as f: | |
f.write("{} - successfully created ticker image\n".format(str(datetime.now()))) | |
except: |
This file contains 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
# -*- coding: utf-8 -*- | |
from PIL import Image, ImageChops, ImageFont, ImageDraw | |
import cmc | |
import os | |
def trim(im): | |
bg = Image.new(im.mode, im.size, im.getpixel((0,0))) | |
diff = ImageChops.difference(im, bg) | |
diff = ImageChops.add(diff, diff, 2.0, -100) | |
bbox = diff.getbbox() |
This file contains 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 os | |
import shutil | |
import praw | |
from datetime import datetime | |
from time import strftime | |
from userpw import * | |
try: | |
reddit = praw.Reddit(client_id=client_id, client_secret=client_secret, | |
username=username, password=password, |
This file contains 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 codecs | |
import requests | |
from bs4 import BeautifulSoup, SoupStrainer | |
import re | |
import subprocess | |
from telegram.ext.dispatcher import run_async | |
from telegram.ext import Updater | |
from html import escape |
OlderNewer