Skip to content

Instantly share code, notes, and snippets.

@zoon
zoon / README-Template.md
Created November 17, 2017 11:34 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@zoon
zoon / update-unity-compiler.cmd
Last active February 25, 2019 11:04
Latest version of Roslyn for unity.incrementalcompiler
@rem update-unity-compiler.cmd
@rem start in */com.unity.incrementalcompiler@X.Y.ZZ folder
@echo off
@rem NOTE: FIND.EXE can clash with git/msys/cygwin's find
for %%a in (%ComSpec%) do set __system=%%~dpa
%__system%FIND.EXE /i "com.unity.incrementalcompiler" package.json 1> NUL
if %errorlevel% neq 0 goto :not_found
nuget install Microsoft.Net.Compilers -verbosity quiet
--[[
* License: MIT
* Based on Quenty's Maid:
https://github.com/Quenty/NevermoreEngine/blob/version2/Modules/Shared/Events/Maid.lua
* Manages the cleaning of events and other things.
* Useful for encapsulating state and make deconstructors easy.
* Adapted for Core by zoon (https://github.com/zoon).
* Supports (and do all necessary checks for):
- regular callbacks (call them on Maid:Destroy())
- CoreObject (:Destroy)
@zoon
zoon / Base64.lua
Last active November 21, 2021 17:23
--[[
Fast, memory conservative, pure Lua 5.3+ Base64 encoder/decoder.
]]
-- The MIT Licence (MIT)
-- Copyright (c) 2021 Andrew Zhilin (https://github.com/zoon)
---@class Base64
local m = {}