I hereby claim:
- I am weswigham on github.
- I am www (https://keybase.io/www) on keybase.
- I have a public key whose fingerprint is 08AD 0E7B 235F E978 4AC5 DCCB D59F 87F6 0C54 00C9
To claim this, I am signing this object:
local color = Color(255, 255, 255, 255) | |
Voxel.display.color = color | |
Voxel.display:zero() | |
local function toggleCore(center, size) | |
for x=center-size,center+size do | |
for y=center-size,center+size do | |
for z=center-size,center+size do | |
if math.sqrt((x-center)^2 + (y-center)^2 +(z-center)^2)<=size then |
local copymember = { | |
['function'] = function(val, memo) | |
local copy; | |
local err = pcall(function() --handling the error is faster than getting debug info | |
copy = loadstring(string.dump(val)) | |
end) | |
if (not copy) then | |
memo[val] = val | |
return val | |
end |
I hereby claim:
To claim this, I am signing this object:
local rawget = rawget | |
local rawset = rawset | |
local setmetatable = setmetatable | |
local tostring = tostring | |
local error = error | |
local type = type | |
local print = print |
local Matrix = require("matrix") | |
print(tostring(Matrix(3))) | |
local mat = Matrix(3) | |
mat[1][1] = 1 | |
mat[1][2] = 2 | |
mat[1][3] = 3 | |
mat[2][1] = 4 | |
mat[2][2] = 5 |
function SomeFunc() | |
local x = 3 | |
local function InnerFunc() | |
x = 22 | |
end | |
InnerFunc() | |
def SomeFunc(): | |
x = 3 | |
def InnerFunc(): | |
x = 22 | |
InnerFunc() | |
return x |
local socket = require("socket") | |
local http = require("socket.http") | |
--Safety is overrated. Pull scripts form the web! | |
local function webclude(target, ...) | |
local body, status, res_head, res_stat = http.request(target, ...) | |
if body then | |
return body |
(function(window) { | |
//Step 1: Promised wrapper for XMLHTTPRequest | |
function Request(url, options) { | |
return new Promise(function(resolve, reject) { | |
if (!options) { | |
if (typeof(url) == "string") { | |
options = { url: url }; | |
} else { |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceRoot}/node_modules/gulp/bin/gulp.js", | |
"stopOnEntry": true, | |
"args": ["test"], |