This file contains 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
/** | |
* A thin event-driven rpc system built with gun | |
* | |
* this implementation is bigger than it needs to be | |
* but it does have some nice quality of life features | |
**/ | |
var DEBUG = true; //Set to false if not debugging garp | |
class Rpc { |
This file contains 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
/** | |
* This is a simple helper library for handling some common responsive ui stuff | |
* | |
* I wrote this because UI dev sucks and I wanted to stop writing the same code | |
* over and over again. | |
* | |
* This also adds some nice things like doing margins if you want. All it does | |
* is modify the bounds of rectangles but it is suprisingly flexable. | |
* | |
* License: I don't care, do anything as long as you don't claim it as your own |