Skip to content

Instantly share code, notes, and snippets.

View Minotorious's full-sized avatar
🐧
Your Friendly Penguin

Minotorious Minotorious

🐧
Your Friendly Penguin
View GitHub Profile
@Minotorious
Minotorious / componentProximityTrigger.lua
Last active January 18, 2021 23:13
A custom component for activating a particle emitter when a villager walks by an object in Foundation by Polymorph Games
--[[---------------------------------------------------------------------------\
| ||\\ //|| /|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\ |
| || \\ // || (o_ / | CUSTOM COMPONENT | |
| || \\// || //\/ | ---- | |
| || \/ || V_/_ | PROXIMITY TRIGGER | |
| || || |‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗/ |
\---------------------------------------------------------------------------]]--
--[[ Anyone is free to use this code for their mods so long as
credits are attributed to Minotorious in form of a link to
@Minotorious
Minotorious / python_decorator_guide.md
Created October 9, 2020 20:47 — forked from Zearin/python_decorator_guide.md
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].

@Minotorious
Minotorious / progress.py
Last active December 19, 2020 17:45 — forked from vladignatyev/progress.py
Python command line progress bar with colour
# The MIT License (MIT)
# Copyright (c) 2016 Vladimir Ignatev
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software
# is furnished to do so, subject to the following conditions:
#