Skip to content

Instantly share code, notes, and snippets.

View NoraCodes's full-sized avatar
🦀
rusting away

Leonora Tindall NoraCodes

🦀
rusting away
View GitHub Profile
/home/nora/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/poem-2.0.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=235 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="server"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("acme", "acme-base", "acme-native-roots", "acme-webpki-roots", "anyhow", "async-compression", "base64", "chrono", "compression", "cookie", "csrf", "default", "embed", "eyre06", "fluent", "fluent-langneg", "fluent-syntax", "hex", "httpdate", "i18n", "intl-memoizer", "libcookie", "libcsrf", "libopentelemetry", "libprometheus", "libtempfile", "mime_guess", "multer", "multipart", "native-tls", "openssl", "openssl-tls", "opentelemetry", "opentelemetry-http", "opentelemetry-prometheus", "opentelemetry-semantic-conventions", "priority-queue", "prometheus", "quick-xml", "rand", "rcgen", "redis", "redis-session", "reqwest", "ring", "rust-em
This file has been truncated, but you can view the full file.
Compiling proc-macro2 v1.0.95
Compiling unicode-ident v1.0.18
Compiling libc v0.2.172
Compiling version_check v0.9.5
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nora/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-a88b4ab71963f9fd.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nora/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-a88b4ab71963f9fd.rlib
INFO rustc_metadata::creader register newly loaded library for `core`
INFO rustc_metadata::creader returning false for core is private
>>> Write a Python program that takes an opening chess move as a string and outputs the resulting chess board, regardless of move legality. Do not include
... an explanation or extraneous details.
Here's a simple Python program that takes an opening chess move as input (in standard notation) and displays the corresponding chessboard state with
the pieces in their initial positions:
```python
def print_initial_chessboard():
ranks = ['1', '2', '3', '4', '5', '6', '7', '8']
files = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']
board = [['' for _ in range(8)] for _ in range(8)]
@NoraCodes
NoraCodes / eng_draft_2.md
Created April 20, 2024 22:30
Second draft of "Embers and Grease".

Embers and Grease

A story of desperate adventure, told over campfires and bedrolls. To play this game, you need at least two people, a d20, a d12, a d6, and a d4, and a way to take notes. There is no gamerunner or dungeon master; each player plays an adventurer.

Gameplay

Each night, your characters return from a day of adventuring to their makeshift camp in the wilderness. The players all roll to see what happened that day and work together to tell a story about it. Then, they prepare for the next day of adventuring, and forge relationships that might keep them alive.

Characters

Each player plays a single character. Before assigning any stats, you need to know three things:

  • Where are they from? This doesn't have to be a specific place, though it can be, if you're playing characters in an existing setting. It could be a religious order, a social position, or even a relationship or family - either one that has ended or broken apart, or one to which the character is planning to return.
  • Why are they
@NoraCodes
NoraCodes / circles.ps
Created October 10, 2023 02:43
Draw overlapping circles in PostScript
%!PS
/inch {72 mul} def
/pagewidth { currentpagedevice /PageSize get 0 get } def
/pageheight { currentpagedevice /PageSize get 1 get } def
/cSp { 0.66 inch } def
/cRp { 6 } def
cRp {
cRp {
@NoraCodes
NoraCodes / delchosts.sh
Created June 6, 2023 01:20
Script to delete your chosts (Cohost posts) one page at a time
# You have to go into devtools and pull out your Cookie: header including the part that says Cookie:
# and replace YOUR COOKIE HEADER with that
# and replace YOUR PROJECT NAME in two places
for item in $(curl https://cohost.org/api/v1/project/YOUR PROJECT NAME/posts | jq ".items[] | objects | .postId"); do
curl 'https://cohost.org/api/v1/trpc/posts.delete?batch=1' \
-X POST -H 'content-type: application/json' \
-H 'Origin: https://cohost.org' \
-H 'YOUR COOKIE HEADER' \
--data-raw \{\"0\":\{\"projectHandle\":\"YOUR PROJECT NAME\",\"postId\":$item\}\}
done
@NoraCodes
NoraCodes / rh.svg
Last active January 18, 2022 18:03
How do I get turn-by-turn directions on my device?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NoraCodes
NoraCodes / lib.rs
Created January 10, 2022 21:26
SeaHash investigation - why is Fasthash's implementation weird?
use fasthash; // 0.4
use seahash; // 4
use std::hash::Hasher;
// FastHash seeds
const SEAHASH_SK0: u64 = 0xe7b0c93ca8525013;
const SEAHASH_SK1: u64 = 0x011d02b854ae8182;
const SEAHASH_SK2: u64 = 0x7bcc5cf9c39cec76;
const SEAHASH_SK3: u64 = 0xfa336285d102d083;
@NoraCodes
NoraCodes / output.txt
Created May 14, 2021 21:20
Output from antisamples ambiguous-path test
antisamples nora/samples-2018 % TESTNAME=ambiguous-path cargo test --test runtests -- --nocapture
Finished test [unoptimized + debuginfo] target(s) in 0.02s
Running target/debug/deps/runtests-dd41841cefb91125
running 1 test
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 8 filtered out; finished in 0.03s
@NoraCodes
NoraCodes / matsobco.py
Created May 7, 2021 18:40
Melodies from the Area of the Triangle Swept Out by Bodies on Circular Orbits
import matplotlib.pyplot as plt
import math
# Radii of the bodies.
RAD0 = 7
RAD1 = 11
RAD2 = 15
# How many cycles to compute.
CYC = 1