Skip to content

Instantly share code, notes, and snippets.

View MegaLoler's full-sized avatar

Aardbei MegaLoler

View GitHub Profile
@lynn
lynn / vimanim.py
Last active April 16, 2024 15:14
make animated GIFs out of vim commands!
#!/usr/bin/env python3
r"""vimanim - make animated GIFs out of vim commands!
Usage:
vimanim <code> <output.gif> [<input>] [options]
<code> should contain the exact bytes to feed to vim.
This means: raw newlines for <Enter>, raw \x1b bytes for <Esc>, etc.
Some UTF-8 codepoints have special meaning, though:
@HertzDevil
HertzDevil / mm3.lua
Last active September 3, 2016 22:22
how to write an MML compiler
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
--- The Mega Man 3 - 6 MML engine.
-- @module mm3
-- [Commands Reference](https://gist.github.com/HertzDevil/0f868d77a32f92c2877b7ce304f29c53)
local require = require