content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
----------------------------------- -- Area: Port Jeuno -- NPC: Imasuke -- Starts and Finishes Quest: The Antique Collector -- !pos -165 11 94 246 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/titles") require("scripts/globals/keyitems") require("scripts/globals/shop"...
nilq/small-lua-stack
null
local mod = EPGP:NewModule("gptooltip", "AceHook-3.0") local GP = LibStub("LibGearPoints-1.3") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local LUI = LibStub("LibEPGPUI-1.0") local ItemUtils = LibStub("LibItemUtils-1.0") local function TooltipAddGpLine(tooltip, i, gp, c) if not gp then return false end ...
nilq/small-lua-stack
null
local gcc = ToolsetPrototype( 'gcc' ); function gcc.configure( toolset, gcc_settings ) local paths = os.getenv( 'PATH' ); return { gcc = which( gcc_settings.gcc or os.getenv('CC') or 'gcc', paths ); gxx = which( gcc_settings.gxx or os.getenv('CXX') or 'g++', paths ); ar = which( gcc_se...
nilq/small-lua-stack
null
package.path = package.path .. ';../libs/?.lua' require("utf8data") require("utf8") window = js.global currentWord = "" numWin = 0 numLose = 0 secondsLeft = 0 TTL = 15 timer = nil strTimer = nil btnStart = nil txtResult = nil interval = "секунд" intervalEnding = {"", "а", "ы"} strings = { pushbutton ...
nilq/small-lua-stack
null
--=========== Copyright © 2017, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- argv = {} for _, v in ipairs( arg ) do argv[ v ] = true end if ( argv[ "--debug" ] ) then _DEBUG = true end if ( argv[ "--dedicated" ] )...
nilq/small-lua-stack
null
local InGameSetup = script.Parent.Parent local SetGlobalGuiInset = require(InGameSetup.Actions.SetGlobalGuiInset) return function(state, action) state = state or { left = 0, top = 36, right = 0, bottom = 0, } if action.type == SetGlobalGuiInset.name then return { left = action.left, top = action.to...
nilq/small-lua-stack
null
local basedir = "http://heavy.noxiousnet.com/music/" local function ms(m, s) return m * 60 + s end GM.BackgroundMusic = { { "Foozogz", "Party Rabbit", "foozogz-party_rabbit.ogg", 288 }, { "Foozogz", "Enveloped", "foozogz-enveloped.ogg", 205 }, { "Foozogz", "Pinkie Loves Sugar VIP", "foozogz-...
nilq/small-lua-stack
null
-- This plugin copyright Alexander Harkness 2013, licensed under the MIT license. -- Configuration g_ServerLang = "en" g_ConsoleLang = "en" -- Global Variables g_Plugin = nil g_PluginDir = "" g_DataLoc = "" g_UserData = nil -- START WITH DA AWESOME! function Initialize( Plugin ) -- Set u...
nilq/small-lua-stack
null
local copas = require "copas" local lfs = require "lfs" local file = require "pl.file" local path = require "pl.path" local JSON = require "json" local shell = require "lib/shell" local md5 = require "md5" local pretty = require 'pl.pretty' local struct = require 'struct' local file_image = require "lib/file-image" l...
nilq/small-lua-stack
null
require 'init' require 'lib' -- 添加指定时间内限流, 防止高峰情况, 日期, 星期, 时间段 -- 指定url进行限流, 防止服务器高并发无法处理 -- 自动防火墙封禁IP local function waf_main() ngx.update_time() if WHITE_IP_CHECK() then elseif WHITE_URL_CHECK() then elseif FORBIDDEN_IP_CHECK() then elseif LIMIT_IP_CHECK() then elseif LIMIT_URI_CHECK() then ...
nilq/small-lua-stack
null
-- if a mod adds technology in data-final-fixes, then we need to add optional dependency on those mods :/ function tablelength(T) local count = 0 for _ in pairs(T) do count = count + 1 end return count end local roughNumberOfTechs = 100*math.floor(0.5 + tablelength(data.raw["technology"])/100) local co...
nilq/small-lua-stack
null
AddCSLuaFile() local W = "WHITE" local name = "Whelen PAR-46 Spotlight" local COMPONENT = {} COMPONENT.Model = "models/schmal/whelen_spotlight.mdl" COMPONENT.Skin = 0 COMPONENT.Bodygroups = {} COMPONENT.NotLegacy = true COMPONENT.ColorInput = 1 COMPONENT.UsePhases = true COMPONENT.Category = "Exterior" COMPONENT.De...
nilq/small-lua-stack
null
Party = {} Party.__index = Party function Party:Create() local this = { mMembers = {} } setmetatable(this, self) return this end function Party:Add(member) self.mMembers[member.mId] = member end function Party:RemoveById(id) self.mMembers[id] = nil end function Party:Remove(membe...
nilq/small-lua-stack
null
-- Init Menu Menu.Spacing() Menu.Separator() Menu.Spacing() Menu.Checkbox("Enable Teamdamage ESP", "cEnableTDamageESP", true) Menu.Checkbox("Enemy Only", "cTDamageEnemy", true) Menu.Checkbox("Enable Draw Distance", "cEnableTDamageDDistance", true) Menu.SliderInt("Draw Distance", "cTDamageDraw", 500, 20...
nilq/small-lua-stack
null
#!/usr/bin/env luajit require "strict" local argparse = require "argparse" local geant4 = require "geant4" local view = require "view" -- Parse settings from the command line local parser = argparse() :name "scan-geant4" :description "Perform a Geant4 scan" parser:argument("site", "Site name.") parser:argum...
nilq/small-lua-stack
null
local Observable = require 'reactivex.observable' local Subscription = require 'reactivex.subscription' local Observer = require 'reactivex.observer' --- Given an Observable that produces Observables, returns an Observable that produces the values -- produced by the most recently produced Observable. -- @returns {Obse...
nilq/small-lua-stack
null
--[[ ╔══════════════════════════════════════════════╗ ║ Settings for nvim-treesitter/nvim-treesitter ║ ╚══════════════════════════════════════════════╝ --]] require("nvim-treesitter.configs").setup { ensure_installed = 'maintained', -- one of 'all', 'maintained' (parsers with maintainers), or a list of languages ...
nilq/small-lua-stack
null
local Thief = Class(function(self, inst) self.inst = inst self.stolenitems = {} self.onstolen--[[inst, victim, item]] = nil end) function Thief:SetOnStolenFn(fn) self.onstolen = fn end function Thief:StealItem(victim, itemtosteal, attack) if victim.components.inventory and not victim.components.in...
nilq/small-lua-stack
null
init = function(args) depth = tonumber(args[1]) or 1 local reqs = {} for i=1, depth do reqs[i] = wrk.format(nil, "/databases/StackOverflow/docs?&id=questions/".. math.random(12350817) .."") end req = table.concat(reqs) end request = function() return req end
nilq/small-lua-stack
null
function updateGameState() --ToDo IS_GAME_RUNNING = true end function updateChars(segment) if not IS_GAME_RUNNING then return end checkFlagsInSegmentUsingTable(segment, CHARS, 2) end function updateSeaHearTail(segment) if not IS_GAME_RUNNING then return end checkFlagsInSegmentUsingTable(segmen...
nilq/small-lua-stack
null
local sprite = BaseSprite:extend({ type = 'brick' }) local ExplosionQuads = { love.graphics.newQuad(16, 0, 8, 8, Graphics.tiles:getDimensions()), love.graphics.newQuad(24, 0, 8, 8, Graphics.tiles:getDimensions()), love.graphics.newQuad(16, 8, 8, 8, Graphics.tiles:getDimensions()), love.graphics.newQuad(24, 8, ...
nilq/small-lua-stack
null
am.addCMD("jail", 'Jails a player', 'Administration', function(caller, target, reason, duration) am.notify(nil, am.green, caller:Nick(), am.def, ' has jailed ', am.red, target:Nick(), am.def, ' for ', am.red, duration.pretty, am.def, ' because of ', am.red, reason) // Do the jailing target.jailed = true target:Fre...
nilq/small-lua-stack
null
--沼地の魔神王 function c791095990.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(791095990,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCost(c791095990.cost) e1:SetTarget(c791095990.target) ...
nilq/small-lua-stack
null
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel(impulse.Config.InventoryStorageModel) self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(SOLID_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) self:DrawShadow(false) local...
nilq/small-lua-stack
null
local CollectionUtils = {} function CollectionUtils.addToTable(table, k1, k2, value) if table[k1] == nil then rawset(table, k1, {}) end rawset(table[k1], k2, value) end return CollectionUtils
nilq/small-lua-stack
null
local bc = require "bc" local _new_ = function(self, instance) instance = instance or {} setmetatable(instance, self) self.__index = self return instance end local StopPlanOutException = {} function StopPlanOutException:new(inExperiment) return _new_(self, {inExperiment = inExperiment}) end ...
nilq/small-lua-stack
null
local mod = DBM:NewMod(2114, "DBM-Party-BfA", 7, 1001) local L = mod:GetLocalizedStrings() mod:SetRevision("20190618235231") mod:SetCreatureID(129227) mod:SetEncounterID(2106) mod:DisableESCombatDetection()--ES fires for nearby trash even if boss isn't pulled mod:SetZone() mod:SetMinSyncRevision(17732) mod:RegisterC...
nilq/small-lua-stack
null
local M = {} function M.getCompletionItems(prefix, score_func) local items = vim.api.nvim_call_function('vim_dadbod_completion#omni',{0, prefix}) for _, item in pairs(items) do item.user_data = vim.fn.json_encode({ hover = item.info }) item.dup = 0 end return items end M.complete_item = { item = M....
nilq/small-lua-stack
null
object_tangible_loot_mustafar_cube_loot_cube_loot_3o = object_tangible_loot_mustafar_cube_loot_shared_cube_loot_3o:new { } ObjectTemplates:addTemplate(object_tangible_loot_mustafar_cube_loot_cube_loot_3o, "object/tangible/loot/mustafar/cube/loot/cube_loot_3o.iff")
nilq/small-lua-stack
null
RegisterServerEvent("drift:toggledrift") AddEventHandler("drift:toggledrift", function() TriggerClientEvent("drift:toggledrift", source) end)
nilq/small-lua-stack
null
local error = error local string = string local oo = {} function oo.NotImplemented(class, name, ...) class[name] = function(self) error(string.format("Missing function definition for %q in %q", name, self._ClassName)) end end function oo.InheritClass(baseClass, newName) if baseClass == nil then error("Base c...
nilq/small-lua-stack
null
-- COPYRIGHT: KISELEV NIKOLAY -- Licence: MIT -- BUTTONPONY -- Version: 1.0 fur = {w = 1500, h = 750} if musicplay == nil then musicplay = true end anima = 0 frame = 1 colors = { {226, 145, 145}, {153, 221, 146}, {147, 216, 185}, {148, 196, 211}, {148, 154, 206}, {179, 148, 204}, {204, 150, 177}, {204, 164, 1...
nilq/small-lua-stack
null
function table.create(keys, vals) local result = {} if type(vals) == 'table' then for i,k in ipairs(keys) do result[k] = vals[i] end else for i,k in ipairs(keys) do result[k] = vals end end return result end function mathClamp(number, min, max) return number <= min and min or (number >= max and max...
nilq/small-lua-stack
null
local g = vim.g g['pandoc#syntax#conceal#use'] = false
nilq/small-lua-stack
null
-- local M = {} require('mx_util.deepcopy') local copyfunc = {} local _deepcopy_dispatch = {} local function deepcopy_cls(x, memo, cls, cname) local copier = _deepcopy_dispatch[cname] if copier then return copier(x, memo) end copier = cls.__deepcopy if copier then return copier(x, ...
nilq/small-lua-stack
null
---@type Robot return function(robot) while true do robot:call("score") coroutine.yield "SUSPEND" end end
nilq/small-lua-stack
null
local glove = require 'stackmachine/glove' local utils = require 'stackmachine/utils' local config = require 'stackmachine/config' local json = require "stackmachine/json" local http = require "socket.http" local ltn12 = require "ltn12" local thread = nil local tasks = {} function tasks.report(message, data) local...
nilq/small-lua-stack
null
-- Snackbar PseudoInstance -- @documentation https://rostrap.github.io/Libraries/RoStrapUI/Snackbar/ -- @author Validark local Players = game:GetService("Players") local RunService = game:GetService("RunService") local TextService = game:GetService("TextService") local ReplicatedStorage = game:GetService("ReplicatedSt...
nilq/small-lua-stack
null
AddCSLuaFile() ENT.Base = "gballoon_tower_base" ENT.Type = "anim" ENT.PrintName = "Microwave Generator" ENT.Category = "RotgB: Towers" ENT.Author = "Piengineer" ENT.Contact = "http://steamcommunity.com/id/Piengineer12/" ENT.Purpose = "This tower very slowly creates microwave cones that can bypass most gBalloon immunit...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Handler.......... : onPublishWorkshopFileUpdate -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------...
nilq/small-lua-stack
null
--[[ item.lua An item button --]] --libs/other jambers local InvData = Combuctor:GetModule('InventoryData') --that's classy local Item = Combuctor:NewClass('Button') Item.SIZE = 37 Combuctor.Item = Item local ITEM_COLOR = { [0] = {0.8, 0.8,0.8,0.8}, [1] = {0.5, 0.5,0.5,0.8}, [2] = {0, 1.0,0, ...
nilq/small-lua-stack
null
LmodMessage("5.0rc2: ",convertToCanonical("5.0rc2")) LmodMessage("5.0: ",convertToCanonical("5.0")) LmodMessage("5.1: ",convertToCanonical("5.1")) LmodMessage("5.1.0: ",convertToCanonical("5.1.0")) LmodMessage("5.1.1: ",convertToCanonical("5.1.1")) LmodMessage("default: ",convertToCanonical("default"...
nilq/small-lua-stack
null
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA include("shared.lua") SWEP.Instructions = "Primary: Vocal Outburst\nSecondary: Self-Harming\nReload: Greeting" SWEP.DrawAmmo = false SWEP.DrawCrosshair = false net.Receive("AutismArm", function() ply = n...
nilq/small-lua-stack
null
Stack = {} function Stack:new() o = {} setmetatable(o, self) self.__index = self return o end function Stack:push(o) self[#self + 1] = o end function Stack:pop() o = self:top() self[#self] = nil return o end function Stack:top() return self[#self] end function Stack:isempty() return nil == self...
nilq/small-lua-stack
null
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
nilq/small-lua-stack
null
------ MADE BY MAX F. ------ --FOR JUSTICE COMMUNITY RP-- ---------------------------- ---------------------------------------------------------------------------------------------------- --------------------------------------CREATING THE MENUS------------------------------------------ ----------------------------...
nilq/small-lua-stack
null
local ____modules = {} local ____moduleCache = {} local ____originalRequire = require local function require(file) if ____moduleCache[file] then return ____moduleCache[file] end if ____modules[file] then ____moduleCache[file] = ____modules[file]() return ____moduleCache[file] el...
nilq/small-lua-stack
null
local skynet = require "skynet" local api = require "api" local sys = require "sys" local log = require "log" local seri = require "seri" local mqtt = require "mqtt" local dump = require "utils.dump" local text = require("text").mqtt local client local running = true local subsribe_ack_err_code = 128 local log_prefix ...
nilq/small-lua-stack
null
object_tangible_holiday_love_day_rewards_11_love_day_prop_2011_flowers_s02_r = object_tangible_holiday_love_day_rewards_11_shared_love_day_prop_2011_flowers_s02_r:new { } ObjectTemplates:addTemplate(object_tangible_holiday_love_day_rewards_11_love_day_prop_2011_flowers_s02_r, "object/tangible/holiday/love_day/rewards...
nilq/small-lua-stack
null
-- Module: PersonalAssistant.PABanking.Items -- Developer: Klingo PAB_Items = {} PAB_Items.queueSize = 0 PAB_Items.loopCount = 0 PAB_Items.esoPlusReloopRequired = false function PAB_Items.DepositAndWithdrawItems(lastLoop) lastLoop = lastLoop or false PAB_Items.failedDeposits = 0 PAB_Items.loopCount =...
nilq/small-lua-stack
null
stead.menu_prefix = '   ' local mpar = function(v, vv, rc) if stead.type(v) == 'string' or stead.type(vv) == 'string' then return stead.par(stead.space_delim, v, vv); elseif v == true or vv == true then return true end return rc end local call = function(o, m, ...) local rc = nil local v, r = stead.call(...
nilq/small-lua-stack
null
-- keep it ordered local invalidTypes = { 1, 135, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 411, 415, 424, 439, 440, 468, 469, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 501, 518, 519, 5...
nilq/small-lua-stack
null
local FixedGRU = {} function FixedGRU.rnn(nstep, avg, emb_dim) if avg == nil then avg = 0 end if emb_dim == nil then emb_dim = 256 end local inputs = {} for n = 1,nstep do table.insert(inputs, nn.Identity()()) end -- gates for update local i2h_update = {} local h2h_update = {} -- gat...
nilq/small-lua-stack
null
function NPC:OnTakeDamage(npc, attacker, inflictor, dmginfo) if dmginfo:IsExplosionDamage() then dmginfo:SetDamageType(DMG_DIRECT) end return self.BaseClass.OnTakeDamage(self, npc, attacker, inflictor, dmginfo) end function NPC:OnDamagedEnt(npc, ent, dmginfo) local damage = dmginfo:Get...
nilq/small-lua-stack
null
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) function onGetFormulaValues(player, level, magicLevel) local min...
nilq/small-lua-stack
null
wait(.25) run = game:GetService("RunService") local player = game.Players.LocalPlayer;char = player.Character;char.Archivable = true; hrp = char:findFirstChild("HumanoidRootPart");head = char:findFirstChild("Head");ra = char:findFirstChild("Right Arm");la = char:findFirstChild("Left Arm");t = char:findFirstChild("Torso...
nilq/small-lua-stack
null
return {--[[ #PVF_File ]] ["[player number]"]={2,8}, ["[pvp start area]"]={0,0,0,0,0,0,0,0,0,0,0,0}, ["[dungeon]"]={3,}, ["[type]"]="[normal]", ["[greed]"]="NN II", ["[tile]"]={"Tile/ForestOver.til","Tile/ForestOver.til","Tile/ForestOver.til","Tile/ForestOverUnder.til","Tile/ForestUnder.til","Tile/ForestUnd...
nilq/small-lua-stack
null
local class = require 'middleclass' local logger = require 'hj212.logger' local waitable = require 'hj212.client.station.waitable' local cems = class('hj212.client.station.cems') local CEMS_TM = { -- CEMS 安装地点的环境大气压值,Pa Ba = { name = 'a01006', --name = 'i23001', default = 101.325, rate = 1000 }, -- CEMS 测量...
nilq/small-lua-stack
null
local config = {} -- extension configuration config.frontend = { mainColor = "#49bf9d", selectedColor = "#1e90ff", databaseUrl = "/database", databaseHomeUrl = "", databaseExecuteUrl = "/execute", databaseDeleteUrl = "/delete", databaseDeleteReferenceUrl = "/deleteReference", databaseDeleteAllRef...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' 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
function ScreenGameplay_P1X() local st = GAMESTATE:GetCurrentStyle():GetStepsType(); if st == "StepsType_Dance_Solo" then return SCREEN_CENTER_X; elseif st == "StepsType_Dance_Couple" then return WideScale(SCREEN_CENTER_X-175,SCREEN_CENTER_X-160); else return WideScale(SCREEN_CENTER_X-175,SCREEN_CENTER_X-240)...
nilq/small-lua-stack
null
----------------------------------- -- Area: Port Bastok -- NPC: Brita -- Type: Standard NPC -- !pos 58.161 -3.101 -6.695 236 ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:startEvent(346, 0, 1); end; function onEventUpdate(player,csid,option) e...
nilq/small-lua-stack
null
include('shared.lua') function ENT:Initialize() self.RealModel = "models/maver1k_XVII/Stalker/mutants/karlik.mdl" end function ENT:Draw() if self.Entity:GetNWBool( "Teleport", false ) then local TEMP_Emitter = ParticleEmitter(self:GetPos(), false) if(IsValid(TEMP_Emitter)) then local TEMP_Particle = TEMP_E...
nilq/small-lua-stack
null
-- -- The battery bank acts as a both an energy storage unit and battery charger! -- Charge up any batteries -- local Groups = assert(foundation.com.Groups) local cluster_devices = assert(yatm.cluster.devices) local cluster_energy = assert(yatm.cluster.energy) local Energy = assert(yatm.energy) local EnergyDevices = as...
nilq/small-lua-stack
null
local shop = { -- id, name, cheese, fraise, collector head = { [0] = { "-", 0, 0 }, [1] = { "Chapéu de Helicóptero", 500, 50 }, [2] = { "Chapéu de Palha", 200, 40 }, [3] = { "Capacete branco", 20, 0 }, [4] = { "Cartola", 200, 40 }, [5] = { "Chapéu de Sol", 100, 20 }, [6] = { "Chapéu Fedora", 500, 60 }, ...
nilq/small-lua-stack
null
AddCSLuaFile() if not LIB_APERTURE then return end --============= Conversion Gel ============== PORTAL_PAINT_PORTAL = PORTAL_PAINT_COUNT + 1 local PAINT_INFO = {} PAINT_INFO.COLOR = Color(200, 200, 200) PAINT_INFO.NAME = "Portal Gel" if SERVER then end -- SERVER LIB_APERTURE:CreateNewPaintType(PORTAL_PAINT_...
nilq/small-lua-stack
null
local lspconfig = require 'lspconfig' local util = require 'lspconfig/util' local saga = require 'lspsaga' saga.init_lsp_saga { code_action_prompt = { enable = true, sign = false, virtual_text = true, } } local custom_attach = function(client) print("'" .. client.name .."' languag...
nilq/small-lua-stack
null
-- PlayFab Authentication API -- This is the main file you should require in your game -- All api calls are documented here: https://docs.microsoft.com/gaming/playfab/api-references/ -- Example code: -- local PlayFabAuthenticationApi = require("PlayFab.PlayFabAuthenticationApi") -- PlayFabAuthenticationApi.<Authenticat...
nilq/small-lua-stack
null
data:extend( { { type = "recipe", name = "iron-oxide", category = "chemistry", icon = "__MiningStation__/graphics/icons/iron-oxide.png", energy_required = 2, subgroup = "bob-resource-chemical", enabled = false, ingredients = { {"iron-ore",1}, {type = "fluid", name="oxygen", amount=2.5}, ...
nilq/small-lua-stack
null
local ffi = require 'ffi' local math = require 'oxcart.math'
nilq/small-lua-stack
null
CreateClientConVar( "secondperson", "1", true, false ) CreateClientConVar( "secondperson_pos", "1", true, false ) CreateClientConVar( "secondperson_ang", "0", true, false ) local enabled = GetConVar( "secondperson" ) local usePos = GetConVar( "secondperson_pos" ) local useAng = GetConVar( "secondperson_ang" ) hook.Add...
nilq/small-lua-stack
null
return {'nuyens'}
nilq/small-lua-stack
null
-- Event notes hooks function onEvent(name, value1, value2) if name == 'Play Sound' then playSound(value1, value2) end end
nilq/small-lua-stack
null
object_mobile_tatooine_wald_customer = object_mobile_shared_tatooine_wald_customer:new { } ObjectTemplates:addTemplate(object_mobile_tatooine_wald_customer, "object/mobile/tatooine_wald_customer.iff")
nilq/small-lua-stack
null
local _, ns = ... local ct = ns.Config ---------------------------------------------------------------- -- Colors ---------------------------------------------------------------- ct.Colors = { -- Damage ["DAMAGE"] = { r = 1.00, g = 0.10, b = 0.10 }, ["SPELL_DAMAGE"] ...
nilq/small-lua-stack
null
#!/usr/bin/env lua --[[ Copyright (C) 2015 Real-Time Innovations, Inc. 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 ...
nilq/small-lua-stack
null
Weapon.PrettyName = "HS-338" Weapon.WeaponID = "arccw_awm" Weapon.DamageMultiplier = 2.2 Weapon.WeaponType = WEAPON_PRIMARY
nilq/small-lua-stack
null
#!/usr/local/bin/lua -- X = nil -- type(X)==nil 结果为 false 的原因是因为 type(type(X))==string。 if type(nil) == nil then print("type(nil) == nil") else print("type(nil) != nil") end if type(nil) == "nil" then print("type(nil) == \"nil\"") else print("type(nil) != \"nil\"") end --[[ boolean 类型只有两个可选值:tru...
nilq/small-lua-stack
null
local _G = _G or getfenv(0) local module = ShaguTweaks:register({ title = "Debuff Timer", description = "Show debuff durations on the target unit frame.", expansions = { ["vanilla"] = true, ["tbc"] = nil }, category = "Unit Frames", enabled = true, }) local libdebuff = ShaguTweaks.libdebuff local UnitDebuff...
nilq/small-lua-stack
null
-- ====================================================================== -- Binary Boarding -- Advent of Code 2020 Day 05 -- Eric Wastl -- https://adventofcode.com -- -- lua implementation by Dr. Dean Earl Wright III -- ====================================================================== -- ======================...
nilq/small-lua-stack
null
local Geom2D = {} local tau = 2*math.pi local sin = math.sin local cos = math.cos local floor = math.floor local ceil = math.ceil -- Generate transforms for rotations local d = defines.direction -- x = x*t[1] + y*t[2] -- y = x*t[3] + y*t[4] local rotations = { [d.north] = { 1, 0, 0, 1 }, -- No change ...
nilq/small-lua-stack
null
return { version = "1.4", luaversion = "5.1", tiledversion = "1.4.3", orientation = "orthogonal", renderorder = "right-down", width = 32, height = 22, tilewidth = 8, tileheight = 8, nextlayerid = 5, nextobjectid = 837, properties = {}, tilesets = { { name = "tiles-overworld", f...
nilq/small-lua-stack
null
return function () vim.g.dirvish_mode = ':sort ,^.*[\\/],' end
nilq/small-lua-stack
null
local setmetatable = setmetatable local singleton local cipher = {} cipher.__index = cipher function cipher.new() if singleton == nil then singleton = setmetatable({}, cipher) end return singleton end function cipher:encrypt(d) return d end function cipher:decrypt(d) return d end return...
nilq/small-lua-stack
null
local Spider = Fight:extend() function Spider:new(...) Spider.super.new(self, ...) Art.new(self, "spider") self.enemyName = "creature" self.anim:add("attacking", 2); self.anim:add("defending", 1); self.anim:add("prepareAttack", 2); self.anim:add("prepareDefense", 1); self.health = 100 self.attack = 3 sel...
nilq/small-lua-stack
null
vim.opt.completeopt = { "menu", "menuone", "noselect" } local lspkind = require "lspkind" lspkind.init() local cmp = require'cmp' cmp.setup({ snippet = { expand = function(args) vim.fn["UltiSnips#Anon"](args.body) end, }, mapping = { ['<C-d>'] = cmp.mapping(cmp.mapping.scroll_docs...
nilq/small-lua-stack
null
--[[The MIT License (MIT) Copyright (c) 2017 IllidanS4 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- _G.CHERRY_VERSION = '3.7.0' -------------------------------------------------------------------------------- -- debug require 'cherry.libs.logger' require 'cherry.libs.test-rect' -- libs extensions require 'cherry.libs.math' require 'che...
nilq/small-lua-stack
null
ENT.Type = "point" --------------------------------------------------------- -- --------------------------------------------------------- function ENT:Initialize() end --------------------------------------------------------- -- --------------------------------------------------------- function ENT:KeyValue(key, va...
nilq/small-lua-stack
null
-- add easy way for lua code to be the text source for a geeklet local module = { --[=[ _NAME = 'GeekTool Replacement', _VERSION = 'the 3rd digit of Pi/0', _URL = 'https://github.com/asmagill/hammerspoon-config', _LICENSE = [[ See README.md ]] _DESCRIPTION = [[]], --]=] } l...
nilq/small-lua-stack
null
--[[ MIT License Copyright (c) 2019-2021 Marco Lizza Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ...
nilq/small-lua-stack
null
local p = Instance.new ("Part" , game.Workspace) p.Name = "Base" p.Size = Vector3.new (512,0.400000006,512) p.Anchored = true p.Locked = true p.CFrame = CFrame.new(0, 0, 0) local k = Instance.new ("Message" , game.Workspace) game.Workspace.Base.BrickColor = BrickColor.new ("Earth green")
nilq/small-lua-stack
null
local TweenService = game:GetService("TweenService") local require = require(game:GetService("ReplicatedStorage"):WaitForChild("ApeIntelligence")) local DraggableBar = require("DraggableBar") local BuildWindow = require("BuildWindow") local DraggableWindow = {} DraggableWindow.__index = DraggableWindow DraggableWindo...
nilq/small-lua-stack
null
local lib = _3DreamEngine local class = { } function class:setLOD(min, max) self.LOD_min = min self.LOD_max = max end function class:getLOD() return self.LOD_min, self.LOD_max end function class:setVisible(b) self:setRenderVisibility(b) self:setShadowVisibility(b) end function class:setRenderVisibility(b) if ...
nilq/small-lua-stack
null
local Attack1 = script:GetCustomProperty("Attack1"):WaitForObject() local Attack2 = script:GetCustomProperty("Attack2"):WaitForObject() local Dodge = script:GetCustomProperty("Dodge"):WaitForObject() local BladeProjectile = script:GetCustomProperty("BladeProjectile") function BladeAttack(ability) local target = ab...
nilq/small-lua-stack
null
local ControllerImageLibrary = {} local spritesheets = {} for _, platform in pairs(script.Spritesheets:GetChildren()) do spritesheets[platform.Name] = {} for _, style in pairs(platform:GetChildren()) do spritesheets[platform.Name][style.Name] = require(style).new() end end local function getImageI...
nilq/small-lua-stack
null
test = { a = function (n1, n2, s1, s2) return {s1, s2, n2, n1} end, b = function (strnum) return {tonumber(strnum), tonumber64(strnum)} end }
nilq/small-lua-stack
null
local ShadowFiend = {} -- ShadowFiend.autoRaze = Menu.AddOption({"Hero Specific", "Shadow Fiend"}, "Auto Raze for KS", "On/Off") ShadowFiend.awareness = Menu.AddOption({"Hero Specific", "Shadow Fiend"}, "Awareness", "Show Kill Potential") ShadowFiend.font = Renderer.LoadFont("Tahoma", 30, Enum.FontWeight.EXTRABOLD) f...
nilq/small-lua-stack
null
require 'dp' require 'cutorch' require 'cunn' require 'cunnx' local dptest = {} local precision_forward = 1e-4 local precision_backward = 1e-2 local nloop = 10000 local times = {} local dptestx = {} function dptest.languagemodel() local ds = dp.BillionWords{train_file='train_tiny.th7',context_size=5} local hier...
nilq/small-lua-stack
null
io.stdout:setvbuf("no") --For console output to work function love.conf(t) t.identity = ".lovediscord" -- The name of the save directory (string) t.version = "11.2" -- The LÖVE version this game was made for (string) t.console = false -- Attach a console (boolean, Windo...
nilq/small-lua-stack
null