content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
ys = ys or {} slot1 = pg ys or .MVC = ys.MVC or {} ys or .MVC.Facade = singletonClass("MVC.Facade") ys or .MVC.Facade.__name = "MVC.Facade" ys or .MVC.Facade.Ctor = function (slot0) slot0:Initialize() end ys or .MVC.Facade.AddDataProxy = function (slot0, slot1) slot1._state = slot0 slot1:ActiveProxy() slot0._pr...
nilq/small-lua-stack
null
local laoi = require "laoi" local OBJ = {} local check_leave_aoi = true local map_size = {100,100,100} local view_size = {4.5,4.5,4.5} -- 2d --local map_size = {100,100,0} --local view_size = {4.5,4.5,0} function init_obj(id,pos,v,mode) OBJ[id] = { pos = pos, v = v, mode = mode, } end function update_obj(aoi...
nilq/small-lua-stack
null
--data.lua require("prototypes.item")
nilq/small-lua-stack
null
Locales['fr'] = { ['no_hands_up'] = 'La cible n\'a pas les mains en l\'air !', ['cash'] = 'Cash', ['black_money'] = 'Argent Sale', ['inventory'] = 'Inventaire', ['target_inventory'] = 'Inventaire de la cible', ['steal'] = 'Voler', ['r...
nilq/small-lua-stack
null
local ls = require("luasnip") -- some shorthands... local s = ls.snippet local sn = ls.snippet_node local t = ls.text_node local i = ls.insert_node local f = ls.function_node local c = ls.choice_node local d = ls.dynamic_node local r = ls.restore_node local l = require("luasnip.extras").lambda local rep = require("luas...
nilq/small-lua-stack
null
--[[ Configuration Module for CrescentShell ]] local file = require('modules/file') -- File Reader local inspect = require('modules/inspect') local configuration = { _version = "0.5.0", cfg = nil, aliases = nil } local defaultConfig = { color = { blue = 255, green = 255, r...
nilq/small-lua-stack
null
require('prototypes/uraniumLandfill') if (settings.startup['woodenLandfill'].value) then require('prototypes/woodenLandfill') end if (settings.startup['coalLandfill'].value) then require('prototypes/coalLandfill') end
nilq/small-lua-stack
null
AddCSLuaFile() ENT.Base = "gballoon_tower_base" ENT.Type = "anim" ENT.PrintName = "Pill Lobber" ENT.Category = "RotgB: Towers" ENT.Author = "Piengineer" ENT.Contact = "http://steamcommunity.com/id/Piengineer12/" ENT.Purpose = "This tower very slowly lobs pills that deal damage on direct hits, as well as splash damage ...
nilq/small-lua-stack
null
function saida(a) for i=1,a,2 do io.write(i,"\n") end end a=tonumber(io.read()) saida(a)
nilq/small-lua-stack
null
load(Base64Decode("G0x1YVIAAQQEBAgAGZMNChoKnNliQqKb5EAAAXmEBAAAAQAAAEFAAACBgAAAwcAAAAEBAQBBQQEAhoFBAMUBAAAGwkEARgJCAIQCAAFLAwAApQMAAEqDg4RKw0KFpUMAAEqDA4algwAASoODhoxDwwYABIAGnUOAAYsDAADAAwAEAAQAA90DAQEXAAGADEXDBoAFAAnDBYAAHYUAAorDBArigwAAYwT+f+XDAAAlBAEAZUQBAIsEAADBhAAAAYUDAEHFAwCBRQAAwQUEAAFGBABBhgQAgcYEAMEGBQABRwUA...
nilq/small-lua-stack
null
return wincent.autoload('wincent.vim')
nilq/small-lua-stack
null
object_building_player_construction_shared_construction_player_barn = SharedInstallationObjectTemplate:new { clientTemplateFileName = "object/building/player/construction/shared_construction_player_barn.iff" } ObjectTemplates:addClientTemplate(object_building_player_construction_shared_construction_player_barn, "obje...
nilq/small-lua-stack
null
local httpclient = require("framework.libs.httpclient"):new() local QueryBuilder = require "framework.api.query_builder" local cjson = require "cjson.safe" local function tappend(t, v) t[#t+1] = v end local Query = {} Query.__index = Query function Query:new(model_class) return setmetatable({ model_clas...
nilq/small-lua-stack
null
-- -- _jcdb.lua -- Define the compile_commands.json action(s). -- Copyright (c) 2020 Johan Skoeld -- newaction { trigger = "jcdb", shortname = "compile_commands.json", description = "Generate a compile_commands.json file.", valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Bundle" }, valid_...
nilq/small-lua-stack
null
local sounds = {} sounds.sfx = {volume = 1.0} sounds.music = {volume = 1.0} function sounds.newSFX(path, tag) sounds.sfx[tag] = love.audio.newSource(path, "static") end function sounds.newMusic(path, tag, name, by) local t = { source = love.audio.newSource(path, "stream"), name = name, by = by } sounds....
nilq/small-lua-stack
null
return _csharp_getAssemblyType("LuaBuildEvents.SSH.LuaPrivateKeyAuthenticationMethod");
nilq/small-lua-stack
null
module 'mock' CLASS: UIToggleButton ( UIButton ) :MODEL{ Field 'checked' :boolean() :isset( 'Checked' ) } :SIGNAL{ valueChanged = ''; } function UIToggleButton:__init() self.checked = false end function UIToggleButton:toggleChecked() return self:setChecked( not self.checked ) end function UIToggleButton:s...
nilq/small-lua-stack
null
--[[ Simple world scanner. Deposits to a map.nft file. Must be run on a command PC! --]] local blockColors = { ["minecraft:stone"] = "lightGray", ["minecraft:stone_bricks"] = "gray", ["minecraft:water"] = "blue", ["computercraft:computer_command"] = "orange", ["minecraft:grass_block"] = "green", ["mine...
nilq/small-lua-stack
null
SWEP.Sounds = { base_draw = { {time = 0, sound = "INS2SHARED_DRAW"}, }, base_reload = { {time = 5/33.5, sound = "INS2RPG7_FETCH"}, {time = 81/33.5, sound = "INS2RPG7_LOAD1"}, {time = 101/33.5, sound = "INS2RPG7_LOAD2"}, {time = 140/33.5, sound = "INS2RPG7_RATTLE"}, } }
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: jufeng -- Date: 19/12/2019 -- Time: 上午10:15 -- router crud -- local require = require local ngx = ngx local rock_core = require('rock.core') local router_cache = require('rock.router') local quote_sql_str = ngx.quote_sql_str --- 防止sql注入 local router_key = "rock_router" local _...
nilq/small-lua-stack
null
DEFINE_BASECLASS( "mp_service_browser" ) SERVICE.Name = "Vimeo" SERVICE.Id = "vm" SERVICE.Base = "browser" function SERVICE:New( url ) local obj = BaseClass.New(self, url) obj._data = obj:GetVimeoVideoId() return obj end function SERVICE:Match( url ) return string.find( url, "vimeo.com/%d+" ) end function S...
nilq/small-lua-stack
null
list.Set( "clothing_system", "fg_human_lamp_head", { Name = "Lamp hat", Category = "Hats", WireModel = "models/props_wasteland/light_spotlight01_lamp.mdl", FoldedModel = "models/props_wasteland/light_spotlight01_lamp.mdl", PlayerBase = "hl2_player", EquipSound = "items/flashlight1.wav", UnEq...
nilq/small-lua-stack
null
return (function(self, type) local ltype = (type or 'animation'):lower() assert(api.InheritsFrom(ltype, 'animation')) return api.CreateUIObject(ltype, nil, self) end)(...)
nilq/small-lua-stack
null
local Turner = {} Turner.__index = Turner function Turner.new(vehicle, config) local turner = setmetatable({}, Turner) turner.vehicle = assert(vehicle) local world = turner.vehicle.body:getWorld() turner.body = love.physics.newBody(world, 0, 0, "kinematic") turner.joint = love.physics.newFrictionJo...
nilq/small-lua-stack
null
return function() local AppStyle = require(script.Parent.AppStyle) local testTheme = { Background1 = { Color = Color3.fromRGB(0, 0, 0), Transparency = 0, }, Background2 = { Color = Color3.fromRGB(0, 0, 0), Transparency = 0, }, Background3 = { Color = Color3.fromRGB(0, 0, 0), Transparency ...
nilq/small-lua-stack
null
object_tangible_loot_creature_loot_kashyyyk_loot_corrupted_fruit = object_tangible_loot_creature_loot_kashyyyk_loot_shared_corrupted_fruit:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_corrupted_fruit, "object/tangible/loot/creature_loot/kashyyyk_loot/corrupted_fruit.iff")
nilq/small-lua-stack
null
local Player = FindMetaTable("Player") function Player:AddStat(strStat, intAmount) self.Stats = self.Stats or {} if intAmount ~= 0 then local intDirection = math.abs(intAmount) / intAmount self:SetStat(strStat, self:GetStat(strStat) + (intDirection * math.ceil(math.abs(intAmount)))) end end function Player:SetSt...
nilq/small-lua-stack
null
--[[ Usage at the beginning of a file: -- UseNoGlobals: report error when using globals but continue without halting local G, _ADDON = LibEnv.UseNoGlobals(...) local G, _ADDON = LibEnv.UseAddonEnv(...) local G, _ADDON = LibEnv.UseGlobalEnv(...) local ADDON_NAME = ... -- if necessary -- UseAddonAndGlobalEnv: use va...
nilq/small-lua-stack
null
local Map = IceRunner.Map local MapKit = IceRunner.MapKit local Up = IceRunner.MapTools.UpExtent local Down = IceRunner.MapTools.DownExtent local Left = IceRunner.MapTools.LeftExtent local Right = IceRunner.MapTools.RightExtent local Wall = IceRunner.Map.Wall local MapKit = IceRunner.MapTools.MapKit local Player = Map....
nilq/small-lua-stack
null
dofile("common.inc"); askText = "Hover over ATITD window and hit SHIFT.\n\nClick on a field to Harvest and Replant same seeds." .. "\n\nMake sure you are not holding other vegetable seeds before you start, otherwise it may plant the wrong seed."; veg_field = "Vegetable Field"; harvest_text = "Harvest Crop"; ...
nilq/small-lua-stack
null
--[[ The MIT License (MIT) Copyright (c) 2015 Christoph Kubisch 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, ...
nilq/small-lua-stack
null
_GATES = { n_ands = 0, n_gtes = 0, trgs = { 0 }, -- 0=all undefined should point to [0] } local INTS = {} -- variables that are internal events function alloc (tp, n) local g = _GATES[tp] _GATES[tp] = _GATES[tp] + (n or 1) return g end F = { Root = function ...
nilq/small-lua-stack
null
return { en = { hello = "hello", } }
nilq/small-lua-stack
null
--[[ Name: "cl_hooks.lua". Product: "kuroScript". --]] local MOUNT = MOUNT; -- Called when the local player has entered an area. function MOUNT:PlayerEnteredArea(name, minimum, maximum) datastream.StreamToServer( "ks_EnteredArea", {name, minimum, maximum} ); end; -- Called each tick. function MOUNT:Tick() if ( Val...
nilq/small-lua-stack
null
require "xlog" local socket = require "socket" local log = xlog("xsocket") local sendt = {} local recvt = {} local slept = {} local wrapped = setmetatable({}, {__mode = "kv"}) local wrapper wrapper = setmetatable( { error = function (self, err) if err ~= "closed" then log("debug", "socket error: %s", err) en...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Recycling embedding training example -------------------------------------------------------------------------------- -- Alfredo Canziani, Apr 15 -------------------------------------------------------------------------------- package....
nilq/small-lua-stack
null
local generate = require('apicast.cli.command.generate') local pl = require'pl.import_into'() local function call(options) generate.copy(options.template, options.apicast, { _brackets = '{}', policy = { file = options.name, name = options.name, version = options.version, summary = opt...
nilq/small-lua-stack
null
local mainGameStateManager = script:GetCustomProperty("GAMESTATE_MainGameStateManagerServer"):WaitForObject() local lastTeamStandingServer = script:GetCustomProperty("GAMESTATE_LastTeamStandingServer"):WaitForObject() local settings = script:GetCustomProperty("Settings"):WaitForObject() local lastTeamStandingUI = scri...
nilq/small-lua-stack
null
PlayerAssistant = { corners = {-6, 5, -22, -0.5} } PlayerAssistant.__index = PlayerAssistant local PLAYER_ID = 1 local FLY_SPEED = 400 local MAX_FLY_SPEED = 160 local MAX_FLY_SPEED_CARRY = 90 local GRAVITY = 350 PS_RUN, PS_CARRY, PS_THROW = 0,1,2 local lg = love.graphics function PlayerAssistant.create(x, y, level)...
nilq/small-lua-stack
null
local player = Var "Player" local pulse = function(self) self:stoptweening() self:zoomx(1.3):zoomy(1.2) self:decelerate(0.075) self:zoom(1) self:sleep(0.725):linear(0.12) self:zoom(0.5) self:sleep(0.5):linear(0.15) self:zoom(0.25) end local fadeout = function(self) self:stoptweening() self:sleep(0.8):linear(...
nilq/small-lua-stack
null
require("tests/testsuite") Cmd.SetMark() Cmd.InsertStringIntoParagraph("foo bar baz") AssertTableEquals({"foo", "bar", "baz"}, Document[1]) Cmd.DeleteWordLeftOfCursor() AssertTableEquals({"foo", "bar", ""}, Document[1]) Cmd.DeletePreviousChar() AssertTableEquals({"foo", "bar"}, Document[1]) Cmd.GotoPreviousCharW()...
nilq/small-lua-stack
null
local function has(name) return vim.fn.has(name) == 1 end local is_nvim_cache local function is_nvim() if is_nvim_cache == nil then is_nvim_cache = has('nvim') end return is_nvim_cache end local is_windows_cache local function is_windows() if is_windows_cache == nil then is_windows_cache = has('win32') en...
nilq/small-lua-stack
null
-- npm install -g dockerfile-language-server-nodejs require'lspconfig'.dockerls.setup { cmd = {DATA_PATH .. "/lspinstall/dockerfile/node_modules/.bin/docker-langserver", "--stdio"}, on_attach = require'lsp'.common_on_attach, root_dir = vim.loop.cwd }
nilq/small-lua-stack
null
--require "dumper" -- Define a shortcut function for testing --function dump(...) -- print(DataDumper(...), "\n---") --end function dump(o) if type(o) == 'table' then local s = '{ ' for k,v in pairs(o) do if type(k) ~= 'number' then k = '"'..k..'"' end s = s .. '['..k..'] = ' .. dump(v) .. ',' end retu...
nilq/small-lua-stack
null
require("KPrediction") KPred = KPrediction() function OnLoad() QSkill = KPSkillshot({type = "DelayLine", range = 1175, speed = 1200, width = 80, delay = 0.25, collisionM = 1, collisionH = 1}) print("Test") for _,v in pairs(GetEnemyHeroes()) do a,b,c,d = KPred:GetPrediction(QSkill, v, myHero, nil, true) end pr...
nilq/small-lua-stack
null
function MoonGlare.LookForProjects() local i,v for i,v in ipairs(os.matchfiles(dir.root .. "Doc/project.lua")) do print("Found project: " .. path.getrelative(dir.root, v)) dofile(v) end for i,v in ipairs(os.matchfiles(dir.root .. "Source/**/project.lua")) do print("Found project: " .. path.getrelative(dir.ro...
nilq/small-lua-stack
null
-- very simple test client, just connects to the server, sends what -- you type and prints what you receive. -- Demonstrates how to set up a unix domain client socket and communicate -- through it, and how to determine whether the server has terminated. -- -- Gunnar Zötl <gz@tset.de>, 2013-2015 -- Released under the te...
nilq/small-lua-stack
null
if SheetManager.UI == nil then SheetManager.UI = {} end ---@class CharacterSheetWrapper:LeaderLibUIWrapper local CharacterSheet = Classes.UIWrapper:CreateFromType(Data.UIType.characterSheet, {ControllerID = Data.UIType.statsPanel_c, IsControllerSupported = true, IsOpen = false}) local self = CharacterSheet SheetManag...
nilq/small-lua-stack
null
--[[ author: jacklarnes email: christucket@gmail.com reddit: /u/jacklarnes Date: 05.04.2015. ]] --[[ issues: partical doesn't follow the unit ]] function diabolic_edict_start( keys ) local caster = keys.caster local ability = keys.ability ability.num_explosions = ability:GetLevelSpec...
nilq/small-lua-stack
null
--------------------------------------------- -- Gorgon Dance -- -- Description: Petrifies all targets in an area of effect. -- Type: Enfeebling -- Utsusemi/Blink absorb: Ignores shadows -- Range: 10' radial? -- Notes: Used only by Medusa. Starts using it at 25%. --------------------------------------------- require("s...
nilq/small-lua-stack
null
local module = {} local superRootDialogueData --[[ dialogueData {} string id string dialogue table responses [string playerResponse] = <dialogData> dialogueHandler {} instance dialogUI instance currentSpeaker dialogueData rootDialogueData dialogueData currentDialogueData dialogueData previousD...
nilq/small-lua-stack
null
return {'tzatziki'}
nilq/small-lua-stack
null
local ok, bufferline = pcall(require, "bufferline") if not ok then return end local hi = require "as.highlights" local col_theme = require("as.plugins.gui._colhelper").theme local colNormBg = hi.get_hl("ColorColumn", "bg") or "#333" local colNormFg = hi.get_hl("LineNr", "fg") or "#333" local colDiagnosticNormBg =...
nilq/small-lua-stack
null
--[[ The commenting was a little lackluster at the time of writing this service, so I'll aim to re-highlight more clearly and in greater detail sometime. In short, it provides and abstraction of MessagingService using 'Senders' and 'Receivers', with methods similar to RemoteEvents and RemoteFunctions, to make communica...
nilq/small-lua-stack
null
-- color.lua -- -- originally from: -- Copyright (C) 2012 Ross Andrews -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any la...
nilq/small-lua-stack
null
--[[ https://github.com/minetest-mods/hopper/ - hopper mod must have ability to use functions instead of inventories - running the following code will patch the hopper mod (cd ~/.minetest/mods/hopper ; patch -p1 < ~/.minetest/mods/storage_barrels/patches/hopper.patch) - then add the follow line to ~/.minetest/m...
nilq/small-lua-stack
null
solution ("L_System_solution_" .. _ACTION) configurations { "Debug", "Release" } platforms { "x32", "x64" } location ("build") language "C" kind "ConsoleApp" language "C++" kind "ConsoleApp" projects = { "PR0_Base"} for i, prj in ipairs(projects) do project (prj) targetname (prj) prj_path = "./b...
nilq/small-lua-stack
null
-- size of our actual window WINDOW_WIDTH = 1280 WINDOW_HEIGHT = 720 -- size we're trying to emulate with push VIRTUAL_WIDTH = 432 VIRTUAL_HEIGHT = 243 PADDLE_SPEED = 200
nilq/small-lua-stack
null
Drops = {} Inventories = {} Datastore = {} Shops = {} Opened = {} Status = {'starting', ''} AddEventHandler('playerConnecting', function(name, setCallback, deferrals) deferrals.defer() Citizen.Wait(1000) if Status ~= 'ready' then deferrals.done('Inventory system has not yet loaded') else deferrals...
nilq/small-lua-stack
null
#!lua workspace "Octo" configurations { "Debug", "Release" } project "Octo" kind "ConsoleApp" language "C++" files { "**.h", "**.cpp" } includedirs { "depend/SDL2-2.0.5/include", "depend/SDL2_mixer-2.0.1/include", "depend/nativefiledialog-master/src/include" } libdirs { "depend/SDL2-2.0....
nilq/small-lua-stack
null
WOW_PROJECT_ID = 0 WOW_PROJECT_MAINLINE = 1 WOW_PROJECT_CLASSIC = 2 WOW_PROJECT_BURNING_CRUSADE_CLASSIC = 5
nilq/small-lua-stack
null
local Tunnel = module('_core', 'libs/Tunnel') local Proxy = module('_core', 'libs/Proxy') local hpp = Tunnel.getInterface("hpp_cet") hppC = {} Tunnel.bindInterface("hpp_cet", hppC) API = Proxy.getInterface('API') cAPI = Tunnel.getInterface('cAPI') local cfg = module("hpp_cet", "config/cfg") animApi = module("_core...
nilq/small-lua-stack
null
local tbTable = GameMain:GetMod("_ModifierScript") local tbModifier = tbTable:GetModifier("modifier_ZWX") function tbModifier:Enter(modifier, npc) npc.LuaHelper:TriggerStory("ZT_HGSJ") end function tbModifier:Step(modifier, npc, dt) end function tbModifier:UpdateStack(modifier, npc, add) end function tbMo...
nilq/small-lua-stack
null
local cache = require('app.helpers.cache') local GameLogic = require('app.libs.paijiu.PJGameLogic') local SUIT = { ['♠'] = 'h', ['♣'] = 'm', ['♥'] = 'z', ['♦'] = 'f', ['★'] = 'j1', ['☆'] = 'j2', } local CARD = { ['♠A'] = 1, ['♠2'] = 2, ['♠3'] = 3, ['♠4'] = 4, ['♠5'] = 5, ['♠6'] = 6...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0240-sdl-js-pwa.md -- -- Description: -- Processing of the UpdateAppList request to HMI if Web application is unregistered -- -- Precond...
nilq/small-lua-stack
null
-- This module was authored by dmitmel, see: -- <https://github.com/dmitmel/dotfiles/blob/b023ce0774/nvim/lua/dotfiles/autoload.lua> -- I am vendoring it for convenience because I like it -- Something similar to Vimscript's autoloading system, but for Lua, in -- particular its aspect of being able to reload a module b...
nilq/small-lua-stack
null
FloatingChatFrame_OnMouseScroll = function(self, dir) if(dir > 0) then if(IsShiftKeyDown()) then self:ScrollToTop() else self:ScrollUp() end else if(IsShiftKeyDown()) then self:ScrollToBottom() else self:ScrollDown() end end end
nilq/small-lua-stack
null
CloneClass( BlackMarketTweakData ) Hooks:RegisterHook("BlackMarketTweakDataPostInitGrenades") function BlackMarketTweakData._init_grenades(self) self.orig._init_grenades(self) Hooks:Call("BlackMarketTweakDataPostInitGrenades", self) end
nilq/small-lua-stack
null
-- Autogenerated from KST: please remove this line if doing any edits by hand! local luaunit = require("luaunit") require("imports_abs") TestImportsAbs = {} function TestImportsAbs:test_imports_abs() local r = ImportsAbs:from_file("src/fixed_struct.bin") luaunit.assertEquals(r.len.value, 80) luaunit.as...
nilq/small-lua-stack
null
local test_env = require("test/test_environment") local run = test_env.run test_env.unload_luarocks() describe("LuaRocks refresh_cache tests #blackbox #b_refresh_cache", function() before_each(function() test_env.setup_specs() end) describe("LuaRocks-admin refresh cache tests #ssh", function() ...
nilq/small-lua-stack
null
lib.engine = new("lib.engine") function lib.engine.prototype.____constructor() self.events = {} self.validEvents = { ["mouseIn"] = true, ["mouseOut"] = true, ["remove"] = true, ["click"] = true } return true end --[[ **lib.engine:parent() ** Get/set parent ele...
nilq/small-lua-stack
null
Wall = { Name = "Wall", Components = { { _class = "SpriteComponent", Parameters = { Sprite = { Texture = "@Arenas/Common/VerticalWall.png" }, RenderLayer = "ArenaOverlay1", } }, { _class = "RigidBodyComponent", Parameters = { Collision = "@Arenas/Common/VerticalWallCollision....
nilq/small-lua-stack
null
do local _ = { ['repair-pack'] = { icon = '__base__/graphics/icons/repair-pack.png', name = 'repair-pack', icon_mipmaps = 4, speed = 2, type = 'repair-tool', order = 'b[repair]-a[repair-pack]', subgroup = 'tool', ...
nilq/small-lua-stack
null
include("shared.lua") ENT.thirdPerson = { distance = 800 } function ENT:DrawWeaponSelection() end local function DrawLine(v1,v2) surface.DrawLine(v1.y,v1.z,v2.y,v2.z) end local mHorizon0=Material("WeltEnSTurm/WAC/Helicopter/hud_line_0") local HudCol=Color(70,199,50,150) local Black=Color(0,0,0,200...
nilq/small-lua-stack
null
EditorAlertTrigger = EditorAlertTrigger or class(MissionScriptEditor) function EditorAlertTrigger:create_element() self.super.create_element(self) self._element.class = "ElementAlertTrigger" self._element.values.filter = "0" self._element.values.alert_types = {} end function EditorAlertTrigger:_build_panel() sel...
nilq/small-lua-stack
null
object_mobile_som_orf_whisper_bird = object_mobile_som_shared_orf_whisper_bird:new { } ObjectTemplates:addTemplate(object_mobile_som_orf_whisper_bird, "object/mobile/som/orf_whisper_bird.iff")
nilq/small-lua-stack
null
m = require('wbmqtt') -- MQTT interface definitions are resembling https://github.com/contactless/homeui/blob/contactless/conventions.md -- Supported parameters: -- name anything -- type see above conventions document -- readonly 1 or 0 -- on_connect called after establishing connection to the br...
nilq/small-lua-stack
null
-- Internal custom properties local AR = require(script:GetCustomProperty("API")) local EQUIPMENT = script:FindAncestorByType("Equipment") local ADDITIVE = script:GetCustomProperty("Additive") local RESOURCE = script:GetCustomProperty("Resource") local PARENT = script.parent local UPGRADE_EFFECT = script:GetCustomProp...
nilq/small-lua-stack
null
local class = require 'ext.class' local Function = require 'symmath.Function' local atan2 = class(Function) atan2.name = 'atan2' atan2.realFunc = math.atan2 atan2.cplxFunc = require 'symmath.complex'.atan2 function atan2:evaluateDerivative(deriv, ...) local y, x = table.unpack(self) y, x = y:clone(), x:clone() ret...
nilq/small-lua-stack
null
--Copyright (c) 2014, Byrthnoth --All rights reserved. --Redistribution and use in source and binary forms, with or without --modification, are permitted provided that the following conditions are met: -- * Redistributions of source code must retain the above copyright -- notice, this list of conditions and t...
nilq/small-lua-stack
null
return function(fn) coroutine.wrap(function () local success, result = xpcall(fn, debug.traceback) if not success then print(err) else return result end end)() end
nilq/small-lua-stack
null
-- implements a mouse look for spectating e.g. vehicles, as MTA's setCameraTarget only supports players local screenWidth, screenHeight = guiGetScreenSize() local phi, theta = false, false local target local distance = false local sin = math.sin local cos = math.cos local pi = math.pi local _setCameraMa...
nilq/small-lua-stack
null
local luaunit = dofile "./luaunit/luaunit.lua" local function startswith(str,start) return (string.find(str,start,1,true) == 1) end local function docmd(cmd) local status = os.execute(cmd) if status == 0 or status == true then return true end return false end local function docctangle(filename) print("cc...
nilq/small-lua-stack
null
---@meta ---@class cc.TMXObjectGroup :cc.Ref local TMXObjectGroup={ } cc.TMXObjectGroup=TMXObjectGroup ---* Sets the offset position of child objects. <br> ---* param offset The offset position of child objects. ---@param offset vec2_table ---@return self function TMXObjectGroup:setPositionOffset (offset) end ---...
nilq/small-lua-stack
null
--黒竜の雛 function c362620240.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(362620240,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCost(c362620240.spcost) e1:SetTarget(c362620240.sptg) e...
nilq/small-lua-stack
null
--[[ LuCI - Lua Configuration Interface - Shairplay support Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com> 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/license...
nilq/small-lua-stack
null
updateAbilities = function(pAbility, pAmount) if pAbility == "Stamina" then local currentStamina = CurrentAbilities["Stamina"] CurrentAbilities["Stamina"] = currentStamina + pAmount if CurrentAbilities["Stamina"] > 100 then CurrentAbilities["Stamina"] = 100 end i...
nilq/small-lua-stack
null
Save = { filename = "best.eki", defaultSave = { ["bestScore"] = 0, ["currentColor"] = 1, ["coins"] = 0, ["inventory"] = { ["equippedItemIdByType"] = {}, ["itemsIds"] = {}, } } } function Save:read() if love.filesystem.getInfo(self.filena...
nilq/small-lua-stack
null
finishedGameover = false; startedPlaying = false; function onCreate() setPropertyFromClass('GameOverSubstate', 'characterName', 'fleetway_death_BF'); setPropertyFromClass('GameOverSubstate', 'deathSoundName', 'laser_moment'); setPropertyFromClass('GameOverSubstate', 'loopSoundName', 'chaosgameover'); setPro...
nilq/small-lua-stack
null
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Script: anti rollover brake -- Version: 1.2 -- Build: 2017-04-16 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Description: -- Providing a custom c...
nilq/small-lua-stack
null
if UseItem(37) == true then goto label0 end; do return end; ::label0:: AddItem(37, -1); Talk(47, "小子,你捉到这冰蚕了.好,有了它,我这毒掌威力就更大了.", "talkname47", 0); ModifyEvent(-2, 3, -2, -2, 561, -1, -1, -2, -2, -2, -2, -2, -2); ModifyEvent(-2, 4, -2, -2, 562, -1, -1, -2, -2, -2, -2, -2, -2); do return end;
nilq/small-lua-stack
null
if not modules then modules = { } end modules ['pack-rul'] = { version = 1.001, comment = "companion to pack-rul.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } --[[ldx-- <p>An explana...
nilq/small-lua-stack
null
-- Copyright (C) 2020 jerrykuku <jerrykuku@gmail.com> -- Licensed to the public under the GNU General Public License v3. package.path = package.path .. ';/usr/share/ttnode/?.lua' require 'luci.http' require 'luci.dispatcher' require 'luci.model.uci' require 'luci.sys' local ttnode = require('ttnode') local config = 'tt...
nilq/small-lua-stack
null
-- This contains both the UI handling for view states, as well as the amount conversions view_state = {} -- ** LOCAL UTIL ** local processors = {} -- individual functions for each kind of view state function processors.items_per_timescale(metadata, raw_amount, item_proto, _) local number = ui_util.format_number(r...
nilq/small-lua-stack
null
local config = require'lspconfig'.clangd.document_config require'lspconfig/configs'.clangd = nil -- important, immediately unset the loaded config again config.default_config.cmd[1] = "./clangd/bin/clangd" return vim.tbl_extend('error', config, { install_script = [[ os=$(uname -s | tr "[:upper:]" "[:lower:]") c...
nilq/small-lua-stack
null
require "common" solution "esteid" location ("build/" .. _ACTION) platforms { "x32" , "x64" } configurations { "Debug", "Release" } if os.is("macosx") then includedirs { "/System/Library/Frameworks/PCSC.framework/Versions/A/Headers" } end include "smartcard++" include "src/utility" include "s...
nilq/small-lua-stack
null
ChangeScencePic(-2, 0, 990, 994); jyx2_ReplaceSceneObject("", "Bake/Static/stone", ""); ModifyEvent(-2, 0, -2, -2, -1, -1, 416, -1, -1, -1, -2, -2, -2);--by fanyu 启动脚本416 场景21-编号0 ModifyEvent(-2, -2, -2, -2, -1, -1, -1, -1, -1, -1, -2, -2, -2); do return end;
nilq/small-lua-stack
null
function getPieceState() -- pieceState is a thing for the current piece about which "routine" it's in, like piece dropping, line checks, line clears, etc return memory.readbyte(0x0048) end function getGameState() -- gameState is a global thing for which menu/demo/gameplay you're in return memory.readbyte(0x00C...
nilq/small-lua-stack
null
dofile("common.inc"); ---------------------------------------- -- Global Variables -- ---------------------------------------- window_w = 377; window_h = 246; tol = 8000; per_click_delay = 20; readDelay = 110; tick_time = 500; num_rounds = 1; ---------------------------------------- fu...
nilq/small-lua-stack
null
local base = {} --- function function base.sign(number) if number > 0 then return 1 elseif number < 0 then return -1 else return 0 end end function base.print(string, x, y, xMode, yMode) -- easy text print, xMode using love.graphics.printf(), yMode get font's pixels height a...
nilq/small-lua-stack
null