content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local Render = require("talk.game.backgammon._render_shell") local StringBuffer = require("string_buffer") Render.initialize() return { { id = "OnBackgammonRender", content = function(shiori, ref) local __ = shiori.var local render_collision_dice = ref[0] == "true" local render_c...
nilq/small-lua-stack
null
local SceneManager = require(_G.engineDir .. "baw.object.manager"):new(); local Scene = require(_G.componentDir .. "scene") local MainScene = require(_G.engineDir .. "middleclass")("MainScene", Scene) -- Le nom de la class sera utiliser pour changer de scene function MainScene:initialize(gameobjects) ...
nilq/small-lua-stack
null
require("basic.settings") require("basic.keybinds") require("basic.config") require("basic.plugins") -- ~/.config/nvim/lua/basic/settings.lua -- ~/.config/nvim/lua/basic/config.lua -- ~/.config/nvim/lua/basic/plugins.lua -- ~/.config/nvim/lua/conf/catppuccin.lua -- ~/.config/nvim/lua/conf/nvim-tree.lua -- ~/.config/nv...
nilq/small-lua-stack
null
------------------------------------------------------------------------------------------------------------------------------------------------------------- -- VEAF flight plan editor tool for DCS World -- By Zip (2021) -- -- Features: -- --------- -- * This tool processes a mission and update flight plans. -- * The f...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: airfi -- Date: 16/2/2019 -- Time: 17:52 -- To change this template use File | Settings | File Templates. -- local composer = require( "composer" ) local scene = composer.newScene() -- ----------------------------------------------------------------------------------- -- Code ...
nilq/small-lua-stack
null
return require('packer').startup(function() -- Packer can manage itself use 'wbthomason/packer.nvim' -- Color Scheme use "catppuccin/nvim" as = "catppuccin" -- Icons use 'kyazdani42/nvim-web-devicons' -- File Explorer use 'kyazdani42/nvim-tree.lua' -- Collection of configurations for the built-in LSP ...
nilq/small-lua-stack
null
local helpers = {} local busted = require("plenary/busted") local eq = assert.are.same local cur_dir = vim.fn.expand("%:p:h") local ulog = require('go.utils').log describe( "should run gotags", function() --vim.fn.readfile('minimal.vim') -- vim.fn.writefile(vim.fn.readfile('fixtures/fmt/hello.go'), name) ...
nilq/small-lua-stack
null
local KUI, E, L, V, P, G = unpack(select(2, ...)) --Cache global variables --Lua functions local _G = _G local match = match local tonumber = tonumber --WoW API / Variables local IsModifierKeyDown = IsModifierKeyDown --Global variables that we don't cache, list them here for the mikk's Find Globals script -- GLOBALS:...
nilq/small-lua-stack
null
-- use: This was the output of a simple bit of code that looks for scenery object 'helipad' -- nothing special, back of cig packet thing, which ran in a console over the mission so -- could visually see where they all were with markers, then get the locations of the pads, -- then i also looked at the types of buildings...
nilq/small-lua-stack
null
--Boarding School Exterior Dusk, Admin Building WarpPoint kStartingPos = nil --Use Scene Default kStartingRot = nil --Use Scene Default dofile("BoardingSchoolExteriorDuskAmb.lua")
nilq/small-lua-stack
null
riven_ki_burst = class({}) LinkLuaModifier( "modifier_riven_ki_burst", "custom_abilities/riven_ki_burst/modifier_riven_ki_burst", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( "modifier_generic_stunned_lua", "lua_abilities/generic/modifier_generic_stunned_lua", LUA_MODIFIER_MOTION_NONE ) --------------------------------...
nilq/small-lua-stack
null
local Class = require("class") local Conv = require("conv") local SaoriBasic = require("saori_basic") local SaoriUniversal = require("saori_universal") local Module = require("ukagaka_module.saori") local Protocol = Module.Protocol local M = Class() M.__index = M local CRLF = string.char(0x0d, 0x0a) local...
nilq/small-lua-stack
null
local Ball = Shape:extend() local SPD = 35 local SLOW_SPD = 10 local rects local function initRects(shapeList) if rects ~= nil then return end rects = {} for key, obj in pairs(shapeList) do if obj:is(Rect) and not obj:is(Player) then table.insert(rects, obj) end ...
nilq/small-lua-stack
null
--[[ A "handler look-up table". A common pattern that I came across during code for both pipeworks and libmt_node_network: * I would have a table mapping node names to functions for some purpose. e.g. let's say it's a function to determine connectable sides. * When examining a node, there would be a query operation w...
nilq/small-lua-stack
null
local SharedMedia = LibStub("LibSharedMedia-3.0"); -- Credit to CommanderSirow for taking the time to properly craft the ApplyTransform function -- to the enhance the abilities of Progress Textures. -- NOTES: -- Most SetValue() changes are quite equal (among compress/non-compress) -- (There is no GUI button for mi...
nilq/small-lua-stack
null
function EOT_CopyRoster() -- Iterate over raid roster and concatenate to raidRoster string local raidRoster = "" EOT_ForEachGroupMember( function (name) raidRoster = raidRoster .. name .. "\n" end ) -- Set editBox text to raidRoster string EOT_CopyBox(raidRoster, true) end
nilq/small-lua-stack
null
local t = Def.ActorFrame {}; local gc = Var("GameCommand"); local max_stages = PREFSMAN:GetPreference( "SongsPerPlay" ); local index = gc:GetIndex(); local c = 0; if index == 0 then c = 1; elseif index == 1 then c = 1; elseif index == 2 then c = 0; elseif index == 3 then c = 0; elseif index == 4 then c = 0; end --...
nilq/small-lua-stack
null
local playeraccountbus = require "Scripts/UI/PlayerAccount/playeraccountbus" local ChangePassword = { Properties = { Username = {default = EntityId()}, OldPassword = {default = EntityId()}, NewPassword = {default = EntityId()}, ConfirmNewPassword = {default = EntityId()}, MainMenu = {default = EntityId...
nilq/small-lua-stack
null
local json = require 'json' local pcall = pcall local tonumber = tonumber local util = require 'utility' ---@class jsonrpc local m = {} m.type = 'jsonrpc' function m.encode(pack) pack.jsonrpc = '2.0' local content = json.encode(pack) local buf = ('Content-Length: %d\r\n\r\n%s'):format(#content,...
nilq/small-lua-stack
null
local Library = require "CoronaLibrary" -- Create library local lib = Library:new{ name='plugin.cafebazaar.iap', publisherId='com.coronalabs' } ------------------------------------------------------------------------------- -- BEGIN (Insert your implementation starting here) ------------------------------------------...
nilq/small-lua-stack
null
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local t_concat, t_insert = table.concat, table.insert; local char, format = string.char, string.format; ...
nilq/small-lua-stack
null
includeFile("townsperson/agriculturalist.lua") includeFile("townsperson/artisan.lua") includeFile("townsperson/bartender.lua") includeFile("townsperson/businessman.lua") includeFile("townsperson/cll8_binary_load_lifter.lua") includeFile("townsperson/commoner.lua") includeFile("townsperson/commoner_fat.lua") includeFile...
nilq/small-lua-stack
null
return { tllarchnano = { acceleration = 0.36, brakerate = 0.21, buildcostenergy = 3605, buildcostmetal = 223, builddistance = 160, builder = true, buildpic = "tllarchnano.dds", buildtime = 9000, cainrepair = 1, canguard = true, canmove = true, canpatrol = true, canreclamate = 1,...
nilq/small-lua-stack
null
local Swords = script:GetCustomProperty("Swords"):WaitForObject() local Sword1 = script:GetCustomProperty("Sword1"):WaitForObject() local Blade1 = Sword1:GetCustomProperty("Blade"):WaitForObject() local Sword2 = script:GetCustomProperty("Sword2"):WaitForObject() local Blade2 = Sword2:GetCustomProperty("Blade"):WaitForO...
nilq/small-lua-stack
null
--[[ Copyright (c) 2018, Vsevolod Stakhov <vsevolod@highsecure.ru> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
nilq/small-lua-stack
null
#!/usr/bin/env tarantool -- luacheck: globals box local reload = require 'reload' local fio = require 'fio' local errno = require('errno') local function write_file(path, data) local file = fio.open(path, {'O_RDWR', 'O_CREAT', 'O_TRUNC'}, 644) if file == nil then error(string.format('Failed to open f...
nilq/small-lua-stack
null
-- Selection Controller is incharge of storing and managing the user’s selection local controller = {} local boundingBox = engine.construct("block", workspace, { name = "_bounding", wireframe = true, static = true, physics = false, workshopLocked = true, doNotSerialise = true, position = vector3(0, -100, 0) }...
nilq/small-lua-stack
null
ITEM.name = "Арбалетные болты" ITEM.model = "models/dawnguardd/weapon_dawnguardcrossbow_dawnguardquiver.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.iconCam = { pos = Vector(0, 0, 22.060123443604), ang = Angle(90, 0, -52.291660308838), fov = 45 } ITEM.ammo = "Pistol" // type of the ammo ITEM.ammoAmount = 10 // amount o...
nilq/small-lua-stack
null
local map_converter = {} -- list of supported special arguments local specials = {"buffer", "nowait", "silent", "script", "expr", "unique"} -- supported formatters local formatters = {} -- default settings map_converter.config = { default_formatter = "neovim", mapper = { package = "M", catego...
nilq/small-lua-stack
null
Config.Filters.Convenience = { item = { -- Food. ["Choco Rings"] = true, ["Corn Dog"] = true, ["Crackles O Dawn"] = true, ["Cup Noodles"] = true, ["Ego Chaser"] = true, ["Fat Chips"] = true, ["Meteorite Bar"] = true, ["Peanuts"] = true, ["Ps & Qs"] = true, ["Rails"] = true, ["Release Gum"] = tr...
nilq/small-lua-stack
null
-- BIN -- binary reading and writing for ComputerCraft FS API -- lib by BigBang1112 -- license: MIT bin = { handle = nil } function bin.write_string(self, str, no_prefix) local h = self.handle if str == nil then h.write(0) else if #str > 255 then error("string longer than ...
nilq/small-lua-stack
null
local day24 = require("day24") local List = require("pl.List") describe("day24", function() describe("parse_line", function() it("esenee: move one tile east, one tile southeast, one tile northeast, and one tile east", function() local directions = day24.parse_line("esenee") assert.are.equal(List({ "e", "se", ...
nilq/small-lua-stack
null
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/props_wasteland/laundry_cart001.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) lo...
nilq/small-lua-stack
null
local class = require "xgame.class" local Align = require "xgame.ui.Align" local ScrollBase = require "xgame.ui.ScrollBase" local ScrollImpl = require "xgame.ui.ScrollImpl" local UIScroller = class("UIScroller", ScrollBase) function UIScroller:ctor() self.touchChildren = false self.touch...
nilq/small-lua-stack
null
local cfg = { vital_display = true, vital_display_anchor = "minimap", water_per_minute = 0.025, food_per_minute = 0.0125, overflow_damage_factor = 2, pvp = true, police = false } return cfg
nilq/small-lua-stack
null
object_tangible_collection_col_tatooine_vistas_marker_03 = object_tangible_collection_shared_col_tatooine_vistas_marker_03:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_col_tatooine_vistas_marker_03, "object/tangible/collection/col_tatooine_vistas_marker_03.iff")
nilq/small-lua-stack
null
return function(port) local httpsrv = net.createServer(net.TCP, 180) httpsrv:listen(port, function(socket) fullPayload = nil bBodyMossing = nil local function onReceive(connection, payload) collectgarbage() --print("httpserver: onReceive() heap="..node.heap()) payload, fullPayload...
nilq/small-lua-stack
null
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_spirit_br...
nilq/small-lua-stack
null
-- draw an Image function drawImage(img, x, y) love.graphics.push() love.graphics.translate(x,y) love.graphics.scale(0.3, 0.3) local width, height = img:getDimensions() love.graphics.draw(img, -width/2, -height/2) love.graphics.pop() end --The error handler, used to display error messages...
nilq/small-lua-stack
null
local ReplicatedStorage = game:GetService("ReplicatedStorage") local BitBuffer = require(ReplicatedStorage.Packages.BitBuffer) local bytes = table.create(256) for i = 1, 256 do bytes[i] = string.rep(string.char(i - 1), 8) end return function(b) local buffer = BitBuffer.new() b.start() for i = 1, 2^14 / 128 do ...
nilq/small-lua-stack
null
--[[ Title: Result Author(s): big Date: 2019.01.23 Place: Foshan use the lib: ------------------------------------------------------------ local Result = NPL.load("(gl)Mod/ExplorerApp/pages/PurchasingCode/Result/Result.lua") ------------------------------------------------------------ ]] local Wallet = NPL.load('(gl)...
nilq/small-lua-stack
null
do local function parsed_url(link) local parsed_link = URL.parse(link) local parsed_path = URL.parse_path(parsed_link.path) return parsed_path[2] end function run(msg, matches) local hash = parsed_url(matches[1]) join = import_chat_link(hash,ok_cb,false) end return { description = "Invite me into a g...
nilq/small-lua-stack
null
local EdburPostLament = File:extend() function EdburPostLament:new(first, revive) EdburPostLament.super.new(self, "weapon shop") Art.new(self, "weapon_shop") self.anim:add("blush", 6) self.anim:add("idle", 4) if revive then self.revived = revive end if self.revived then self:room(s...
nilq/small-lua-stack
null
-- This is the starting point of the build scripts for the project. -- It defines the common build settings that all the projects share -- and calls the build scripts of all the sub-projects. config = {} include "Helpers.lua" include "LLVM.lua" workspace "CppSharp" configurations { "Debug", "Release" } platform...
nilq/small-lua-stack
null
local mod = {} local log = require "log" local namespaces = require "namespaces" local dpdkc = require "dpdkc" local ffi = require "ffi" local serpent = require "Serpent" mod.config = namespaces:get() mod.config.appName = "libmoon" mod.config.includeSharedCores = false---Set true if you have a h...
nilq/small-lua-stack
null
local lush = require('lush') local hsl = lush.hsl local jellybeans = require('lush_theme.jellybeans-nvim') local spec = lush.extends({jellybeans}).with(function() return { -- Better colors for popup menus Pmenu { bg = "#303030", fg = "#D6D6D6" }, PmenuSel { bg = "#D6D6D6", fg = "#2B2B2B" }, CocErro...
nilq/small-lua-stack
null
function Client_PresentSettingsUI(rootParent) local vert = UI.CreateVerticalLayoutGroup(rootParent); UI.CreateLabel(vert).SetText("Number of territories to auto distribute to each player: " .. Mod.Settings.NumTerritories); end
nilq/small-lua-stack
null
Colors = {} local THEME_NAMES = {"purple", "blue", "red"} local DEFAULT_THEME_NAME = "red" local DEFAULT_THEME = { white = {255, 255, 255}, black = {0, 0, 0}, gray_darker = {29, 29, 29}, gray_dark = {42, 40, 41}, gray = {54, 52, 53}, gray_light = {196, 203, 209}, gray_lighter = {222, 230, 233}, ...
nilq/small-lua-stack
null
Storyboard = {mId ="storybaord"} Storyboard.__index = Storyboard function Storyboard:Create(stack, events, handIn) local this = { mStack = stack, mEvents = events, mStates = {}, mSubStack = StateStack:Create(), mPlayingSounds = {} } setmetatable(thi...
nilq/small-lua-stack
null
QBCore = nil Citizen.CreateThread(function() while QBCore == nil do TriggerEvent('QBCore:GetObject', function(obj) QBCore = obj end) Citizen.Wait(200) end end) RegisterNetEvent('wht:cantaac') AddEventHandler('wht:cantaac', function() TriggerServerEvent("inventory:server:OpenInventory", "stash", "Bag "..Q...
nilq/small-lua-stack
null
local v33xAndv4b1DisplayCars = {{Position = Vector(6847, -4751, 56), Ang = Angle(0, 90, 0), Model = "models/tdmcars/aud_rs4avant.mdl"}, {Position = Vector(4251, -5309, 56), Ang = Angle(0, 180, 0), Model = "models/tdmcars/for_mustanggt.mdl"}, {Position = Vector(5706, -5299, 56), Ang = Angle(0, 180, 0), M...
nilq/small-lua-stack
null
local Q = require 'Q/q_export' local qc = require 'Q/UTILS/lua/q_core' local lVector = require 'Q/RUNTIME/VCTR/lua/lVector' local qconsts = require 'Q/UTILS/lua/q_consts' local ffi = require 'ffi' local get_ptr = require 'Q/UTILS/lua/get_ptr' local cmem = require 'libcmem' ...
nilq/small-lua-stack
null
-- @file register_in_editor_callbacks.lua Entrypoint for registering in editor callbacks -- This file is part of Godot Lua PluginScript: https://github.com/gilzoide/godot-lua-pluginscript -- -- Copyright (C) 2021 Gil Barbosa Reis. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- o...
nilq/small-lua-stack
null
-- vim.opt: https://github.com/neovim/neovim/pull/13479 vim.cmd("syntax on") vim.cmd("filetype plugin indent on") vim.o.number = true vim.wo.number = true vim.o.relativenumber = true vim.wo.relativenumber = true vim.o.expandtab = true vim.bo.expandtab = true vim.o.smartindent = true vim.bo.smartindent = true vim.o.t...
nilq/small-lua-stack
null
return function(specification) local t = { } for k, v in pairs(specification.features.normal) do local n = tonumber(k) if n then t[n] = v end end for k, v in ipairs(t) do local name, rest = string.match(v,"^(.-){(.*)}$") if rest then t[k] ...
nilq/small-lua-stack
null
-- return a function can get next element of table local function table_iter(tab) i = 0 return function () i = i + 1 return tab[i] end end -- main local function main( ... ) local good = {"Jerry", "is", "my", "lover"} iter = table_iter(good) -- Generic for just call the iterator as a function -...
nilq/small-lua-stack
null
local addon = LibStub("AceAddon-3.0"):GetAddon("WSAttendance") addon.popups = {} local popups = addon.popups local L = LibStub("AceLocale-3.0"):GetLocale("WSAttendance") StaticPopupDialogs["WSATTENDANCE_DELETE_LOG"] = { text = L.confirm_delete_log, button1 = L.yes, button2 = L.no, timeout = 0, whil...
nilq/small-lua-stack
null
#!/usr/bin/env tarantool require('strict').on() local remote_control = require('cartridge.remote-control') local ok, err = remote_control.bind( '0.0.0.0', os.getenv('TARANTOOL_LISTEN') or '13301' ) assert(ok, err) remote_control.accept({ username = 'admin', password = '', })
nilq/small-lua-stack
null
Locales['en'] = { ['no_item'] = "You dont have a mobile phone", ['send_yourself'] = "You can't send money to yourself", ['not_enough_money'] = "Not Enough Money in Your Account", ['bank_sending'] = " You have transferred money", ['bank_incoming'] = " came to your account", ...
nilq/small-lua-stack
null
local JSON = require "JSON" local config = require "Config" local FrequencyData = {} function FrequencyData.processWordListCTA() local files = { config.frequencyData .. "Jieba.txt", config.frequencyData .. "Beijing Language and Culture University Corpus.txt", config.frequencyData .. "Loach....
nilq/small-lua-stack
null
set_xmakever("2.3.3") add_rules("mode.debug", "mode.release") add_requires("libxmake", "lief") if is_plat("windows") then if is_mode("release") then add_cxflags("-MT") elseif is_mode("debug") then add_cxflags("-MTd") end add_cxxflags("-EHsc", "-FIiso646.h") add_ldflags("-nodefau...
nilq/small-lua-stack
null
os.loadAPI("/lib/ic2batbox") os.loadAPI("/lib/ic2reactors") print("Energy storage devices: "..ic2batbox.getDevicesCount()) print("Stored energy: "..ic2batbox.getTotalStoredEnergy()) print("Total capacity: "..ic2batbox.getTotalCapacity()) print("Reactor units: "..ic2reactors.getDevicesCount())
nilq/small-lua-stack
null
ITEM.name = "Book" ITEM.description = "A book that you can write on." ITEM.model = Model("models/props_c17/paper01.mdl")
nilq/small-lua-stack
null
_G['lcm_modules'] = {} -- contains module base paths local pwd = os.getenv('PWD') local home = os.getenv('HOME') local lcm_home = (os.getenv('LCM_HOME') or home .. '/.lcm/') -- escape path for pattern matching local function escape_pattern(path) return path:gsub('([%(%)%.%%%+%-%*%?%[%^%$])', '%%%1') end -- clean up...
nilq/small-lua-stack
null
vim.cmd [[colorscheme gruvbox]]
nilq/small-lua-stack
null
ITEM.name = "MK18 Mod 1" ITEM.description = "A Close-Quarters weapon, the MK18 is a performance-built M4A1 with a shorter upper reciever and adjustable stock meant to be used by special units who have a need for reliable firepower in close to medium range engagements. This particular one has had some relatively minor Q...
nilq/small-lua-stack
null
local PLUGIN = PLUGIN PLUGIN.craft = PLUGIN.craft or {} PLUGIN.craft.recipes = PLUGIN.craft.recipes or {} PLUGIN.craft.stations = PLUGIN.craft.stations or {} function PLUGIN.craft.LoadFromDir(directory, pathType) for _, v in ipairs(file.Find(directory.."/sh_*.lua", "LUA")) do local niceName = v:sub(4, -5) if (...
nilq/small-lua-stack
null
require('tostring') function log(stuff) printh(''..tostring(stuff)) end return log
nilq/small-lua-stack
null
local j = 1e4 local co = coroutine.create(function() t = {} for i = 1, j do t[i] = i end return unpack(t) end) local ok, err = coroutine.resume(co) assert(not ok and string.find(err, "unpack"))
nilq/small-lua-stack
null
local fs = require("filesystem") local comp = require("component") local function new_node(parent, name, is_dir, proxy) local node = {parent=parent, name=name, is_dir=is_dir, proxy=proxy} if not proxy then node.children = {} end return node end local function new_devfs_dir(name) local sys = {} sys.mta...
nilq/small-lua-stack
null
-- module to download a random image from getwallpapers.com function InitGetWallpapers() local mod={} mod.image_urls={} mod.div_tag=function(self, data) local toks, tok, url local is_preload=false toks=strutil.TOKENIZER(data, "\\S") tok=toks:next() while tok ~= nil do if string.sub(tok, 1, 13) == 'data-fullimg=' ...
nilq/small-lua-stack
null
id = 'V-54381' severity = 'medium' weight = 10.0 title = 'The audit system must switch the system to single-user mode when available audit storage volume becomes dangerously low.' description = 'Administrators should be made aware of an inability to record audit records. If a separate partition or logical volume of ade...
nilq/small-lua-stack
null
Talk(0, "这里有本书,书名是.....”雪山飞狐”..原来”雪山飞狐”藏在这,胡大哥的军刀果然有用.咦!这边有张字条,写些什么来着...自受到金先生恩惠以来,即无时无刻不想着今生该如何报答.日前自恶人手中夺回”雪山飞狐”一书,其余十三本则还流落在外,吾发誓有生之年定要竭尽所能将书找齐,送回圣堂..今日看见此书书名,觉得非常有意思,内人分娩日子将近,如果生下男孩,就叫他胡斐吧.哈!”飞狐”,”胡斐”.哈!哈!哈!有意思..........胡一刀留原来还有这段典故.", "talkname0", 1); ModifyEvent(-2, -2, -1, -1, -1, -1, -1, 3500, 3500, 3500, -2, -...
nilq/small-lua-stack
null
--! @file tx-from-pcap.lua --! @brief Replay from Pcap with correct delays local mg = require "dpdk" local memory = require "memory" local device = require "device" local log = require "log" local ts = require "timestamping" local pcap = require "pcap" local stats = require "stats" function master(txPort, maxp,...
nilq/small-lua-stack
null
-- Here are the values that are shared across different files. local more_module_slots_defines = {} -- Mod ID. more_module_slots_defines.mod_id = 'more-module-slots' -- Prefix of the names. more_module_slots_defines.name_prefix = more_module_slots_defines.mod_id .. '_' -- Names. more_module_slots_defines.names = {} -...
nilq/small-lua-stack
null
if _VERSION ~= "Lua 5.3" then error "Use lua 5.3" end package.cpath = "./luaclib/?.so" local socket = require "clientsocket" local fd = assert(socket.connect("127.0.0.1", 6666)) local function send_package(fd, pack) local package = string.pack(">s2", pack) --print(tonumber(package[1]).." "..tonumber(package[2]))...
nilq/small-lua-stack
null
function level_create(level_number) local map_offset = make_uv_point( (level_number % 8) * map_width_tiles, flr(level_number / 8) * map_height_tiles ) local start = make_uv_point(0, 0) local finish = make_uv_point(0, 0) for u = 0, map_width_tiles - 1 do for v = 0, map_height_tiles - 1 do local sprite = ...
nilq/small-lua-stack
null
-- -- Copyright (C) 2021 Masatoshi Fukunaga -- -- 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, ...
nilq/small-lua-stack
null
return PlaceObj( "ModDef", { "title", "Autosave Frequency", "description", "Set the Autosave Interval to 1 Sol with 5 Autosave Files being kept", "author", "Dawnmist", "id", "Dawnmist_AutosaveFrequency", "code", { "Code/AutosaveFrequency.lua" }, ...
nilq/small-lua-stack
null
includeFile("custom_content/tangible/holiday/empire_day/component/aa1n_central_processor.lua") includeFile("custom_content/tangible/holiday/empire_day/component/aa1n_circuit_board.lua") includeFile("custom_content/tangible/holiday/empire_day/component/aa1n_io_bus_port.lua") includeFile("custom_content/tangible/holiday/...
nilq/small-lua-stack
null
-- get the relative path local thispath = select('1', ...):match(".+%.") or "" local parent = "unittests." thispath = string.sub(thispath, 1, string.len(thispath) - string.len(parent)) -- load skeletor module local Skeletor = require(thispath..'skeletor') skeletor = Skeletor() -- test skeletor:newSkeleton() skeletor:...
nilq/small-lua-stack
null
class 'graphs' -- container for graphs of all players function graphs:graphs() self.player_graphs = {} end -- provided with graph and player name adds graph -- to container if not exists and returns player graph function graphs:add_player_graph(graph, player_name) if not self.player_graphs[player_name] then self....
nilq/small-lua-stack
null
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-utf8. -- -- dromozoa-utf8 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 3 of the License, or -...
nilq/small-lua-stack
null
-- luacheck: ignore messenger stream freeswitch argv -- usage if not argv[1] then stream:write(' routes reload\n') return end local action = argv[2] if action == 'reload' then local response = messenger:routeReload() if response then stream:write(response) else stream:write('-ERR no response') end return ...
nilq/small-lua-stack
null
local cs = require("boo-colorscheme") describe("colorscheme", function() it("should not error", function() assert.has_no.errors(cs.setup) end) end)
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Module declaration -- local mod, CL = BigWigs:NewBoss("Selin Fireheart", 585, 530) if not mod then return end mod:RegisterEnableMob(24723) mod.engageId = 1897 -- mod.respawnTime = 0 -- resets, doesn't respawn ------------------------...
nilq/small-lua-stack
null
object_tangible_wearables_helmet_helmet_fighter_privateer_ace_craft = object_tangible_wearables_helmet_shared_helmet_fighter_privateer_ace_craft:new { } ObjectTemplates:addTemplate(object_tangible_wearables_helmet_helmet_fighter_privateer_ace_craft, "object/tangible/wearables/helmet/helmet_fighter_privateer_ace_craft...
nilq/small-lua-stack
null
--[[ Copyright 2019 The Spin-Scenario Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
nilq/small-lua-stack
null
music = "castle.ogg" function start() down = Portal:new{x=1, y=5, width=1, height=1} guy = Object:new{x=4, y=5, anim_set="ring_bearer", person=true, move_type=MOVE_WANDER} end function stop() end function update(step) down:update() if (down.go_time) then change_areas("castle_tower4_1", 1, 5, DIRECTION_EAST) ...
nilq/small-lua-stack
null
-- -- -- UTF-8 file -- if GetLocale() ~= "esES" then return end local G = Grail.quest.name local _, release, _, interface = GetBuildInfo() release = tonumber(release) interface = tonumber(interface) if release >= 0 and interface >= 50300 then G[1]='Bogus Quest For Prerequisite Work' G[2]='La garfa de Garfafilada' G[1...
nilq/small-lua-stack
null
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]] require("lualib_bundle"); __TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 3,["5"] = 4,["6"] = 5,["7"] = 6,["8"] = 12,["9"] = 13,["10"] = 12,["11"] = 15,["12"] = 16,["13"] = 15,["14"] = 18,["15"] = 19,["16"] = 18,["17"] = 21,["18"] =...
nilq/small-lua-stack
null
-- tools common local _M = { __VERSION = "1.0" } -- _M.osSep = (function() -- local result = io.popen("uname -s"):read("*l") -- if not result or result == "" then -- return "\\" -- end -- return "/" -- end)() _M.isNgx = not not ngx _M.splitNgx = function(str, pat) local ngx_re =...
nilq/small-lua-stack
null
AddCSLuaFile( ) ENT.Base = "gasl_base_ent" ENT.AutomaticFrameAdvance = true local TurretDeployingWidth = 9 local TurretSearthingTimeSeconds = 4.0 function ENT:SetupDataTables() self:NetworkVar( "Entity", 0, "TargetEntity" ) self:NetworkVar( "Vector", 0, "TargetEntityVector" ) self:NetworkVar( "Bool", 1, "Acti...
nilq/small-lua-stack
null
local storysPY={ {name="original_女主长安", action={ { type="DIALOG", value=[[ 主角#啊,是$FEMALE$... ]], },{ type="SELECT", value=[[ 主角#说些什么好呢?#最近还好吗?#要不要和我一起闯江湖? ]], }, }, result={ {ret="0",type="story",value="original_女主长安接任务", condition={ { type="", }, },},{ret="1",type="story",value="original_女主长安加入队伍判断", condition={ { ...
nilq/small-lua-stack
null
module(...,package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") require("lib.hardware.pci_h") --- ### Hardware device information devices = {} --- Array of all supported hardware devices. --- --- Each entry is a "device info" table with these attributes: --- --- * `pciaddress...
nilq/small-lua-stack
null
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
nilq/small-lua-stack
null
--[[ Seriál "Programovací jazyk Lua" Demonstrační příklad k článku: Podpora funkcionálního programovaní v jazyku Lua s využitím knihovny Moses ]] -- načtení knihovny Moses a současně import symbolů do globálního jmenného prostoru M = require "moses" M.import() -- tisk obsahu pole function printArray(ar...
nilq/small-lua-stack
null
return { -- Tag is used with CollectionService to mark an object as a plugin. Tag = "\27~hotswap#", -- ID contains identifiers that must be unique in the Studio namespace. ID = { ToolbarTogglePanel = "HotSwap_Toolbar_TogglePanel", ActionTogglePanel = "HotSwap_Action_TogglePanel", ActionToggleEnabled = "Hot...
nilq/small-lua-stack
null
return {id1=1,id2=1,id3="ab1",num=1,desc="desc1",}
nilq/small-lua-stack
null
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' description 'Add security tokens to server events.' client_scripts { 'config.lua', 'client.lua' } server_scripts { 'config.lua', 'server.lua' } exports { 'setupClientResource' } server_exports { 'setupServerResource', 'secureServerEvent', 'ge...
nilq/small-lua-stack
null