Skip to content

Instantly share code, notes, and snippets.

🕶️
Working on a personal project

Taven daegontaven

🕶️
Working on a personal project
Block or report user

Report or block daegontaven

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 process.py
import sys
import time
import PyQt5.QtCore
import PyQt5.QtWidgets
app = PyQt5.QtWidgets.QApplication(sys.argv)
text = PyQt5.QtWidgets.QTextEdit()
@daegontaven
daegontaven / error_handler.py
Created Mar 24, 2018 — forked from EvieePy/error_handler.py
Simple Error Handling for ext.commands - discord.py
View error_handler.py
import traceback
import sys
from discord.ext import commands
import discord
"""
If you are not using this inside a cog, add the event decorator e.g:
@bot.event
async def on_command_error(ctx, error)
@daegontaven
daegontaven / gcp-specs.log
Created Jan 18, 2019
GCP Instance Specifications
View gcp-specs.log
wiki-debug
description: Computer
product: Google Compute Engine
vendor: Google
serial: GoogleCloud-808A9ACA519E93147E70C3753FB65C86
width: 64 bits
capabilities: smbios-2.4 dmi-2.4 smp vsyscall32
configuration: boot=normal uuid=808A9ACA-519E-9314-7E70-C3753FB65C86
*-core
description: Motherboard
@daegontaven
daegontaven / vagrant-values.log
Created Jan 18, 2019
Output of `vagrant config --list`
View vagrant-values.log
git_user Your git/Gerrit username
Enter 'anonymous' for anonymous access, leave blank to manage it yourself
Current value: taven
vagrant_ram Amount of RAM (in MB) allocated to the guest VM
Specify 'auto' to automatically allocate 1/4 of your system's memory
Current value: 1536 (default)
vagrant_cores CPU cores allocated to the guest VM
All of your host system's cores are allocated by default.
@daegontaven
daegontaven / install-output.md
Last active Feb 2, 2019
Install output for pipenv bug report as seen in https://github.com/pypa/pipenv/issues/3497
View install-output.md
Installing dependencies from Pipfile.lock (cbf103)…
Installing 'aiohttp'
$ ['/home/meredith/.local/share/virtualenvs/Orator-jO5XcFKu/bin/pip', 'install', '--verbose', '--upgrade', '--no-deps', '-r', '/tmp/pipenv-4f6wyya9-requirements/pipenv-nkxmmovu-requirement.txt', '-i', 'https://pypi.org/simple', '--require-hashes']
Installing 'async-timeout'
$ ['/home/meredith/.local/share/virtualenvs/Orator-jO5XcFKu/bin/pip', 'install', '--verbose', '--upgrade', '--no-deps', '-r', '/tmp/pipenv-4f6wyya9-requirements/pipenv-94x7sqjj-requirement.txt', '-i', 'https://pypi.org/simple', '--require-hashes']
Installing 'cffi'
$ ['/home/meredith/.local/share/virtualenvs/Orator-jO5XcFKu/bin/pip', 'install', '--verbose', '--upgrade', '--no-deps', '-r', '/tmp/pipenv-4f6wyya9-requirements/pipenv-q3umrtx0-requirement.txt', '-i', 'https://pypi.org/simple', '--require-hashes']
Installing 'chardet'
$ ['/home/meredith/.local/share/virtualenvs/Orator-jO5XcFKu/bin/pip', 'install', '--verbose', '--upgrade', '--no-deps', '-r', '/tmp/pipen
View config.py
LOG_FORMAT = "%(asctime)s %(name)-18s %(levelname)-8s %(message)s"
DATE_FORMAT = "[%Y-%m-%d %H:%M:%S %z]"
MAIN_FIELD_STYLES = {
'asctime': {
'color': 'green'
},
'levelname': {
'color': 'black',
'bold': True
View intro-progress-bar-1.py
import sys
import time
from PyQt5.QtWidgets import (QApplication, QDialog,
QProgressBar, QPushButton)
TIME_LIMIT = 100
class Actions(QDialog):
"""
View intro-progress-bar-2.py
import sys
import time
from PyQt5.QtCore import QThread, pyqtSignal
from PyQt5.QtWidgets import (QApplication, QDialog,
QProgressBar, QPushButton)
TIME_LIMIT = 100
class External(QThread):
View qutepart-test-result.log
(3.7.2) meredith@taylor:~/PycharmProjects/qutepart/tests$ python run_all.py
Suite created
test_1 (test_actions.Print) ... skipped 'Does not work'
test_completion_enabled (test_api.Completion) ... ok
test_threshold (test_api.Completion) ... ok
test_1 (test_api.DetectSyntax) ... qutepart: Indenter 'ada' is not finished yet. But you can do it!
ok
test_1 (test_api.InsertText) ... ok
test_2 (test_api.InsertText) ... ok
test_3 (test_api.InsertText) ... ok
@daegontaven
daegontaven / MVCE_main.py
Last active Sep 17, 2019
Thread Based PyQt5 Python Console
View MVCE_main.py
import sys
import time
from code import InteractiveConsole
from PyQt5 import uic
from PyQt5.QtCore import pyqtSlot, QThread, QObject, pyqtSignal, QTimer
from PyQt5.QtGui import QTextOption, QTextCursor
from PyQt5.QtWidgets import QApplication
__author__ = "daegontaven"
You can’t perform that action at this time.