Skip to content

Instantly share code, notes, and snippets.

View TeoTwawki's full-sized avatar
🤒
sick of social features on github

TeoTwawki

🤒
sick of social features on github
View GitHub Profile
[3:00 PM] Nyu: ibm left, one less active and enthusiastic contributor.
[3:04 PM] Caladius: hes still alive, just not in this discord
[3:06 PM] Zynjec: since you're framing that statement like it's our fault, why do you feel that way?
[3:07 PM] Lotus: I'ma probably join him soon lmao
[3:07 PM] Zynjec: same
[3:08 PM] Autkast: :kill_me: pact
[3:10 PM] Nyu: I don't care who's fault it is actually, just stating it.
[3:11 PM] Zynjec: why bring it up if you don't care then?
[3:13 PM] Nyu: Oh, probably because I care about the fact that DSP lost one of it's enthusiastic and active contributor, like I just said.
[3:14 PM] Autkast: Contributors ebb and flow man. This time last year I was submitting stuff constantly.
@TeoTwawki
TeoTwawki / Prose.md
Created October 24, 2019 01:15 — forked from shakna-israel/Prose.md
Obfuscating Lua

Obfuscating Lua

I've had some fun ruining Python recently, but Python is what I use at work. I prefer to use other languages when I'm doing stuff for fun.

And obfuscation only really makes sense in fun and competition - given a suffeciently determined actor, your code will be reverse engineered. Unless you write it in Malboge.

For this particular experiment, I'll be using Lua 5.3. As I'll probably need to dive into some of the less portable functions to commit our atrocities, I can't guarantee it will run on other popular versions like Luajit or 5.1.


@TeoTwawki
TeoTwawki / MHMU-SalesDept.csv
Last active April 16, 2018 00:44
AH Bot : auto stock list
itemid name sell01 buy01 price01 stock01 sell12 buy12 price12 stock12
4376 meat-jerky 0 0 175 0 1 0 2000 30
5721 crab-sushi 0 0 500 0 1 0 6000 30
4271 rice-dumpling 0 0 1000 0 1 0 12000 30
5148 squid-sushi 0 0 1250 0 1 0 15000 30
5766 butter-crepe 0 0 1250 0 1 0 15000 30
4536 blackened-frog 0 0 1000 0 1 0 12000 30
4411 dhalmel-pie 0 0 1750 0 1 0 21000 30
4413 apple-pie 0 0 1750 0 1 0 21000 30
4421 melon-pie 0 0 2000 0 1 0 24000 30
@TeoTwawki
TeoTwawki / example.lua
Last active April 6, 2019 08:40
Weighted Random Selection in pure Lua
function WeightedRandomSelect(tableID)
local outerTable =
{
[1] =
{
{weightValue, thingValue},
{weightValue, thingValue}
},
[2] =
{
@TeoTwawki
TeoTwawki / css edits.md
Last active January 26, 2017 10:37
css to fix crappy discord fonts

This wil get updated as I make changes to my own UI. For best results use these snippets with better discord instead of doing control+shit+i and trying to sift through Discords mess.

Specify font size of chat:

.message-content {font-size: 120%}

Specify a font:

-----------------------------------
-- Roam Path
-----------------------------------
local path =
{
-13, 28, 305,
180, 23, 333,
293, 24, 332,
360, 33, 383,
require("scripts/globals/npc_util"),
-- most probable example usage after binding adjustment (uncertain)
-- player:comepletQuest(QUESTS.SANDORIA.A_SENTRY_S_PERIL);
QUESTS =
{
{[SANDORIA] = 0} =
{
A_SENTRY_S_PERIL = 0, -- ± --
@TeoTwawki
TeoTwawki / setskill.lua
Last active April 15, 2016 22:36
set skill and rank by ID
---------------------------------------------------------------------------------------------------
-- func: @setskill <skill ID> <skill Level> <skill Rank> <target>
-- desc: Sets specified skill. The IDs can be found in status.lua
-- will report targets current skill lv and craft rank if no values specified.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "iiis"
@TeoTwawki
TeoTwawki / shop_example.lua
Created April 12, 2016 22:44
example of an NPC static shop script
function onTrigger(player,npc)
player:showText(npc, TEXT_ID_HERE);
local stock =
{
4238, 5000, -- HQ Fire Crystal
4239, 5000, -- HQ Ice Crystal
4240, 5000, -- HQ Wind Crystal
4241, 5000, -- HQ Earth Crystal
4242, 5000, -- HQ Lightning Crystal
4243, 5000, -- HQ Water Crystal
@TeoTwawki
TeoTwawki / plogger.lua
Created December 28, 2015 01:28
packet logging - fork and edit as needed.
--[[
plogger.lua (c) 2013-2014 Hypnotoad
(c) 2014 atom0s
This addon is based on the old plugin for LuaCast (Ashita v1) by
Hypnotoad. I, atom0s, do not take any credit for the work of this
plugin outside of updating it to an addon for Ashita v2.
]]--
_addon.author = 'atom0s & Hypnotoad';