Skip to content

Instantly share code, notes, and snippets.

View oatmealine's full-sized avatar
🔨
conk2.ogg

jill oatmealine

🔨
conk2.ogg
View GitHub Profile
// warning: i am not responsible for any google translate ip-bans or ratelimits
var request = require('request');
const token = require('@vitalets/google-translate-token');
const langs = {
Automatic: "auto",
Afrikaans: "af",
Albanian: "sq",
Amharic: "am",
Arabic: "ar",
@oatmealine
oatmealine / graphingCalc.cpp
Last active November 12, 2019 14:04
simple graphing calculator in c++ - edit line 27 and 28
#include <iostream>
#include <cmath>
#include <time.h>
using namespace std;
int main() {
int Length = 120;
int Height = 28;
@oatmealine
oatmealine / lines.glsl
Created January 28, 2020 12:38
lines shader
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
uniform float time;
uniform vec2 resolution;
float round(float num) {
const got = require('got');
const fs = require('fs');
const os = require('os');
const { exec } = require('child_process');
const api = `http://images.ucomics.com/comics/ga`;
const startDate = new Date('19 June 1978 00:00:00 GMT');
function generateComicURL(date) {
// http://images.ucomics.com/comics/ga/2000/ga001231.gif
@oatmealine
oatmealine / categories.json
Last active December 5, 2020 01:31
notitg template analyzer script
[
{
"name": "unknown",
"checks": []
},
{
"name": "no template",
"checks": [
{
"type": "filecontent",
@oatmealine
oatmealine / oatstodon-pink.css
Last active January 24, 2021 20:51
oatstodon
/* customize ya stuff */
:root {
--border-radius: 5px;
/* rgb for transparency to work */
--text-color: 217, 225, 232;
--text-color-secondary: 96, 105, 132; /* less bright, for unimportant bits */
--background-color: 38, 18, 34;
--background-color-brighter: 45, 21, 41;
// rhythmbox database collage tool
//
// dependencies: jimp, xml-js
//
// this code is licensed under a [copyleft](https://en.wikipedia.org/wiki/Copyleft) license: this code is completely okay to modify, copy, redistribute and improve upon, as long as you keep this license notice
// ↄ Jill "oatmealine" Monoids 2021
const Jimp = require('jimp');
const fs = require('fs');
const { xml2js } = require('xml-js');
@oatmealine
oatmealine / .luacheckrc
Created October 30, 2021 03:51
Luacheck config meant to be used for Isaac modding
-- isaac-related luacheck config
-- please use luacheck while possible!!
-- if you disagree with any of the policies given here
-- id suggest you discuss it with the team before you change it
-- (unless its a global mistake or similar)
return {
-- isaac has lots of globals and doesnt just drop them into one Isaac
-- namespace like the name would imply. fun!
@oatmealine
oatmealine / formulas.js
Created December 27, 2021 19:11
Formulas.exe but in plain JS
// skills
function calculateSkill(exp, mult = 1) {
return Math.max(Math.floor(mult * (32 * Math.log(exp + 534.5) - 200)), 1);
}
function calculateExp(skill, mult = 1) {
return Math.exp((skill / mult + 200) / 32) - 534.6;
}
-- constants
SCREEN_WIDTH = 24
SCREEN_HEIGHT = 24
sw, sh = SCREEN_WIDTH, SCREEN_HEIGHT
-- timer
local ticks = 0
local time = 0