Config for Atom.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
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: