Skip to content

Instantly share code, notes, and snippets.

View NotMyWing's full-sized avatar
🐇
Ben i ben, kjöd i kjöd.

Neeve NotMyWing

🐇
Ben i ben, kjöd i kjöd.
View GitHub Profile
@NotMyWing
NotMyWing / levlua.js
Last active April 21, 2022 02:04
Leveret Lua Evaluation Commons
const commons = {
initialize: function (ctx) {
const newCtx = {};
// Create a shallow copy of the provided context.
for(var key in ctx) {
newCtx[key] = ctx[key];
}
// Since fengari-web is primarily a browser library,
@NotMyWing
NotMyWing / moonPanelRev6.moon
Created June 6, 2019 00:44
Have you ever witnessed an eclipse?
class Map
new: =>
@map = {}
get: (i, j) =>
if not @map[i]
@map[i] = {}
@map[i][j]
class EndlessKeyValuePair
new: (__value) =>
rawset @, "__value", __value
dotcut = (str) ->
pos = (string.find str, "%.") or 0
key = str\sub 1, pos - 1
remainder = str\sub pos + 1, -1
@NotMyWing
NotMyWing / mooncopter.moon
Last active October 6, 2018 14:43
StarfallEx Mooncopter
--@name Mooncopter
--@server
--@model models/squad/sf_plates/sf_plate3x3.mdl
-- Please compile it yourself.
-- Either download the moon compiler,
-- or https://moonscript.org/compiler/
-- don't forget to copy and paste the directives above