Skip to content

Instantly share code, notes, and snippets.

View tiffany352's full-sized avatar

Tiffany Bennett tiffany352

View GitHub Profile
@tiffany352
tiffany352 / all_owners.py
Last active August 24, 2022 22:01
I think I got whoowns.py from someone on slack, but I modified it to output CSV.
import io
import subprocess
import whoowns
import argparse
def main():
parser = argparse.ArgumentParser(description="Generates a CSV of all files in the repo and which codeowner is set.")
parser.add_argument("out")
args = parser.parse_args()
@tiffany352
tiffany352 / nu.json
Created June 2, 2021 21:16
Scoop package for Nu that installs plugins in the correct location
{
"version": "0.32.0",
"description": "A modern shell written in Rust",
"homepage": "https://www.nushell.sh",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://github.com/nushell/nushell/releases/download/0.32.0/nu_0_32_0_windows.zip",
"hash": "c471cb4919ae15bc649c5661473edd0bb961eac32303a410eeeb7c18d562c070",
"extract_dir": "nu_0_32_0_windows\\nushell-0.32.0"
use rink_core::ast::Defs;
// In real usage this should get cached and have a user agent set.
let currency_json = reqwest::get("https://rinkcalc.app/data/currency.json")
.await?
.text()
.await?;
// JSON is in serde format for Defs.
let mut live_defs = serde_json::from_str::<Defs>(&currency_json)?;
@tiffany352
tiffany352 / style.css
Created December 20, 2020 07:02
Dark theme for docs.oracle.com
/* Import Roboto as font for body text */
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
body {
background-color: var(--main-bg);
color: var(--text-color);
font-size: unset;
font-family: 'Roboto', sans-serif;
@tiffany352
tiffany352 / SynthWave 84.json
Created September 6, 2020 19:58
I ported the SynthWave 84 color scheme to work in the Windows Terminal
{
"name": "SynthWave 84",
"background": "#262335",
"foreground": "#ffffff",
"white": "#ffffff",
"brightWhite": "#ffffff",
"black": "#000000",
"brightBlack": "#888888",
"blue": "#03edf9",
"brightBlue": "#03edf9",
import fs from "fs";
export function config() {
const contents = fs.readFileSync(".env", {
flag: "r",
encoding: "utf-8",
});
for (let line of contents.split("\n")) {
line = line.split("#")[0] || line;
class Item:
def print(self):
print(self.getText())
def getText(self):
return "foo"
class SpecialItem:
def print(self):
print("SpecialItem: " + self.getText())
20.07.06 01:08:53 [INFO] 116 onEntityChangeBlock : SPIDER
20.07.06 01:08:54 [INFO] 27 onEntityChangeBlock : SPIDER
20.07.06 01:08:54 [INFO] 558 onEntityChangeBlock : SPIDER
20.07.06 01:08:56 [INFO] 205 onEntityChangeBlock : SHEEP
20.07.06 01:08:56 [INFO] 938 checking for material BEDROCK
20.07.06 01:08:56 [INFO] 938 checking for material WARPED_STEM
20.07.06 01:08:56 [INFO] 938 checking for material SHROOMLIGHT
20.07.06 01:08:56 [INFO] 938 checking for material BIRCH_LOG
20.07.06 01:08:56 [INFO] 938 checking for material JUNGLE_LOG
20.07.06 01:08:56 [INFO] 938 checking for material CRIMSON_STEM
---- Minecraft Crash Report ----
// Why did you do that?
Time: 6/14/20 3:16 PM
Description: Registering texture
java.lang.NullPointerException: Registering texture
at net.minecraft.resources.SimpleReloadableResourceManager.func_199002_a(SimpleReloadableResourceManager.java:57) ~[?:?] {re:classloading}
at net.minecraft.client.renderer.texture.SimpleTexture$TextureData.func_217799_a(SourceFile:81) ~[?:?] {re:classloading}
at net.minecraft.client.renderer.texture.SimpleTexture.func_215246_b(SourceFile:57) ~[?:?] {re:classloading}
[18:03:16] [Server thread/WARN]: Statemachine for transition com.minecolonies.api.entity.ai.statemachine.AITarget@7b7944e9 threw an exception:
java.lang.NullPointerException: null
at com.minecolonies.api.entity.ai.pathfinding.AbstractWalkToProxy.walkToBlock(AbstractWalkToProxy.java:85) ~[?:1.15.2-0.11.958]
at com.minecolonies.api.entity.ai.pathfinding.AbstractWalkToProxy.walkToBlock(AbstractWalkToProxy.java:72) ~[?:1.15.2-0.11.958]
at com.minecolonies.coremod.entity.ai.basic.AbstractEntityAIBasic.walkToBlock(AbstractEntityAIBasic.java:774) ~[?:1.15.2-0.11.958]
at com.minecolonies.coremod.entity.ai.basic.AbstractEntityAIBasic.walkToBlock(AbstractEntityAIBasic.java:733) ~[?:1.15.2-0.11.958]
at com.minecolonies.coremod.entity.ai.basic.AbstractEntityAIInteract.checkMiningLocation(AbstractEntityAIInteract.java:274) ~[?:1.15.2-0.11.958]
at com.minecolonies.coremod.entity.ai.basic.AbstractEntityAIInteract.mineBlock(AbstractEntityAIInteract.java:175) ~[?:1.15.2-0.11.958]
at com.minecolonies.coremod.entity.ai.b