Skip to content

Instantly share code, notes, and snippets.

View eniraa's full-sized avatar
🌺

eniraa

🌺
View GitHub Profile
@eniraa
eniraa / turf.lua
Last active October 13, 2021 03:08
Change the turf in Don't Starve!
function change_ground(ground)
--[[
paste this code into the console and then use the change_ground(`ground`) command
options for `ground` can be a number or a string
use `worldtiledefs.lua` or `terrain.lua` as a reference
--]]
ground =
ground == nil and GROUND.QUAGMIRE_SOIL or type(ground) == "string" and GROUND[string.upper(ground)] or ground
@eniraa
eniraa / cb.applescript
Last active October 13, 2021 02:31
Automatically fill in the AP Exam Plagiarism modal!
tell application "2021 Digital AP Exams"
activate
end tell
tell application "System Events"
set testSec to "I will not give or receive help during this exam. I will not share or post references to this exam during the testing window. If anyone helps me or if I help them, we will both be investigated.\nMy answers will be entirely my own. Plagiarism software and analyses will be used to review my responses.\nIf I attempt to cheat, my score will be canceled, and college admissions offices can be notified. I will also be disqualified from taking future AP or SAT exams in high school and CLEP exams in college."
keystroke "\t"
keystroke testSec
end tell
@eniraa
eniraa / discord_emoji.json
Last active September 4, 2024 05:56
This contains all Discord emoji.
[
{
"asset": "https://discord.com/assets/05ace4106e5e1af6afbea0fa339e557c.svg",
"names": [
":hash:"
],
"strings": [
"\u0023\ufe0f\u20e3",
"\u0023\u20e3"
]
@eniraa
eniraa / l4r.py
Last active April 12, 2020 14:15
LaTeX for Reddit
from contextlib import contextmanager
from io import BytesIO, StringIO
import os
import re
import requests
import signal
import time
from typing import List
import urllib