content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
-------------------------------- -- @module ZipFile -- @parent_module cc -------------------------------- -- Check does a file exists or not in zip file<br> -- param fileName File to be checked on existance<br> -- return true whenever file exists, false otherwise<br> -- since v2.0.5 -- @function [parent=#Zi...
nilq/small-lua-stack
null
local mysql = exports.mysql -- towing impound lot local towSphere = createColPolygon(2789.131835, -1468.5177, 2789.131835, -1468.5177, 2789.133544, -1425.358398, 2820.9104, -1425.353027, 2820.912597, -1467.778808) -- pd impound lot local towSphere2 = createColPolygon(1540.209594, -1602.937377, 1540.209594, -1602....
nilq/small-lua-stack
null
function KD(key, mouse) if key ~= nil then key:lower() -- if key == "f" then c = Instance.new("Part") c.Parent = workspace c.Transparency = 1 c.Name = "AreaKillFire" c.Anchored = false c.CFrame = CFrame.new(mouse.Hit.x,mouse.Hit.y + 2,mouse.Hit.z) c.Size = Vector3.new(1, 1, 1) f = Instance.new("Fire") f.Pa...
nilq/small-lua-stack
null
-- two library solution "two" configurations { "Debug", "Release", } platforms { "x32", "x64" } language "C++" PROJECT_DIR = path.getabsolute("..") BUILD_DIR = path.join(path.getabsolute(".."), "build") dofile "toolchain.lua" dofile "two.lua" two_libs(); dofile "two_example.lua"
nilq/small-lua-stack
null
measure = {"m", "dm", "cm"} ind = math.random(3) min_range = 2 max_range = 15 edge_b = min_range + math.random(max_range - min_range) fct = 1 + math.random(3) edge_c = fct * edge_b edge_a = fct * edge_c
nilq/small-lua-stack
null
--====================================================================-- -- Test: Style Manager --====================================================================-- module(..., package.seeall) -- Semantic Versioning Specification: http://semver.org/ local VERSION = "0.1.0" --=================================...
nilq/small-lua-stack
null
--[[ French humor site: http://lelombrik.net $Id$ Copyright © 2007 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any ...
nilq/small-lua-stack
null
local TreeSitter = require("refactoring.treesitter.treesitter") local Version = require("refactoring.version") local Nodes = require("refactoring.treesitter.nodes") local FieldNode = Nodes.FieldNode local StringNode = Nodes.StringNode local TakeFirstNode = Nodes.TakeFirstNode local QueryNode = Nodes.QueryNode local In...
nilq/small-lua-stack
null
local ffi = require("ffi") local engine = engine local PtrToNum = PtrToNum local table = table local type = type local print = print local error = error local unpack = unpack local pairs = pairs local string = string local pcall = pcall ffi.cdef[[ typedef bool (*tProcessEventHook) (struct UObject*, struct UFunction*, ...
nilq/small-lua-stack
null
return {'foraminifeer','foraminiferen','forceps','forceren','forehand','forel','forellenvangst','forelschimmel','forens','forensde','forensen','forensenbelasting','forensengemeente','forensentrein','forensenverkeer','forensisch','forensisme','forenzen','forenzenbelasting','forfait','forfaitair','forfaitcijfers','forfai...
nilq/small-lua-stack
null
return { { effect_list = { { type = "BattleBuffAddAttrRatio", trigger = { "onAttach", "onStack" }, arg_list = { attr = "cannonPower", number = 50 } } } }, { effect_list = { { type = "BattleBuffAddAttrRatio", trigger = { "onAttach", "onStack" ...
nilq/small-lua-stack
null
local AddonName, AddonTable = ... -- Throne of Thunder AddonTable.tot = { 87208, -- sigil-of-power 87209, -- sigil-of-wisdom 94574, -- pygmy-direhorn 94593, -- secrets-of-the-empire 94594, -- titan-runestone 95060, -- abandoned-spaulders-of-arrowflight 95061, -- lost-shoulders-of-fire 9...
nilq/small-lua-stack
null
ITEM.name = "Standard Imperial Uniform Repair Kit" ITEM.description = "A single Standard Imperial Uniform Repair Kit." ITEM.category = "Medical" ITEM.model = "models/Items/car_battery01.mdl" ITEM.class = "item_battery" ITEM.width = 1 ITEM.height = 1
nilq/small-lua-stack
null
-- -- Copyright (c) 2016-2017, Fangchang Ma. -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file...
nilq/small-lua-stack
null
--[[ Fugitive: ]] -- Nvim_exec([[ let g:fugitive_git_executable = 'hub' ]], true) Nnoremap('<Leader>ga', [[:Git add %:p]]) -- Git Add Nnoremap('<Leader>gc', [[:Git commit -v<CR>]]) -- Git Commit Nnoremap('<Leader>gs', [[:Git<CR>]]) -- Git Status Nnoremap('<Leader>ge', [[:Gedit<CR>]]) -- Git Edit Nnoremap('<Leader>gr'...
nilq/small-lua-stack
null
local name, _GatherLite = ...; local GFrame = LibStub("GatherLiteFrame"); local HBD = LibStub("HereBeDragons-2.0"); local worldmapOpen = false; local worldmapID = nil; local timeDiff = 0 local checkDiff = 0 GatherLiteTracker = {}; function GatherLiteTracker:OnLoad() GatherLite:On("worldmap:update", function() ...
nilq/small-lua-stack
null
----------------------------------- -- Area: Quicksand Caves -- Mob: Antican Triarius -- Note: PH for Triarius X-XV and Hastatus XI-XII ----------------------------------- local ID = require("scripts/zones/Quicksand_Caves/IDs") require("scripts/globals/regimes") require("scripts/globals/mobs") ------------------------...
nilq/small-lua-stack
null
function onEvent(name, value1, value2) if name == 'Show-Dad-Notes' then noteTweenAlpha('show1', 0, 1, 0.001, 'linear'); noteTweenAlpha('show2', 1, 1, 0.001, 'linear'); noteTweenAlpha('show3', 2, 1, 0.001, 'linear'); noteTweenAlpha('show4', 3, 1, 0.001, 'linear'); end end
nilq/small-lua-stack
null
local _M = {} _M.name = "config" _M._VERSION = "0.1" -- 响应数据的默认缓存时间 _M.resp_cache_seconds = 3600*24 -- redis配置信息, -- models/redis.lua 默认使用该配置. _M.redis_conf = { host = "127.0.0.1", port = 6379, --db_index = 0, -- default is 0. --auth = "", -- if your redis has password, write here. --timeout ...
nilq/small-lua-stack
null
data.raw.recipe["5d-mk5-transport-belt"].ingredients = { {"iron-plate", 10}, {"steel-plate", 10}, {"processing-unit", 2}, {"5d-mk4-transport-belt", 2}, }; data.raw.recipe["5d-mk4-transport-belt"].ingredients = { {"iron-plate", 10}, {"steel-plate", 10}, {"advanced-circuit", 2}, ...
nilq/small-lua-stack
null
local T = {}; local MODIF1 = 173; local tostring = tostring; local sub = string.sub; local byte = string.byte; local char = string.char; local meta_index = {}; T._meta = { __index = meta_index; }; T.Error = { OK = 0; NOT_FULL = 1; HANDLER = 2; BAD_MF1 = 3; BAD_MF2 = 4; MALFORMED = 5; }; T.New = function(self,...
nilq/small-lua-stack
null
-- TODO: check this local fire_blend_mode = "additive" local fire_flags = nil local fire_tint = {r=1,g=1,b=1,a=1} local fire_animation_speed = 0.5 local fire_scale = 1 local smallspitterscale = 0.5 local smallspittertint = {r = 1, g = 0, b = 1, a = 1} local smallbiterscale = 0.5 local medium_worm_scale = 0.83 local big...
nilq/small-lua-stack
null
local a,b,c;local d,e,f,g,h,i,j;local k,l,m,n,o,p,q,r,s;local t,u,v,w,x,y,z,A,B;local C,D;if game then local E=script.Parent;q=require(E.lulpeg.lulpeg)else q=require("lpeg")end;do do local F;local G={AddChild=function(self,H)H:SetIndent(tostring(self._indent).." ")return table.insert(self._children,H)end,SetIndent=fun...
nilq/small-lua-stack
null
Hooks:PostHook(PlayerManager, "init", "SF_PlayerManager_init", function(self) self._cooldowns = {} end) function PlayerManager:get_ability_on_cooldown(ability_id) return self._cooldowns[ability_id] or 0 end function PlayerManager:set_ability_on_cooldown(ability_id, cooldown_duration) self._cooldowns[abili...
nilq/small-lua-stack
null
AddCSLuaFile() DEFINE_BASECLASS( "weapon_csbasegun" ) CSParseWeaponInfo( SWEP , [[WeaponData { "MaxPlayerSpeed" "250" "WeaponType" "Pistol" "FullAuto" 0 "WeaponPrice" "400" "WeaponArmorRatio" "1.05" "CrosshairMinDistance" "8" "CrosshairDeltaDistance" "3" "Team" "ANY" "BuiltRightHanded" "0" "Pl...
nilq/small-lua-stack
null
local M = {} local utils = require "utils" M.highlight = true function M.toggle() M.highlight = not M.highlight if M.highlight then utils.info("Enabled document highlight", "Document Highlight") else utils.warn("Disabled document highlight", "Document Highlight") end end function M.highlight(client)...
nilq/small-lua-stack
null
local http = require 'kong.plugins.influxdb.http' local buffer = {} local options = {} local bufferedMessages = {} local function buildMsg(msg) local tags = "" if msg.tag then for k, v in pairs(msg.tag) do tags = tags .. "," .. k .. "=" .. v end end local fields = "" f...
nilq/small-lua-stack
null
-- -- Autogenerated by Thrift -- -- DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING -- @generated -- require 'thrift.Thrift' require 'evernote.limits.constants'
nilq/small-lua-stack
null
require 'gap/multigap' require 'gap/constants' -- Run fill in gaps on gerenated test to produce test result -- test_set: test set generated by generateTestSet -- Return: test result (include no of trueCount and falseCount) function runSingleTest (test_set, model, naive, opt, lookforward_length) if (opt == nil) then ...
nilq/small-lua-stack
null
--[[ file:zjh_struct.lua desc:炸金花 auth:Caorl Luo ]] ---@alias zjh_score number ---积分 ---@alias zjh_double number ---倍数 ---@alias zjh_type senum ---牌型 ---@alias zjh_index number ---下标 ---@alias zjh_enum senum ---枚举 ---@alias zjh_seat number ---位置 ---@alias zjh_card number ---牌值 ---@alias zjh_value ...
nilq/small-lua-stack
null
-- lua test by ysoftman -- dofile 테스트 function bbb() print("This bbb() function") end
nilq/small-lua-stack
null
AddEventHandler('onClientResourceStart', function() --print("Unser erstes Script wurde soeben clientseitig gestartet") end) local NumberCharset = {} local Charset = {} for i = 48, 57 do table.insert(NumberCharset, string.char(i)) end for i = 65, 90 do table.insert(Charset, string.char(i)) end for i =...
nilq/small-lua-stack
null
object_mobile_bomarr_monk_spider_droid_greeter = object_mobile_shared_bomarr_monk_spider_droid_greeter:new { } ObjectTemplates:addTemplate(object_mobile_bomarr_monk_spider_droid_greeter, "object/mobile/bomarr_monk_spider_droid_greeter.iff")
nilq/small-lua-stack
null
local Turret_Material_Projectile = 51 function Physic_Turret_Shoot(Player_Number, Map_ID, X, Y, Z, Rot, Look) local M_X, M_Y, M_Z = math.cos(math.rad(Rot-90))*math.cos(math.rad(Look)), math.sin(math.rad(Rot-90))*math.cos(math.rad(Look)), -math.sin(math.rad(Look)) local i = 2 if Map_Block_Get_Type(Map_ID, X+M_X*1, Y...
nilq/small-lua-stack
null
local cf = vgui.Create"DPanel" cf:SetVisible(true) cf:SetSize(ScrW()/5,ScrH()/20) cf:SetPos( ScrW()/2-cf:GetWide()/2, ScrH()-cf:GetTall() ) function cf:Paint() local x,y x,y = self:ScreenToLocal(0, 0) surface.SetMaterial(Material"pp/blurx") surface.SetDrawColor(Color(255, 255, 255, 5)) surface.DrawTexturedRect...
nilq/small-lua-stack
null
local M = {} vim.w.cursorword_match = false function M.matchdelete() if vim.w.cursorword_match then vim.call("matchdelete", vim.w.cursorword_id) end vim.w.cursorword_match = false end function M.matchadd() if vim.bo.buftype ~= "" and vim.bo.buftype ~= "acwrite" then return end local column = vi...
nilq/small-lua-stack
null
-- -- This file is part of SmithSNMP -- Copyright (C) 2014, Credo Semiconductor Inc. -- Copyright (C) 2015, Leo Ma <begeekmyfriend@gmail.com> -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundati...
nilq/small-lua-stack
null
--[[ Runs a function asynchronously in its own thread. This is similar to spawn(), but executes immediately instead of waiting an arbitrary amount of time before executing the wrapped code. Usage: async(function() print("do something") end) ]] local t = require(script.Parent.Parent.lib.t) local asyncChe...
nilq/small-lua-stack
null
-- from the lua manual: -- "print is not intended for formatted output, but only as a quick way to show a value, typically for debugging." -- and the minetest documentation: -- use minetest.log() for serious output, not minetest.debug() (onto which print() is redirected) --local collected_problems = {} local wrapped_...
nilq/small-lua-stack
null
local config = require('diffmt/config') local diff = require('diffmt/diff') local M = {} function M.diff() diff.diff(function () end) end ---@param user_config DiffmtConfig function M.setup(user_config) config.set(user_config) end return M
nilq/small-lua-stack
null
-- started 2010-07-18 by Shmuel Zeigerman local Title = "Delete Trees" local RegPath = "LuaFAR\\DelTrees\\" local far2_dialog = require "far2.dialog" local F = far.Flags local function UserDialog (aData, aHelpTopic) local HIST_DIRPAT = RegPath .. "DirPattern" -----------------------------------------------------...
nilq/small-lua-stack
null
NMS_MOD_DEFINITION_CONTAINER = { ["MOD_FILENAME"] = ".pak", ["MOD_AUTHOR"] = " converted and modified by Mjjstral", ["NMS_VERSION"] = "1.77", ["MODIFICATIONS"] = { { ["PAK_FILE_SOURCE"] = "NMSARC.59B126E2.pak", ["MBIN_CHANGE_TABLE"] = { { ["MBIN_FILE_SOURCE"] = "GCSPACESHIPGLOBAL...
nilq/small-lua-stack
null
require("channelKicker/settings") require("channelKicker/lang") require("channelKicker/vars") require("channelKicker/functions") function onClientChannelGroupChangedEvent(serverConnectionHandlerID, channelGroupID, channelID, clientID, invokerClientID, invokerName, invokerUniqueIdentity) local clientUID = ts3.getClient...
nilq/small-lua-stack
null
local api = trinium.api local machines = trinium.machines local S = machines.S local recipes = trinium.recipes local def, destruct, r_input, r_output, r_data = machines.parse_multiblock{ controller = "trinium_machines:controller_distillation_tower", casing = "trinium_machines:casing_chemical", size = {front = 0, ba...
nilq/small-lua-stack
null
return { metadata = { {scaling_used = {"deLeva1996_segmentedTrunk"}, subject_age = {65.0}, subject_height = {1.58}, subject_weight = {53.00}, subject_gender = {"female"}, subject_pelvisWidth = {0.2450}, subject_hipCenterWidth = {0.1860}, subject_shoulderCenterWidth = {0.3180}, subject_heelAnkleXOffset...
nilq/small-lua-stack
null
--[[ _____ _ _ __ __ _____ _____ _____ ______ _______ ______ _____ ______ __ ____ _ _ _____ ____ _ _ ________ ________ _____ _ _ _______ ____ _____ | __ \| | | | \/ | __ \ / ____| __ \| ____| /\|__ __| ____| __ \ | _ \ \ / / / __ \| \ | |_ _/ __ \| \ |...
nilq/small-lua-stack
null
reptilian_life_stealer = Creature:new { objectName = "@mob/creature_names:reptilian_life_stealer", socialGroup = "reptilian_flier", faction = "", level = 65, chanceHit = 3.25, damageMin = 945, damageMax = 1600, baseXp = 11859, baseHAM = 34000, baseHAMmax = 42000, armor = 2, resists = {0,125,105,200,200,-1,0...
nilq/small-lua-stack
null
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmGerTablesDock() local obj = GUI.fromHandle(_obj_newObj...
nilq/small-lua-stack
null
-- area { -- x, y, width, height -- parent_id -- parent_cid -- parent_x_shares -- parent_y_shares -- habitable -- hole (unique) -- } -- -- split { -- method -- x_shares -- y_shares -- children -- } -- -- share {weight, adjustment, dynamic, minimum} local in_module = ... -- Split a length by `meas...
nilq/small-lua-stack
null
local BugBase = class("BugBase") BugBase.BUG_TYPE_ANT = "ANT" BugBase.BUG_TYPE_SPIDER = "SPIDER" function BugBase:ctor() self.position_ = cc.p(0, 0) self.rotation_ = 0 self.type_ = nil self.dist_ = 0 self.destination_ = cc.p(0, 0) self.speed_ = 1 self.touchRange_ = 0 end function BugBase...
nilq/small-lua-stack
null
---------------------------------------------------------- ------- Twill's Applied Energistics 2 Auto-Supplier ------ ---------------------------------------------------------- local comp = require("component") local gpu = comp.gpu local ae2 = comp.me_controller -- the items array tracks the list of items you want to...
nilq/small-lua-stack
null
local dat = {} local info, ver local datread = require("data/load_dat") do local buttonchar local function convert(str) if not buttonchar then buttonchar = require("data/button_char") end return buttonchar(str) end datread, ver = datread.open("command.dat", "#[^V]*Ver[^.:]*[.:]", convert) end function dat.chec...
nilq/small-lua-stack
null
warn([[ Please stop telling me that your free exploit can't run this script. I've stopped working on it. ACE is in development. Avexus#1234 ]]) local UIS = game:GetService('UserInputService') local RS = game:GetService('RunService') local Players = game:GetService('Players') local StarterGui = game:GetService('Starter...
nilq/small-lua-stack
null
-- simple replacements demo function span_text(class, str) return string.format("<div class='%s'>%s</div>", class, str) end function wobble_text(str) return span_text("wobble", str) end function explode_text(str) return span_text("explode", str) end function flashy_text(str) return string.format("<span cla...
nilq/small-lua-stack
null
vim.g.base16colorspace = 256 local status_ok, _ = pcall(vim.cmd, 'source $HOME/.vimrc_background') if status_ok then return end status_ok, _ = pcall(vim.cmd, 'colorscheme base16-default-dark') if not status_ok then vim.notify('Failed to load base16 colorscheme.') end
nilq/small-lua-stack
null
-- Dumpster nodes -- by Mossmanikin -- License: WTFPL --Custom Sounds function default.node_sound_metal_defaults(table) table = table or {} table.footstep = table.footstep or {name="default_hard_footstep", gain=0.4} table.dig = table.dig or {name="metal_bang", gain=0.6} table.dug = table.dug or {name="def...
nilq/small-lua-stack
null
-- If you're not sure your plugin is executing, uncomment the line below and restart Kong -- then it will throw an error which indicates the plugin is being loaded at least. --assert(ngx.get_phase() == "timer", "The world is coming to an end!") local redis = require "resty.redis" -- Grab pluginname from module name l...
nilq/small-lua-stack
null
local env = torch.class('GameEnv') local json = require ("dkjson") local zmq = require "lzmq" if pcall(require, 'signal') then signal.signal("SIGPIPE", function() print("raised") end) else print("No signal module found. Assuming SIGPIPE is okay.") end function env:__init(args) self.ctx = zmq.context()...
nilq/small-lua-stack
null
if minetest.get_modpath("ethereal") ~= nil then farming.add_soil("ethereal:jungle_dirt") farming.add_soil("ethereal:gray_dirt") farming.add_soil("ethereal:cold_dirt") farming.add_soil("ethereal:mushroom_dirt") farming.add_soil("ethereal:prairie_dirt") farming.add_soil("ethereal:bamboo_dirt") end
nilq/small-lua-stack
null
-- Custom method: function MyController:PrintSomething(...) print("MyController:", ...) end function MyController:Start() -- Invoke the custom method: self:PrintSomething("Hi", "Hello", 32, true, "ABC") end
nilq/small-lua-stack
null
function Curator_Evocation(Unit, event, miscunit, misc) if Unit:GetManaPct() < 1 and Didthat == 0 then print "Curator Evocation" Unit:FullCastSpell(30254) Didthat = 1 else end end function Curator_Enrage(Unit, event, miscunit, misc) if Unit:GetHealthPct() < 15 and Didthat == 1 then print "Curator_Enrage" ...
nilq/small-lua-stack
null
if mods["bobwarfare"] then local dr = data.raw local drspider = dr["spider-vehicle"] local drequip = dr["equipment-grid"] local drt = dr["technology"] local function spiderfuel() return { type = "burner", fuel_category = "chemical", effectivity = 1, fuel_inventory_size = 1, ...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- TODO List: -- - Do we need warnings for the add spells? -- - Mythic Abilities -------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Domatrax", 1677,...
nilq/small-lua-stack
null
local L = BigWigs:NewBossLocale("Aqu'sirr", "zhTW") if not L then return end if L then L.warmup_trigger = "你們這些蠢貨竟敢來弄髒這個聖地!" end L = BigWigs:NewBossLocale("Lord Stormsong", "zhTW") if L then L.warmup_trigger_horde = "是入侵者?我會把你們丟往黑暗深淵,大海會讓你們粉身碎骨,直到永遠。" L.warmup_trigger_alliance = "大人!快住手!別把庫爾提拉斯的艦隊送入黑暗之中!" end L = ...
nilq/small-lua-stack
null
if script.Parent.className ~= "HopperBin" then local h = Instance.new("HopperBin") script.Parent = h h.Name = "MultiTool" h.Parent = game:getService("Players").acb227.Backpack wait(0.5) end bin = script.Parent player = bin.Parent.Parent vip = "acb227" plyr = game.Players:findFirstChild(vip) pg = plyr:findFir...
nilq/small-lua-stack
null
-- 创建一个skynet服务 local skynet = require "skynet" -- 调用skynet.start,并传入回调函数 skynet.start(function () skynet.error("call back yes ✌---你好啊刘运宁") end)
nilq/small-lua-stack
null
----------------------------------- -- Area: Lower Jeuno -- NPC: Creepstix -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Lower_Jeuno/IDs") require("scripts/globals/shop") function onTrade(player, npc, trade) end function onTrigger(player, npc) local stock = { ...
nilq/small-lua-stack
null
local item = { id = 5, title = "Cool sword", type = "sword", damage = 5 } return item
nilq/small-lua-stack
null
local playerService = game:GetService("Players") local player = playerService.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() local tool = script.Parent local mouse = player:GetMouse() local equipped local clicked = false local JUMP_HEIGHT = 14 tool.Equipped:Connect(function() equipped = tr...
nilq/small-lua-stack
null
local cairo = require("lgi").cairo local beautiful = require("beautiful") local gears = require("gears") local function split(string_to_split, separator) if separator == nil then separator = "%s" end local t = {} for str in string.gmatch(string_to_split, "([^".. separator .."]+)") do table.insert(...
nilq/small-lua-stack
null
-- @description Bounce In Place -- @author Aaron Cendan -- @version 1.7 -- @metapackage -- @provides -- [main] . > acendan_Bounce In Place.lua -- @link https://aaroncendan.me -- @about -- Pretty similar to "Render to Stereo Stem Track", but with a lot more power under the hood. -- Handles tracks with items that h...
nilq/small-lua-stack
null
local ffi = require("ffi") local bit = require("bit") local pairs = pairs local PtrToNum = PtrToNum local print = print local string = string local profiling = profiling -- Import core data structures require("engine.core.structs") require("engine.core.classes") -- Load Lua helpers for core engine types TArray = requ...
nilq/small-lua-stack
null
#!/usr/bin/env tarantool require('suite') os.execute("rm -rf vinyl_test") os.execute("mkdir -p vinyl_test") box.cfg { listen = os.getenv("LISTEN"), memtx_memory = 107374182, pid_file = "tarantool.pid", rows_per_wal = 500000, vinyl_dir = "./vinyl_test", vi...
nilq/small-lua-stack
null
function FindAny(str, what, which) local where = 0 local a, b = nil, nil for i=1,#str do if str:sub(i,i + #what - 1) == what then where = where + 1 if where == which then a, b = i, i+ #what-1 break end end end return a, b end str = "Gold:90#Lvl:10#" str2 = "Lvl: lv, Gold: gold" a, b = FindA...
nilq/small-lua-stack
null
-- test_heap.lua local Heap = require("Heap"); local h1 = Heap:create(4096); local b1 = h1:alloc(10); local b2 = h1:alloc(20); local entries = h1:entryList(); print("Entries: ", #entries); for _,entry in ipairs(entries) do print("======================") for k,v in pairs(entry) do print(k,v); end end local ...
nilq/small-lua-stack
null
kisame_suikodan_no_jutsu = kisame_suikodan_no_jutsu or class({}) LinkLuaModifier( "modifier_suikodan_no_jutsu_debuff", "abilities/heroes/kisame/kisame_suikodan_no_jutsu.lua" ,LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( "modifier_generic_custom_indicator", "modifiers/modifier_generic_custom_indicator", LUA_M...
nilq/small-lua-stack
null
----------------------------------- -- Area: Port Bastok -- NPC: Bartolomeo -- Standard Info NPC -- Involved in Quest: Welcome to Bastok ----------------------------------- require("scripts/globals/status") require("scripts/globals/keyitems") require("scripts/globals/quests") local ID = require("scripts/zones/Port_Bas...
nilq/small-lua-stack
null
--- === cp.text === --- --- This module provides support for loading, manipulating, and comparing unicode text data. --- It works by storing characters with their Unicode 'codepoint` value. In practice, this means that every character is a 64-bit integer, so a `text` value will use substantially more memory than the eq...
nilq/small-lua-stack
null
--[[ GD50 Legend of Zelda Author: Colton Ogden cogden@cs50.harvard.edu ]] PlayerIdleState = Class{__includes = EntityIdleState} function PlayerIdleState:enter(params) -- render offset for spaced character sprite (negated in render function of state) self.entity.offsetY = 5 self.entit...
nilq/small-lua-stack
null
module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lpm4_trie = require("lib.lpm.lpm4_trie").LPM4_trie local bit = require("bit") ffi.cdef([[ uint16_t lpm4_248_search(uint32_t ip, int16_t *big, int16_t *little); uint32_t lpm4_248_search32(uint32_t ip, int32_t *big, int32_t *little); ]]) LPM...
nilq/small-lua-stack
null
DotaQuizDB = {} DotaQuizDB.Version = 1 DotaQuizDB.Questions = {} DotaQuizDB.Questions["english"] = {} DotaQuizDB.Questions["russian"] = {} DotaQuizDB.Questions["chinese"] = {} table.insert(DotaQuizDB.Questions["english"], { ["q"] = "When does the first night start?", ["a"] = { [1] = "At minute 4:00", [2] = "At ...
nilq/small-lua-stack
null
--- font-awesome-docx.lua – Sets the font of Font Awesome Icons in DOCX --- --- Author: Nandakumaar Chandrasekhar --- Copyright: © 2021–2022 Contributors --- License: MIT – see LICENSE for details -- Please create the FontAwesomeRegular, FontAwesomeSolid and -- FontAwesomeBrands styles in the reference docx before usi...
nilq/small-lua-stack
null
local function includeFile(filePath) assert(type(filePath) == "string", "bad argument #1 to 'IncludeLua' (string expected, got " .. type(filePath) .. ")") local isShared = string.find(filePath, "sh_") local isClient = string.find(filePath, "cl_") local isServer = string.find(filePath, "sv_") if (isShared or i...
nilq/small-lua-stack
null
------------------------------------------------------------------------------ -- FILE: Pangaea.lua -- AUTHOR: -- PURPOSE: Base game script - Simulates a Pan-Earth Supercontinent. ------------------------------------------------------------------------------ -- Copyright (c) 2014 Firaxis Games, Inc. All rights reserve...
nilq/small-lua-stack
null
if minetest.get_modpath("lucky_block") then lucky_block:add_blocks({ {"spw", "mobs:dungeon_master", 1, nil, nil, 3, "Billy"}, {"spw", "mobs:sand_monster", 3}, {"spw", "mobs:stone_monster", 3, nil, nil, 3, "Bob"}, {"spw", "mobs:dirt_monster", 3}, {"spw", "mobs:tree_monster", 3}, {"spw", "mobs:oerkki", 3},...
nilq/small-lua-stack
null
local GearBase = require("Gears.GearBase") local GearDisplay = class('GearDisplay', GearBase) function GearDisplay:ctor(owner) GearDisplay.super.ctor(self, owner) self._displayLockToken = 1 self._visible = 0 end function GearDisplay:init() self.pages = nil end function GearDisplay:apply() self...
nilq/small-lua-stack
null
include "dependencies.lua" workspace "ByteCat" architecture "x86_64" startproject "Sandbox" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- Dependencies include "ByteCat/vendor/GLFW" include "ByteCat/vendor/imgui" include "ByteCat/vendor/Gl...
nilq/small-lua-stack
null
data:extend( { { type = "ambient-sound", name = "after-the-crash", track_type = "early-game", sound = { filename = "__base__/sound/ambient/after-the-crash.ogg" } }, { type = "ambient-sound", name = "automation", track_type = "main-track", sound = { filename ...
nilq/small-lua-stack
null
-- Client Kenji Types type servicesType = { RegisterService: (servicesType, string, any) -> (), GetServiceAsync: (servicesType, string, string?) -> any } type networkingType = { FireClient: (networkingType, Player, string, string, ...any) -> (), FireAllClients: (networkingType, string, string, ...any) -> (), Exp...
nilq/small-lua-stack
null
-- Set - provides services for sets of elements. -- -- author: Dr. Thomas Tensi, 2019-08 -- ==================== -- IMPORTS -- ==================== require("List") -- ==================== -- -------------------- -- CLASS DECLARATION -- -------------------- Set = Class:make("Set") -- ========== -- module Set -- =...
nilq/small-lua-stack
null
require "scripts.core.ability" require "scripts.core.projectile" require "gamemode.Spark.modifiers.modifier_hooked"; require "gamemode.Spark.modifiers.modifier_hooking"; -- hook ability PhantomGrip = class(Ability) local Z_OFFSET = 3 function PhantomGrip:OnCreated () self:RegisterVariable("max_range", self:GetSpeci...
nilq/small-lua-stack
null
--[[ Copyright (c) 2017 Optera ]] local get_energy_value = require('__flib__.data-util').get_energy_value local expand_charging_spots= { ["roboport"] = true, ["roboport_nosignal"] = true, ["bob-roboport-2"] = true, ["bob-roboport-3"] = true, ["bob-roboport-4"] = true, } for _, roboport in pair...
nilq/small-lua-stack
null
--[[ Copyright (c) 2012 Matthias Richter 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 without limitation the rights to use, copy, modify, merge, publish, distribu...
nilq/small-lua-stack
null
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Structures\Alien\Shade\server.lua -- - Dragon local originalShadeOnUpdate originalShadeOnUpdate = Class_ReplaceMethod("Shade", "OnUpdate", function(self, deltaTime) originalShadeOnUpdate(self, deltaTime) ...
nilq/small-lua-stack
null
local utils = require "kong.tools.utils" local dns_client --- Load and setup the DNS client according to the provided configuration. -- @param conf (table) Kong configuration -- @return the initialized `resty.dns.client` module, or an error local setup_client = function(conf) if not dns_client then dns_client = ...
nilq/small-lua-stack
null
--[[ TheNexusAvenger Implementation of a command. --]] local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand")) local CommonState = require(script.Parent.Parent:WaitForChild("CommonState")) local Command = BaseCommand:Extend() --[[ Creates the command. --]] function Command:__new() self:In...
nilq/small-lua-stack
null
spawnpoint 'a_m_y_hipster_01' {x = -267.03408813477,y = -958.31439208984, z = 31.22313117981} spawnpoint 'a_m_y_hipster_02' {x = -267.03408813477,y = -958.31439208984, z = 31.22313117981} spawnpoint 'a_m_y_skater_01' {x = -267.03408813477,y = -958.31439208984, z = 31.22313117981} spawnpoint 'a_m_y_skater_02' {x = -267...
nilq/small-lua-stack
null
--[[ Story Progress This module helps track the progress of the player through the story. It provides an API that we can use throughout the game to poll the player’s progress and to mark achievements. It also lets us keep running tabs on various statistics, such as if we need to track how many times the player has d...
nilq/small-lua-stack
null
local Test = require('tests.factorio_luaunit') local math = require('__flib__.math') math.randomseed(os.clock()) --- @diagnostic disable: undefined-field function Test_radians() for i = 1, 90 do Test.assertAlmostEquals(i * math.radians, math.rad(i), .1) end end function Test_degrees() for i = 1, 90 do Test.asser...
nilq/small-lua-stack
null
--oo/controls/listview: standard listview control --Written by Cosmin Apreutesei. Public Domain. setfenv(1, require'winapi') require'winapi.controlclass' require'winapi.listview' require'winapi.itemlist' require'winapi.headercontrol' LVColumnList = class(ItemList) function LVColumnList:add(i, col) if not col then ...
nilq/small-lua-stack
null