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
YOUTUBE_KEY= | |
FACEBOOK_KEY= | |
TWITCH_KEY= | |
TWITCH_HOST=live-fra05.twitch.tv | |
TROVO_KEY= |
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
*.exe | |
*.dll | |
doc | |
.idea |
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
from time import time | |
from hunter import Action | |
from hunter import trace | |
class ProfileAction(Action): | |
def __init__(self): | |
self.timings = {} | |
def __call__(self, event): |
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
b = 1 | |
def foo(): | |
b = 2 | |
class foo: | |
a = b | |
b = 3 | |
return foo() | |
foo().a |
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
>>> delta = datetime.timedelta(days=200) | |
>>> tz = pytz.timezone('Europe/Bucharest') | |
>>> datetime_dt = datetime.datetime(2019, 1, 1, tzinfo=tz) | |
>>> print('datetime.datetime(2019, 1, 1, tzinfo=tz):', datetime_dt.isoformat()) | |
datetime.datetime(2019, 1, 1, tzinfo=tz): 2019-01-01T00:00:00+01:44 | |
>>> datetime_dt = tz.localize(datetime.datetime(2019, 1, 1)) | |
>>> print('tz.localize(datetime.datetime(2019, 1, 1)):', datetime_dt.isoformat()) | |
tz.localize(datetime.datetime(2019, 1, 1)): 2019-01-01T00:00:00+02:00 | |
>>> | |
>>> print('datetime + delta:', (datetime_dt + delta).isoformat()) |
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
from __future__ import print_function | |
import subprocess | |
import sys | |
import time | |
import psutil | |
import pytest | |
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
@pytest.fixture(scope='session') | |
def django_db_setup(request, | |
django_test_environment, | |
django_db_blocker, | |
django_db_use_migrations, | |
django_db_keepdb, | |
django_db_modify_db_settings): | |
import pytest_django.compat | |
def teardown_databases(db_cfg, verbosity, _teardown_databases=pytest_django.compat.teardown_databases): |
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
{ | |
"chrome": { | |
"default": "60.0", | |
"versions": { | |
"60.0": { | |
"image": "selenoid/chrome:60.0", | |
"port": "4444", | |
"path": "/" | |
} | |
} |
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
""" | |
Make sure you have a `socat readline unix-listen:/tmp/debugger` or `socat - unix-listen:/tmp/debugger` running in | |
a termial before using set_trace. | |
""" | |
def set_trace(): | |
from pdb import Pdb | |
import os | |
import socket |
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
socat* |
NewerOlder