Skip to content

Instantly share code, notes, and snippets.

@danjjl
danjjl / downloadSeizeIT.py
Last active June 15, 2023 08:43
Script to download the SeizeIT dataset doi:10.48804/P5Q0OJ
"""Script to download the SeizeIT dataset doi:10.48804/P5Q0OJ.
The script requires a valid API key and depends on the requests library.
"""
import hashlib
import json
import logging
import os
from pathlib import Path
import requests
from requests.adapters import HTTPAdapter, Retry
@danjjl
danjjl / widget.ipynb
Last active January 3, 2020 13:18
Code of SO question
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danjjl
danjjl / build.log
Created January 18, 2017 13:14
Pyinstaller#1833: Build log
24 INFO: PyInstaller: 3.3.dev0+g68ed214
24 INFO: Python: 3.5.2
25 INFO: Platform: Linux-4.4.0-60-generic-x86_64-with-Ubuntu-16.04-xenial
26 INFO: UPX is not available.
27 INFO: Extending PYTHONPATH with paths
['/media/Data/Documents/test2', '/media/Data/Documents/test2']
27 INFO: checking Analysis
31 INFO: Building because inputs changed
31 INFO: Initializing module dependency graph...
32 INFO: Initializing module graph hooks...
@danjjl
danjjl / without_try_finally.log
Created December 29, 2016 12:38
Without try-finally
INFO:pygatt.backends.bgapi.bgapi:Initialized new BGAPI backend on None
INFO:pygatt.backends.bgapi.bgapi:Auto-discovering serial port for BLED112
INFO:pygatt.backends.bgapi.util:Found 1 serial USB devices
DEBUG:pygatt.backends.bgapi.util:Checking serial USB device: /dev/ttyACM0 - Low Energy Dongle - CDC control
DEBUG:pygatt.backends.bgapi.util:USB device: Low Energy Dongle - CDC control VID=0x2458 PID=0x0001 on /dev/ttyACM0
DEBUG:pygatt.backends.bgapi.bgapi:Attempting to connect to serial port after restarting device
INFO:pygatt.backends.bgapi.bgapi:Auto-discovering serial port for BLED112
INFO:pygatt.backends.bgapi.util:Found 0 serial USB devices
INFO:pygatt.backends.bgapi.bgapi:Auto-discovering serial port for BLED112
INFO:pygatt.backends.bgapi.util:Found 0 serial USB devices