... to my blog style space for easier contribution by third parties and to provide what I believe to be an easier reading experience. Please field all enquiries and issues to the source repository.
A metatable in Lua defines various extraneous behaviors for a table when indexed, modified, interacted with, etc. They are Lua's core metaprogramming feature; most well known for being useful to emulate classes much like an OOP language.
Any table (and userdata) may be assigned a metatable. You can define a metatable for a table as such:
-- Our sample table
local tab = {}
-- Our metatable
local metatable = {
-- This table is then what holds the metamethods or metafields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![allow(unused)] // silence unused warnings while exploring (to comment out) | |
| use sqlx::postgres::{PgPoolOptions, PgRow}; | |
| use sqlx::{FromRow, Row}; | |
| // Youtube episode: https://youtu.be/VuVOyUbFSI0 | |
| // region: Section | |
| // Start postgresql server docker image: |
due to html failing to want to format, i've migrated this writeup to a gist. also, since by having your extension on the chrome web store you're basically open-source, the files referred to are ATTACHED to this gist. ha!
a small writeup on the reverse-engineering of dyknow (school-wide chrome extension
i felt like doing a little analysis on dyknow, to see what goes on in it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.bukkit.Bukkit; | |
| import org.bukkit.event.Event; | |
| import org.bukkit.event.EventPriority; | |
| import org.bukkit.event.Listener; | |
| import org.bukkit.event.HandlerList; | |
| import org.bukkit.plugin.Plugin; | |
| import org.bukkit.plugin.EventExecutor; | |
| import java.util.function.Consumer; | |
| public interface Events extends Listener, EventExecutor { |