UTF-16LLE
There are 4 forms of UTF-16:
- UTF-16BE
- UTF-16LE
- UTF-16LBE
- UTF-16LLE
There are 4 forms of UTF-16:
| -- This Lua stack may be faster than the vararg stack, since it does less copies. Haven't benchmarked it yet. | |
| -- However, it can't hold as many elements (13 000 ish elements on my machine, vs uh, 100 000 or more with varargs?). | |
| local function callstack() | |
| local function f(v) | |
| local op, nv = coroutine.yield() | |
| while true do | |
| if op == "push" then | |
| op, nv = coroutine.yield(f(nv)) | |
| elseif op == "pop" then |
Hi! Let's talk about APNG! Note that I'm biased because I made my own animated PNG extension and it also sucks.
So, APNG has the following issues:
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Version: 0.2
Authors: Check Commit Log.
Rationale
Steam chat, the thing you use while playing games, mangles your messages for you... It's especially interesting when sending shell commands.
~/.ssh/config becomes http://ssh/config$HOME/.ssh/config becomes http://HOME/.ssh/config${HOME}/.ssh/config becomes http://HOME}/.ssh/configNote: This list is incomplete. It'll be expanded as time goes on. Feel free to comment below with a link to your Curse profile to help me expand the list.
So apparently Curse has this ridiculous term on their TOS (archived at the time of making this gist):
In order to access some features of the Websites, you will have to create an account. You must be at least 18 years of age to register an account. Minor children may only access account-related features using a parent or guardian’s account so long as the
| local track={} | |
| setmetatable(track,{__mode="v"}) | |
| function setmetatable52(t,mt) | |
| if mt.__gc then | |
| local p = newproxy(true) | |
| track[p] = t | |
| getmetatable(p).__gc = function(p) | |
| local mt = debug.getmetatable(t) | |
| if mt and rawget(mt, "__gc") then | |
| rawget(mt, "__gc")(t) |
[I might throw this one out. Scroll down for the orif idea]
Sometimes when you're coding you end up with things like this:
Hello,
I'd like to talk about abstract enums. In Java, you have enums:
public enum MyEnum {
MY_ENUM_VALUE,
MY_OTHER_ENUM_VALUE;
}| # This makefile is so we can extract some #define's from the C library, as LuaJIT has no way of exposing those #define's. | |
| # Just run `make liolib.lua`. | |
| LIOLIBC= int SEXIO_IOFBF = _IOFBF; \ | |
| int SEXIO_IOLBF = _IOLBF; \ | |
| int SEXIO_IONBF = _IONBF; \ | |
| int SEXIO_SEEK_SET = SEEK_SET; \ | |
| int SEXIO_SEEK_CUR = SEEK_CUR; \ | |
| int SEXIO_SEEK_END = SEEK_END; |