Skip to content

Instantly share code, notes, and snippets.

View Nixinova's full-sized avatar

Nixinova

View GitHub Profile
@Nixinova
Nixinova / randverhist.html
Created November 16, 2023 03:56
Example Random Version History Generator
<html>
<head>
<title>Random Version History</title>
<script>
function randverhist() {
const vers = [];
const endchance = 0.1;
for (let x = Math.round(Math.random()); x < Math.random() * 10; x++) {
for (let y = 0; y < Math.random() * 10; y++) {
@Nixinova
Nixinova / mashup-next.txt
Created July 31, 2023 12:39
Nixinova mash-up pack changelog next
Removed broken extended Latin font texture
@Nixinova
Nixinova / is_it_bad.js
Created May 4, 2022 10:38
Is JavaScript bad?
function is_javascript_bad() {
console.log(([]/[]+[])[[]*[]]+[]+[]*[])
}
is_javascript_bad()
@Nixinova
Nixinova / bot.py
Created March 31, 2022 00:48
Discord Python bot template
import os
import random
import discord
from dotenv import load_dotenv
load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
client = discord.Client()
@Nixinova
Nixinova / romanize.md
Last active January 23, 2022 23:41
A custom standard for romanizing vowels and consonants in a language

Vowels

F. C. B.
Close i ü î û ï u
Mid e ö ê ô ë o
Open a â ä

Consonants

@Nixinova
Nixinova / new-ipa-vowels.md
Last active February 4, 2022 03:28
A full extended IPA vowel chart with new characters for all unlabelled vowels
Front near Central near Back
Close i y ᵻ ᵾ ɨ ʉ ꟺ ᴜ ɯ u
Near-close ⱻ ꭚ ɪ ʏ ɷ ꭥ ω ʊ ⱷ ꭎ
Close-mid e ø ɘ ɵ ɤ o
Mid ᴇ ᴔ ə ᴕ ⱺ
Open-mid ɛ œ ɜ ɞ ʌ ɔ
Near-open æ ɐ ʚ ᴒ
Open a ɶ ᴀ ꬰ ɑ ɒ
@Nixinova
Nixinova / basic.css
Last active April 17, 2024 04:36
Basic CSS
html {
max-width: 38rem;
padding: 2rem;
margin: auto;
line-height: 1.5rem;
font-family: sans-serif;
}
@Nixinova
Nixinova / graphing.r
Created October 1, 2021 21:17
Preferred prime minister polling, New Zealand
# In RStudio, Ctrl+A then Run
library(ggplot2)
library(dplyr)
library(svglite)
setwd("xxxxx") # replace with own working directory
# Read data
csvData <- read.csv("poll-data.csv")
@Nixinova
Nixinova / wtf.js
Created September 20, 2021 00:09
The worst thing in JavaScript
var arr = []
if (arr == !arr) throw 'wtf'
@Nixinova
Nixinova / escape-regex.ts
Created September 9, 2021 04:41
Regex escape function
export default const escapeRegex = (str: string): string => str.replace(/[.*+?^/${}()|[\]\\]/g, '\\$&');