Skip to content

Instantly share code, notes, and snippets.

@Divran
Divran / holocorners.txt
Last active February 3, 2022 17:48
holo corners
@name holo corners
local E = entity():isWeldedTo()
local Min = E:aabbMin()
local Max = E:aabbMax()
local Size = Max-Min
local Center = (Max+Min)/2
local A = ang()
#make slightly transparent for testing
@Divran
Divran / loot.js
Last active March 22, 2021 17:04
mwo loot bag reward summary
(()=>{
let rows = $(".table.table-hover tr");
let result = {"Consumables":{Total:0},"Cockpit Items":{Total:0}};
function addCons(name) {
result.Consumables[name] = (result.Consumables[name]||0)+1;
result.Consumables.Total++;
}
let match = {
"Artillery": function(text) {addCons("Artillery");},
"Air Strike": function(text) {addCons("Air Strike");},
@Divran
Divran / mandelbrot.txt
Last active December 8, 2020 19:07
starfall mandelbrot generator
--@name mandelbrot
--@author Divran
--@client
local x, y = -0.7, 0 -- offset position of mandelbrot set
local w, h = 1.3, 1.3 -- size of mandelbrot set
local rt_w, rt_h = 1024, 1024 -- size of RT
local max_iterations = 100
local function quotaCheck(n)
@Divran
Divran / train_rerailer.md
Last active June 22, 2020 18:33
train re-railer v1

Divran's re-railer E2

hologram train

real train teleported

Crowbar commands

  • Left click: Scan train (left click the front main body of the train, the locomotive)
  • Right click: Hold this and drag from one side of the rails to the other to start scanning the track
  • Reload: After scanning the track, press reload to teleport the train