This file contains hidden or 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
Watchdog.garbage_collection(): | |
freed up 608 bytes -> 3088 bytes free | |
Traceback (most recent call last): | |
File "src/webswitch.py", line 108, in request_handler | |
File "src/webswitch.py", line 99, in send_response | |
File "src/webswitch.py", line 78, in call_module_func | |
File "src/http_set_timer.py", line 31, in get_form | |
File "src/webswitch.py", line 29, in send_html_page | |
File "src/device_name.py", line 34, in get_device_name | |
File "src/config_files.py", line 31, in <module> |
This file contains hidden or 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 logging | |
import os | |
import random | |
import threading | |
import time | |
# https://github.com/peter-wangxu/persist-queue | |
from pathlib import Path | |
import persistqueue |
This file contains hidden or 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 logging | |
from django.core.exceptions import SuspiciousOperation | |
from oscar_docdata.facade import Facade | |
from oscar_docdata.models import DocdataOrder | |
log = logging.getLogger(__name__) | |
This file contains hidden or 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
# https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/display | |
import time | |
import display | |
import machine | |
from machine import SPI | |
from micropython import const | |
This file contains hidden or 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
""" | |
Render mandelbrot on Odroid Go | |
It's for loboris MicroPython port! | |
Based on code from https://github.com/pypyjs/pypyjs-examples/ | |
""" | |
import sys | |
import time | |
import display |
This file contains hidden or 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 inspect | |
from datetime import datetime | |
from functools import wraps | |
from django.db import close_old_connections | |
from huey.contrib.djhuey import HUEY, periodic_task, task | |
from huey.contrib.djhuey.models import HueyTaskLogModel # <<-- TODO: create model+admin | |
This file contains hidden or 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
============================= test session starts ============================== | |
platform linux -- Python 3.6.3, pytest-3.7.4, py-1.5.3, pluggy-0.7.1 -- /home/jens/repos/PyLucid-env/bin/python | |
cachedir: .pytest_cache | |
Django settings: django_tools_test_project.test_settings (from ini file) | |
rootdir: /home/jens/repos/PyLucid-env/src/django-tools, inifile: pytest.ini | |
plugins: django-3.4.2, cov-2.6.0, celery-4.2.1 | |
collecting ... collected 1 item | |
run-last-failure: rerun previous 1 failure first | |
django_tools_tests/test_unittest_celery.py::test_rpc_on_message |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" creator="gpx.py -- https://github.com/tkrajina/gpxpy"> | |
<trk> | |
<trkseg> | |
<trkpt lat="0" lon="0"> | |
<ele>0</ele> | |
</trkpt> | |
<trkpt lat="0" lon="0.0008983152770714982"> | |
<ele>0</ele> | |
</trkpt> |
This file contains hidden or 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 collections | |
class SimpleTree(collections.defaultdict): | |
""" | |
>>> tree = SimpleTree() | |
>>> tree.add(keys=("1",), value="value 1") | |
>>> tree.add(keys=("2a", "2b"), value="value 2.1") |