Skip to content

Instantly share code, notes, and snippets.

View michlbro's full-sized avatar

Michael michlbro

  • United Kingdom
  • 07:54 (UTC +01:00)
View GitHub Profile
@michlbro
michlbro / conway.lua
Last active July 10, 2022 21:14
Conway's game of life module. Written in luau.
local version = "0.0.2"
--[[
Conway's game of life.
Scripted by XxprofessgamerxX.
]]
--[[
API:
local conway_module = require(path_to_module)
--[[
USAGE:
local import = require(thisModule)
local class = import {"class",...} .from "path/to/class"
class -> {class = {}, ...}
]]--
local loaded = {}
local importer = {}
local methodsAvilable = {else = true, except = true, finally = true}
local function MethodConstructor(fromMeta, name)
return function(func)
fromMeta.methodsCalled[name] = func
return fromMeta
end
end
local function EndResult(fromMeta, resultType, intermediateResult)
if resultType == 2 and fromMeta.methodsCalled["else"] then
fromMeta.methodsCalled["else"](table.unpack(intermediateResult))
local function GetIndexFromNode(nodedIndex, node)
return nodedIndex[node]
end
local function GetNodeFromIndex(indexedNodes, index)
return indexedNodes[index]
end
--[[
--[[
Created by XxprofessgamerxX
25/12/2022.
- Pulls out every single script in game and puts them in a folder.
- Basically using this to find out what scripts exist and just to have an empty map that I can sort out.
- Also deletes the scripts along with its constituents
]]
local pathScriptDump = workspace -- Path
local scriptDumpName = "ScriptsPulled" -- Name
local Lighting = game:GetService("Lighting")
local colour = require(script.ColourModule)
local config = require(script.Config)
-- CONFIG Is a module
--[[
return {
Camera = {
CFrame = CFrame.new(-78.37872314453125, 7.211678504943848, -20.33516502380371) * CFrame.fromOrientation(-0.18555288016796112, 2.489468812942505, -0),
--[[
31/12/2022
03:17AM
o Created by XxprofessgamerxX cause I am lazy (michlbro#0414)
o Contributions:
capetaanal#1984
]]--
local colourMethods = {}
--[[
Created by michlbro#0414
USAGE:
local FractalGenerator = require(<path to this module>)
local fractal = FractalGenerator.new(seed: number?, fractalProperties: table?)
fractalProperties = {
amplitude = number?,
@michlbro
michlbro / filesorter.py
Last active February 25, 2023 17:04
File sorter made in python.
import os, shutil
# "filePathType": r"/filepath"
filePaths = {
"video": r"/videos",
"picture": r"/pictures",
"sound": r"/sounds",
"document": r"/documents",
"jar": r"/jars",
"apk": r"/apks",
[18:37:54] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:37:54] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:37:54] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[18:37:54] [main/INFO]: Forge Mod Loader version 14.23.5.2860 for Minecraft 1.12.2 loading
[18:37:54] [main/INFO]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_312, running on Windows 10:amd64:10.0, installed at C:\Users\Konou\AppData\Roaming\gdlauncher_next\java\1.8.0_312-b07
[18:37:54] [main/INFO]: Searching C:\Users\Konou\AppData\Roaming\gdlauncher_next\instances\Industrial renewal test\..\..\instances\Industrial renewal test\mods for mods
[18:37:54] [main/INFO]: Searching C:\Users\Konou\AppData\Roaming\gdlauncher_next\instances\Industrial renewal test\..\..\instances\Industrial renewal test\mods\1.12.2 for mods
[18:37:54] [main/INFO]: Loading tweaker codechicken.asm.internal.Tweaker from ChickenASM-1.12-1.0.2.