Skip to content

Instantly share code, notes, and snippets.

Avatar

Tiffany Bennett tiffany352

View GitHub Profile
@tiffany352
tiffany352 / nu.json
Created Jun 2, 2021
Scoop package for Nu that installs plugins in the correct location
View nu.json
{
"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"
View rink-currency-example.rs
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 Dec 20, 2020
Dark theme for docs.oracle.com
View style.css
/* 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 Sep 6, 2020
I ported the SynthWave 84 color scheme to work in the Windows Terminal
View SynthWave 84.json
{
"name": "SynthWave 84",
"background": "#262335",
"foreground": "#ffffff",
"white": "#ffffff",
"brightWhite": "#ffffff",
"black": "#000000",
"brightBlack": "#888888",
"blue": "#03edf9",
"brightBlue": "#03edf9",
View dotenv.ts
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;
View mixin.py
class Item:
def print(self):
print(self.getText())
def getText(self):
return "foo"
class SpecialItem:
def print(self):
print("SpecialItem: " + self.getText())
View treeassist.log
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
View crash-2020-06-14_15.16.35-client.txt
---- 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}
View gist:777b6020060d22d63fd54acae4ba2c44
[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
@tiffany352
tiffany352 / adventofascension.css
Last active May 28, 2020
Dark themes for gamepedia
View adventofascension.css
.mw-body {
background-color: #111;
color: #eee;
font-size: 1.2rem;
}
h1,
h2,
h3 {
color: #ddd;