Skip to content

Instantly share code, notes, and snippets.

View eeriemyxi's full-sized avatar

myxi eeriemyxi

View GitHub Profile
/* stylelint-disable declaration-colon-space-after, scss/dollar-variable-colon-space-after */
:root {
--background-0: #1d2021;
--background-1: #282828;
--background-2: #32302f;
--background-3: #3c3836;
--background-4: #504945;
--background-5: #665c54;
--foreground-0: #665c54;
--foreground-1: #bdae93;
@eeriemyxi
eeriemyxi / release-binaries.yml
Created October 22, 2024 18:17
Github Actions workfile to auto-generate release notes, releases, and upload binaries to the respective release.
on:
push:
tags:
- "v*"
name: Upload Binaries to Release
jobs:
build:
permissions: write-all
name: Upload Binaries to Release
runs-on: ubuntu-latest
# git-cliff ~ configuration file
# https://git-cliff.org/docs/configuration
[changelog]
postprocessors = [
{ pattern = '\$REPO', replace = "{{REPO}}" }, # replace repository URL
]
# template for the changelog header
header = """
# Changelog\n

Here’s a physics unit conversion cheat sheet for common quantities. You can use this to convert between different units of measure often encountered in physics problems.


Length/Distance

  • 1 meter (m) = 100 centimeters (cm)
  • 1 meter (m) = 1000 millimeters (mm)
  • 1 kilometer (km) = 1000 meters (m)
  • 1 inch (in) = 2.54 centimeters (cm)
  • 1 foot (ft) = 12 inches (in) = 0.3048 meters (m)
@eeriemyxi
eeriemyxi / cs-prac.md
Last active September 18, 2024 13:37

Merge two sorted one-dimensional arrays into a single sorted array.

#include <iostream>
#include <vector>
using namespace std;

vector<int> mergeSortedArrays(const vector<int>& arr1, const vector<int>& arr2) {
    vector<int> result;
    int i = 0, j = 0;
    while (i < arr1.size() && j < arr2.size()) {
  1. Select all records:
    SELECT * FROM Employees;
    Output:
    ID | Name    | Age | Department | Salary
    ----------------------------------------
    1  | Alice   | 30  | HR         | 60000
    

2 | Bob | 25 | IT | 70000

@eeriemyxi
eeriemyxi / lismi-keyb-swap.py
Last active April 14, 2024 08:41
Swap keyboard layout per test: extension of Lismi (@ https://github.com/eeriemyxi/lismi) typing frontend.
import argparse
import subprocess
# https://stackoverflow.com/a/52025430/22818367
class ArgumentParserWithDefaults(argparse.ArgumentParser):
def add_argument( # type:ignore
self,
*args: object,
help: str | None = None, # noqa:A002
@eeriemyxi
eeriemyxi / math-is-really-cool.md
Last active February 1, 2024 20:57
Math is Really Cool

Math is Really Cool

I've recently begun reading a book. It's about number theory and the title is "A Friendly Introduction to Number Theory" by Joseph H. Silverman. I have only begun reading the first few pages and I already think differently about mathematics!

I think my background is of importance if I'd want to explain how this sudden change happened, as the issue was nothing very personal. I am from a third world country, and my school life has never been great, but I guess that's true for most people considering how schools nowadays are. Mathematics, to me always felt like something very logical, but figuring out the logical resultant was never fun to me, because I couldn't connect the dots myself; I could only ever know how and why I would connect the dots the way the textbook intended. My school never felt the want to adhere in me the traits to link the dots by myself either.

After ten years in school like this, I had some ideas as to how to tackle this issue of mine myself. One was to fully und