content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local K, C = unpack(KkthnxUI) local Module = K:GetModule("Blizzard") local _G = _G local string_format = _G.string.format local string_match = _G.string.match -- Enhanced ColorPickerFrame local function translateColor(r) if not r then r = "ff" end return tonumber(r, 16) / 255 end function Module:EnhancedPicker_...
nilq/small-lua-stack
null
return function(s) return s end
nilq/small-lua-stack
null
shadow_collective_sc87 = Creature:new { objectName = "", customName = "\\#00ff00<<< SC-87 >>> \\#ff0000[lvl 300]", socialGroup = "death_watch", pvpFaction = "death_watch", faction = "", level = 300, chanceHit = 75.00, damageMin = 11750, damageMax = 13750, specialDamageMult = 1.5, baseXp = 19000, baseHAM =...
nilq/small-lua-stack
null
--- ConsolePrint() -- Nicely formatted console print with timestamp -- @param msg The message to be displayed function ConsolePrint(msg) if msg then local dt = os.date("%H:%M", os.time()) print("[CNR "..dt.."] ^7"..(msg).."^7") end end AddEventHandler('cnr:print', ConsolePrint) AddEventHandler('cnr:cprint'...
nilq/small-lua-stack
null
tatooine_eopie_herd_neutral_none = Lair:new { mobiles = {{"eopie",1},{"dwarf_eopie",1}}, spawnLimit = 15, buildingsVeryEasy = {}, buildingsEasy = {}, buildingsMedium = {}, buildingsHard = {}, buildingsVeryHard = {}, buildingType = "none" } addLairTemplate("tatooine_eopie_herd_neutral_none", tatooine_eopie_herd...
nilq/small-lua-stack
null
if modifier_custom_blood_mirror_debuff_enemy == nil then modifier_custom_blood_mirror_debuff_enemy = class({}) end function modifier_custom_blood_mirror_debuff_enemy:IsHidden() return false end function modifier_custom_blood_mirror_debuff_enemy:IsDebuff() return true end function modifier_custom_blood_mirror_debu...
nilq/small-lua-stack
null
local Package = script.Parent.Parent local TableUtil = require(Package.Dependencies.TableUtil) local Promise = require(Package.Dependencies.Promise) local Error = require(Package.Dependencies.Error) local Settings = require(Package.Constants.Settings) local Utility = require(Package.Utility) local Global = require(Pac...
nilq/small-lua-stack
null
---------------------------------------------------------------- -- Algorithms Library ---------------------------------------------------------------- project "AdaptiveAlgorithmsLib" kind "StaticLib" pchsource ("algorithms/includes-algorithms.cpp") pchheader ("includes-algorithms.h") files { "algor...
nilq/small-lua-stack
null
--荒碑灵 死夜 local m=14000386 local cm=_G["c"..m] cm.named_with_Gravalond=1 function cm.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCodeFun(c,14000380,aux.FilterBoolFunction(Card.IsRace,RACE_ZOMBIE),1,true,false) --change name local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_...
nilq/small-lua-stack
null
workspace "WidescreenFixesPack" configurations { "Release", "Debug" } platforms { "Win32" } architecture "x32" location "build" objdir ("build/obj") buildlog ("build/log/%{prj.name}.log") buildoptions {"-std:c++latest"} kind "SharedLib" language "C++" targetdir "data/%{prj.name}/script...
nilq/small-lua-stack
null
-- must be a set of ids local idSet = KEYS[1]; -- current time local curTime = ARGV[1]; -- caching time local expiration = tonumber(ARGV[2] or 30000); -- local tempKeysSet = getIndexTempKeys(idSet); local keys = redis.call("ZRANGEBYSCORE", tempKeysSet, curTime - expiration, '+inf'); if #keys > 0 then redis.call("DE...
nilq/small-lua-stack
null
local Helper = require( 'lctags.Helper' ) local DBCtrl = require( 'lctags.DBCtrl' ) local log = require( 'lctags.LogCtrl' ) local Option = require( 'lctags.Option' ) local Analyzer = require( 'lctags.Analyzer' ) local Util = require( 'lctags.Util' ) local Make = {} --- list の中から更新が必要なファイルリストを返す -- -- ヘッダファイルの更新が必要な場...
nilq/small-lua-stack
null
NewShipType = StartShipConfig() NewShipType.displayedName="$1546" NewShipType.sobDescription="$1547" NewShipType.maxhealth=getShipNum(NewShipType, "maxhealth", 400) NewShipType.regentime=0 NewShipType.minRegenTime=0 NewShipType.sideArmourDamage = getShipNum(NewShipType, "sideArmourDamage", 1.0) NewShipType.rearArmourDa...
nilq/small-lua-stack
null
class "Dog" { nextJump = 0.0; timer = 0; frame = 0; barkNext = 0; } function Dog:__init(world, x, y) self.world = world self.image = love.graphics.newImage("gfx/DogRunAnimation.png") self.image:setWrap("repeat", "repeat") self.width = self.image:getWidth() / 8 self.height = self.image:getHeight() self...
nilq/small-lua-stack
null
require 'utils.enum' if codes == nil then codes = {} end -- Enum for weather IDs, according to the internal files codes.WEATHER, codes.WEATHER_NAMES = enum.register({ 'Clear', 'Sunny', 'Sandstorm', 'Cloudy', 'Rain', 'Hail', 'Fog', 'Snow', }, 0, 'weather condition')
nilq/small-lua-stack
null
----------------------------------- -- Area: Western Adoulin (256) -- NPC: Brenton -- Type: SOA Mission NPC -- !pos 127 -86.036 3.349 ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/npc_util") local ID = require("scripts/zones/Western...
nilq/small-lua-stack
null
--[[ Copyright (c) 2016 by Marco Lizza (marco.lizza@gmail.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 purpose, including...
nilq/small-lua-stack
null
--[[ --- This is Wilson's speech file for Don't Starve Together --- Write your character's lines here. If you want to use another speech file as a base, or use a more up-to-date version, get them from data\scripts\ If you want to use quotation marks in a quote, put a \ before it. Example: "Like \"this\"." ]] ret...
nilq/small-lua-stack
null
local CollectionService = game:GetService("CollectionService") return function(Sunshine, entity) local scriptCollectibleDisplay = entity.scriptCollectibleDisplay local frame = entity.frame local visible = entity.visible if scriptCollectibleDisplay and frame and visible then local scriptCollecti...
nilq/small-lua-stack
null
nut.currency = nut.currency or {} nut.currency.symbol = nut.currency.symbol or "$" nut.currency.singular = nut.currency.singular or "dollar" nut.currency.plural = nut.currency.plural or "dollars" function nut.currency.set(symbol, singular, plural) nut.currency.symbol = symbol nut.currency.singular = singular nut.cu...
nilq/small-lua-stack
null
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- get the current require path local path = string.sub(..., 1, string.len(...) - string.len(".objects.tabs")) local lovefra...
nilq/small-lua-stack
null
slot0 = class("Map", import(".BaseVO")) slot0.INVALID = 0 slot0.SCENARIO = 1 slot0.ELITE = 2 slot0.EVENT = 3 slot0.ACTIVITY_EASY = 4 slot0.ACTIVITY_HARD = 5 slot0.ACT_EXTRA = 8 slot0.ESCORT = 9 slot0.SKIRMISH = 10 slot0.NORMAL_MAP = { slot0.INVALID, slot0.SCENARIO, slot0.ELITE, slot0.EVENT, slot0.ACTIVITY_EASY, s...
nilq/small-lua-stack
null
--[[---------------------------------------------------------------------------------------------------- <auto-generated> This file was generated by: ClientIntegration/Tools/LuaStringsGenerator/GenerateAllLocales.py Changes to this file should always follow: Building an Internationalized Feature - Engineer's Gu...
nilq/small-lua-stack
null
object_mobile_kole_nym_ambush = object_mobile_shared_kole_nym_ambush:new { } ObjectTemplates:addTemplate(object_mobile_kole_nym_ambush, "object/mobile/kole_nym_ambush.iff")
nilq/small-lua-stack
null
test = require 'u-test' common = require 'common' function GetAchievementsForTitleIdCpp_Handler() print("GetAchievementsForTitleIdCpp_Handler") AchievementsServiceGetAchievementsForTitleId() end function OnAchievementsServiceGetAchievementsForTitleId() hr, hasNext = AchievementsResultHasNextCpp() prin...
nilq/small-lua-stack
null
local image = require 'dmlab.system.image' local asserts = require 'testing.asserts' local test_runner = require 'testing.test_runner' local tensor = require 'dmlab.system.tensor' local helpers = require 'common.helpers' local FILE_NAME = ... local tests = {} function tests:loadImageRGB() local image = image.load(he...
nilq/small-lua-stack
null
--- -- @module ProjectileQueue -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local Class = require( 'lib.Middleclass' ) local Projectile = require( 'src.items.weapons.Projectile' ) local ProjectilePath = require( 'src.items.weapons.Proje...
nilq/small-lua-stack
null
-- construct reflections metatable reflection_metatable_for_table = { __index = function(table, key) return table.source[key] end, __newindex = function(table, key, value) if( type(value) == "table") then -- expression table[key].assign = value.value table...
nilq/small-lua-stack
null
local NoobTacoUI, E, L, V, P, G = unpack(select(2, ...)) function NoobTacoUI:SetupLayout() -- CUSTOM TEXTS -- Player Unit Frame if not E.db.unitframe.units.player.customTexts then E.db.unitframe.units.player.customTexts = {} end if E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerHealth"] == ...
nilq/small-lua-stack
null
-- Copyright (C) 2012 by Yichun Zhang (agentzh) local sha512 = require "resty.sha512" local ffi = require "ffi" local ffi_new = ffi.new local ffi_str = ffi.string local C = ffi.C local setmetatable = setmetatable local error = error module(...) _VERSION = '0.08' local mt = { __index = _M } ffi.cdef[[ int SHA38...
nilq/small-lua-stack
null
local AddonName, AddonTable = ... AddonTable.fishing = { -- Fish 74857, -- Giant Mantis Shrimp 74866, -- Golden Carp }
nilq/small-lua-stack
null
View = Object:extend() function View:new(x, y) self.x = x self.y = y self.width = blocksize*10 self.height = blocksize*20.5 --Variables for information at the side self.linesCleared = 0 self.nextNr = 4 self.nextshape= Shape(12, 2, math.random(7)) self.savedshape = -1 end function View:update(dt) ...
nilq/small-lua-stack
null
local PATH = (...):gsub('%.[^%.]+$', '') local Event = {} Event.__index = Event Event.__call = function(self, ...) return self:populate(...) end function Event.new(name, ...) local event = setmetatable({ name = name, keys = {...}, }, Event) return event end function Event:populate(...) loca...
nilq/small-lua-stack
null
local Prop = {} Prop.Name = "City Hall" Prop.Government = true Prop.Doors = { Vector( -772.36999511719, -1452, 138 ), Vector( -675.63000488281, -1452, 138 ), Vector( -492.36999511719, -1452, 138 ), Vector( -395.63000488281, -1452, 138 ), { Pos = Vector( 59, -1752, 130 ), Locked = true }, } GM.Property:Register( P...
nilq/small-lua-stack
null
local lockbox = script.Parent.Parent local Bit = require(lockbox.util.bit); local String = string; local Math = math; local Queue = require(lockbox.util.queue); local CONSTANTS = { 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be,...
nilq/small-lua-stack
null
local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') local clear, feed = helpers.clear, helpers.feed local source = helpers.source local insert = helpers.insert local meths = helpers.meths local command = helpers.command local funcs = helpers.funcs describe...
nilq/small-lua-stack
null
local CHAR = ix.meta.character function CHAR:IsCombine() local faction = self:GetFaction() return faction == FACTION_MPF or faction == FACTION_OTA or faction == FACTION_USC end
nilq/small-lua-stack
null
object_tangible_storyteller_event_props_pr_lifeday_tree = object_tangible_storyteller_event_props_shared_pr_lifeday_tree:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_event_props_pr_lifeday_tree, "object/tangible/storyteller/event_props/pr_lifeday_tree.iff")
nilq/small-lua-stack
null
object_draft_schematic_dance_prop_prop_sparkler_r_s03 = object_draft_schematic_dance_prop_shared_prop_sparkler_r_s03:new { } ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_sparkler_r_s03, "object/draft_schematic/dance_prop/prop_sparkler_r_s03.iff")
nilq/small-lua-stack
null
local K, C, L = unpack(select(2, ...)) if C.Misc.ItemLevel ~= true then return end -- Lua API local _G = _G local C_Timer_After = C_Timer.After local floor = math.floor local pairs = pairs local select = select local strmatch = string.match local strsplit = string.split local tonumber = tonumber -- Wow API local GetD...
nilq/small-lua-stack
null
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') function ENT:SpawnFunction( ply, tr ) if !tr.Hit then return end local SpawnPos = tr.HitPos + tr.HitNormal * 2 local ent = ents.Create( "crafting_table" ) ent:SetPos( SpawnPos ) ent:Spawn() ent:Activate() return ent end function ...
nilq/small-lua-stack
null
function Emmy:GetEventLiterals() table.sort(APIDocumentation.events, function(a, b) return a.LiteralName < b.LiteralName end) local t = {} tinsert(t, "---@alias Event") for _, event in ipairs(APIDocumentation.events) do local line = format("'\"%s\"'", event.LiteralName) local payload = event:GetPayloadString...
nilq/small-lua-stack
null
local sw, sh = ScrW(), ScrH() function GM:HUDPaint() DrawBWHealthBar() surface.SetDrawColor(MAIN_BLACKCOLOR_FADE_LESS) surface.DrawRect(0,0,sw,17) draw.SimpleText("F1 - Help | F2 - Factions", "HUDFont", 5) --surface.SetDrawColor(MAIN_WHITECOLOR) --surface.DrawLine(0,17,sw,17) end
nilq/small-lua-stack
null
--////////////////////////////////// --//// Holystone Productions //// --//// Copy Right //// --//// Blizzlike Repack v 1.0 //// --////////////////////////////////// local DeathspeakerServant = 36805 function DeathspeakerServant_OnCombat(punit, event) punit:RegisterEvent("DeathspeakerServant_Cha...
nilq/small-lua-stack
null
-- vim : ft=lua ts=2 sw=2 et: require "col" require "some" require "num" require "sym" require "row" require "cols" require "rows" if not pcall(debug.getlocal,4,1) then print(1) end
nilq/small-lua-stack
null
local Ltn12 = require "ltn12" local Json = require "cjson" local Http = require "socket.http" local Https = require "ssl.https" local M = {} function M.json (options) assert (type (options) == "table") local result = {} options.sink = Ltn12.sink.table (result) options.method = options.method or "GET" ...
nilq/small-lua-stack
null
local function register(basename, description, texture) local nodename_single = "scifi_nodes:" .. basename .. "_pane" local nodename_double = "scifi_nodes:" .. basename .. "_pane_double" local nodename_offset = "scifi_nodes:" .. basename .. "_pane_offset" local recipe_ingredient = "scifi_nodes:" .. basename ...
nilq/small-lua-stack
null
player.GetAllOmit = function(plyOmit) local players = {} for _, ply in pairs(player.GetAll()) do if ply ~= plyOmit then table.insert(players, ply) end end return players end
nilq/small-lua-stack
null
local gears = require("gears") local awful = require("awful") local hotkeys_popup = require('awful.hotkeys_popup').widget local modkey = require('configuration.keys.mod').mod_key local apps = require('configuration.apps') local leave_open_mode = function () root.keys(require('configuration.keys.global')) end local...
nilq/small-lua-stack
null
-- tolua: enumerate class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: enumerate.lua,v 1.3 2000/01/24 20:41:15 celes Exp $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to pr...
nilq/small-lua-stack
null
-- I will not be releasing the source of the chat as I still use it in my latest games
nilq/small-lua-stack
null
local std, _ENV = _ENV local pattern_rules_lib = std.require 'split_to_chunks_pattern_rules' local export = {} function export.make_options_from_pg_dump_splitter(options) return { io_size = options.io_size, lex_consts = options.lex_consts, lex_trans_more = options.lex_trans_more, make_pattern_rules...
nilq/small-lua-stack
null
-- Services local UserInputService = game:GetService("UserInputService") local keybindsystem = { bindings = {} } -- loading in entities with keybinds into the keybind system function keybindsystem:Load(entity) -- sice we have a keybind component, we can query that local keybind = entity:GetComponent('keybind') ...
nilq/small-lua-stack
null
#!/usr/bin/env lua --[[ Copyright © 2015 Jon Allen <ylixir@gmail.com> This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details. ]]-- --[[ This file downloads and forma...
nilq/small-lua-stack
null
BaseState = Class {} function BaseState:init() end function BaseState:enter() end function BaseState:exit() end function BaseState:update(dt) end function BaseState:render() end
nilq/small-lua-stack
null
local provider = function() return vim.fn.expand "%:t" end return { provider = provider, }
nilq/small-lua-stack
null
local Roact = require(game:GetService("ReplicatedStorage").Roact) local Settings = require(script.Parent.Parent.Parent.Parent:WaitForChild("Settings")) local PlayerComponent = require(script.Parent.Player) local BlipContainerComponent = require(script.Parent.BlipContainer) local events = script.Parent.Parent.Parent.E...
nilq/small-lua-stack
null
local componentCost = { [components.Weapon] = 10, [components.Wand] = 12, [components.Edible] = 3, [components.Drinkable] = 5, [components.Readable] = 7, [components.Equipment] = 15, } local rarityModifier = { common = 1, uncommon = 2, rare = 3, mythic = 4, } local lootUtil = {} function lootUtil...
nilq/small-lua-stack
null
--this = SceneNode() --ownerIndex = Number() SwarmBall = {name="SwarmBall"} function SwarmBall.new() local self = {} local calculatedFutherPosition = Vec3() local timeLeft = 0.0 local speed = 6.0 local node = SceneNode() this:findNodeByTypeTowardsRoot(NodeId.playerNode):addChild(node) local exp...
nilq/small-lua-stack
null
--------------------------- -- Default awesome theme -- --------------------------- -- Ignore line too long warnings -- luacheck: ignore 631 local gears = require("gears") local theme_assets = require("beautiful.theme_assets") local xresources = require("beautiful.xresources") local real_dpi = xresources.apply_dpi lo...
nilq/small-lua-stack
null
--普通的魔法使¤白泽球 function c22220010.initial_effect(c) --pendulum summon aux.EnablePendulumAttribute(c) --atk&def local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetRange(LOCATION_PZONE) e1:SetTargetRange(LOCATION_MZONE,0) e1:SetTarget(c22220010.tgval) e1:SetValue(...
nilq/small-lua-stack
null
RegisterNetEvent('casinoUi:ShowUI') AddEventHandler('casinoUi:ShowUI', function(action, text) SendNUIMessage({ action = action, text = text, }) end) RegisterNetEvent('casinoUi:HideUI') AddEventHandler('casinoUi:HideUI', function() SendNUIMessage({ action = 'hide' }) end) function DrawCasinoUi(action, text) ...
nilq/small-lua-stack
null
print("beginning setup.lua") math.randomseed(os.time()) print("package path") package.path = package.path .. ";scr/?.lua" print("APIs") cursorAPI = require("cursor") regionAPI = require("region") regionPagerAPI = require("region_pager") tileSheetAPI = require("tile_sheet") markerAPI = require("marker") markerManager...
nilq/small-lua-stack
null
local do3dtextrender = false setTimer ( function ( ) do3dtextrender = exports.VDBGLogin:isClientLoggedin ( ) end, 1000, 1 ) addEvent ( "onClientPlayerLogin", true ) addEventHandler ( "onClientPlayerLogin", root, function ( ) do3dtextrender = true end ) local openedJob = nil local s = {guiGetScreenSize()} local panel...
nilq/small-lua-stack
null
ITEM.name = "Wild Mushroom Cluster" ITEM.description = "A cluster of wild mushrooms, often saught by farmers for their spores." ITEM.model = "models/illusion/metroexodus/mushroom.mdl" ITEM.uniqueID = "mushroom_cluster" ITEM.height = 1 ITEM.width = 2 ITEM.category = "Farming" ITEM.price = 30 ITEM.functions.convert = {...
nilq/small-lua-stack
null
----------------------------------------- -- Spell: Klimaform -- Increases magic accuracy for spells of the same element as current weather ----------------------------------------- require("scripts/globals/status") function onMagicCastingCheck(caster,target,spell) return 0 end function onSpellCast(caster,ta...
nilq/small-lua-stack
null
local M = {} function M.file_supported(file_extension) return file_extension == 'java' or file_extension == 'md' end local function remove_extension(filename, file_extension) return string.sub(filename, 1, #filename - #file_extension - 1) end local function slice(tbl, s, e) local new_tbl = {} for i ...
nilq/small-lua-stack
null
-- KEYS: lockKey -- ARGV: lockerId, currentTime, liveTime -- return: true(成功);false(失败,锁不存在或已经易主) -- 数据结构(hash) -- ${lockKey}: -- owner: none、writer、readers、reader-writer -- writerBooking: ${writerBooking} -- writer: ${lockerId} -- readerAmount: ${读者数量} -- readerAmountDeadline: ${readerAmount的存活时间} -- read...
nilq/small-lua-stack
null
local MSQ = LibStub("Masque", true) if not MSQ then return end -- Diablo III - Square MSQ:AddSkin("Diablo III - Square", { Author = "Suicidal Katt", Version = "1.0", Shape = "Square", Masque_Version = 40200, Backdrop = { Width = 36, Height = 36, Color = {0.8, 0.8, 0.8, 1}, Texture = [[Interfa...
nilq/small-lua-stack
null
--Graph (abstract data type) --def G(P,L) --~ P: a set of finite points --~ L: some edges or lines -- def P{id[int or str]-> p,...} -- def p{some data} -- def L{ (id1<->id2,type,power, {other(...)}) } package.path=package.path..";..\\?.lua;" <<<<<<< HEAD require "grammar.class" ======= require "luagy.grammar.class" ...
nilq/small-lua-stack
null
--[[ KahLua Kore - core library functions for KahLua addons. WWW: http://kahluamod.com/kore Git: https://github.com/kahluamods/kore IRC: #KahLua on irc.freenode.net E-mail: cruciformer@gmail.com Please refer to the file LICENSE.txt for the Apache License, Version 2.0. Copyright 2008-2018 ...
nilq/small-lua-stack
null
ys = ys or {} slot1 = ys.Battle.BattleFormulas slot2 = ys.Battle.BattleUnitEvent ys.Battle.BattleSkillEffect = class("BattleSkillEffect") ys.Battle.BattleSkillEffect.__name = "BattleSkillEffect" ys.Battle.BattleSkillEffect.Ctor = function (slot0, slot1, slot2) slot0._tempData = slot1 slot0._type = slot0._tempData.ty...
nilq/small-lua-stack
null
object_tangible_loot_npc_loot_decryptor_generic = object_tangible_loot_npc_loot_shared_decryptor_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_decryptor_generic, "object/tangible/loot/npc/loot/decryptor_generic.iff")
nilq/small-lua-stack
null
return Def.ActorFrame{ Def.Quad{ InitCommand=function(self) self:xy(_screen.cx, _screen.cy):zoomto(_screen.w,200):diffuse(0,0,0,1) end }, LoadFont("Common Normal")..{ Text=ScreenString("Instructions"), InitCommand=function(self) self:xy(_screen.cx, _screen.cy+50) end } }
nilq/small-lua-stack
null
local create = coroutine.create local resume = coroutine.resume local yield = coroutine.yield local unpack0 = table.unpack or unpack local unpack = function(t) if t and #t > 0 then return unpack0(t) end end local inst do local v = {} v.cls = ("Eff: %s"):format(tostring(v):match('0x[0-f]+')) inst = setm...
nilq/small-lua-stack
null
SHB = {} if SERVER then AddCSLuaFile("shb/cl_init.lua") AddCSLuaFile("shb/cl_themes.lua") AddCSLuaFile("shb/config.lua") else include("shb/cl_init.lua") end
nilq/small-lua-stack
null
return { id = "HOLOGUANQIA48", mode = 2, once = true, fadeType = 1, fadein = 1.5, scripts = { { expression = 2, side = 2, bgm = "holo-fff", nameColor = "#ff5c5c", dir = -1, actorScale = 2, soundeffect = "event:/battle/boom2", actor = 10500010, actorName = "DARK FOX BIZZARD", say = ...
nilq/small-lua-stack
null
local module = setmetatable({ "Magic moon dust" }, { __call = function (self) print(tostring(self)) end, __tostring = function (self) return self[1] end }) return module
nilq/small-lua-stack
null
local player = require'cplayer' local glue = require'glue' local bitmap = require'bitmap' local cairo = require'cairo' local function bitmap_cairo(w, h) local bmp = bitmap.new(w, h, 'bgra8', false, true) local surface = cairo.image_surface(bmp) local context = surface:context() return {surface = surface, context =...
nilq/small-lua-stack
null
local ffi = require("ffi") if ffi.arch == "x86" then ffi.cdef[[ typedef struct __pthread_internal_slist { struct __pthread_internal_slist *__next; } __pthread_slist_t; typedef union { struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; int __kind; unsigned int __nuser...
nilq/small-lua-stack
null
local CorePackages = game:GetService("CorePackages") local CoreGui = game:GetService("CoreGui") local TextService = game:GetService("TextService") local Roact = require(CorePackages.Roact) local t = require(CorePackages.Packages.t) local UIBlox = require(CorePackages.UIBlox) local withStyle = UIBlox.Core.Style.withSt...
nilq/small-lua-stack
null
local M = {} function M.sort_by_field(field) return function(a, b) return a[field] > b[field] end end function M.inspect(debug, data) if debug then print(vim.inspect(data)) end return data end function M.merge_tables(left, right) for k, v in pairs(right) do left[k] = v end return righ...
nilq/small-lua-stack
null
position = {x = 49.8345527648926, y = 0.941939771175385, z = 15.7342796325684} rotation = {x = 0.00137930607888848, y = 150.009719848633, z = -0.000795437605120242}
nilq/small-lua-stack
null
local _PATH = (...) require(_PATH..".PathFinder") require(_PATH..".interface")
nilq/small-lua-stack
null
while not _G.PERKS do Task.Wait() end local subscriptionPerkRef = _G.PERKS.SUBSCRIPTION local propMultiplier = script:GetCustomProperty("STORE_SampleMultiplier"):WaitForObject() local propRequiredNumberOfVIP = propMultiplier:GetCustomProperty("RequiredNumberOfVIP") local propMoneyPerInterraction = propMultiplie...
nilq/small-lua-stack
null
function GM:Think() for _, v in pairs( player.GetAll() ) do self:SpeedThink( v ); self:ConsciousThink( v ); self:HungerThink( v ); self:AdminThink( v ); self:PrisonThink( v ); self:AFKThink( v ); self:APCThink( v ); v:WaterThink(); if( v.Inventory ) then for _, n in pairs( v.Inventory ...
nilq/small-lua-stack
null
LogFile = "log.txt" function Log (...) local str = os.clock() .. ": " local isFirst = true for i, t in ipairs(arg) do str = str .. (isFirst and "" or " | ") .. tostring(t) isFirst = false end AppendLog(str) end function AppendLog (text) local file = fs.open(LogFile, "a") file.writeLine(text) ...
nilq/small-lua-stack
null
-- Summon a player by SteamId to your position ChatCommands["!summon"] = function(playerId, command) Log(">> !summon - %s", command); local player = System.GetEntity(playerId) -- Only allow the following SteamId to invoke the command local steamid = player.player:GetSteam64Id() local allowCommand = steam...
nilq/small-lua-stack
null
function replaceModel() txd = engineLoadTXD("em.txd", 2926 ) engineImportTXD(txd, 2926) dff = engineLoadDFF("em.dff", 2926 ) engineReplaceModel(dff, 2926) col= engineLoadCOL ( "em.col" ) engineReplaceCOL ( col, 2926 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), ...
nilq/small-lua-stack
null
-- luajit implements the 5.2 loadfile extension while reporting a lua version -- of 5.1 return function(path, env) return loadfile(path, nil, env) end
nilq/small-lua-stack
null
#!/usr/bin/env texlua -- Build script for fduthesis. module = "fduthesis" checkengines = {"xetex", "luatex"} checkopts = "-interaction=batchmode" sourcefiles = {"source/*.dtx"} installfiles = {"*.cls", "*.sty", "*.def"} -- typesetdeps = {"source/latexmkrc."} typesetexe = "xelatex" typesetfiles = {"fduthesis....
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [OnAppPermissionChanged]: appRevoked:true -- -- Description: -- In case the app is currently registered and in any -- HMILevel and in result of PTU gets "null" policies, -- SDL must send OnAppPermiss...
nilq/small-lua-stack
null
-- Squid-Tech for recipe unlocks squidTech = util.table.deepcopy(data.raw["technology"]["advanced-material-processing-2"]) squidTech.name = "squid-tech" squidTech.effects = { { type = "unlock-recipe", recipe = "squid-plate"}, { type = "unlock-recipe", recipe = "squid-furnace"}, { type = "unlock-recipe", rec...
nilq/small-lua-stack
null
--[=[ Utility methods for grip attachments @class IKGripUtils ]=] local IKGripUtils = {} --[=[ Parent to the attachment we want the humanoid to grip. ```lua -- Get the binder local leftGripAttachmentBinder = serviceBag:GetService(require("IKBindersServer")).IKLeftGrip -- Setup sample grip local attachment =...
nilq/small-lua-stack
null
--[[ simple payment from the originator to the receiver. This is for test only as does not take miner fees Expected behaviour in production is that this is not included in scripts.txt and therefore is not loaded. TESTING ONLY Wallet used is presumed to be the default wallet (wallets.default) KEYS[...
nilq/small-lua-stack
null
return { { title='ann-the-future-of-sailor-a-letter-to-sailor-and-lua-communities', long_title='Jan 15 2016 - Announcement: The future of Sailor, a letter to Sailor and Lua communities', md = true, body=[[ Hello everyone, Happy new year! As you may or may not know, it is my dream that Lua gains more scene on w...
nilq/small-lua-stack
null
-- DetailWidgetOnlineEntity.lua -- Author:Demon -- Date:2016/3/9 -- Last modification: -- Description:线上实物详细信息界面 -- Note: require("hall/backpack/data/backpackDataInterface"); local hallLayerBaseWithName = require("hall/widget/hallLayerBaseWithName") local DetailWidgetOnlineEntity = class(hallLayerBaseWithName...
nilq/small-lua-stack
null
require "scripts.common" local o={} function o:OnActivate() if(self:IsAuthoritative()) then SpawnerComponentRequestBus.Event.Spawn(self.entityId); end Debug.Log("spawn if master:"); --Debug.Log(dump(self)); end return o;
nilq/small-lua-stack
null
local t = Def.ActorFrame {}; local Space = '0000'; local Combo = STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):MaxCombo(); local FullStep = STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_W1") + STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteSc...
nilq/small-lua-stack
null
-- npm install -g yaml-language-server require'lspconfig'.yamlls.setup{ on_attach = require'garbray.lsp.handlers'.on_attach, }
nilq/small-lua-stack
null