Skip to content

Instantly share code, notes, and snippets.

Evgeny Chernigovsky ngc696

Block or report user

Report or block ngc696

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
__author__ = 'Evgeny Chernigovsky'
import sys
import queue
import threading
import subprocess
from PySide import QtGui
threadCount = 10
View LoggingDecorator
__author__ = 'Evgeny Chernigovsky'
import logging
def logging_decorator(filename):
def inner_decorator(func):
def wrap(*args, **kwargs):
logging.basicConfig(filename=filename, level=logging.INFO)
View TImeDecorator
__author__ = 'Evgeny Chernigovsky'
import time
def time_decorator(func):
def wrap(*args, **kwargs):
start_time = time.time()
func(*args, **kwargs)
end_time = time.time()
View FileManager
import os
import shutil
__author__ = 'Evgeny Chernigovsky'
class Command:
def __init__(self, function, arg_count):
self.execute = function
self.arg_count = arg_count
You can’t perform that action at this time.