content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local style = require "core.style" local common = require "core.common" style.background = { common.color "#fdf6e3" } style.background2 = { common.color "#eee8d5" } style.background3 = { common.color "#eee8d5" } style.text = { common.color "#657b83" } style.caret = { common.color "#657b83" } style.accent = { common.co...
nilq/small-lua-stack
null
local log = require "logging" local cf = require "cf" local DB = require "DB" local Log = log:new() require "utils" local db = DB:new { host = 'localhost', port = 3306, database = 'test', username = 'root', password = '123456789', max = 1, } local ok = db:connect() if not ok then return print("连接mysql失败") end...
nilq/small-lua-stack
null
local M = {} function M.config() require("trouble").setup({ indent_lines = false, auto_jump = { "lsp_definitions", "lsp_implementations", "lsp_references", }, use_diagnostic_signs = true, }) end return M
nilq/small-lua-stack
null
--[[ MIT License Portions Copyright (c) 2020 Moisés dos Santos Portions Copyright (c) 2020 Cristofer Martins Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including w...
nilq/small-lua-stack
null
function receive(message) if(message.type == "init") then -- print("SCANNER - Init") local sub = {type="ble_discovery", publisher_node_id=node_id} name = string.char(0x47, 0x69, 0x67, 0x61, 0x73, 0x65, 0x74, 0x20, 0x47, 0x2D, 0x74, 0x61, 0x67) sub["0x09"] = encode_base64(name) print("befor...
nilq/small-lua-stack
null
require "Helpers" function OnAlarm(timer) local pickupEntity = timer:getEntity() local app = Phyre.PApplication.GetApplicationForScript() local character = Helpers.GetEntityWithName("Character_1") local controller = character:getComponent(Phyre.PPhysicsCharacterControllerComponent) if controller then app:res...
nilq/small-lua-stack
null
--[[ flyboy 1.0 By Haxmeister Using orignal Voce code By TheRedSpy ]] -- Helper function local function get_args(str) local quotechar local i=0 local args,argn,rest={},1,{} while true do local found,nexti,arg = string.find(str, '^"(.-)"%s*', i+1) if not found then found,nex...
nilq/small-lua-stack
null
local device = require( "device" ) local composer = require( "composer" ) local gameNetwork = require("gameNetwork") local store = require( "store" ) local myData = require( "mydata" ) local utility = require( "utility" ) local ads = require( "ads" ) local widget = require( "widget" ) io.output():setvbuf("no") -- Don'...
nilq/small-lua-stack
null
--[[ ==============IQ LIST============== **"Math" I : 5Type: 1(a+b=?) 2(?+b=c) 3(a+b=c)?? N : LEVEL **"Missing" I : nil N : 5Type: 1(Number) 2(Arrow) 3(Animal) 4(Emoji) 6SPEED ]] local GT = GAMESTATE:GetCurrentGame():GetName(); local InB = {"Left","Down","Up","Right"} if GT == 'dance' then...
nilq/small-lua-stack
null
--Pinboard tools for ELinks --source from your ~/.elinks/hooks.lua file with `dofile("pinboard.lua")` --CTRL+p to save a bookmark. Brings up an XDialog, first row is to enter a description, second row is for tags --CTRL+o to read later (It's next to p. You try and find a none conflicting keyboard shortcut in Elinks) -...
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.PrintName = "Horizontal Lift Station Signalling" ENT.Category = "Metrostroi (utility)" ENT.Spawnable = false ENT.AdminSpawnable = false -------------------------------------------------------------------------------- function ENT:SetupDataTables() self:NetworkVar("Int", 0, "Acti...
nilq/small-lua-stack
null
--[[ 0.01 [re]Started a new thing! ]] local dataLocation = false -- Location of data, defaults to "/data/" local modulesLocation = false -- Location of modules, defaults to "/data/modules/" local customFileName = false -- Location of 'customization' file, defaults to "/data/custom.modu" local dynaN...
nilq/small-lua-stack
null
if not pcall(require, 'nvim-treesitter') then return {is_enabled = function(bufnr) return 0 end} end local vim = vim local api = vim.api local configs = require'nvim-treesitter.configs' local locals = require'nvim-treesitter.locals' local parsers = require'nvim-treesitter.parsers' local queries = require'nvim-treesi...
nilq/small-lua-stack
null
local cjson = require "cjson.safe" local lfs = require("lfs") local ngx = ngx local type = type local time = ngx.time local shared = ngx.shared local setmetatable = setmetatable --- Create Cache File storage local Cfs = {} -- CacheFileStorage function Cfs:new(opts) local self =...
nilq/small-lua-stack
null
-- define essences and their values alchemy.essence = { {"alchemy:essence_low",1}, {"alchemy:essence_medium",50}, {"alchemy:essence_high",2500}, {"alchemy:essence_upgrade",125000} } -- values of low, medium, high, upgrade essences -- define item values for BREAK process alchemy.items = { ["alchemy:essence_energy"...
nilq/small-lua-stack
null
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local logchat = {} local mattata = require('mattata') local redis = require('libs.redis') function logchat:init() logchat.commands = mattata.commands(self.info.username):comman...
nilq/small-lua-stack
null
-- get the effective BPM at the time (seconds) position (i.e. 2x in /8 signatures) -- @time number -- @return number function TimeMap:get_divided_bpm_at_time(time) return r.TimeMap_GetDividedBpmAtTime(time) end -- converts project QN position to time. -- @qn number -- @return number function TimeMap:q_n_to_time(...
nilq/small-lua-stack
null
pg = pg or {} pg.enemy_data_statistics_30 = { [611] = { cannon = 22, speed = 16, battle_unit_type = 60, speed_growth = 0, pilot_ai_template_id = 10001, air = 0, luck = 0, dodge = 9, cannon_growth = 2000, rarity = 4, reload = 150, reload_growth = 0, dodge_growth = 126, id = 611, star = 5, ...
nilq/small-lua-stack
null
require 'torch' require 'xlua' require 'optim' function test() local time = sys.clock() if average then cachedparams = parameters:clone() parameters:copy(average) end ----test over test data print('==>testing on test set: ') for t = 1, testIm:size(1) do ----disp progress xlua.progress(t,te...
nilq/small-lua-stack
null
-- locals and speed local AddonName, Addon = ... local _G = _G local CreateFrame = CreateFrame local hooksecurefunc = hooksecurefunc local GetActionButtonForID = GetActionButtonForID local TEXTURE_OFFSET = 3 -- main function Addon:Load() self.frame = CreateFrame('Frame', nil) -- set OnEvent handler self.fram...
nilq/small-lua-stack
null
function handleLoadPackage(lpparam) start() end function after(param) local result = param:getResult() log("result:"..result) end function before(param) local arg0 = param.args[5] log("arg0:"..tostring(arg0)) end function start() log('start ::') --local mHook =methodHook(function(pa...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Handler.......... : onDecreaseStep -- Author........... : -- Description...... : -------------------------------------------------------------------------------- --------------------------------------------------------------------...
nilq/small-lua-stack
null
-- Prosody IM -- Copyright (C) 2008-2013 Matthew Wild -- Copyright (C) 2008-2013 Waqas Hussain -- Copyright (C) 2014 Kim Alvefur -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local new_sasl = require "util.sasl".new; local base64 = require "util.e...
nilq/small-lua-stack
null
-- npm install -g vim-language-server require'lspconfig'.vimls.setup { on_attach = require'garbray.config'.common_on_attach }
nilq/small-lua-stack
null
-- Example: Stateful game require('passion.init') require('Game') require('Game_MainMenu.lua') require('Game_Play.lua') function love.load() math.randomseed( os.time() ) game = Game:new() end function love.draw() passion.draw() game:draw() end function love.update(dt) passion.update(dt) game:update(d...
nilq/small-lua-stack
null
--[[ ===================================================================== ** More Blocks ** By Calinou, with the help of ShadowNinja and VanessaE. Copyright (c) 2011-2015 Calinou and contributors. Licensed under the zlib license. See LICENSE.md for more information. ===================================================...
nilq/small-lua-stack
null
-- put user settings here -- this module will be loaded after everything else when the application starts -- it will be automatically reloaded when saved local core = require "core" local keymap = require "core.keymap" local config = require "core.config" local style = require "core.style" ---------------------------...
nilq/small-lua-stack
null
-- LOADING SCREEN local img = love.graphics.newImage('img/loading.png') love.graphics.clear(0, 0, 0) love.graphics.draw(img) love.graphics.present() -- FONT -- for lib.Base.lua can get font's height local font = love.graphics.newFont('font/SourceHanSansCN-Medium.otf', 20) love.graphics.setFont(font) -- IMPORT CLASS...
nilq/small-lua-stack
null
bot_token = "349913459:AAGXRCpKzyhKoosnksl6gs5rJAWuVwx4gOE" send_api = "https://api.telegram.org/bot"..bot_token bot_version = "Testing" sudo_id = 368305537
nilq/small-lua-stack
null
local Postal = LibStub("AceAddon-3.0"):GetAddon("Postal") local Postal_DoNotWant = Postal:NewModule("DoNotWant", "AceHook-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("Postal") Postal_DoNotWant.description = L["Shows a clickable visual icon as to whether a mail will be returned or deleted on expiry."] -- luachec...
nilq/small-lua-stack
null
object_tangible_event_perk_remembrance_day_missing_sign = object_tangible_event_perk_shared_remembrance_day_missing_sign:new { } ObjectTemplates:addTemplate(object_tangible_event_perk_remembrance_day_missing_sign, "object/tangible/event_perk/remembrance_day_missing_sign.iff")
nilq/small-lua-stack
null
data:extend( { { type = "item", name = "wooden-board", icon = "__Engineersvsenvironmentalist__/graphics/icons/electronics/wooden-board.png", flags = {"goes-to-main-inventory"}, subgroup = "boards", order = "a-1", stack_size = 200 }, { type = "recipe", name = "wooden-board", ...
nilq/small-lua-stack
null
local tableutil = require("acid.tableutil") local strutil = require("acid.strutil") local tb_eq = tableutil.eq local to_str = strutil.to_str function test_nkeys(t) local cases = { {0, {}, 'nkeys of empty'}, {1, {0}, 'nkeys of 1'}, {2, {0, nil, 1}, 'nkeys of 0, nil and 1'}, {2, {0, ...
nilq/small-lua-stack
null
--[[ [WIP] Currently, I don't recommend to use it. It may change. ]] ---@class money_util : module local M = {} --#region constants local call = remote.call --#endregion -- Events local on_transfered_player_money_event local on_transfered_force_money_event ---@type table<string, integer> M.custom_events = {} ...
nilq/small-lua-stack
null
local Path = require('path') local paths = { "/foo/bar/../baz/./42", "/foo/bar/../baz/./42/", "foo/bar/../baz/./42", "foo/bar/../baz/./42/", "/foo/../", "/foo/..", "foo/../", "foo/..", "/foo/baz/../", "/foo/baz/..", "foo/baz/../", "foo/baz/..", "/foo/baz/../hello.world", "/foo/baz/../this.i...
nilq/small-lua-stack
null
local url = "https://steady-strudel-db4d34.netlify.app/welcomemessage.html" local GUI = script.Parent.Parent local RS = game:GetService("ReplicatedStorage") local RFs = RS:WaitForChild("RFs") local rF = RFs:WaitForChild("HandleHTTPRequest") local textLabel = script.Parent:WaitForChild("TextLabel") local TB_Close = scr...
nilq/small-lua-stack
null
local TextService = game:GetService('TextService') local Roact = require(script:FindFirstAncestor('MazeGeneratorPlugin').Roact) local Dictionary = require(script.Parent.Parent.Dictionary) local e = Roact.createElement local FitText = Roact.Component:extend('FitText') function FitText:init() self.ref = Roact.creat...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
nilq/small-lua-stack
null
local CCD = {} CCD.math = {} function CCD.math.dist(x1,y1, x2,y2) return ((x2-x1)^2+(y2-y1)^2)^0.5 end function CCD.LineInRect(pX, pY, pRayon, rX, rY, rW, rH) -- temporary variables to set edges for testing local oldX = pX local oldY = pY local testX = pX local testY = pY -- which edge is...
nilq/small-lua-stack
null
local index = { 404 = "Failed to find resource", 405 = "Brixy refused server startup signal", 406 = "Server not accepting new packets", 407 = "Endpoint source is invalid", 408 = "Endpoint requires authentication", 4081 = "Endpoint authentication key is invalid", 409 = "Failed to ping clients...
nilq/small-lua-stack
null
function widget:GetInfo() return { name = "FloatDodge", desc = "Makes Buyos sink while reloading. Version 1.0", author = "terve886", date = "2020", license = "PD", -- should be compatible with Spring layer = 2, handler = true, --for adding customCommand into UI e...
nilq/small-lua-stack
null
RestartGoing = false; function PrintMessageAll ( Text ) Msg(Text .. '\n'); for k, v in pairs(player.GetAll()) do if v and v:IsValid() and v:IsPlayer() then v:Notify(Text) end end end function GM.RestartMap ( Player, Command, Args ) if !Player:Owner() then return false; end if RestartGoing then return ...
nilq/small-lua-stack
null
local A = Brazier.Array local F = Brazier.Function local M = Brazier.Maybe local function exploder(x) error("This code should not get run.") end -- Any => Number => Number? local function bLengthD(x) return function(default) if type(x) == "string" then return string.len(x) elseif type(x) == "table" th...
nilq/small-lua-stack
null
MgrCoroutine = {} function MgrCoroutine.Init () end function MgrCoroutine.DoCoroutine (routine) end function MgrCoroutine:Equals (obj) end function MgrCoroutine:GetHashCode () end function MgrCoroutine:GetType () end function MgrCoroutine:ToString () end
nilq/small-lua-stack
null
local _, private = ... if private.isClassic then return end --[[ Lua Globals ]] -- luacheck: globals pairs --[[ Core ]] local Aurora = private.Aurora local Skin = Aurora.Skin local F, C = _G.unpack(Aurora) function private.FrameXML.RolePoll() Skin.DialogBorderTemplate(_G.RolePollPopup.Border) F.Reskin(_G.Rol...
nilq/small-lua-stack
null
ItemConfig["wooden_chair"] = { name = "Wooden Chair", type = 'placeable', category = "Furniture", modelid = 1262, max_carry = 1, recipe = { wood = 10 }, price = 25, enter_vehicles_while_equipped = false, interactions = { equip = { sound = "sounds/strug...
nilq/small-lua-stack
null
--- === hydra.packages === --- --- Package management for third party Hydra libraries. --- --- Put `hydra.packages.setup()` at the top of your initfile; it does nothing if it's already been setup. --- --- See `hydra.packages.list` and `hydra.packages.install` to get started. hydra.packages = {} --- hydra.packages.cac...
nilq/small-lua-stack
null
-- Automatically generated file: Job Points return { [64] = {id=64,en="Mighty Strikes Effect",ja="マイティストライク効果アップ",endesc="Increases physical accuracy while under the effects of Mighty Strikes.\nIncrease physical accuracy by 2.",jadesc="マイティストライク中、物理命中をアップします。\n能力値1で物理命中を+2します。"}, [66] = {id=66,en="Berserk ...
nilq/small-lua-stack
null
--[[-------------------------------------------------------------------- Gazelle: a system for building fast, reusable parsers bc_constants.lua Constants for writing compiled grammars in Bitcode format. See FILEFORMAT for more details. Copyright (c) 2007 Joshua Haberman. See LICENSE for details. ------...
nilq/small-lua-stack
null
local QuickStart = Game:addState('QuickStart') local getUVs = require('getUVs') local quads = { attackers = { 'player_1_body', 'player_2_body' }, defenders = { 'player_1_life', 'player_2_life' } } local function getMesh(sprite_name) local sprites = game.sprites local ua, va, ub, vb = getUV...
nilq/small-lua-stack
null
describe("Complex number", function() local complex = require("math.complex") local function assert_almost_same(a, b) assert.truthy(math.abs(a.real - b.real) < 1e-6) assert.truthy(math.abs(a.imaginary - b.imaginary) < 1e-6) end it("can be constructed", function() assert.same({ real = 33, imaginary = 42 }, com...
nilq/small-lua-stack
null
return { img = 'hornbeast.png', maxframe = {i=2, j=7}, framesize = lux.geom.vector:new {64,64}, hotspot = lux.geom.vector:new {32,50} }
nilq/small-lua-stack
null
local utils = {} local function _explicit_struct_uniforms_usage(s) local struct_list = {} for struct_name, members in s:gmatch('struct ([%w_]*)%s*{(.*)};') do struct_list[struct_name] = members end local explicit_usage = '' for k, v in pairs(struct_list) do local t = {} for name in s:gmatch('uniform%s+' .. ...
nilq/small-lua-stack
null
--[[ LoveCodify is a Wrapper Class to run Codify/Codea Scripts with Love2D Copyright (c) 2010 Florian^SiENcE^schattenkind.net Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php You can use the http://love2d.org/ runtime to code Codify Apps on MacOSX/Linux/Windows. Beware, it's unfinish...
nilq/small-lua-stack
null
modifier_mutation_death_explosion = class({}) function modifier_mutation_death_explosion:IsHidden() return true end function modifier_mutation_death_explosion:IsPurgable() return false end function modifier_mutation_death_explosion:RemoveOnDeath() return false end function modifier_mutation_death_explosion:DeclareFun...
nilq/small-lua-stack
null
function AreStagePlayerModsForced() return GAMESTATE:IsAnExtraStage() or (GAMESTATE:GetPlayMode() == "PlayMode_Oni") end function AreStageSongModsForced() local pm = GAMESTATE:GetPlayMode() local bOni = pm == "PlayMode_Oni" local bBattle = pm == "PlayMode_Battle" local bRave = pm == "PlayMode_Rave" return GAMEST...
nilq/small-lua-stack
null
local Symbol = require("lunar.compiler.semantic.symbol") local SymbolTable = require('lunar.compiler.semantic.symbol_table') local ClassSymbol = setmetatable({}, { __index = Symbol, }) ClassSymbol.__index = setmetatable({}, Symbol) function ClassSymbol.new(...) return ClassSymbol.constructor(setmetatable({}, ClassS...
nilq/small-lua-stack
null
--[[-- The <code>horse3d.uiplane.object</code> type represents a 2d object on a @{horse3d.uiplane.plane|UI plane}. By default there is one UI plane overlaying the screen, but you can add more planes that are also placed in the world e.g. to represent virtual computer screens. To add an object call @{horse...
nilq/small-lua-stack
null
local PushUISize, PushUIColor, PushUIStyle, PushUIAPI, PushUIConfig, PushUIFrames = unpack(select(2, ...)) PushUIFrameActionBarLayout = CreateFrame("Frame", "PushUIFrameActionBarLayout", PushUIFrameActionBarFrame) PushUIFrames.AllFrames[#PushUIFrames.AllFrames + 1] = PushUIFrameActionBarLayout --table.i...
nilq/small-lua-stack
null
-- 1-2-3 Skip List -- @author Validark -- @url https://github.com/Validark/1-2-3-Skip-List local SkipList = {} SkipList.__index = SkipList function SkipList.new(nodeToString) return setmetatable({}, SkipList) end function SkipList.__index:Add(value) local right, left = self:Search(value) left[1] = { value = value...
nilq/small-lua-stack
null
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA include("shared.lua") SWEP.Instructions = "Primary: Drop Bomb\nSecondary: Warning Siren" SWEP.DrawAmmo = false SWEP.DrawCrosshair = false killicon.Add("weapon_bigbomb", "weapons/killicon/weapon_bigbomb", Colo...
nilq/small-lua-stack
null
creature_night_stalker_darkness = class({}) LinkLuaModifier( "modifier_creature_night_stalker_darkness_thinker", "modifiers/modifier_creature_night_stalker_darkness_thinker", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( "modifier_creature_night_stalker_darkness_blind", "modifiers/modifier_creature_night_stalker_darkness...
nilq/small-lua-stack
null
-- Default values chosen if none are currently available local TADO_DEFAULT_ON_CELSIUS = "21.00" local TADO_DEFAULT_ON_FAHRENHEIT = "70.00" local TADO_DEFAULT_ON_FANSPEED = "AUTO" local TADO_DEFAULT_ON_WATER_CELSIUS = "55.00" local TADO_DEFAULT_ON_WATER_FAHRENHEIT = "130.00" local TADO_DEFAULT_EXPIRATION = "MANUAL" lo...
nilq/small-lua-stack
null
local classic = require 'classic' local AbstractAgent = classic.class('AbstractAgent') AbstractAgent:mustHave('observe') AbstractAgent:mustHave('training') AbstractAgent:mustHave('evaluate') return AbstractAgent
nilq/small-lua-stack
null
--[[ Netherstorm -- Hatecryer.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- BlackHer0, Aug...
nilq/small-lua-stack
null
_G.http = require('coro-http') _G.discord, _G.json = require('discordia'), require('json') _G.config = json.parse(require('fs').readFileSync('config.json')) http.createServer(config[2], tonumber(config[3]), function(request, content) if request.method == 'POST' then local data = json.parse(conten...
nilq/small-lua-stack
null
local nvim_lsp = require("lspconfig") local data_path = vim.fn.stdpath("data") vim.fn.sign_define( "LspDiagnosticsSignError", { text = "", texthl = "LspDiagnosticsSignError", numhl = "LspDiagnosticsSignError" } ) vim.fn.sign_define( "LspDiagnosticsSignWarning", { text = "", texthl = "LspDiagnosticsSignWarnin...
nilq/small-lua-stack
null
---This configuration file pulls info about a given harddrive -- Any variable in the 'config' table in smb-psexec.nse can be overriden in the -- 'overrides' table. Most of them are not really recommended, such as the host, -- key, etc. overrides = {} --overrides.timeout = 40 modules = {} local mod mod = {} mod.upl...
nilq/small-lua-stack
null
function onEvent(name, value1, value2) if name == 'zoom' then setProperty('defaultCamZoom',1.5); end duration = tonumber(value1); if duration < 0 then duration = 0; end end
nilq/small-lua-stack
null
return {'alziende','alzheimer','alzheimerpatient','alziend','alzijdig','alzijdigheid','alzo','alzheimerdiagnose','alzheimerpatienten','alziende','alzijdige'}
nilq/small-lua-stack
null
local Component = require('vgit.Component') local Interface = require('vgit.Interface') local icons = require('vgit.icons') local buffer = require('vgit.buffer') local VirtualLineNrDecorator = require('vgit.decorators.VirtualLineNrDecorator') local AppBarDecorator = require('vgit.decorators.AppBarDecorator') local rend...
nilq/small-lua-stack
null
buya_library_mob = { on_spawn = function(mob) setBuyaLibraryQuestMobDifficulty(mob) end, on_healed = function(mob, healer) mob_ai_basic.on_healed(mob, healer) end, on_attacked = function(mob, attacker) mob_ai_basic.on_attacked(mob, attacker) end, move = function(mob, target) mob_ai_basic.move(mob, tar...
nilq/small-lua-stack
null
cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') fn = vim.fn -- to call Vim functions e.g. fn.bufnr() g = vim.g -- a table to access global variables scopes = { o = vim.o, b = vim.bo, w = vim.wo } if not vim.notify then vim.notify = print end if not vim.log then vim.log = { "levels" } vim.log.levels = { "E...
nilq/small-lua-stack
null
project "glslang" kind "StaticLib" language "C++" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. outputdir .. "/%{prj.name}") files { "glslang/**.h", "glslang/**.cpp", "SPIRV/**.h", "SPIRV/**.cpp", } excludes { "glslang/OS...
nilq/small-lua-stack
null
return require('packer').startup(function() use 'wbthomason/packer.nvim' use 'b3nj5m1n/kommentary' use 'karb94/neoscroll.nvim' use 'folke/which-key.nvim' -- To-be configured -- use 'andymass/vim-matchup' -- Themes -- use {'dracula/vim', as = 'dracula'} use {'joshdick/onedark.vim', as = 'onedark'}...
nilq/small-lua-stack
null
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
nilq/small-lua-stack
null
-- Set a dwarf's characteristics according to a predefined profile --@ module = true local help = [====[ assign-profile ============== A script to change the characteristics of a unit according to a profile loaded from a json file. A profile can describe which attributes, skills, preferences, beliefs, goals and face...
nilq/small-lua-stack
null
local parent = ... local split split = function(str, symbol) if symbol == nil then symbol = "%s" end local _accum_0 = { } local _len_0 = 1 for x in string.gmatch(str, "([^" .. symbol .. "]+)") do _accum_0[_len_0] = x _len_0 = _len_0 + 1 end return _accum_0 end local root1 = (split(parent, ".")...
nilq/small-lua-stack
null
--These are tests written to confirm the proper functionality of the logic model. Run in command line --to view comprehensive analysis of what the model is providing. --All calls to the model should respect the formats shown here. -- FOR WINDOWS TESTING package.path= package.path..";C:/LUA/lua/?.lua" package.cpath= pa...
nilq/small-lua-stack
null
local helpers = require("test.unit.helpers") local to_cstr = helpers.to_cstr local eq = helpers.eq local buffer = helpers.cimport("./src/nvim/buffer.h") local window = helpers.cimport("./src/nvim/window.h") local option = helpers.cimport("./src/nvim/option.h") describe('buffer functions', function() local bu...
nilq/small-lua-stack
null
--[[---------------------------------------------------------------------------- - @file views/map.lua ----------------------------------------------------------------------------]]-- local Color = require "core.utils.color" local Config = { tiles = { "blank" }, size = 64, halfSize = 32, viewport = { columns = 10, r...
nilq/small-lua-stack
null
-- -------------------------------------------------------------------------- -- -- BattlegroundTargets esMX Localization (Thanks arkdelkaos) -- -- Please make sure to save this file as UTF-8. ¶ -- -- -----------------------------------------------------------------------...
nilq/small-lua-stack
null
return {'ippon','ippel','ippons'}
nilq/small-lua-stack
null
function sysCall_info() return {autoStart=false} end function sysCall_addOnScriptSuspend() return {cmd='cleanup'} end function close_callback() leaveNow=true end function couldCollide(obj,typ,ignoreModelOverride) local retVal=false if typ==sim.object_shape_type or typ==sim.object_octree_type or t...
nilq/small-lua-stack
null
local BaseTest = require 'lualib.basetest' local oo = require 'lualib.oo' local bigint = require 'lualib.bigint' local RSA = require 'lualib.crypto.rsa' local p1 = bigint.new '0x44145cdc85a07da9b' local p2 = bigint.new '0x17af663a3b84710a1' local RSATest = oo.class(BaseTest) function RSATest:test_rsa() local m ...
nilq/small-lua-stack
null
AddCSLuaFile() local A = "AMBER" local R = "RED" local DR = "D_RED" local B = "BLUE" local W = "WHITE" local CW = "C_WHITE" local SW = "S_WHITE" local G = "GREEN" local RB = "BLUE/RED" local name = "2010 ZL1 Tail Lights" COMPONENT = {} COMPONENT.Skin = 0 COMPONENT.Bodygroups = {} COMPONENT.NotLegacy = true COMPONEN...
nilq/small-lua-stack
null
function filter(gn) target = "exon" for curnode in gn:children() do if (curnode:get_type() == target) then return false end end return true end
nilq/small-lua-stack
null
-- -- ClassMods Options - resource bar panel -- local L = LibStub("AceLocale-3.0"):GetLocale("ClassMods") function ClassMods.Options:Panel_ResourceBar(ord) local DB = _G.ClassMods.Options.DB local playerSpec = GetSpecialization() return { order = ord, type = "group", name = L["Resource Bar"], childGroups ...
nilq/small-lua-stack
null
local kPlayerNameLayer = 7 local kPlayerNameFontSize = 8 local kPlayerNameFontName = Fonts.kAgencyFB_Tiny local kPlayerNameOffset = Vector(11.5, -5, 0) local kPlayerNameColorAlien = Color(1, 189/255, 111/255, 1) local kPlayerNameColorMarine = Color(164/255, 241/255, 1, 1) local kNameTagReuseTimeout = 0.2 local oldIni...
nilq/small-lua-stack
null
local memory = "Tex: "..mfloor(system.getInfo("textureMemoryUsed")/1048576).."mb Lua:"..mfloor(collectgarbage("count")/1024).."mb" if network.getConnectionStatus().isConnected then <do work> end ----- @vlad developer, the flow of events and order of ---- local function myEnterFrame( ) print( "my enter frame" ) ...
nilq/small-lua-stack
null
local M = {} function M.test() local cairo = require "org.xboot.cairo" local M_PI = math.pi local sqrt = math.sqrt local cs = cairo.image_surface_create(cairo.FORMAT_ARGB32, 400, 400) local cr = cairo.create(cs) cr:save() cr:set_source_rgb(0.9, 0.9, 0.9) cr:paint() cr:restore() cr:move_to(50.0, 75.0); ...
nilq/small-lua-stack
null
-- Automatically generated from fading-easy.json return { speed = 1.5, { bpm = 100, mustHitSection = false, altAnim = true, sectionNotes = {} }, { bpm = 100, mustHitSection = false, altAnim = false, sectionNotes = {} }, { bpm = 100, mustHitSection = false, sectionNote...
nilq/small-lua-stack
null
return { ["comment"]="% generated by mtxrun --script pattern --convert", ["exceptions"]={ ["n"]=0, }, ["metadata"]={ ["mnemonic"]="ala", ["source"]="hyph-la-x-classic", ["texcomment"]="%\ % ********** hyph-la-x-classic.tex *************\ %\ % Copyright 2014 Claudio Beccari\ % ...
nilq/small-lua-stack
null
---------------------------- -- Bunny Hop -- -- Created by Skeyler.com -- ---------------------------- SS.HardCodedMaps = {} function SS:AddMap(name, payout, spawnpos, spawnang, spawnareamin, spawnareamax, finishareamin, finishareamax) SS.MapList[name] = {name=name, payout=payout, spawnpos...
nilq/small-lua-stack
null
local _M = { _VERSION = require("acid.paxos._ver") } local tableutil = require( "acid.tableutil" ) function _M.new( elts ) assert( elts[ 2 ] ~= nil and elts[ 3 ] == nil, "invalid nr of elts while creating new round" ) local rnd = tableutil.duplist( elts ) return rnd end function _M.zero() ...
nilq/small-lua-stack
null
project "lua_bit" language "C" files { "bit.c" } links { "lib_lua" } KIND{kind="lua",name="bit"}
nilq/small-lua-stack
null
return function() local Store = require(script.Parent.Store) local loggerMiddleware = require(script.Parent.loggerMiddleware) it("should print whenever an action is dispatched", function() local outputCount = 0 local outputMessage local function reducer(state, action) return state end local store = S...
nilq/small-lua-stack
null
-- Copyright 2006-2018 Mitchell mitchell.att.foicica.com. See License.txt. -- Vala LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local lex = lexer.new('vala') -- Whitespace. lex:add_rule('whitespace', token(lexer.WHITESPACE, ...
nilq/small-lua-stack
null
-- -*- lua -*- local pkgName = "mpi/mpich2" local cmplrV = "cmplr/gcc/4.7" local fn = myFileName():gsub("%.lua$","") local fullVersion = barefilename(fn) local pkgVersion = fullVersion:match("([0-9]+%.[0-9]+)%.?") local pkgNameVer = pathJoin(pkgName,pkgVersion) local modulepa...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: Sling -- Date: 11-01-2019 -- Time: 20:22 -- Made for CiviliansNetwork -- vRPsb = {} vRP = Proxy.getInterface("vRP") Proxy.addInterface("vrp_extended",vRPsb) local userid = 0 local users = {} local server = 0 local playerBlips = {} local hasDrugs = false RegisterNetEvent("vrp_ex...
nilq/small-lua-stack
null