content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
-- Zytharian (roblox: Legend26) -- Description: -- Quick and dirty Jumper compatibility shim local NAME = "BOUNDARY_VALUE_SYNC" local model = script.Parent.Parent local remoteFn = Instance.new("RemoteFunction") remoteFn.Name = NAME remoteFn.Parent = model remoteFn.OnServerInvoke = (function (player, valueObject, va...
nilq/small-lua-stack
null
local Plugin = script.Parent.Parent.Parent.Parent local Libs = Plugin.Libs local Roact = require(Libs.Roact) local RoactRodux = require(Libs.RoactRodux) local Utility = require(Plugin.Core.Util.Utility) local Constants = require(Plugin.Core.Util.Constants) local ContextGetter = require(Plugin.Core.Util.ContextGetter)...
nilq/small-lua-stack
null
package.path = 'C:/Develop/projects/tetris/lua/src/?.lua;' .. package.path --package.path = './src/?.lua;' .. package.path local Dimension = require 'util'.dimension local TetrisGame = require 'tetrisgame' local function Color(r, g, b) return {r = r / 255.0, g = g / 255.0, b = b / 255.0} end local config = { grid...
nilq/small-lua-stack
null
local boot = require 'radish.mswindows.boot' boot.main_loop()
nilq/small-lua-stack
null
local M = function() end return M
nilq/small-lua-stack
null
co = coroutine.create( function() print("co", coroutine.yield()) end ) coroutine.resume(co) print("-------------") coroutine.resume(co, 4, 5) --> co 4 5
nilq/small-lua-stack
null
local AddonName, AddonTable = ... AddonTable.cooking = { -- Materials 52340, 62779, 62791, }
nilq/small-lua-stack
null
local solidown=Class{} solidown:include(gt_widget) function solidown:init(editor, x, y, id) gt_widget.init(self, editor, x, y, id, "make a layer more transparent") self.weight=5 self:add_button(editor, "solidown.png") end function solidown:mouse_pressed(editor) editor.sys.map.layers[editor.selected.l...
nilq/small-lua-stack
null
local function indexed(arr) local result = {} for i = 1, #arr do result[i] = {i, arr[i]} end return result end return indexed
nilq/small-lua-stack
null
---@type string local string = string string.whitespace = ' \t\n\r\v\f' string.ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz' string.ascii_uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' string.ascii_letters = string.ascii_lowercase .. string.ascii_uppercase string.digits = '0123456789' string.hexdigits = string.digits .. 'a...
nilq/small-lua-stack
null
-- 自定义函数指针 local type = type local s_find = string.find local c_json = require("cjson.safe") local r_cache = require("app.store.redis") local u_each = require("app.utils.each") local s_cache = require("app.store.cache.base_cache") --------------------------------------------------------------------------------------...
nilq/small-lua-stack
null
local PLETHORA_SCANNER = "plethora:scanner" local AIR_BLOCK = "minecraft:air" function new() return { priority = 10, isAvailable = function() return peripheral.find(PLETHORA_SCANNER) end, execute = function(currentPosition, updateSessionMap, updateServerMap) local scanner = peripheral.fin...
nilq/small-lua-stack
null
components = require "components" grid = require "grid" function love.load() love.window.setTitle("salms: Software Architecture Live Diagrams") love.window.setMode(1280, 750, {resizable=true,centered=true,minwidth=800,minheight=600}) love.window.maximize() wh = love.graphics.getHeight() ww = love.g...
nilq/small-lua-stack
null
--[[ Name: unipolar_full_step.lua Desc: This example script was written as part of LabJack's "Stepper Motor Controller" App-Note. Note: There is an accompanying python script as well as a (Windows Only) LabVIEW example application that should be run in conjunction with th...
nilq/small-lua-stack
null
--- The Dungeon-style map Prototype. -- This class is extended by ROT.Map.Digger and ROT.Map.Uniform -- @module ROT.Map.Dungeon local ROT = require((...):gsub(('.[^./\\]*'):rep(2) .. '$', '')) local Dungeon = ROT.Map:extend("Dungeon") --- Constructor. -- Called with ROT.Map.Cellular:new() -- @tparam int width Width in ...
nilq/small-lua-stack
null
-- Plugin configuration mapper. -- -- Each plugin entry consists of the following keys: -- -- - "rename": rename the plugin so that it’s exposed a the given name. -- - "branch": specify the branch to checkout this plugin at. -- - "enable": state whether or not we should be using this plugin. -- - "depends": list of oth...
nilq/small-lua-stack
null
--[[ Victory Screen - README 1.0.0 - 2020/10/15 by Waffle (Manticore) (META) (Programming) (https://www.coregames.com/user/581ff579fd864966aec56450754db1fb) + Nicholas Foreman (META) (Programming) (https://www.coregames.com/user/f9df3457225741c89209f6d484d0eba8) + WitcherSilver (META) (Art) (https://www.coregames...
nilq/small-lua-stack
null
-- Copyright (C) Yichun Zhang (agentzh) -- Copyright (C) cuiweixie -- I hereby assign copyright in this code to the lua-resty-core project, -- to be licensed under the same terms as the rest of the code. local ffi = require 'ffi' local base = require "resty.core.base" local FFI_OK = base.FFI_OK local FFI_ERROR = ba...
nilq/small-lua-stack
null
slot0 = require((string.match(..., ".*%.") or "") .. "dis_x86") return { create = slot0.create64, disass = slot0.disass64, regname = slot0.regname64 }
nilq/small-lua-stack
null
-- Button.lua require "gui/box" require "gui/text" Button = {} Button.__index = Button setmetatable(Button, { __call = function (cls, ...) local self = setmetatable({}, cls) self:_init(...) return self end, }) function Button:_init(text, x, y, font, scale, textColor, cam) self.x = x self.y = y s...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Let's Raid (c) 2019 by Siarkowy <http://siarkowy.net/letsraid> -- Released under the terms of BSD 3-Clause "New" license (see LICENSE file). -------------------------------------------------------------------------------- local abs = a...
nilq/small-lua-stack
null
local thisActor = ... local thisContainer = scaleform.Actor.container(thisActor) local thisPos = scaleform.Actor.local_position(thisActor) scaleform.Actor.set_mouse_enabled_for_children(thisActor, false) local SCALE_FACTOR = 1.25 local function highlightButton() -- Increase size of buttons local iconActor = sca...
nilq/small-lua-stack
null
require("ts3init") require("ts3defs") require("ts3errors") local MODULE_NAME = "acjc" function tableReverse(t) local revT = {} for k, v in pairs(t) do revT[v] = k end return revT end function sortedPairsByKeys(t, comp) local sortedKeys = {} for k, _ in pairs(t) do table.insert(sortedKeys, k) en...
nilq/small-lua-stack
null
--[[ Simple fizz buzz implementation --]] local function is_multiple_of(divisor, number) return number % divisor == 0 end local function check_that_number_is_greater_than_zero(number) if number <= 0 then error('Error: number must be > 0') end end local function figure_out_result(number) local result = nu...
nilq/small-lua-stack
null
local _, private = ... --[[ Lua Globals ]] -- luacheck: globals --[[ Core ]] local Aurora = private.Aurora local Base = Aurora.Base local Skin = Aurora.Skin local Color = Aurora.Color --do --[[ FrameXML\MainMenuBarBagButtons.lua ]] --end do --[[ FrameXML\MainMenuBarBagButtons.xml ]] function Skin.BagSlotButtonT...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Module declaration -- local mod, CL = BigWigs:NewBoss("Loken", 602, 600) if not mod then return end mod:RegisterEnableMob(28923) -------------------------------------------------------------------------------- -- Initialization -- f...
nilq/small-lua-stack
null
local localization = { ATT_STR_BUYER = "Покупатель", ATT_STR_SELLER = "Продавец", ATT_STR_GUILD = "Гильдия", ATT_STR_ITEM = "Предмет", ATT_STR_UNIT_PRIC...
nilq/small-lua-stack
null
local increasing = {[416] = 417, [426] = 425, [446] = 447, [3216] = 3217, [3202] = 3215, [11062] = 11063} local decreasing = {[417] = 416, [425] = 426, [447] = 446, [3217] = 3216, [3215] = 3202, [11063] = 11062} function onStepIn(creature, item, position, fromPosition) if not increasing[item.itemid] then return tru...
nilq/small-lua-stack
null
-- aes256.lua -- This file is part of AES-everywhere project (https://github.com/mervick/aes-everywhere) -- -- This is an implementation of the AES algorithm, specifically CBC mode, -- with 256 bits key length and PKCS7 padding. -- -- Copyright Andrey Izman (c) 2018-2019 <izmanw@gmail.com> -- Copyright Philip Mayer (c)...
nilq/small-lua-stack
null
local t = Def.ActorFrame{ Def.Quad{ InitCommand=cmd(FullScreen;diffuse,color("0,0,0,1")); }; }; t[#t+1] = Def.ActorFrame { InitCommand=cmd(Center;blend,Blend.Add;;); LoadActor(THEME:GetPathB("","ScreenLogo background/bg"))..{ OnCommand=cmd(diffusealpha,1;sleep,5;linear,0.165;diffusealpha,0); }; Def....
nilq/small-lua-stack
null
//----------------Silent Raid---------------------- // //Silently notifies admins of the starting of a raid // // //commit 07-19-17 //by Mikomi Hooves //------------------------------------------------- //------------------------------------------------- // BLogs Setup //--------------------------------...
nilq/small-lua-stack
null
vim.g.scnvim_postwin_orientation = "h" vim.g.scnvim_postwin_size = 7 vim.g.scnvim_scdoc = 0 vim.g.scnvim_scdoc_render_prg = "f:\\devel\\Scripts\\pandoc.exe" vim.g.scnvim_snippet_format = "luasnip" --vim.g.scnvim_no_mappings = 1 vim.keymap.set("n", "<M-e>", "<Plug>(scnvim-send-block)", { remap = true }) vim.keymap.set(...
nilq/small-lua-stack
null
--- === plugins.finalcutpro.timeline.playback === --- --- Playback Plugin. local require = require local fcp = require "cp.apple.finalcutpro" local i18n = require "cp.i18n" local tools = require "cp.tools" local playErrorSound = tools.playErrorSound local mod = {}...
nilq/small-lua-stack
null
return {'tbc'}
nilq/small-lua-stack
null
---------------------------------------------------------------- -- Copyright © 2019 by Guy Shefer -- Made By: Guy293 -- GitHub: https://github.com/Guy293 -- Fivem Forum: https://forum.fivem.net/u/guy293/ -- Tweaked by Campinchris (Added ESX only Diff animation for Police and Non Police) -------------------------------...
nilq/small-lua-stack
null
local class = function() local c = {} c.__index = c c.class = c c.new = function(...) local obj = {} setmetatable(obj,c) obj:init(...) return obj end setmetatable(c, {__call = function(t, ...) return c.new(...) end }) return c end return class
nilq/small-lua-stack
null
--estudos sobre lua --[[ comentario ]] print("Hello World with lua ")
nilq/small-lua-stack
null
--- 验证spi flash驱动接口 目前该驱动兼容w25q32 bh25q32 require"spiFlash" require "pm" pm.wake("testSpiFlash") local flashlist = { [0xEF15] = 'w25q32', [0xEF16] = 'w25q64', [0xEF17] = 'w25q128', [0x6815] = 'bh25q32', } sys.taskInit(function() local spi_flash = spiFlash.setup(spi.SPI_1) while...
nilq/small-lua-stack
null
local key = ModPath .. ' ' .. RequiredScript if _G[key] then return else _G[key] = true end for character, tweaks in pairs(tweak_data.character) do if type(tweaks) == "table" and tweaks.move_speed and character ~= "presets" then tweaks.hostage_move_speed = tweaks.surrender and tweaks.surrender ~= tweak_data.charact...
nilq/small-lua-stack
null
local Class = require'libs.hump.class' local Trigger = require'trigger' EnemyCollision = Class{ __includes = Trigger } function EnemyCollision:init(x,y,w,h,properties) Trigger:init(self,x,y,w,h) self.name = "EnemyCollision" self.x = x self.y = y self.w = w self.h = h self.map = map ...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: chen0 -- Date: 29/6/2017 -- Time: 4:55 PM -- To change this template use File | Settings | File Templates. -- describe("Union Find", function() it("should connect points union together", function() local unionfind = require('lualgorithms.unionfind').create() ...
nilq/small-lua-stack
null
require("import") -- the import fn import("cpp_namespace") -- import lib into global cn=cpp_namespace --alias -- catching undefined variables local env = _ENV -- Lua 5.2 if not env then env = getfenv () end -- Lua 5.1 setmetatable(env, {__index=function (t,i) error("undefined global variable `"..i.."'",2) end}) asser...
nilq/small-lua-stack
null
--- -- @author wesen -- @copyright 2019-2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local Object = require "classic" --- -- Provides methods to read a file. -- -- @type File -- local File = Object:extend() --- -- The file path of the file -- -- @tfield string path -- File.path = nil --- -- Fil...
nilq/small-lua-stack
null
local WEAPON = FindMetaTable("Weapon") function WEAPON:GetPrimaryAmmoName() return game.GetAmmoName(self:GetPrimaryAmmoType()) end function WEAPON:GetSecondaryAmmoName() return game.GetAmmoName(self:GetSecondaryAmmoType()) end -- FIXME function WEAPON:GetDefaultClip1() return self:IsScripted() and sel...
nilq/small-lua-stack
null
--[[ Tester for LinearNet Copyright 2016 Xiang Zhang --]] local class = require('pl.class') local math = require('math') local torch = require('torch') local Test = class() -- Constructor -- data: the data instance -- model: the model instance -- loss: the loss instance -- config: configuration table function Test:_...
nilq/small-lua-stack
null
TestEnums = { modulesEnums = {"MODULES_4"}, arrays = {111,222}, moduelsEnums2 = {"MODULES_2","MODULES_1"}, integer = 0 }
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
local branch_id = ARGV[1]; local mh_id = ARGV[2]; local assigned_pss_for_branch = redis.call("HGET", "{BAMH}:MH_BRANCH_ASSIGNATIONS", branch_id); if assigned_pss_for_branch == mh_id or assigned_pss_for_branch == "UNAVAILABLE" .. mh_id or assigned_pss_for_branch == "SHUTTINGDOWN" .. mh_id then redis.call("HDEL", "{...
nilq/small-lua-stack
null
local cmp_status_ok, cmp = pcall(require, 'cmp') if not cmp_status_ok then vim.notify('Not able to load in cmp', 'error') return end local tabnine_status_ok, tabnine = pcall(require, 'cmp_tabnine.config') if not tabnine_status_ok then vim.notify('Not able to load in tabnine', 'error') return end local lspkind...
nilq/small-lua-stack
null
--Copyright 2019 Control4 Corporation. All rights reserved. do --Globals Timer = Timer or {} end function OnDriverDestroyed () DlnaStopDiscovery () KillAllTimers () end function OnDriverLateInit () KillAllTimers () -- run here in case of driver update to stop timers from running but being out of scope if (C4....
nilq/small-lua-stack
null
local class = require 'middleclass' local lume = require 'lume' -- 基底クラス local Entity = require 'Entity' -- シーン クラス local Scene = class('Scene', Entity) -- 初期化 function Scene:initialize() Entity.initialize(self) end -- シーンの追加 function Scene:addScene(scene) if self.parent then lume.call(self.parent....
nilq/small-lua-stack
null
EtcdClientOpGet = EtcdClientOpGet or class("EtcdClientOpGet", EtcdClientOpBase) function EtcdClientOpGet:ctor() EtcdClientOpSet.super.ctor(self) self[EtcdConst.Key] = nil self[EtcdConst.Wait] = nil self[EtcdConst.Recursive] = nil self[EtcdConst.WaitIndex] = nil self[EtcdConst.PrevExist] = nil ...
nilq/small-lua-stack
null
--[[ 公共状态机,处理游戏开始后的状态逻辑 ]] local PlayIngMechineBase = class(); function PlayIngMechineBase:ctor() self.m_lastState = GameMechineConfig.STATUS_PLAYING; -- 记录上一次的状态 self.m_curState = GameMechineConfig.STATUS_PLAYING; -- 当前状态 self:getActionListenMap(); end function PlayIngMechineBase:getActionListenMa...
nilq/small-lua-stack
null
local WindowedScrollingFrame = require(script.WindowedScrollingFrame) return { WindowedScrollingFrame = WindowedScrollingFrame, }
nilq/small-lua-stack
null
function NewPIDController(p, i, d) local p = { kp = p, ki = i, kd = d, integral = 0, previousError = nil, dt = 0, shouldRunIntegral = false, clear = function(self, time) self.dt = 0 previousTime = time integral = 0 ...
nilq/small-lua-stack
null
FACTION.name = "Одиночки" FACTION.desc = "Одиночки" FACTION.color = Color(210, 105, 30) FACTION.models = { "models/hdmodels/kek1ch/stalker_neutral_1_face_2.mdl", "models/hdmodels/kek1ch/stalker_neutral_1_hq.mdl", "models/hdmodels/kek1ch/stalker_neutral_1_mask.mdl", "models/hdmodels/kek1ch/stalker_neutral_1_...
nilq/small-lua-stack
null
local m,s,o local uci = luci.model.uci.cursor() m = Map("xlnetacc") m.title = translate("XLNetAcc - Settings") m.description = translate("XLNetAcc is a Thunder joint broadband operators launched a commitment to help users solve the low broadband, slow Internet access, poor Internet experience of professional-grade bro...
nilq/small-lua-stack
null
local Filter = require('sre_filter') local patterns = { [[\d+]], [[\W+]], [[^(a|b|c|d)+$]] } local ids = { 1, 2, 3 } filter = Filter:new() filter:init_multi(patterns, ids) print(filter:scan('test')) print(filter:scan('10000')) print(filter:scan('abcdabcd')) print(filter:scan('abcdeabcd')) print(filter:...
nilq/small-lua-stack
null
Config = {} Config.Descriptions = { "I dont have a description", "I have a description", "idk, i have it or no?", } Config.ServerName = { "Your cool server name", "Your cool server name but more COOL" } Config.UpdateCooldown = 10 -- Time in seconds (s)
nilq/small-lua-stack
null
------------------------------------------------------------------------------- -- $$\ $$\ $$\ $$\ -- \__| \__| $$ | $$ | -- $$\ $$$$$$$\ $$\ $$$$$$\ $$ |$$\ $$\ $$$$$$\ -- $$ |$$ __$$\ $$ |\_$$ _| $$ |$$ | $$ | \...
nilq/small-lua-stack
null
--[[ Copyright (c) 2016-present, 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 in the same directory. ]]-- local argc...
nilq/small-lua-stack
null
local server = require "nvim-lsp-installer.server" local path = require "nvim-lsp-installer.path" local std = require "nvim-lsp-installer.installers.std" local root_dir = server.get_server_root_path "groovyls" return server.Server:new { name = "groovyls", root_dir = root_dir, installer = { std.ens...
nilq/small-lua-stack
null
game_name = "<GAME_NAME>" game = {} AUTO_UPDATE = true function _addGameObject(type, obj) obj.uuid = uuid() if obj.update then obj.auto_update = true end game[type] = ifndef(game[type],{}) table.insert(game[type], obj) end function _iterateGameGroup(group, func) for i, obj in ipairs(game[group]) d...
nilq/small-lua-stack
null
-- maths.lua lerp = {} function lerp.lerp(current, target, speed) return current * (1 - speed) + target * speed end return lerp
nilq/small-lua-stack
null
local r = require("restructure") local VoidPointer = r.VoidPointer describe('Pointer', function() describe('decode', function() it('should handle null pointers', function() local stream = r.DecodeStream.new(string.char(0)) local pointer = r.Pointer.new(r.uint8, r.uint8) assert.is_nil(pointer:de...
nilq/small-lua-stack
null
---@class RDSGunmanInBathroom : zombie.randomizedWorld.randomizedDeadSurvivor.RDSGunmanInBathroom RDSGunmanInBathroom = {} ---@public ---@param arg0 BuildingDef ---@return void function RDSGunmanInBathroom:randomizeDeadSurvivor(arg0) end
nilq/small-lua-stack
null
collision = {} function collision.rect2(x1, y1, w1, h1, x2, y2, w2, h2) return (x1 <= x2 + w2) and (x1 + x2 >= x2) and (y1 <= y2 + h2) and (y2 + h2 > y2) end
nilq/small-lua-stack
null
hs.hotkey.alertDuration=0 hs.window.animationDuration = 0 white = hs.drawing.color.white black = hs.drawing.color.black blue = hs.drawing.color.blue osx_red = hs.drawing.color.osx_red osx_green = hs.drawing.color.osx_green osx_yellow = hs.drawing.color.osx_yellow tomato = hs.drawing.color.x11.tomato dodgerblue = hs.dr...
nilq/small-lua-stack
null
gpio.mode(4, gpio.OUTPUT) gpio.write(4, gpio.LOW) clientactive = false clientdns = false counter = 0 usefile = "" createap = function() wifi.setmode(wifi.SOFTAP) wifi.ap.config({ssid="open_internet",pwd=nil}) srv=net.createServer(net.TCP) srv:listen(80,function(conn) conn:on("receive", functi...
nilq/small-lua-stack
null
RegisterNetEvent('wk:velocidade') AddEventHandler('wk:velocidade', function(carro) Citizen.InvokeNative( 0xB59E4BD37AE292DB, carro, 5.0) end)
nilq/small-lua-stack
null
function IncludeScanning() IncludePackage("scanning") local directory = path.join(_GARRYSMOD_COMMON_DIRECTORY, "include", "scanning") local _project = project() local _workspace = _project.workspace sysincludedirs(path.join(_GARRYSMOD_COMMON_DIRECTORY, "include")) links("scanning") filter("system:macosx") ...
nilq/small-lua-stack
null
object_tangible_dungeon_mustafar_working_droid_factory_inhibitor_storage = object_tangible_dungeon_mustafar_working_droid_factory_shared_inhibitor_storage:new { } ObjectTemplates:addTemplate(object_tangible_dungeon_mustafar_working_droid_factory_inhibitor_storage, "object/tangible/dungeon/mustafar/working_droid_factory...
nilq/small-lua-stack
null
return function() local PromptInfo = require(script.Parent.PromptInfo) local AvatarEditorPrompts = script.Parent.Parent local Actions = AvatarEditorPrompts.Actions local CloseOpenPrompt = require(Actions.CloseOpenPrompt) local OpenPrompt = require(Actions.OpenPrompt) local PromptType = require(AvatarEditorPromp...
nilq/small-lua-stack
null
-- _ _ _ _ _ -- / \ | | | | | __ ___ _(_) -- / _ \ | | |_ | |/ _` \ \ / / | -- / ___ \| | | |_| | (_| |\ V /| | -- /_/ \_\_|_|\___/ \__,_| \_/ |_| -- -- github: @AllJavi -- -- Tags configuration local awful = require('awful') local gears = require('gears') local beautiful =...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- single-DEPRECATED-unstrict-mode-suite.lua: suite used for full suite tests -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) -----------------------------------------...
nilq/small-lua-stack
null
class "Logger" function Logger:__init() print("[Zombies] Logger Init") end function Logger:Write(p_Message) print("[Zombies] : " .. p_Message) end return Logger
nilq/small-lua-stack
null
object_tangible_furniture_flooring_tile_frn_flooring_tile_s45 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s45:new { } ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s45, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s45.iff")
nilq/small-lua-stack
null
--- LUA wrapper for moveit planning environment -- dependency to tourch.ros -- @classmod Plan local ffi = require 'ffi' local torch = require 'torch' local ros = require 'ros' local moveit = require 'moveit.env' local utils = require 'moveit.utils' local gnuplot = require 'gnuplot' local Plan = torch.class('moveit.Pla...
nilq/small-lua-stack
null
function RequestExtraIntegerData(dataType, whichPlayer, param1, param2, param3, param4, param5, param6) end function RequestExtraBooleanData(dataType, whichPlayer, param1, param2, param3, param4, param5, param6) end function RequestExtraStringData(dataType, whichPlayer, param1, param2, param3, param4, param5, param6) e...
nilq/small-lua-stack
null
local GUI = require("GUI") ------------------------------------------------------------------------------------------ local workspace = GUI.workspace() workspace:addChild(GUI.panel(1, 1, workspace.width, workspace.height, 0x1E1E1E)) -- Add a palette window to workspace local palette = workspace:...
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.Base = "cw_ammo_ent_base" ENT.PrintName = "Ammo crate" ENT.Author = "Spy" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.Category = "CW 2.0 Ammo" ENT.ResupplyMultiplier = 12 -- max amount of mags the player can take from the ammo entity before it considers him as 'full' ENT.AmmoCapacity = 36...
nilq/small-lua-stack
null
pdata = {} tile = { AIR = 0, ROCK = 1, GRASS = 2, DIRT = 3, STONE = 4, WOOD = 5, SHRUB = 6, BLACKROCK = 7, WATER = 8, WATERSTILL = 9, LAVA = 10, LAVASTILL = 11, SAND = 12, GRAVEL = 13, GOLD = 14, IRON = 15, COAL = 16, TRUNK = 17, LEAF = 18, SPONGE = 19, GLASS = 20, RED = 21, ORANGE = 22, YELLOW...
nilq/small-lua-stack
null
local component = require("component") local fs = require("filesystem") local shell = require("shell") local dirs, options = shell.parse(...) if #dirs == 0 then table.insert(dirs, ".") end io.output():setvbuf("line") for i = 1, #dirs do local path = shell.resolve(dirs[i]) if #dirs > 1 then if i > 1 then ...
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
if SERVER then AddCSLuaFile() end fw.dep(SHARED, "hook") fw.printers = fw.printers or {} fw.include_sh "printers_sh.lua" concommand.Add("fw_reloadprinters", function(ply, cmd, args) if IsValid(ply) and not ply:IsSuperAdmin() then pl:ChatPrint("insufficient privliages") return end fw.hook.GetTable().Initialize.Lo...
nilq/small-lua-stack
null
local piranhas = {} -- Written by Arturo Deza, 2016. -- set everything to zero at beginning before initialization -- Still have to configure an init.lua file. -- That seems the right way to do it. -- Will update it for next release. param = {pixel_res_width=0, pixel_res_height = 0, mon_width = 0, mon_height = 0, vie...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- ---player_bullet_prefab.lua ---author: Karl ---date: 2021.5.30 ---desc: ---modifier: --- Karl, 2021.7.16, split from player_shot_prefabs.lua ---------------------------------------------------------------------------...
nilq/small-lua-stack
null
--========================================================== -- Re-written by bc1 using Notepad++ -- Caches stuff and defines AddSerialEventGameMessagePopup --========================================================== --print( "Lua memory in use: ", Locale.ToNumber( collectgarbage("count") * 1024, "#,###,###,###" ), "...
nilq/small-lua-stack
null
---@class RDSCorpsePsycho : zombie.randomizedWorld.randomizedDeadSurvivor.RDSCorpsePsycho RDSCorpsePsycho = {} ---@public ---@param arg0 BuildingDef ---@return void function RDSCorpsePsycho:randomizeDeadSurvivor(arg0) end
nilq/small-lua-stack
null
function exemplo() print("--------------------------") print("Lado positivo é que ainda retorna os valores que você quer passar") print("--------------------------") coroutine.yield(420) print("--------------------------") print("Isso retornou 420, ") print("você não teve nem q filtrar o primeiro retorno,...
nilq/small-lua-stack
null
-- Zwave Metering Plug ver 1.1 -- Copyright 2021 jido1517 --F -- 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 ofF the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by a...
nilq/small-lua-stack
null
-- Author: Hua Liang[Stupid ET] <et@everet.org> local TileMapScene = class("TileMapScene", function() local scene = cc.Scene:create() scene.name = "TileMapScene" return scene end) function TileMapScene:ctor() local visibleSize = cc.Director:getInstance():getVisibleSize() ...
nilq/small-lua-stack
null
return function (names) local enum = {} for _, name in ipairs(names) do enum[name] = "CoreEnum (" .. name .. ")" end return enum end
nilq/small-lua-stack
null
local present, cursorword = pcall(require, "mini.cursorword") if not present then return end cursorword.setup({ delay = 10, })
nilq/small-lua-stack
null
require('nis.message_window') function silent_print(text) local current_window = vis.win vis:message(tostring(text)) if current_window ~= nil then vis.win = current_window end end function register_colors(window) local holes = {} local existant = {} local lexer = vis.lexers.load("nim", nil, true) for i...
nilq/small-lua-stack
null
display.setStatusBar(display.HiddenStatusBar) local json = require('json') local widget = require('widget') local admob = require('plugin.admob') display.setDefault('background', 1) local xl, xr, y = display.contentWidth * .25, display.contentWidth * .75, display.contentCenterY local w, h = display.contentWidth * 0....
nilq/small-lua-stack
null
--!A cross-platform build utility based on Lua -- -- 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
local M = {} local skynet = require "skynet" local cur_dbs_id = 1 local db_service_cnt = tonumber(skynet.getenv "db_service_cnt") function M.call(cmd, ...) if cur_dbs_id > db_service_cnt then cur_dbs_id = 1 end local service_name = string.format(".db_service_%d", cur_dbs_id) local res = {pcall(skynet.call, serv...
nilq/small-lua-stack
null
include("shared.lua") function ENT:Draw() self:DrawModel() end language.Add("ent_frisbee_sentient","Sentient Frisbee");
nilq/small-lua-stack
null
local Signal = require 'pong.vendor.hump.signal' local Timer = require 'pong.vendor.hump.timer' local Constants = require 'pong.constants' local Court = require 'pong.court' local Utils = require 'pong.utils' local BallBlur = require 'pong.entities.ball_blur' -- The ball that bounces back and forth. local Ball = {} B...
nilq/small-lua-stack
null