Skip to content

Instantly share code, notes, and snippets.

View JamesLiame's full-sized avatar
💭
it doesnt even matter how hard you try

sthraosecal JamesLiame

💭
it doesnt even matter how hard you try
View GitHub Profile
@JamesLiame
JamesLiame / TinyInt.js
Last active February 8, 2025 01:49
JS-port of MySQL (My Sector, Queue, List?) TinyInt
class TinyInt {
constructor(N = 0, sign) {
this.n = N;
switch (sign) {
case "unsigned":
if (N < 256 && N >= 0 && N % 1 == 0) {
return this.n;
} else if (N % 1 == 0) {
return new Error(
"SOLVE ERROR_UNSIGNED_TINYINT: Number OutOfRange (0/255)"
@JamesLiame
JamesLiame / MandelBrotLUA.lua
Created February 5, 2025 08:45
LUA-port of the Mandelbrot Equation
local function mand(iter:number,complex:number)
local znext = 1
local zprev = 1
local itr = iter
while (not (itr <= 0)) {
znext = (zprev * zprev) + complex
zprev = znext
itr -= 1
}
@JamesLiame
JamesLiame / MandelBrotJS.js
Last active February 6, 2025 10:33
JS-port of the Mandelbrot Equation
function mand(reso = 3, complex = 1) {
var znext = 1,
zprev = 1,
iter = reso
while (!(iter <= 0)) {
znext = zprev * zprev + complex;
zprev = znext;
iter -= 1;
}