I hereby claim:
- I am endogen on github.
- I am endogen (https://keybase.io/endogen) on keybase.
- I have a public key ASBb-xZ65MdbKJYWvxAb0xGwHoPRKVNp8OpVhK85Akcn-wo
To claim this, I am signing this object:
# Will this solve the timeout errors properly? | |
# Errors lead to freeze(?) | |
try: | |
res_data = kraken.query_private("Balance") | |
except Exception as ex: | |
error(bot, update, ex) | |
cancel(bot, update) |
from uuid import getnode as mac | |
# Read Kraken keys | |
with open("kraken.json") as kraken_keys_file: | |
kraken_keys = json.load(kraken_keys_file) | |
# Identify and choose Kraken API keys based on MAC address | |
# and return the Kraken object to call the API | |
def get_kraken_api(): | |
if str(mac()) in kraken_keys: |
#python3 | |
# Source: https://stackoverflow.com/questions/1557571/how-do-i-get-time-of-a-python-programs-execution/12344609#12344609 | |
import atexit | |
from time import time | |
from datetime import timedelta | |
def secondsToStr(t): | |
return str(timedelta(seconds=t)) |
file_id = message.voice.file_id | |
newFile = bot.get_file(file_id) | |
newFile.download('voice.ogg') |
import requests | |
import subprocess | |
import time | |
# Install with "pip3.6 install beautifulsoup4" | |
from bs4 import BeautifulSoup | |
response = requests.get("https://news.ycombinator.com") | |
if response.status_code != 200: |
#!/usr/bin/python3 | |
import sys | |
import platform | |
from PyQt5.QtWidgets import (QWidget, QToolTip, QPushButton, QApplication, QMessageBox, QDesktopWidget) | |
from PyQt5.QtCore import QCoreApplication | |
from PyQt5.QtGui import QFont | |
# TODO: Check with 'check_system' on which system we are and if on windows, do this: |
from pprint import pprint | |
pprint(update.to_dict()) |
I hereby claim:
To claim this, I am signing this object:
Do you need a refresher on git? Go through Codecademy's git
course.
Using your terminal/command line, get inside the folder where your project files are kept:
cd /path/to/my/codebase
.
→ You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.
→ Do you need a refresher on using your command line/terminal? I've compiled my favorite resources here.
Check if git is already initialized: git status