Skip to content

Instantly share code, notes, and snippets.

#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <errno.h>
#include <string.h>
#include <limits.h>
#pragma pack(push, 1)
struct pak_header {
char unknown_0[8];
-- Rev 2
local sin = math.sin
local cos = math.cos
local tan = math.tan
local abs = math.abs
local min = math.min
local max = math.max
local floor = math.floor
local sqrt = math.sqrt
package shader;
import gfx.Vector2f;
class Shader {
static public function main() {
var v = new Vector2f(1, 1);
}
}
{
"name": "cc_gfx",
"license": "MIT",
"description": "Bindings to the gfx library for ComputerCraft.",
"version": "0.0.1",
"classPath": "src/",
"releasenote": "Initial release.",
"contributors": ["James King"]
}
@Yevano
Yevano / blods.lua
Created May 13, 2014 20:48
BLODS - Binary Lua Object (De)Serialization
--[[
BLODS - Binary Lua Object (De)Serialization
]]
--[[
Save on table access.
]]
local pairs = pairs
local type = type
local loadstring = loadstring