While hot-cooked peanut sauce is better, more flavorful, and generally just unctuous to the max, sometimes you want: a) to not cook anything. b) to have a smoother, sweeter sauce for dipping e.g. salad rolls in.
This fits that bill.
| use tokio::io::AsyncReadExt; | |
| use tokio::net::TcpStream; | |
| use tokio::select; | |
| use tokio::task::spawn_blocking; | |
| use tokio::time::{sleep, Duration}; | |
| async fn main() { | |
| let mut stream = TcpStream::connect("...").await?; | |
| let thread_handle = spawn_blocking(|| { |
| use tokio::select; | |
| use tokio::time::{sleep, Duration}; | |
| struct CanDrop { | |
| a: Vec<i32>, | |
| } | |
| impl Drop for CanDrop { | |
| fn drop(&mut self) { | |
| println!("Dropping!") |
| @st.cache_resource | |
| def load_model(modelnum: int): | |
| return keras.models.load_model(f"root/C{modelnum}free') | |
| ... | |
| modelnum = int(re.findall(r'\d+', option)[0]) | |
| cNfree = pred(load_model(modelnum), list50) # model{n} for c{n}free |
| import contextlib | |
| import resource | |
| import typing | |
| memory_profiler_data = dict() | |
| @contextlib.contextmanager | |
| def record_memory(name: str) -> typing.ContextManager: | |
| initial_rusage = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss | |
| assert name not in memory_profiler_data, f"{name}'s memory usage has already been recorded, can't record again" |
| #!/usr/bin/env bash | |
| set -xuo pipefail | |
| brew cleanup | |
| brew cleanup --prune=all | |
| rm -rf "$(brew --cache)" | |
| pip cache purge | |
| sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder | |
| sudo rm -rf "/Users/$USER/Library/Caches/Sublime Text/Cache/__pycache__" | |
| find ~ -type d -name "__pycache__" -exec rm -rv {} \; |
| class Bkt < Formula | |
| desc "Utility for caching the resilts of shell commands" | |
| homepage "https://www.bkt.rs" | |
| url "https://crates.io/api/v1/crates/bkt" | |
| sha256 "e6acab9ae6a617fe471dceed9f69064e1f0cb3a8eb93d82e2087faeab4d48ee8" | |
| license "MIT" | |
| depends_on "rust" => :build | |
| uses_from_macos "zlib" |
| """ | |
| Are you tired of Python being slow? Wish it was faster in irrelevant ways at the cost of being massively slower | |
| and more fragile in every relevant way? Tired of how costly it is to look up attributes on classes? Wish you could | |
| "stop" a class when you're done with it, and cause all future interactions with it to raise baffling exceptions? Do | |
| you hate that attribute assignment is a statement? Then you might like this alternative* object system I wrote! | |
| Don't have any of those problems? Well, that's fine, because nobody asked for this anyway. | |
| It has: | |
| - Access without dots. Dots are so .... Java. |