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
class FileOrStream: | |
def __init__(self, location): | |
self._location = location | |
self._response = None | |
self._raw = None | |
def __enter__(self): | |
location = self._location | |
self.location = None |
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
#include <stdexcept> | |
#include <cstdlib> | |
#define ASSERTION(pred) \ | |
assertion_impl<__builtin_constant_p(pred)>()((pred)) | |
int checks; | |
template<bool b> | |
struct assertion_impl { |
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
I (788) coexist: coex firmware version: 77cd7f8 | |
I (794) coexist: coexist rom version 5b8dcfa | |
I (799) main_task: Started on CPU0 | |
I (802) main_task: Calling app_main() | |
E (807) _zig: common-hal/_zig/__init__.c:279 | |
E (816) _zig: common-hal/_zig/__init__.c:281 | |
E (816) _zig: common-hal/_zig/__init__.c:284 | |
E (821) _zig: common-hal/_zig/__init__.c:220 | |
E (826) _zig: common-hal/_zig/__init__.c:223 | |
I (832) phy_init: phy_version 250,e14681b,Jan 24 2024,17:43:11 |
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
ESP-ROM:esp32c6-20220919 | |
Build:Sep 19 2022 | |
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT) | |
SPIWP:0xee | |
mode:DIO, clock div:2 | |
load:0x40875720,len:0x1974 | |
load:0x4086c410,len:0x1010 | |
load:0x4086e610,len:0x2f00 | |
entry 0x4086c41a | |
I (23) boot: ESP-IDF v5.2.1-12-g0b28b79faf 2nd stage bootloader |
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
# 0 "/home/jepler/key.h" | |
# 0 "<built-in>" | |
# 0 "<command-line>" | |
# 1 "/usr/include/stdc-predef.h" 1 3 4 | |
# 0 "<command-line>" 2 | |
# 1 "/home/jepler/key.h" | |
DEVPKEY_NAME = DEVPROPKEY(DEVPROPGUID(0xb725f130, 0x47ef, 0x101a, (0xa5, 0xf1, 0x02, 0x60, 0x8c, 0x9e, 0xeb, 0xac), 10)); | |
DEVPKEY_Device_DeviceDesc = DEVPROPKEY(DEVPROPGUID(0xa45c254e, 0xdf1c, 0x4efd, (0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0), 2)); |
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
# 0 "key.h" | |
# 0 "<built-in>" | |
# 0 "<command-line>" | |
# 1 "/usr/include/stdc-predef.h" 1 3 4 | |
# 0 "<command-line>" 2 | |
# 1 "key.h" | |
DEVPKEY_NAME = DEVPROPKEY(0xb725f130,0x47ef,0x101a,0xa5,0xf1,0x02,0x60,0x8c,0x9e,0xeb,0xac, 10); | |
DEVPKEY_Device_DeviceDesc = DEVPROPKEY(0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 2); |
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
--- libraries/drivers/24lc32/adafruit_24lc32.py | |
+++ libraries/drivers/24lc32/adafruit_24lc32.munged.py | |
@@ -31,14 +31,14 @@ | |
import time | |
from micropython import const | |
-try: | |
- from typing import Optional, Union, Sequence | |
- from digitalio import DigitalInOut | |
- from busio import I2C |
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
#include <stdio.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <pthread.h> | |
#include <stdlib.h> | |
typedef struct { | |
int N, M; | |
} bday_arg; |
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
typedef float mp_float_t; | |
typedef struct { mp_float_t c, s; } sincos_result; | |
// Compute sin and cos of (x+1)*pi/4, -1 < x < 1 to about 4.5 places | |
/* polynomials from | |
```py | |
import numpy as np | |
from numpy.polynomial.polynomial import Polynomial |
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
from math import sin | |
import sdcardio | |
import storage | |
import audiobusio | |
import audiocore | |
import audiomixer | |
import audiomp3 | |
import board | |
import time | |
import math |