I hereby claim:
- I am luastoned on github.
- I am luastoned (https://keybase.io/luastoned) on keybase.
- I have a public key ASBiggqTUi4dW-rpgujO9NpPzCFb93rdVkDr02UmNMQlOAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function boom(ply, cmd, tbl) | |
local size = math.min(500, #tbl > 0 and tbl[1] or 5) | |
local trace = ply:GetEyeTrace() | |
ply:Msg("Boom: " .. size) | |
World(0):AddExplosion(trace.HitPos, size, false, true) | |
end | |
command.Add("boom", boom) |
Config for Atom.io
local nw = require("nw") | |
local app = nw:app() -- get the app singleton | |
local win = app:window({ -- create a new window | |
w = 1280, h = 720, -- specify window"s frame size | |
title = "SndVis", -- specify window"s title | |
visible = false, -- dont show it yet | |
resizeable = false, | |
maximizable = false, | |
fullscreenable = false, |
local ffi = require("ffi") | |
ffi.cdef([[ | |
int QueryPerformanceCounter(int64_t *lpPerformanceCount); | |
int QueryPerformanceFrequency(int64_t *lpFrequency); | |
]]) | |
local function QueryPerformanceCounter(int64) | |
int64 = int64 or ffi.new("int64_t[1]") | |
ffi.C.QueryPerformanceCounter(int64) |
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": "\t", | |
"color-shorthand": false, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": false, | |
"quotes": "double", |