I hereby claim:
- I am justinturpin on github.
- I am justinturpin (https://keybase.io/justinturpin) on keybase.
- I have a public key ASCxtwSMwv9m0JUaxK934yvxJLrTTxIp3EJUeRAVHK0CZwo
To claim this, I am signing this object:
""" | |
Wifi IR remote. | |
""" | |
import time | |
from machine import PWM, SPI, Pin, reset | |
import rp2 | |
import sys | |
import network | |
import socket |
#!/usr/bin/env python3 | |
import httpx | |
from bs4 import BeautifulSoup | |
import json | |
import click | |
from pathlib import Path | |
// Build Piper-TTS into a static binary | |
const std = @import("std"); | |
const ArrayListu8 = std.ArrayList([]const u8); | |
/// Non-recursively iterate over a directory and add its *.c paths to paths. | |
/// This isn't used anywhere, but I'm putting it here in case anyone finds it useful. | |
/// If you want it to be recursive, you basically change dir.iterate() to dir.walk(). | |
pub fn glob_sources(allocator: std.mem.Allocator, base: []const u8, ext: []const u8, paths: *ArrayListu8) !void { | |
var dir = try std.fs.cwd().openDir(base, .{ .iterate = true }); |
""" | |
An Async Sqlite wrapper. | |
TODO: allow multiple simultaneous readers | |
TODO: writers should block readers | |
""" | |
import asyncio | |
import sqlite3 | |
import threading |
I hereby claim:
To claim this, I am signing this object:
... | |
<script type="module" src="/static/bundle.js"></script> | |
... |
from ConfigParser import ConfigParser | |
class Config: | |
def __init__(self, paths): | |
self._config_parser = ConfigParser() | |
loaded_configs = self._config_parser.read(paths) | |
def __getattr__(self, k): | |
return self._config_parser.get("default", k) |