content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
return { name = "Glowstone", desc = "Provides light", sprite = 'glowstone', usage = 'equipment', equipment = {light = {radius = 32}} }
nilq/small-lua-stack
null
dofile("base.lua") --dofile("lavaflood.lua")
nilq/small-lua-stack
null
require 'nvim-tree'.setup { git = { enable = true, ignore = true, } }
nilq/small-lua-stack
null
local EquipSlots = require("api.EquipSlots") local Assert = require("api.test.Assert") local Item = require("api.Item") function test_EquipSlots_iter_all_body_parts__blocked() local equip = EquipSlots:new { "elona.hand", "elona.neck" } Assert.eq(2, equip:iter_all_body_parts():length()) Assert.eq(0, equip:ite...
nilq/small-lua-stack
null
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local config = require "game.config" local math_random = math.random local table_insert = table.insert local _M = {} _M.data = { arsen = config.template.arsen, rand1 = {}, box ={}, } _M.box_type...
nilq/small-lua-stack
null
-- Copyright (c) ESX Brasil -- -- All rights reserved. -- -- Even if 'All rights reserved' is very clear : -- -- You shall not use any piece of this software in a commercial product / service -- You shall not resell this software -- You shall not provide any facility to install this particular software in a comme...
nilq/small-lua-stack
null
-- Use a protected call so we don't error out on first use local status_ok, _ = pcall(require, "treesitter-context") if not status_ok then return end require'treesitter-context'.setup{ enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) throttle = true, -- Throttles plugin updat...
nilq/small-lua-stack
null
local modem = peripheral.wrap("right") local ch = 50001 modem.open(ch) local function log(rch, msg) print(msg) -- rch does not work for some reason (it's nil don't know why) modem.transmit(ch+1, ch, msg) end local function checkFuel(rch) if turtle.getFuelLevel() == 0 then log(rch, "Out of fuel!") ret...
nilq/small-lua-stack
null
local lu = require("test.luaunit") local Effect = require("reactivity.effect") local track, trigger, ITERATE_KEY, effect,stop = Effect.track, Effect.trigger, Effect.ITERATE_KEY, Effect.effect, Effect.stop local TriggerOpTypes = require("reactivity.operations.TriggerOpTypes") local Reactive = require("reactivity.react...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
nilq/small-lua-stack
null
local att = {} att.name = "am_4borebs" att.displayName = "Standard Slugs" att.displayNameShort = "Slugs" att.statModifiers = {DamageMult = 11, AimSpreadMult = -.2} if CLIENT then att.displayIcon = surface.GetTextureID("atts/slugrounds") end function att:attachFunc() self.Shots = 1 self:unloadWeapon() end functi...
nilq/small-lua-stack
null
ENT.Base = "base_point" ENT.Type = "point" --entity functions function ENT:Initialize() GAMEMODE.PropSpawnStartPoint = self:GetPos() end
nilq/small-lua-stack
null
-- MATTER SERIALIZER OBJECT -- -- Create the Matter Serializer base object -- MS = { ent = nil, animID = 0, active = false, consumption = _mfMSEnergyDrainPerUpdate, updateTick = 60, lastUpdate = 0, dataNetwork = nil, GCNID = 0, RCNID = 0, selectedInv = 0 } -- Constructor -- function MS:new(...
nilq/small-lua-stack
null
--[[ 军师设置 ]] local THIS_MODULE = ... local AdviserSet = class("AdviserSet", require("app.main.modules.ui.FrameBase"), require("app.main.modules.uiwidget.UIWidgetFocusable")) --[[ 构造函数 config params 额外参数 name 名称 csb csb文件 widgets 组件表 bindings 绑定表 ]] function AdviserSet:ctor(config) self:setup(conf...
nilq/small-lua-stack
null
CreateListCategory( "ControlPoints", "<insert description>" ) CreateListFunction( "SetAllControlPointsNeutral", "Makes all control points neutral. I.e. they will no longer belong to any player." ) function SetAllControlPointsNeutral() GE_SetAllNeutral() end CreateListFunction( "SetAllControlPointsTo", "Make all co...
nilq/small-lua-stack
null
require "auth/auth_commons" function cache_insert_loc(mountpoint, username, publish_acl, subscribe_acl) type_assert(mountpoint, "string", "mountpoint") type_assert(username, "string", "username") type_assert(publish_acl, {"table", "nil"}, "publish_acl") type_assert(subscribe_acl, {"table", "nil"}, "sub...
nilq/small-lua-stack
null
------------------------------------------------------------------------ --- @file ethernet.lua --- @brief Ethernet protocol utility. --- Utility functions for the mac_address and ethernet_header structs --- Includes: --- - Ethernet constants --- - Mac address utility --- - Ethernet header utility --- - Definition of ...
nilq/small-lua-stack
null
local fs = _G.fs local shell = _ENV.shell if not fs.exists('.mbs') then print('Installing MBS') --shell.run('mbs download') end print('Initializing MBS') --shell.run('mbs startup')
nilq/small-lua-stack
null
object_mobile_som_treasure_hunter_merc = object_mobile_som_shared_treasure_hunter_merc:new { } ObjectTemplates:addTemplate(object_mobile_som_treasure_hunter_merc, "object/mobile/som/treasure_hunter_merc.iff")
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. -- each agent shou...
nilq/small-lua-stack
null
local class = require 'middleclass' local anim8 = require 'anim8' local Vector = require 'Vector' local resources = require 'littletanks.resources' local TankChassis = require 'littletanks.TankChassis' local SimpleTankChassis = class('littletanks.SimpleTankChassis', TankChassis) function SimpleTankChassis.static:ini...
nilq/small-lua-stack
null
object_tangible_meatlump_event_meatlump_container_01_06 = object_tangible_meatlump_event_shared_meatlump_container_01_06:new { } ObjectTemplates:addTemplate(object_tangible_meatlump_event_meatlump_container_01_06, "object/tangible/meatlump/event/meatlump_container_01_06.iff")
nilq/small-lua-stack
null
local utils = require('utils') require('formatter').setup({ logging = false, filetype = { -- npm install -g prettier javascript = { function() return { exe = 'prettier', args = { '--stdin-filepath', vim.api.nvim_buf_get_name(0), '--single-quote' }, std...
nilq/small-lua-stack
null
--[[ Retries a failed job by moving it back to the wait queue. Input: KEYS[1] 'active', KEYS[2] 'wait' KEYS[3] jobId ARGV[1] pushCmd ARGV[2] jobId ARGV[3] token Events: 'prefix:added' Output: 0 - OK -1 - Missing key -2 - Job Not locked ]] if...
nilq/small-lua-stack
null
local json = require('json') local Snowflake = require('containers/abstract/Snowflake') local Color = require('utils/Color') local Permissions = require('utils/Permissions') local Resolver = require('client/Resolver') local FilteredIterable = require('iterables/FilteredIterable') local format = string.format l...
nilq/small-lua-stack
null
local status_ok, null_ls = pcall(require, 'null-ls') if not status_ok then return false end local diagnostics = null_ls.builtins.diagnostics local code_actions = null_ls.builtins.code_actions local formatting = null_ls.builtins.formatting local M = {} function M.setup(opts) null_ls.setup { debug = true, ...
nilq/small-lua-stack
null
items = { ["panaea"] = { ["value"] = 3000, ["weight"] = 0.3, ["volume"] = 0.025 }, ["ichor"] = { ["value"] = 1800, ["weight"] = 0.2, ["volume"] = 0.015 }, ["gold"] = { ["value"] = 2500, ["weight"] = 2.0, ["volume"] = 0.002 } } max_weight = 25 max_volume = 0.25 max_num_items = {} f...
nilq/small-lua-stack
null
function chowla(n) local sum = 0 local i = 2 local j = 0 while i * i <= n do if n % i == 0 then j = math.floor(n / i) sum = sum + i if i ~= j then sum = sum + j end end i = i + 1 end return sum end function ...
nilq/small-lua-stack
null
include "./vendor/premake/premake-customization/solution_items.lua" workspace ("VOEngine") configurations {"Debug","Release"} architecture "x64" startproject "Sandbox" outputDir = "%{cfg.system}-%{cfg.architecture}-%{cfg.buildcfg}" group "" include "VOEngine" include "Sandbox" include "VOEngine/vendor/GLFW"
nilq/small-lua-stack
null
if not modules then modules = { } end modules ['font-imp-ligatures'] = { version = 1.001, comment = "companion to font-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local lpegmat...
nilq/small-lua-stack
null
local GridUI = include("lib/libgrid_ui") local Button = include("lib/button") local Fader = include("lib/fader") local Rect = include("lib/rect") local GroupButtons = include("lib/group_button") local ControlSpec = require 'controlspec' local Formatters = require 'formatters' local inspect = include("lib/inspect") l...
nilq/small-lua-stack
null
package("cmake") set_kind("binary") set_homepage("https://cmake.org") set_description("A cross-platform family of tool designed to build, test and package software") if is_host("macosx") then add_urls("https://cmake.org/files/v$(version).tar.gz", {version = function (version) r...
nilq/small-lua-stack
null
-- General modName = "RealisticOres" modRoot = "__" .. modName .. "__" -- Colors mainColors = { iron = {r=0.615, g=0.320, b=0.247}, copper = {r=0.356, g=0.608, b=0.530}, uranium = {r=0.718, g=0.761, b=0.200} } -- Settings names oreNames = {"iron", "copper", "uranium"} local oreSetting_none = "none" local oreSetti...
nilq/small-lua-stack
null
local SCANCODE = { -- UNKNOWN = 0, A = 4, B = 5, C = 6, D = 7, E = 8, F = 9, G = 10, H = 11, I = 12, J = 13, K = 14, L = 15, M = 16, N = 17, O = 18, P = 19, Q = 20, R = 21, S = 22, T = 23, U = 24, V = 25, W = 26, X = 27, Y = 28, Z = 29, NUM_1 = 30, NUM_2 = 31,...
nilq/small-lua-stack
null
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) combat:setArea(createCombatArea(AREA_CIRCLE6X6)) function onTargetCreature(creature, target) creature:addDamageCondition(target, CONDITION_FIRE, DAMAGELIST_VARYING_PERIOD, 10,...
nilq/small-lua-stack
null
-- Rename a file or directory. -- Invoke the script with a 'source' parameter containing the full path to the -- file/folder to rename, and a 'name' parameter containing the new name (without path). -- Mind that URL length for these Lua scripts is limited to about 155 bytes (at -- least on the version of the firmware I...
nilq/small-lua-stack
null
local tag = "MWP" local PLAYER = FindMetaTable("Player") PLAYER._Give = PLAYER._Give or PLAYER.Give function PLAYER:Give(class, ...) self._mwp_allowpickup = true self:_Give(class, ...) self._mwp_allowpickup = false end hook.Add("PlayerCanPickupWeapon", tag, function(ply, wep) local trace = ply:GetEyeTrace() if...
nilq/small-lua-stack
null
function CDOTA_BaseNPC:UnitHasSlotForItem(itemname, bBackpack) if self.HasRoomForItem then return self:HasRoomForItem(itemname, bBackpack, true) ~= 4 else for i = 0, bBackpack and DOTA_STASH_SLOT_6 or DOTA_ITEM_SLOT_9 do local item = self:GetItemInSlot(i) if not IsValidEntity(item) or (item:GetAbilityName()...
nilq/small-lua-stack
null
function EFFECT:Init(data) local pos = data:GetOrigin() local emitter = ParticleEmitter(pos) local color = data:GetStart() local smokesprnum=math.random(1,16) local smokespr="particle/smokesprites_00" if (smokesprnum>9) then smokespr=smokespr..smokesprnum else smokespr=smokespr.."0"..smokesprnum end for i=...
nilq/small-lua-stack
null
object_mobile_selonian_female_27 = object_mobile_shared_selonian_female_27:new { } ObjectTemplates:addTemplate(object_mobile_selonian_female_27, "object/mobile/selonian_female_27.iff")
nilq/small-lua-stack
null
-- Persistent Data local multiRefObjects = { } -- multiRefObjects local obj1 = { ["DatabaseTemplate"] = { [1] = { ["octopusHostDir"] = "/data/Project/octopus_orig/bin/unix/../../sites/extensions"; ["extensionDir"] = "/data/Project/octopus_orig/bin/unix/../../sites/extensions/database"; ["extension"] = 7; ...
nilq/small-lua-stack
null
--[[ Copyright (c) 2013 David Young dayoung@goliathdesigns.com This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any pu...
nilq/small-lua-stack
null
--[[------------------------------------------------------ lk.Process ---------- A Process is just a lk.Patch with network connectivity through the use of an lk.Service. --]]------------------------------------------------------ local lib = {type='lk.Process'} lib.__index = lib lk.Process = lib -- lk.Proc...
nilq/small-lua-stack
null
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Forcer" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "Forcer" function ENT:SetupDataTables() self:NetworkVar( "Float", 0, "BeamLength" ) self:NetworkVar( "Bool", 0, "ShowBeam" ) self:NetworkVar( "Bool", 1, "BeamHighlight"...
nilq/small-lua-stack
null
return function () describe("Checkbox", function() it("should boot", function() local Icon = require(script.Parent) expect(Icon).to.be.ok() end) it("should construct", function() local Icon = require(script.Parent) local icon = Icon.new({}) expect(icon).never.to.equal(nil) icon:Destroy() end)...
nilq/small-lua-stack
null
-- -- Content -- --- A content window for each tab. --- Responsible for rendering the editor. Content = {} Content.__index = Content --- The starting y position of the tab. Content.startY = 3 --- The width of a tab in spaces Content.tabWidth = 2 --- Create a new content window. function Content.new(...) local s...
nilq/small-lua-stack
null
local M = {} local function serialize(obj) local lua = "" local t = type(obj) if t == "number" then lua = lua .. obj elseif t == "boolean" then lua = lua .. tostring(obj) elseif t == "string" then lua = lua .. string.format("%q", obj) elseif t == "table" ...
nilq/small-lua-stack
null
vtest = 1 mtest = 1 ptest = 1 local _ip = require "vyacht-ip" local vy = require "vyacht" local bus = require "ubus" _uci_real = cursor or _uci_real or uci.cursor() vubus = bus.connect() function test_validAddress(ip, valid) iparr, prefix = _ip.IPv4AddressToArray(ip) if va...
nilq/small-lua-stack
null
--[[ TODO log levels -1, instant error() 0 off 1, print and log 2, log only 3, warn log only 4, info log only ]] function doDebug(msg, alert) local level = MOD.config.get("LOGLEVEL", 1) if level == 0 and not alert then return end if (level >= 1 or alert) and type(msg) == "table" then ...
nilq/small-lua-stack
null
-- Copyright 2016-2021 Alejandro Baez (https://keybase.io/baez). See LICENSE. -- PICO-8 lexer. -- http://www.lexaloffle.com/pico-8.php local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, S = lpeg.P, lpeg.S local lex = lexer.new('pico8') -- Whitespace lex:add_rule('whitespa...
nilq/small-lua-stack
null
local SpatialSoftMax, parent = torch.class('cudnn.SpatialSoftMax', 'nn.Module') local errcheck = cudnn.errcheck function SpatialSoftMax:__init(fast) parent.__init(self) if fast then self.algorithm = 'CUDNN_SOFTMAX_FAST' else self.algorithm = 'CUDNN_SOFTMAX_ACCURATE' end end function SpatialSof...
nilq/small-lua-stack
null
--[[ Copyright 2014-2016 The Luvit 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 applic...
nilq/small-lua-stack
null
print "Guess a number" math.randomseed(os.time()) rnd = math.random() number = math.random( 100 ) count = 0 while true do print("What is the number you propose ?") answer = io.read("*n") count = count + 1 print("Your answer is : " .. answer) if answer < number then print("Your answer is too...
nilq/small-lua-stack
null
--type location = {0, 0} DefineStartLocationLoc = function(a, b) DefineStartLocation(a, b[1], b[2]) end GetStartLocationLoc = function(i) local loc = jass.GetStartLocationLoc(i) local p = {GetLocationX(loc), GetLocationY(loc)} RemoveLocation(loc) return p ...
nilq/small-lua-stack
null
require("modules/dsp/luafft/luafft") require("modules/util/string_operations") require("modules/util/stats") abs = math.abs new = complex.new --required for using the FFT function. UpdateSpectrum = false beatslog = table beat = table log_fft = false show_beats = not log_fft --Song = --beats_file = --s...
nilq/small-lua-stack
null
-- {steamID, points, source} local players = {} -- {steamID} local waiting = {} -- {steamID} local connecting = {} -- Points initiaux (prioritaires ou négatifs) local prePoints = Config.Points; -- Emojis pour la loterie local EmojiList = Config.EmojiList local pCards = {} local buttonCreate = {} local IdentifierT...
nilq/small-lua-stack
null
--[[ Angle gates ]] GateActions("Angle") -- Add GateActions["angle_add"] = { name = "Addition", inputs = { "A", "B", "C", "D", "E", "F", "G", "H" }, inputtypes = { "ANGLE", "ANGLE", "ANGLE", "ANGLE", "ANGLE", "ANGLE", "ANGLE", "ANGLE" }, compact_inputs = 2, outputtypes = { "ANGLE" }, output = function(gate, A ...
nilq/small-lua-stack
null
--[[ TheNexusAvenger Service for managing feature flags with Nexus Admin. --]] local ReplicatedStorage = game:GetService("ReplicatedStorage") local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ReplicatedStorage")) local ServerScriptServiceProject = require(ReplicatedStor...
nilq/small-lua-stack
null
require "class" Vector3 = Class(function(self, x, y, z) self.x, self.y, self.z = x or 0, y or 0, z or 0 end) Point = Vector3 function Vector3:__add(rhs) return Vector3(self.x + rhs.x, self.y + rhs.y, self.z + rhs.z) end function Vector3:__sub(rhs) return Vector3(self.x - rhs.x, self.y - rhs.y, self.z - ...
nilq/small-lua-stack
null
-- premake5.lua defines { "TRACE" } workspace "Erlang.NET" configurations { "Debug", "Release" } filter "configurations:Debug" defines { "DEBUG" } symbols "On" filter "configurations:Release" optimize "On" project "test" location "test" kind "ConsoleApp" language "C#"...
nilq/small-lua-stack
null
require("lsp").setup "typescript"
nilq/small-lua-stack
null
HpwRewrite.Language = HpwRewrite.Language or { } HpwRewrite.Language.Languages = HpwRewrite.Language.Languages or { } HpwRewrite.Language.CurrentLanguage = "en" function HpwRewrite.Language:AddLanguage(codename, name) if self.Languages[codename] then return end self.Languages[codename] = { } self.Languages[codena...
nilq/small-lua-stack
null
g_DGSCanvasIndex = 0 function dgsCreateCanvas(renderSource,w,h,color) assert(isElement(renderSource),"Bad argument @dgsCreateCanvas at argument 1, expected texture/shader/render target got "..type(renderSource)) local eleType = getElementType(renderSource) assert(eleType=="shader" or eleType=="texture" or eleType=="...
nilq/small-lua-stack
null
local _hook_Add = hook.Add if not gAC.config.ANTISCREENGRAB_CHECKS then return end gAC.Network:AddReceiver( "CRV", function(data, plr) if plr.AntiScreenGrab then return end plr.AntiScreenGrab = true gAC.AddDetection( plr, "Anti-Screengrab Detected [Code 130]", gAC.config.ANTISCREENGRAB_...
nilq/small-lua-stack
null
slot1 = 99 class("ChangeChatRoomCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot2 = slot1:getBody() if not getProxy(PlayerProxy) then return end if not slot3:getData() then return end if not slot2 then pg.TipsMgr.GetInstance():ShowTips(i18n("main_notificationLayer_not_roomId")) retu...
nilq/small-lua-stack
null
-- -- Register basic_signs for Magic pen -- https://gitlab.com/VanessaE/basic_signs -- local nodes = {} for nodename,_ in pairs(minetest.registered_nodes) do if nodename:find('^basic_signs:') then -- Match found, add to registration list table.insert(nodes, nodename) end end if minetest.registered_nodes["defaul...
nilq/small-lua-stack
null
-- Copyright (c) 2016, prpl Foundation -- -- Permission to use, copy, modify, and/or distribute this software for any purpose with or without -- fee is hereby granted, provided that the above copyright notice and this permission notice appear -- in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
nilq/small-lua-stack
null
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false) local validUnits = {"player", "target", "focus", "pet", "vehicle", "targettarget", "main hand weapon", "off hand weapon"} local buffOrDebuff = {"buff", "debuff", "charges", "spell count"} -- OVERRIDE function IceStackCounter_GetOptions(frame, opts) opts["...
nilq/small-lua-stack
null
-- fsu.lua : File System Utilities -- -- This is a collection of file utility functions that use only standard Lua -- API functions. Use the "lfsu" module for additional functions that -- require LFS. -- -- Functions -- ========= -- -- Without LFS, FSU cannot detect the underlying OS, so it provides two -- versions of...
nilq/small-lua-stack
null
require('src/test') require('src/core') require('src/builtins') require('src/contextlib') require('src/objects') require('src/logic') require('src/string') require('src/system') require('src/navigation') describe('navigation', it('tree_root_nagivation', function() local l = list() local function f(v) retur...
nilq/small-lua-stack
null
local Container = require('containers/abstract/Container') local Ban, get = require('class')('Ban', Container) function Ban:__init(data, parent) Container.__init(self, data, parent) self._user = self.client._users:_insert(data.user) end function Ban:__hash() return self._user._id end function Ban:de...
nilq/small-lua-stack
null
slot2 = "GetRedPacketPopupView" GetRedPacketPopupView = class(slot1) GetRedPacketPopupView.ctor = function (slot0) slot6 = "csb/common/PopUpRedPacketTip.csb" ClassUtil.extends(slot2, slot0, AbstractZoomPopupView, true) slot5 = false slot9 = slot0.onContentTxtChanged createSetterGetterHandler(slot2, slot0, "con...
nilq/small-lua-stack
null
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) util.AddNetworkString( "alcoholvendoropen" ) util.AddNetworkString( "AVBuyBeer" ) util.AddNetworkString( "AVBuyWine" ) util.AddNetworkString( "AVBuyGin" ) util.AddNetworkString( "AVSellAll" ) local AVBuyPriceBeer local AVSellPriceBeer lo...
nilq/small-lua-stack
null
--------------------- DIMENSIONAL TANK MK1 ------------------------ --------- TANK 1 ---------- -- Entity -- dmE = {} dmE.type = "storage-tank" dmE.name = "StorageTank1MK1" dmE.icon = "__Mobile_Factory_Graphics__/graphics/icones/DimensionalTank1.png" dmE.icon_size = 32 dmE.flags = {"placeable-player", "player...
nilq/small-lua-stack
null
arrows = { {"throwing:arrow", "throwing:arrow_entity"}, {"throwing:arrow_fire", "throwing:arrow_fire_entity"}, {"throwing:arrow_teleport", "throwing:arrow_teleport_entity"}, {"throwing:arrow_dig", "throwing:arrow_dig_entity"}, {"throwing:arrow_build", "throwing:arrow_build_entity"} } local throwing_shoot_arrow = ...
nilq/small-lua-stack
null
----------------------------------- -- Insurgency -- Scythe weapon skill -- Skill level: N/A -- Delivers a fourfold attack. Damage varies with TP. Liberator: Aftermath effect varies with TP. -- Available only after completing the Unlocking a Myth (Dark Knight) quest. -- Appears to be heavily modified by attack. -- Alig...
nilq/small-lua-stack
null
local buf_map = require('core.utils').keymap.buf_map buf_map('n', '<space>ts', '<cmd>0r ~/.config/nvim/after/skeleton/python<CR>')
nilq/small-lua-stack
null
local msg context("Selectors test", function() local rspamd_task = require "rspamd_task" local logger = require "rspamd_logger" local lua_selectors = require "lua_selectors" local test_helper = require "rspamd_test_helper" local cfg = rspamd_config local task test_helper.init_url_parser() before(funct...
nilq/small-lua-stack
null
--- Test motor encoders. local ledr = require 'led_ring' ledr.init(50) local pos = { 1, 1, 1 } local feedback_encoders = function (encoder, dir, counter) print("encoder: " .. encoder,"direction: "..dir,"counter: "..counter) ledr.set_led(pos[encoder], 0, 0, 0) pos[encoder] = counter % ledr.n_leds + 1 local ...
nilq/small-lua-stack
null
return { code = "EXAMPLE_DLG_OK", desc = "例子:单按钮提示,用户自己提供回调", style = { _name = 'ErrorStyleDlgOk', btn_name = "联知道了", }, }
nilq/small-lua-stack
null
return { ["a"] = 1, ["b"] = 2, ["c"] = 3, ["d"] = "", ["e"] = "something else", ["f"] = { ["g"] = { ["off"] = 0, ["on"] = 1 } }, ["h"] = { ["i"] = "dd" } }
nilq/small-lua-stack
null
local _2afile_2a = "fnl/conjure/linked-list.fnl" local _2amodule_name_2a = "conjure.linked-list" local _2amodule_2a do package.loaded[_2amodule_name_2a] = {} _2amodule_2a = package.loaded[_2amodule_name_2a] end local _2amodule_locals_2a do _2amodule_2a["aniseed/locals"] = {} _2amodule_locals_2a = (_2amodule_2a)...
nilq/small-lua-stack
null
local first_run = not _G.bfredl if first_run then local status, fire = pcall(require, 'vim.dumpster_fire') if status then fire.dumpster_test("/tmp/mycache") end end package.loaded.bfredl = nil -- force reload _G.bfredl = require'bfredl' _G.b = _G.bfredl -- for convenience if first_run then vim.cmd [[aut...
nilq/small-lua-stack
null
-- Event management -- event = {} event.listeners = { ["component_added"] = function(addr, ctype) if ctype == "filesystem" then if fs.mount then fs.mount(addr) end elseif ctype == "gpu" then term.enableGPU(addr) end end, ["component_removed"] = function(addr, ctype) ...
nilq/small-lua-stack
null
return { "_preload.lua", "android.lua", "vsandroid_vcxproj.lua", "vsandroid_sln2005.lua", "vsandroid_vstudio.lua", "vsandroid_androidproj.lua", }
nilq/small-lua-stack
null
local PopupDialogScreen = require "screens/popupdialog" local assets= { Asset("ANIM", "anim/cave_exit_rope.zip"), } local function GetVerb(inst) return STRINGS.ACTIONS.ACTIVATE.CLIMB end local function onnear(inst) inst.AnimState:PlayAnimation("down") inst.AnimState:PushAnimation("idle_loop", true) inst....
nilq/small-lua-stack
null
--- # --- # ADDMONEY --- # xAdmin.Core.RegisterCommand("addmoney", "[DarkRP] Gives the target X money", 100, function(admin, args) if not args or not args[1] then return end if not DarkRP then return end if not args[2] or not tonumber(args[2]) or tonumber(args[2]) <= 0 then xAdmin.Core.Msg({xAdmin.Config.C...
nilq/small-lua-stack
null
-- Lighting mode as f.lux -- -- Author: Yuhuang Hu -- Email : duguyue100@gmail.com -- Lighting support local color_temp = 3400 local night_start = "19:00" local night_end = "8:00" local transition = hs.timer.hours(3) local invert_at_night = false local wf_redshift=hs.window.filter.new({VLC={focused=true},Photos={focu...
nilq/small-lua-stack
null
---------------------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- -- -...
nilq/small-lua-stack
null
g_atat_house_loot_deed = { description = "ATAT House Blueprint", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "atat_house_loot_deed", weight = 10000000} } } addLootGroupTemplate("g_atat_house_loot_deed", g_atat_house_loot_deed)
nilq/small-lua-stack
null
local function anim(i) local str = [[ animations { id: "]] .. i .. [[" start_tile: ]] .. i .. [[ end_tile: ]] .. i .. [[ playback: PLAYBACK_NONE fps: 30 flip_horizontal: 0 flip_vertical: 0 }]] print(str) end print([[ image: "/map/siberia.png" tile_width: 32 tile_height: 32 tile_margin: 0 tile_spacing: ...
nilq/small-lua-stack
null
#include "datascripts/color4.lua" function c_UiColor(color4) UiColor(color4.r, color4.g, color4.b, color4.a) end function c_UiColorFilter(color4) UiColorFilter(color4.r, color4.g, color4.b, color4.a) end function c_UiTextOutline(color4, thickness) thickness = thickness or 0.1 UiTextOutline(color4.r, color4.g, ...
nilq/small-lua-stack
null
local authRouter = require("app.routes.auth") local todoRouter = require("app.routes.todo") local errorRouter = require("app.routes.error") return function(app) app:use("/auth", authRouter()) app:use("/todo", todoRouter()) app:use("/error", errorRouter()) app:get("/", function(req, res, next) ...
nilq/small-lua-stack
null
---------------------------- -- SSBase -- -- Created by Skeyler.com -- ---------------------------- DeriveGamemode("base") GM.Name = "SSBase" GM.Author = "Skeyler Servers" GM.Email = "info@skeyler.com" GM.Website = "skeyler.com" GM.TeamBased = false GM.VIPBonusHP = false ...
nilq/small-lua-stack
null
local effect = {} effect.name = "Color waves" effect.wait = 1/20 effect.params = { text="Ciao", -- text to write fg={r=1, g=1, b=0}, -- text color color bg={r=0, g=0, b=0}, -- background color } effect.update = function(gen, params) for j = 0, ny, 1 do t = zmatrix[0][j] for i = 0, nx-1, 1 d...
nilq/small-lua-stack
null
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local accMgr = require "manager.accMgr" local roleMgr = require "manager.roleMgr" local global = require "game.global" local config = require "game.config" local geturl = require "include.geturl" lo...
nilq/small-lua-stack
null
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT return function(source, dest, overwrite) for k, v in pairs(source) do if overwrite or not dest[k] then dest[k] = v end end end
nilq/small-lua-stack
null
--[[------------------------------------------------------------------------- Access The access flags work by adding or removing a char to a player's string. When we need to check a player's access we look for that access flag (char) in that string and if we find it, they have that access. If we don't they don't. Wha...
nilq/small-lua-stack
null
AddCSLuaFile('cl_init.lua') AddCSLuaFile('shared.lua') include('shared.lua') util.AddNetworkString("starfall_custom_prop") function ENT:Initialize() self.BaseClass.Initialize(self) self:PhysicsInitMultiConvex(self.Mesh) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:EnableCustomCollisions...
nilq/small-lua-stack
null
local _={} _[130]={} _[129]={} _[128]={} _[127]={} _[126]={} _[125]={} _[124]={} _[123]={} _[122]={} _[121]={} _[120]={text="c",tags=_[130]} _[119]={text="b",tags=_[129]} _[118]={text="a",tags=_[128]} _[117]={} _[116]={text="ab",tags=_[127]} _[115]={text="aa",tags=_[117]} _[114]={text="ab"} _[113]={text="aa"} _[112]={}...
nilq/small-lua-stack
null