Skip to content

Instantly share code, notes, and snippets.

@luastoned
luastoned / .csscomb.json
Created September 11, 2017 09:20
CSSComb
{
"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",
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)
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,

Config for Atom.io

@luastoned
luastoned / boom.lua
Created October 2, 2014 12:40
LuaCraft Boom
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)

Keybase proof

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: