content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel( "models/press-plates/press_handle.mdl" ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_NONE ) self:SetSolid( SOLID_VPHYSICS ) self:SetUseType(SIMPLE_USE) loc...
nilq/small-lua-stack
null
local state = {} state._NAME = ... local Body = require'Body' local t_entry, t_update, t_exit local timeout = 10.0 require'hcm' require'wcm' local movement_stage=0 local t_next local timeout_min=2 local timeout_max=9 local table_dist_max = 0.7 local table_depth_max = 0.25 head_move={ {{0,0,1},3,4.5}, {{0,-15...
nilq/small-lua-stack
null
local ActiveRecord = require 'charon.ActiveRecord' local test = {} test.should_error_if_file_not_exists = function() ActiveRecord.reset() ActiveRecord.config = "config/file_not_exists.json" local status, message = pcall(ActiveRecord.loadConfig) assert( status == false ) assert( message:contains('file config/...
nilq/small-lua-stack
null
return { pfsoundsample = { -- not sure if this should be in the fmodtypes unit type = 'pfsoundsample', fields = { } }, fsound_free = { -- not sure if this should be in the fmodtypes unit type = 'integer' }, fsound_all = { -- not sure if this should be in the fmodtypes unit type...
nilq/small-lua-stack
null
---@class CS.FairyEditor.FButton : CS.FairyEditor.ComExtention ---@field public changeStageOnClick boolean ---@field public COMMON string ---@field public CHECK string ---@field public RADIO string ---@field public UP string ---@field public DOWN string ---@field public OVER string ---@field public SELECTED_OVER string...
nilq/small-lua-stack
null
Inherit = 'ScrollView' UpdateDrawBlacklist = {['NeedsItemUpdate']=true} TextColour = colours.black BackgroundColour = colours.white HeadingColour = colours.lightGrey SelectionBackgroundColour = colours.blue SelectionTextColour = colours.white Items = false CanSelect = false Selected = nil NeedsItemUpdate = false ItemM...
nilq/small-lua-stack
null
Button = File.LoadLua("button/button.lua")() Global = File.LoadLua("global/global.lua")() Fonts = File.LoadLua("global/fonts.lua")() Colors = File.LoadLua("global/colors.lua")() Popup = File.LoadLua("global/popup.lua")() Control = File.LoadLua("global/control.lua")() Context = File.LoadLua("global/context.lua...
nilq/small-lua-stack
null
---@class IsoChunkRegion : zombie.iso.areas.isoregion.regions.IsoChunkRegion ---@field private manager IsoRegionManager ---@field private isInPool boolean ---@field private color Color ---@field private ID int ---@field private zLayer byte ---@field private squareSize byte ---@field private roofCnt byte ---@field priva...
nilq/small-lua-stack
null
--- -- unit_types local UnitTypes = { trooper = "trooper" } return UnitTypes
nilq/small-lua-stack
null
local ParentEquipment = script:GetCustomProperty("ParentEquipment"):WaitForObject() local HidePlayer = script:GetCustomProperty("HidePlayer") local CLASS_ID = ParentEquipment:GetCustomProperty("ClassID") local AnimationStance = ParentEquipment:GetCustomProperty("AnimationStance") function OnEquipped(thisEquipment, pla...
nilq/small-lua-stack
null
--[[ Copyright 2008-2020 João Cardoso Sushi is distributed under the terms of the GNU General Public License (or the Lesser GPL). This file is part of Sushi. Sushi 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, ...
nilq/small-lua-stack
null
local class = require('opus.class') local UI = require('opus.ui') local colors = _G.colors --[[-- TabBarMenuItem --]]-- UI.TabBarMenuItem = class(UI.Button) UI.TabBarMenuItem.defaults = { UIElement = 'TabBarMenuItem', event = 'tab_select', textColor = colors.black, selectedBackgroundColor = colors.cyan, unsel...
nilq/small-lua-stack
null
local uv = require'lluv' local loop = {} local timeout, default_timeout, active_timer, debug_traceback local function close_all_handles() uv.handles(function(handle) if not(handle:closed() or handle:closing()) then return handle:close() end end) end loop.create_timer = function(secs, on_timeout) ...
nilq/small-lua-stack
null
-- CmdHandler.lua -- Contains all the command handlers function HandleCatastropheCommand(a_Split, a_Player) -- /catastrophe <catastrophe> -- No name was given. Send the usage of the catastrophe plugin, and a list of available catastrophes. if (not a_Split[2]) then a_Player:SendMessage("Usage: " .. a_Split...
nilq/small-lua-stack
null
local _M = {} function _M:new() return setmetatable({ children = {}, }, {__index = self}) end function _M:append_child(child_key, trie_node) self.children[child_key] = trie_node end function _M:set_value(value) self.value = value end function _M:find_child_by_key(key) if not self.childre...
nilq/small-lua-stack
null
----------------------------------- -- Area: Port Bastok -- NPC: Numa -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Port_Bastok/IDs") require("scripts/globals/shop") function onTrade(player, npc, trade) end function onTrigger(player, npc) local stock = { ...
nilq/small-lua-stack
null
local Column = require('modutram.grid.Column') local Slot = require('modutram.slot.Slot') local GridModule = require('modutram.grid_module.Base') local t = require('modutram.types') local Grid = {} function Grid:new(o) o = o or {} if not o.config then error('Grid MUST have a config attribu...
nilq/small-lua-stack
null
SLASH_ARMYDATA1 = "/army" local frame = CreateFrame("FRAME", "ArmyData") frame:RegisterEvent("PLAYER_LOGIN") frame:RegisterEvent("VARIABLES_LOADED") frame:RegisterEvent("PLAYER_MONEY") frame:RegisterEvent("CURRENCY_DISPLAY_UPDATE") frame:RegisterEvent("PLAYER_LOOT_SPEC_UPDATED") local currencies = { -- Resources ...
nilq/small-lua-stack
null
require("lbase/global") require("lbase/extend") local LBase = { Class = require("lbase/class"), Utils = require("lbase/utils"), Log = require("lbase/log"), LinkedList = require("lbase/linked_list"), Queue = require("lbase/queue"), MinHeap = require("lbase/min_heap"), LruCache = require("lbase/lru_cache"), Even...
nilq/small-lua-stack
null
local colors = require("colors") local drawing = require("drawing") local missing = {} function missing.draw(room, entity) local x = entity.x or 0 local y = entity.y or 0 drawing.callKeepOriginalColor(function() love.graphics.setColor(colors.entityMissingColor) love.graphics.rectangle("fi...
nilq/small-lua-stack
null
object_draft_schematic_droid_droid_super_battle_droid = object_draft_schematic_droid_shared_droid_super_battle_droid:new { } ObjectTemplates:addTemplate(object_draft_schematic_droid_droid_super_battle_droid, "object/draft_schematic/droid/droid_super_battle_droid.iff")
nilq/small-lua-stack
null
splash = {} splash.list = {} splash.toRemove = {} function splash.new(xPos, yPos, radius) if splash.newSilent(xPos, yPos, radius) then sounds.splash() end end function splash.newSilent(xPos, yPos, radius) if collisions.isLand(xPos, yPos) then return false end local s = { x ...
nilq/small-lua-stack
null
-- title: Benchmark -- author: MonstersGoBoom -- desc: several performance tests -- script: lua local runningTime = 0 local t = 0 local RUNNER = {} -- predictable random -- give the same sequence every time local random = {} random.max = 8000 random.count = 0 for x=0,random.max do random[x+1] = math.random(100)...
nilq/small-lua-stack
null
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local GuiService = game:GetService("GuiService") local Roact = require(ReplicatedStorage.Packages.Roact) local Hooks = require(ReplicatedStorage.P...
nilq/small-lua-stack
null
local Runner = require "nvim-test.runner" local cmd = "pytest" if vim.env.VIRTUAL_ENV and vim.fn.filereadable(vim.env.VIRTUAL_ENV .. "/bin/pytest") then cmd = vim.env.VIRTUAL_ENV .. "/bin/pytest" end local pytest = Runner:init({ command = cmd, }, { python = [[ ; Class ((class_definition name...
nilq/small-lua-stack
null
-- -- xcode11.lua -- Define the Apple XCode 11.0 action and support functions. -- local premake = premake premake.xcode11 = { } local xcode = premake.xcode local xcode10 = premake.xcode10 local xcode11 = premake.xcode11 function xcode11.XCBuildConfiguration_Target(tr, target, cfg) local options = xcode10.XC...
nilq/small-lua-stack
null
-- Minetest: builtin/features.lua core.features = { glasslike_framed = true, nodebox_as_selectionbox = true, chat_send_player_param3 = true, get_all_craft_recipes_works = true, use_texture_alpha = true, no_legacy_abms = true, texture_names_parens = true, area_store_custom_ids = true, } function core.has_featu...
nilq/small-lua-stack
null
QhunCore.AbstractMessage = {} QhunCore.AbstractMessage.__index = QhunCore.AbstractMessage -- constructor function QhunCore.AbstractMessage.new() -- private properties local instance = { _channel = nil, _text = "", _sender = nil } setmetatable(instance, QhunCore.AbstractMessage)...
nilq/small-lua-stack
null
/******************************* Adv. Consolescreen Wrapper for Wiremod (C) Sebastian J. ********************************/ TOOL.Category = "Wire Extras/Memory" TOOL.Name = "Dynamic Memory" TOOL.Command = nil TOOL.ConfigName = "" TOOL.Tab = "Wire" if ( CLIENT ) then language.Add( "Tool.wire_dynmemory....
nilq/small-lua-stack
null
local a=require("filesystem")local b=require("shell")local c,d=b.parse(...)local e=table.remove(c,1)local f=_G._XAF;local g=f and f._VERSION or''if e then local h="io.github.aquaver"local i="xaf-framework"local j="scripts"local k="pm"if f then if a.exists(a.concat(h,i,j,k,e..".lua"))==true then local l=a.open(a.concat(...
nilq/small-lua-stack
null
--[[ Copyright 2019 The Nakama Authors 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 agreed to in writing, s...
nilq/small-lua-stack
null
local hud_deathnotice_time = CreateConVar( "hud_deathnotice_time", "6", FCVAR_REPLICATED, "Amount of time to show death notice" ) -- These are our kill icons local Color_Icon = Color( 255, 80, 0, 255 ) local NPC_Color = Color( 250, 50, 50, 255 ) killicon.AddFont( "prop_physics", "HL2MPTypeDeath", "9", Color_Icon ) ...
nilq/small-lua-stack
null
function setToClipboard(content) setClipboard(content) end addEvent("official-interiors:copytoclipboard", true) addEventHandler("official-interiors:copytoclipboard", getLocalPlayer(), setToClipboard)
nilq/small-lua-stack
null
return {'kultuurkamer','kul','kulas','kulkoek','kullen','kulk','kulik','kuling','kulsdom','kulassen','kulde','kulden','kult'}
nilq/small-lua-stack
null
--[[ Copyright 2012 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 applicable law or agre...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Archdruid Glaidalis", 1466, 1654) if not mod then return end mod:RegisterEnableMob(96512) mod.engageId = 1836 --------------------------------------------------------------------...
nilq/small-lua-stack
null
-- -- Copyright 2010-2014 Branimir Karadzic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- project "geometryc" uuid "8794dc3a-2d57-11e2-ba18-368d09e48fda" kind "ConsoleApp" includedirs { BX_DIR .. "include", BGFX_DIR .. "include", BGFX_DIR .. "3rdparty/forsyth-too", ...
nilq/small-lua-stack
null
---------------------------------------- -- -- Copyright (c) 2015, 128 Technology, Inc. -- -- author: Hadriel Kaplan <hadriel@128technology.com> -- -- This code is licensed under the MIT license. -- -- Version: 1.0 -- ------------------------------------------ --[[ This script is a Lua module (not stand-alone) for...
nilq/small-lua-stack
null
-- http://stackoverflow.com/questions/12674345/lua-retrieve-list-of-keys-in-a-table local function keys(tbl) local n = 0 local keyset = {} for k,_ in pairs(tbl) do n = n + 1 keyset[n]=k end return keyset end return keys
nilq/small-lua-stack
null
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Misc") local M = _Misc local mod = M:NewModule("ObjectiveTracker", "AceEvent-3.0") function mod:Initialize() local screenheight = GetScreenHeight() lo...
nilq/small-lua-stack
null
----------------------------------- -- Area: Southern San d'Oria -- NPC: Maugie -- Type: General Info NPC ------------------------------------- local ID = require("scripts/zones/Southern_San_dOria/IDs") require("scripts/quests/flyers_for_regine") require("scripts/globals/settings") require("scripts/globals/quests") --...
nilq/small-lua-stack
null
--[[ shuffles the playlist and moves the currently playing file to the start of the playlist available at: https://github.com/CogentRedTester/mpv-scripts ]]-- function main() mp.command('playlist-shuffle') local pos = mp.get_property_number('playlist-pos') mp.commandv('playlist-move', pos, 0) ...
nilq/small-lua-stack
null
local skynet = require "skynet" local cluster = require "skynet.cluster" local log =require "skynet.log" skynet.start(function() log.info("Server start") local console_port = skynet.getenv("console_port") skynet.uniqueservice("debug_console",console_port) skynet.uniqueservice("static_data") skynet.uniqueservic...
nilq/small-lua-stack
null
local helpers = require "spec.helpers" local cjson = require "cjson" local client = require "resty.websocket.client" local PLUGIN_NAME = "connections-quota" local auth_key = "kong" local auth_key2 = "godzilla" local redis_host = helpers.redis_host local redis_port = 6379 local strategy = "postgres" describe...
nilq/small-lua-stack
null
object_tangible_quest_legacy_valarian_pallet4_datapad = object_tangible_quest_shared_legacy_valarian_pallet4_datapad:new { } ObjectTemplates:addTemplate(object_tangible_quest_legacy_valarian_pallet4_datapad, "object/tangible/quest/legacy_valarian_pallet4_datapad.iff")
nilq/small-lua-stack
null
mobs:register_mob("dmobs:badger", { type = "animal", passive = false, reach = 1, damage = 2, attack_type = "dogfight", hp_min = 12, hp_max = 22, armor = 130, collisionbox = {-0.3, -0.15, -0.3, 0.3, 0.4, 0.3}, visual = "mesh", mesh = "badger.b3d", textures = { {"dmobs_badger.png"}, }, blood_texture = "mo...
nilq/small-lua-stack
null
function table.clone(org) return {unpack(org)} end function Event () local state = { listeners = {} } local api = { debug = false } local function listen (fn) if api.debug then DebugPrint('Adding listener') end local handler = { fn = fn, removed = false } tab...
nilq/small-lua-stack
null
SellOrnateItems = {} SellOrnateItems.name = "SellOrnateItems" function SellOrnateItems:Initialize() EVENT_MANAGER:RegisterForEvent(self.name, EVENT_OPEN_STORE, self.OnVendorOpen) EVENT_MANAGER:RegisterForEvent(self.name, EVENT_CLOSE_STORE, self.OnVendorClose) end function SellOrnateItems.OnAddOnLoad...
nilq/small-lua-stack
null
---@meta ---@class cc.ShuffleTiles :cc.TiledGrid3DAction local ShuffleTiles={ } cc.ShuffleTiles=ShuffleTiles ---* brief Initializes the action with grid size, random seed and duration.<br> ---* param duration Specify the duration of the ShuffleTiles action. It's a value in seconds.<br> ---* param gridSize Specify ...
nilq/small-lua-stack
null
-- // Libraries local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/wally-rblx/uwuware-ui/main/main.lua"))() local EspLibrary = loadstring(game:HttpGet("https://kiriot22.com/releases/ESP.lua"))() -- // Destroy excess GUIS for _, v in ipairs(game.CoreGui:GetChildren()) do if v.Name == "Screen...
nilq/small-lua-stack
null
-- add your own keymappings here local M = {} M.config = function() lvim.keys.normal_mode["<C-s>"] = ":w<cr>" -- unmap a default keymapping -- lvim.keys.normal_mode["<C-Up>"] = false -- edit a default keymapping -- lvim.keys.normal_mode["<C-q>"] = ":q<cr>" -- or this style... lvim.keys.normal_mode = { ...
nilq/small-lua-stack
null
GLib.Resources.ResourceState = GLib.Enum ( { Available = 1, -- Available locally (may have been received from the server) Unknown = 2, -- Not available locally, may be in cache, request needs to be sent to server Requested = 3, -- Requested from server, waiting for response Unavailable ...
nilq/small-lua-stack
null
----------------------------------- -- Area: Attohwa Chasm -- NPC: Cradle_of_Rebirth ----------------------------------- local ID = require("scripts/zones/Attohwa_Chasm/IDs") require("scripts/globals/settings") require("scripts/globals/keyitems") ----------------------------------- function onTrade(player, npc, trade...
nilq/small-lua-stack
null
SCONFIG = L2TConfig.GetConfig(); SCONFIG_FILE = GetDir() .. '\\scripts\\giranToDion.l2b'; L2TConfig.SaveConfig(SCONFIG_FILE); moveDistance = 30; TargetNpc("Кларисса", 30080); MoveTo(83378, 147935, -3406, moveDistance); Talk(); ClickAndWait("teleport_request", "Teleport"); ClickAndWait("teleport_3547261648_2_57_1209030...
nilq/small-lua-stack
null
OBJECT.Name = "Bridge" OBJECT.Creator = "Robin Wellner" OBJECT.Version = 0.0 OBJECT.Resources = { texture = "snakeface/longblock" } OBJECT.TextureScale = { x = 1 , y = 1} OBJECT.Static = false OBJECT.Polygon = { {-1.4, -.4, -1.4, .4, 1.4, .4, 1.4, -.4} } function OBJECT:collision(a) end
nilq/small-lua-stack
null
--------------------------------------------- -- Arrow Deluge -- Description: Delivers a threefold ranged attack to targets in an area of effect. -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows -- Range: Unknown --------------------------------------------- require("scripts/globals/settings") require("scr...
nilq/small-lua-stack
null
-------------------------------- -- @module TiledGrid3D -- @extend GridBase -- @parent_module cc -------------------------------- -- overload function: create(size_table) -- -- overload function: create(size_table, cc.Texture2D, bool) -- -- @function [parent=#TiledGrid3D] create -- @param self -- ...
nilq/small-lua-stack
null
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- wOS = wOS or {} wOS.ForcePowers:Register...
nilq/small-lua-stack
null
--[[ BLACK TEA ICON LIBRARY FOR NUTSCRIPT 1.1 The MIT License (MIT) Copyright (c) 2017, Kyu Yeon Lee(Black Tea Za rebel1324) 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 restric...
nilq/small-lua-stack
null
package.path = package.path .. ";data/scripts/lib/?.lua" package.path = package.path .. ";data/scripts/systems/?.lua" include("basesystem") include("stringutility") include("randomext") include("utility") include("callable") local Azimuth = include("azimuthlib-basic") if not Azimuth then return end local Log, config -...
nilq/small-lua-stack
null
-- torch reimplementation of deepRotator: https://github.com/jimeiyang/deepRotator.git require 'torch' require 'nn' require 'cunn' --require 'cudnn' require 'nngraph' require 'optim' require 'image' model_utils = require 'utils.model_utils' optim_utils = require 'utils.adam_v2' opt = lapp[[ --save_every (def...
nilq/small-lua-stack
null
local local0 = 0.4 local local1 = 2.4 - local0 local local2 = 20.6 - local0 local local3 = 4 - local0 local local4 = 20.6 - local0 local local5 = 2.3 - local0 local local6 = 4.6 - local0 function OnIf_210010(arg0, arg1, arg2) if arg2 == 0 then EyeCollector210010_ActAfter_RealTime(arg0, arg1) end ret...
nilq/small-lua-stack
null
-- Gkyl ------------------------------------------------------------------------ local Plasma = require("App.PlasmaOnCartGrid").VlasovMaxwell local Constants = require "Lib.Constants" --contains universal constants taken from NIST's website -- ****************************** -- INPUT PARAMETERS -- *********...
nilq/small-lua-stack
null
-- This is the background for a single row inside ScreenMiniMenuContext -- which, so far in Simply Love, is only used for the faux-overlay menu -- that pops up when editing local profiles. -- -- The Quad is wrapped in an ActorFrame so that we can apply zoomto() -- via OnCommand without having the engine say that the On...
nilq/small-lua-stack
null
local theme_config_default= { AutoSetStyle= true, LongFail= false, ComboOnRolls= false, FancyUIBG= false, TimingDisplay= false, GameplayFooter= false, Use12HourClock= false, } theme_config= create_lua_config{ name= "theme_config", file= "theme_config.lua", default= theme_config_default, } theme_config:load()...
nilq/small-lua-stack
null
require("import") -- the import fn import("smart_pointer_rename") -- import lib into global spr=smart_pointer_rename --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.."'",...
nilq/small-lua-stack
null
if CLIENT then return end DATA_BIT = "DATA_BIT" DATA_BOOL = DATA_BIT DATA_BYTE = "DATA_BYTE" DATA_8BITS = DATA_BYTE DATA_1BYTE = DATA_BYTE DATA_DOUBLE = "DATA_DOUBLE" DATA_64BITSDOUBLE = DATA_DOUBLE DATA_8BYTESDOUBLE = DATA_DOUBLE DATA_FLOAT = "DATA_FLOAT" DATA_32BITSFLOAT = DATA_FLOAT DATA_4BYTESFLOAT = DATA_FLOAT...
nilq/small-lua-stack
null
local tremove = table.remove function ezlib.log.print(tbl, indent) local freturn = 1 if not indent then indent = 0 freturn = 0 end local toprint = --[["\n" .. string.rep(" ", indent) .. ]]"{\r\n" indent = indent + 1 if type(tbl) == "table" then for k,v in pairs(tbl) do toprint = toprint .. s...
nilq/small-lua-stack
null
local banks = { ["Bank1"] = { ["x"]=152.04, ["y"]=-1040.77, ["z"]= 29.37, ["robbing"] = false, ["robbingvault"] = false, ["lastRobbed"] = 1, ["rob"] = {}, ["started"] = false }, ["Bank2"] = { ["x"]=-1212.980, ["y"]=-330.841, ["z"]= 37.787, ["robbing"] = false, ["robbingvault"] = false, ["lastRobbed"] = 1, ["rob...
nilq/small-lua-stack
null
local Util = require("Util/Util") local WikiText = require("Pages/World_of_Warcraft_API/WikiText") Util:MakeDir("cache_lua") local m = {} local ignoredTags = { DEPRECATED = true, UI = true, Lua = true, } function m:ParseWikitext(wikitext) local api_names, tag_data = {}, {} for s1, name in string.gmatch(wikitext...
nilq/small-lua-stack
null
--[[ 3p8_collector_rock Uses: Collects 3p8_rock_s Todo: perhaps make this be apart of a vehicle (or crane or something) in the future. ]] AddCSLuaFile() ENT.Base = "3p8_collector" ENT.HeldObject = "3p8_rock_s" ENT.ItemName = "Collector: Rocks" ENT.ItemModel = "models/props_c17/oildrum001.mdl" E...
nilq/small-lua-stack
null
<td>{{ ( "&nbsp;&nbsp;&nbsp;" ):rep( depth ) }}<a class="rare{{ weapon.rarity }}{{ weapon.create and " create" or "" }}" href="{{ U( ( "weapons/%s/%s" ):format( class.short, urlFromName( weapon.name ) ) ) }}">{{ T( weapon.name ) }}</a></td> <td>{{ weapon.attack }}</td> <td>{{ weapon.reload }}</td> <td>{{ weapon.drift }...
nilq/small-lua-stack
null
--Uk-P.U.N.K.アメイジング・ドラゴン --Scripted by mallu11 function c100417008.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) c:EnableReviveLimit() --tohand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100417008,0)) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_...
nilq/small-lua-stack
null
engine_name = 'memtx' iterations = 100000 math.randomseed(1) delete_replace_update(engine_name, iterations) math.randomseed(2) delete_replace_update(engine_name, iterations) math.randomseed(3) delete_replace_update(engine_name, iterations) math.randomseed(4) delete_replace_update(engine_name, iterations) math.rand...
nilq/small-lua-stack
null
#!/usr/bin/env lua local ui = require "tek.ui" ui.Application:new { AuthorStyles = [[ .huge { width: free; height: free; font: ui-huge; } ]], Children = { ui.Window:new { Title = "Groups Demo", HideOnEscape = true, Children = { ui.ScrollGroup:new { Legend = "Virtual ...
nilq/small-lua-stack
null
local Commands = {} Commands.util = {} Commands.util.dontUse = {} function Commands.become_god(self) if self.util.allowedToUse() == false then return end if game.player.character == nil then return end local inventories = { defines.inventory.character_main, defines.inventory.character_guns,...
nilq/small-lua-stack
null
----------------------------------- -- Area: Bastok Mines -- NPC: Ranpi-Pappi -- Type: Standard NPC -- !pos -4.535 -1.044 49.881 234 -- -- Auto-Script: Requires Verification (Verified by Brando) ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:sta...
nilq/small-lua-stack
null
-- 9.2.5.43971 KethoWowpedia.dbc.toy = { [1] = {1973, 0, 0}, [4] = {32566, 0, 2}, [5] = {33223, 0, 2}, [7] = {38578, 0, 2}, [9] = {34480, 0, 6}, [12] = {67097, 0, 7}, [16] = {68806, 0, 2}, [17] = {70161, 0, 2}, [18] = {70722, 0, 6}, [19] = {72161, 0, 7}, [20] = {72231, 2, 0}, [21] = {86568, 0, 0}, [22] = {...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Function......... : easeInOutBack -- Author........... : -- Description...... : -------------------------------------------------------------------------------- ---------------------------------------------------------------------...
nilq/small-lua-stack
null
Dummy = Entity:extend("Dummy", { collider = nil, tpos = vec2(), tppos = vec2(), axis = vec2(), jump = false, crouch = false, controlmode = nil }) function Dummy:init(data) Base.init(self, data) self.collider = CircleCollider{ radius = 32 } self:setControlMode("Previous") end collision = nil function Dum...
nilq/small-lua-stack
null
-- The Computer Language Shootout -- http://shootout.alioth.debian.org/ -- contributed by Mike Pall local gmatch, gsub, write = string.gmatch, string.gsub, io.write local seq = io.read("*a") local ilen = #seq seq = gsub(seq, ">.-\n", "") seq = gsub(seq, "\n", "") local clen = #seq local variants = { "agggtaaa", "...
nilq/small-lua-stack
null
#!/usr/bin/env luajit local ldb = require("lua-db") local lfb = require("lua-fb") print("creating db") local db = ldb.new(100,100) print("Got drawbuffer", db) print("opening framebuffer") local fb = lfb.new(arg[1] or "/dev/fb0") print("Got framebuffer", fb) print("getting varinfo") local vinfo = fb:get_varinfo() pri...
nilq/small-lua-stack
null
--[[------------------------------------------------------ mdns.Registration ----------------- This class registers a service name for a give service type and calls a callback when the service is announced. (this is an implementation of the ZeroConf or Bonjour registration). --]]-------------------------...
nilq/small-lua-stack
null
----------------------------- -- INIT ----------------------------- --get the addon namespace local addon, ns = ... local cfg = ns.cfg ----------------------------- -- CHARSPECIFIC REWRITES ----------------------------- local playername, _ = UnitName("player") local _, playerclas...
nilq/small-lua-stack
null
-- -- This file describes 'cursor action' regions, rectangular regions -- in floating workspace mode where some action will be taken if you -- drag a window around. They can be used to implement behavior like -- "drag window to edge to resize to fixed size", trigger migration -- to a specific screen and so on. -- loca...
nilq/small-lua-stack
null
function isClient() return getLocalPlayer and true end
nilq/small-lua-stack
null
local t = require( "taptest" ) local frombase2 = require( "frombase2" ) -- reads data from a bitfields string t( frombase2( "01000001010000110100010001000011" ), "ACDC" ) -- read data with o instead of 0 t( frombase2( "o1ooooo1o1oooo11" ), "AC" ) t( frombase2( "OioooooiOiooooii" ), "AC" ) -- allows to ignore cha...
nilq/small-lua-stack
null
local ToolkitCI = script:FindFirstAncestor("ToolkitCI") local Roact = require(ToolkitCI.vendor.Roact) local RoactRodux = require(ToolkitCI.vendor.RoactRodux) local Flipper = require(ToolkitCI.vendor.Flipper) local RoactFlipper = require(ToolkitCI.vendor.RoactFlipper) local HoverColorImageButton = require(script.Parent...
nilq/small-lua-stack
null
local pretty = require("pl.pretty") local widget = require("widget") local scrollBar = {} scrollBar.__index = scrollBar function scrollBar.new(widget) local self = {} setmetatable(self, scrollBar) scrollBar.init(self, widget) return self end function scrollBar.calculateHandle(self) local handleHeight = ...
nilq/small-lua-stack
null
--------------------------------------------------------------------------- --- tmux hotkeys for awful.hotkeys_widget -- -- @author nahsi nashi@airmail.cc -- @copyright 2017 nahsi -- @submodule awful.hotkeys_popup --------------------------------------------------------------------------- local hotkeys_popup = requir...
nilq/small-lua-stack
null
-- Alternate movement bindings using the number keys, for numpad usage over telnet. if BindMovementToNumKeys then Keybindings["8"] = COMMAND_WALKNORTH Keybindings["9"] = COMMAND_WALKNE Keybindings["6"] = COMMAND_WALKEAST Keybindings["3"] = COMMAND_WALKSE Keybindings["2"] = COMMAND_WALKSOUTH Keybindings["1"]...
nilq/small-lua-stack
null
local utils = require "kong.tools.utils" local cache = require "kong.tools.database_cache" local crypto = require "kong.plugins.basic-auth.crypto" local singletons = require "kong.singletons" local constants = require "kong.constants" local responses = require "kong.tools.responses" local ngx_set_header = ngx.req.set_...
nilq/small-lua-stack
null
require "Object" require "AppContext" require "NSDictionary" class(NotificationObserver, Object); function NotificationObserver:create() self = self:get(runtime::invokeClassMethod("LINotificationObserver", "create:", AppContext.current())); NotificationObserverEventProxyTable[self:id()] = self; return sel...
nilq/small-lua-stack
null
local API_NPC = require(script:GetCustomProperty("API_NPC")) local API_DS = require(script:GetCustomProperty("APIDifficultySystem")) local API_D = require(script:GetCustomProperty("APIDamage")) local API_RE = require(script:GetCustomProperty("APIReliableEvents")) local RANGE = 0.0 -- This spell doesn't care wh...
nilq/small-lua-stack
null
-- Copyright (C) 2016 Libo Huang (huangnauh), UPYUN Inc. local _M = {} -- for lua-resty-checkups _M.global = { checkup_timer_interval = 5, checkup_timer_overtime = 60, default_heartbeat_enable = false, shd_config_timer_interval = 1, shd_config_prefix = "shd_v1", } _M.consul = { config_key_...
nilq/small-lua-stack
null
--Example2.lua -- --Simple example of using IAP Badger to purchase an IAP for buying coins. --------------------------------- -- -- IAP Badger initialisation -- --------------------------------- --Load IAP Badger local iap = require("iap_badger") --Progress spinner local spinner=nil --Text object i...
nilq/small-lua-stack
null
UPGRADE = 1 // upgrade sprites or levels data if UPGRADE lua ;ALLPASS function fileList(path) return io.popen("dir \""..path.."\" /a /b", "r"):lines() end function save(data) local file,err = io.open("sprites/storage.asm",'w') if file then file:w...
nilq/small-lua-stack
null
--[[ desc: Combo, A module of combo buff. author: Musoucrow since: 2019-1-15 ]]-- local _Base = require("actor.buff.base") ---@class Actor.Buff.Combo : Actor.Buff ---@field protected _skill Actor.Skill local _Combo = require("core.class")(_Base) function _Combo:Ctor(entity, data) _Base.Ctor(self, entity, data...
nilq/small-lua-stack
null
--[[ © CloudSixteen.com http://crowlite.com/license --]] Crow.nest:IncludeFile("sh_enum.lua"); Crow.nest:IncludeFile("sv_hooks.lua"); Crow.nest:IncludeFile("cl_hooks.lua"); CrowBall.build = "Alpha"; function CrowBall:CreateTeams() team.SetUp(self._TEAM_BLUE, "Blue Team", Color(0, 100, 255, 255), true); team.SetU...
nilq/small-lua-stack
null
local pairs = pairs local require = require local setmetatable = setmetatable local setup = require 'kit'.setup local _M = {} function _M.init(config) for modname, modconfig in pairs(config) do local module = require(modname) setup(module, modconfig) _M[modname] = module end end re...
nilq/small-lua-stack
null