Skip to content

Instantly share code, notes, and snippets.

View Erb3's full-sized avatar

Erb3 Erb3

  • Norway
  • 08:34 (UTC +02:00)
View GitHub Profile
@Erb3
Erb3 / LABYnet-all-badges.user.js
Last active September 30, 2024 14:07
Shows all the badges on LABYnet instead of only some! To install click the `Raw` button on the file below.
// ==UserScript==
// @name LABYnet all badges
// @namespace Erb3
// @match https://laby.net/badges
// @grant none
// @version 1.0.3
// @author Erb3
// @downloadURL https://gist.githubusercontent.com/Erb3/fee619dd75b53a683f75b5c293aaf7be/raw/LABYnet-all-badges.user.js
// @supportURL https://gist.githubusercontent.com/Erb3/fee619dd75b53a683f75b5c293aaf7be/raw/LABYnet-all-badges.user.js
// @homepageURL https://gist.githubusercontent.com/Erb3/fee619dd75b53a683f75b5c293aaf7be/raw/LABYnet-all-badges.user.js
@Erb3
Erb3 / CCLogger.lua
Created December 28, 2022 09:05
A simple logger for ComputerCraft
local logger = {}
---Create a new logger object
---@param o table
---@return table
function logger:new(o)
o = o or {} -- create object if user does not provide one
setmetatable(o, self)
self.__index = self
term.clear()
@Erb3
Erb3 / LUAUppercaseBot.js
Last active July 12, 2024 14:22
DiscordJS bot to warn when someone types lua in all caps.
const { Client, GatewayIntentBits } = require('discord.js');
require('dotenv').config();
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent],
});
client.once('ready', () => {
console.log('Ready!');
});