Skip to content

Instantly share code, notes, and snippets.

View LolloDev5123's full-sized avatar
☣️

LolloDev LolloDev5123

☣️
  • Indirecta
  • Italy
  • 03:48 (UTC +02:00)
View GitHub Profile
@Alexior3000
Alexior3000 / BASIC2.0.lua
Last active September 11, 2024 16:28
Chat GPT Version of the commodore basic (simple)
local variables = {}
local program = {}
local running = false
local totalMemory = 38911 -- Pamięć BASIC w Commodore 64 w bajtach
local basicBytesFree = totalMemory
local programName = ""
-- Funkcja do obliczania ilości wolnej pamięci
local function calculateFreeMemory()
local usedMemory = 0
@MCJack123
MCJack123 / taskmaster.lua
Last active August 29, 2024 17:43
Taskmaster: A simple and highly flexible task runner/coroutine manager for ComputerCraft
-- Taskmaster: A simple and highly flexible task runner/coroutine manager for ComputerCraft
-- Supports adding/removing tasks, early exits for tasks, event white/blacklists, automatic
-- terminal redirection, task pausing, promises, and more.
-- Made by JackMacWindows
-- Licensed under CC0 in the public domain
--[[
Examples:
- Run three functions in parallel, and wait for any to exit.
@afonya2
afonya2 / AES.lua
Last active May 29, 2024 12:56
an AES implementation for CC: Tweaked
-- Advanced Encryption Standard (AES) libary for CC: Tweaked
-- ©️ 2024 afonya All rights reserved.
-- MIT License
-- Link: https://gist.github.com/afonya2/489c3306a7d85f8f9512df321d904dbb
-- Documentation: https://gist.github.com/afonya2/489c3306a7d85f8f9512df321d904dbb#file-docs-md
-- Last updated: February 25 2024
local SBox = {[0]=99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118,
202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192,
183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21,
4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117,
@MineRobber9000
MineRobber9000 / basic.lua
Last active August 29, 2024 17:38
Dartmouth BASIC interpreter
local functions = {}
for v in ("ABS ATN COS EXP INT LOG RND SIN SQR TAN "):gmatch("(.-) ") do
functions[v]=true
end
for c in ("ABCDEFGHIJKLMNOPQRSTUVWXYZ"):gmatch("(.)") do
functions["FN"..c]=true
end
local statements = {}
for v in ("LET PRINT END READ DATA GOTO IF FOR NEXT GOSUB RETURN DEF DIM REM STOP INPUT "):gmatch("(.-) ") do
statements[v]=true
@MCJack123
MCJack123 / ans.lua
Last active August 29, 2024 17:41
Tabled Asymmetrical Numeral Systems (aka Finite State Entropy) for Lua 5.2 (PoC)
-- Tabled Asymmetrical Numeral Systems (aka Finite State Entropy) for Lua 5.2
--
-- MIT License
--
-- Copyright (c) 2023 JackMacWindows
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@MCJack123
MCJack123 / M6502.lua
Created March 17, 2023 07:05
MOS 6502 emulator written in pure Lua
-- MIT License
--
-- Copyright (c) 2018-2022 JackMacWindows
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
@Gimanua
Gimanua / base64.lua
Last active August 6, 2023 13:43
Computercraft Teletext
--[[
base64 -- v1.5.3 public domain Lua base64 encoder/decoder
no warranty implied; use at your own risk
Needs bit32.extract function. If not present it's implemented using BitOp
or Lua 5.3 native bit operators. For Lua 5.1 fallbacks to pure Lua
implementation inspired by Rici Lake's post:
http://ricilake.blogspot.co.uk/2007/10/iterating-bits-in-lua.html
@dol
dol / chunked_encoding.lua
Created December 19, 2022 23:00
Chunked encoding in Lua
function chunked_encoding(socket, data)
local chunk_size = 1024
-- Iterate over the data in chunks of chunk_size
for i = 1, #data, chunk_size do
local chunk = data:sub(i, i + chunk_size - 1)
-- Calculate the length of the chunk in hexadecimal format
local length = string.format("%X\r\n", #chunk)
@LolloDev5123
LolloDev5123 / @mattupham Omegle IP Location Finder
Created August 16, 2022 16:28 — forked from mattupham/@mattupham Omegle IP Location Finder
@mattupham Omegle IP Location Finder - Ask Questions in our Discord, links below
// Subscribe on YouTube, and follow on TikTok (@mattupham)! Socials found below:
// https://mattupham.com/links
// @ me on Discord with any questions!
https://link.mattupham.com/discord
// --------------------------------------------
// PLEASE REPLACE "your-api-key-here" WITH AN
// API KEY FROM https://ipgeolocation.io/
let apiKey = "your-api-key-here";
@Rerumu
Rerumu / luau_in_luau.lua
Last active May 22, 2024 14:49
Luau translated to Luau, as a Studio compatible script
This file has been truncated, but you can view the full file.
-- Roblox's Luau as a Luau script
-- Translated using https://github.com/Rerumu/Wasynth
local luau_script = [[
print("Hello, World!")
]]
local Integer = (function()
local Numeric = {}