Skip to content

Instantly share code, notes, and snippets.

View LizAinslie's full-sized avatar
⚒️
BUILD COOL SHIT BUILD COOL SHIT BUILD COOL SHIT

Liz Ainslie LizAinslie

⚒️
BUILD COOL SHIT BUILD COOL SHIT BUILD COOL SHIT
View GitHub Profile
@LizAinslie
LizAinslie / exposed_kotlin_uuid.kt
Last active February 25, 2025 00:32
Use kotlin.uuid.Uuid as an index in Exposed, instead of java.util.UUID
@file:OptIn(ExperimentalUuidApi::class)
import org.jetbrains.exposed.dao.Entity
import org.jetbrains.exposed.dao.EntityClass
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.IdTable
import org.jetbrains.exposed.sql.Column
import org.jetbrains.exposed.sql.ColumnType
import org.jetbrains.exposed.sql.Table
import org.jetbrains.exposed.sql.Table.Dual.clientDefault
@LizAinslie
LizAinslie / README.md
Last active December 19, 2024 18:38
A beautiful discord/vencord dev build setup fish function script I wrote for my Arch install.

update_discord.fish

A cheerful & colorful Fish function I wrote to keep my Discord and Vencord installations up to date on my Arch machine.

update_discord help text

This function assumes that you have the following installed:

  • git
  • node
  • pnpm
  • wget
@LizAinslie
LizAinslie / stacky.ts
Last active January 27, 2024 04:07
Stacky bois
const stackCount = 10
const STACK_SPACE = 10;
// Draw the stack of images
for (let i = 0; i < stackCount; i++) {
const shearFactor = (stackCount - i)
// Calculate scale and position adjustments based on the current iteration
const scaleAdjustment = 0.9 + (0.1 * (i - shearFactor)) / stackCount
const positionAdjustmentX = (scaledImageWidth - (scaledImageWidth * scaleAdjustment)) / 2;
const positionAdjustmentY = (STACK_SPACE * shearFactor);
// Define a trait function to that expects behavior to convert a value to type T
trait fun to<T>(): T
// So you want to require a property? Use a trait getter!
trait fun(get) displayName: String
// You can define a tuple type with parenthesis
tuple Name (String, String) {
|(first, last)| impl fun to<String>() = "${first} ${last}"

Keybase proof

I hereby claim:

  • I am lizainslie on github.
  • I am lizainslie (https://keybase.io/lizainslie) on keybase.
  • I have a public key ASAXnkDKgpt-SjQbsn_LiKbxxlJKuKMAcxmyc5-usVZt_wo

To claim this, I am signing this object:

I have 8GB of DDR3 RAM. Please end my suffering.

Program # Of times it has ran out of memory
Flutter 7
Chrome 3
Discord 2

My Options For a New Laptop

This is more or less a wishlist (kind of) where I post all viable options I have found for a new laptop. If anyone kind enough to actually get me one of these, you have way too much money and I wouldn't know what to say. Honestly if you want someone to love you forever, you can, but I'd reccomend spending that dough on yourself. This is mostly a list for me to reference when actually buying a new laptop, which will hopefully happen soon. (as in, in the next few months) I may update this with a gofundme or something so anyone who wants to contribute to me getting a new laptop can but I'll keep it real with you, it's your choice. I plan on making sure this list has only items under $1800 USD because my budget is currently $0 and it's gonna take a while to get up to even the amount of $1800 with my current work situation. Anyway feel free to add suggestions to this list as long as you make sure to tag them as such, I will gladly look at them.

[gofundme page](https://www.gofundme.co

{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"textures": {
"type": "object",
"patternProperties": {
"(\\w+)": {
"$ref": "#/definitions/texture"
}
@LizAinslie
LizAinslie / Rules.md
Last active July 21, 2020 06:11
Rules for my Discord, since it went above the character limit

1. Don't be a Dick: Nobody likes a jerk, so don't be one.

2. No NSFW/NSFL Content: Absolutely no NSFW or NSFL content is allowed here whatsoever. If you post any of this, you will be permanently banned without prior punishments. No appeals allowed.

3. No Flooding/Spamming: This includes emojis, special characters, images, links, mentions, etc. This will include using the Discord emotes to spell out words ("regional indicators").

4. Follow the Discord Terms of Service / Community Guidelines: