Skip to content

Instantly share code, notes, and snippets.

@nlgranger
nlgranger / dataloader.py
Last active February 2, 2020 00:52
Pytorch's Dataloader reimplemented using SeqTools
"""A reimplementeation of PyTorch's DataLoader to showcase seqtools.
:author: Nicolas Granger
:license: 0BSD (~public domain)
"""
import numbers
import random
from functools import singledispatch
from multiprocessing import sharedctypes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nlgranger
nlgranger / sleep.cpp
Last active September 29, 2023 12:55
A7670E sleep
/**
* @file sleep.ino
* @author Lewis He ([email protected])
* @license MIT
* @copyright Copyright (c) 2023 Shenzhen Xin Yuan Electronic Technology Co.,
* Ltd
* @date 2023-05-24
*
*/
#define TINY_GSM_MODEM_SIM7600
@nlgranger
nlgranger / system-info.txt
Created February 26, 2024 19:22
system-info.txt
Computer Information:
Manufacturer: Gigabyte Technology Co., Ltd.
Model: B450M GAMING
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 5 3600 6-Core Processor
CPU Family: 0x17
CPU Model: 0x71
@nlgranger
nlgranger / PKGBUILD
Created October 17, 2024 21:48
PKGBUILD skeleton genetator for projects with git submodules
# example of generate output using https://github.com/tianocore/edk2
sources=(
"berkeley-softfloat-3::git+file:///home/ngranger/Downloads/edk2/src/berkeley-softfloat-3"
"brotli::git+file:///home/ngranger/Downloads/edk2/src/brotli"
"cmocka::git+file:///home/ngranger/Downloads/edk2/src/cmocka"
"cryptography::git+file:///home/ngranger/Downloads/edk2/src/cryptography"
"edk2-cmocka::git+file:///home/ngranger/Downloads/edk2/src/edk2-cmocka"
"engine::git+file:///home/ngranger/Downloads/edk2/src/engine"
"googletest::git+file:///home/ngranger/Downloads/edk2/src/googletest"