content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
function start (song) print("Song: " .. song .. " @ " .. bpm .. " donwscroll: " .. downscroll) end local defaultHudX = 0 local defaultHudY = 0 local defaultWindowX = 0 local defaultWindowY = 0 local lastStep = 0 local dadX = 0 local dadY = 0 local boyfriendX = 0 local boyfriendY = 0 function update (elapsed) ...
nilq/small-lua-stack
null
Scripts = Scripts or {} -- Constant velocity script. local ConstantVelocity = {} ConstantVelocity.__index = ConstantVelocity Scripts.ConstantVelocity = ConstantVelocity function ConstantVelocity:New(velocity) local self = {} self.velocity = velocity return setmetatable(self, ConstantVelocity) end fu...
nilq/small-lua-stack
null
return { -- simple bar spectogram, adapted from guycooks reference at shadertoy label = 'Bars', version = 1, filter = "none", frag = [[ uniform sampler2D map_tu0; uniform float obj_opacity; varying vec2 texco; #define bars 32.0 #define bar_sz (1.0 / bars) #define bar_gap (0.1 * bar_sz) float h2rgb(float h){ if (...
nilq/small-lua-stack
null
local luaUnit = require("luaunit") local ColorTextOutput = luaUnit.genericOutput.new() -- derived class local ColorTextOutput_MT = {__index = ColorTextOutput} -- metatable ColorTextOutput.__class__ = "ColorTextOutput" function ColorTextOutput.new(runner) local t = luaUnit.genericOutput.new(runner, luaUnit.VERBOSITY...
nilq/small-lua-stack
null
object_mobile_nym_themepark_wes_riggers = object_mobile_shared_nym_themepark_wes_riggers:new { } ObjectTemplates:addTemplate(object_mobile_nym_themepark_wes_riggers, "object/mobile/nym_themepark_wes_riggers.iff")
nilq/small-lua-stack
null
-- { expected = 2 } function foo(x) local bar = function(a, b, c) return a + b + c end return bar(x, 1, 2) end
nilq/small-lua-stack
null
-- lua script module (..., package.seeall) function AcceptTask(role, taskid, ret) print("==================================") print("Player Name = " .. role:GetName()) print("PlayerID = " .. role:GetObjID()) print("AcceptTask taskid = " .. taskid) if role:AcceptTask(taskid) then ret.value ...
nilq/small-lua-stack
null
----------------------------------- -- Area: Attohwa Chasm -- Mob: Citipati ----------------------------------- function onMobDeath(mob, player, isKiller) end;
nilq/small-lua-stack
null
triangle = paf.tutorial.Triangle(); triangle.m_vertices[0] = paf.tutorial.Point(0,0); triangle.m_vertices[1] = paf.tutorial.Point(0,1); triangle.m_vertices[2] = paf.tutorial.Point(1,1); shapeManager = paf.tutorial.ShapeManager.GetInstance(); shapeManager:addShape(triangle); print(shapeManager:getTotalArea());
nilq/small-lua-stack
null
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetHarmRandomByWeight", targetAniEffect = "", arg_list = { weapon_id = 68061, delay = 1 } } } }, { effect_list = { { type = "BattleSkillFire", casterAniEffect = ""...
nilq/small-lua-stack
null
--[[lit-meta name = "coherent/luvit-test-runner" description = "testing runner" version = "1.0.0" tags = {"test","runner"} license = "MIT" author = { name = "JB Smith" } ]] --[[ Using this module: -- local require for module local test_runner = require('test-runner') ... setup some prerequisites ...
nilq/small-lua-stack
null
-- These are some style prototypes that the tutorial uses -- You don't need to understand how these work to follow along local styles = data.raw["gui-style"].default styles["ugg_content_frame"] = { type = "frame_style", parent = "inside_shallow_frame_with_padding", vertically_stretchable = "on" } styles["...
nilq/small-lua-stack
null
local S = waffles.intllib --Waffle Maker and Waffles-- minetest.register_node("waffles:wafflemaker", { description = S("Waffle Maker"), drawtype = "mesh", mesh = "wafflemaker.obj", tiles = {"wafflemaker_texture.png"}, paramtype = "light", paramtype2 = "facedir", is_ground_content = false, groups = {snappy = 3...
nilq/small-lua-stack
null
-- note this file is a WIP and has no effect in game at the moment. ---@class ISBuildingBlueprintManager ISBuildingBlueprintManager = {} ISBuildingBlueprintManager.MouseDown = function (x, y) end ISBuildingBlueprintManager.MouseMove = function (x, y, wx, wy) end ISBuildingBlueprintManager.RenderUI = function () ...
nilq/small-lua-stack
null
_spellcard_background = Class(background) function _spellcard_background:init() background.init(self, true) self.layers = {} self.fxsize = 0 end function _spellcard_background:AddLayer(img, tile, x, y, rot, vx, vy, omiga, blend, hscale, vscale, init, frame, render) table.insert(self.layers, { im...
nilq/small-lua-stack
null
local ns = require('namespace') local prefabs = require('Prefab') local resources = require('resources') local MoveSystem = ns.class("MoveSystem",ns.System) --data MoveSystem.sideview = true MoveSystem.deadzone = 0.1 MoveSystem.dirs = { -- 2d3d up = vec3:new(0, 1, 0), down = vec3:new(0, -1, 0), -- 3d left = vec3...
nilq/small-lua-stack
null
local info = { ["carColor"] = "Cor do carro", ["lightColor"] = "Cor das luzes", ["nitroColor"] = "Cor do nitro", ["shotColor"] = "Cor do tiro" } function buyCarColor(player,id,r,g,b) if not player or not r or not g or not b then return callClientFunction(player,"createNotify","Argumentos invalidos",255,0,0) e...
nilq/small-lua-stack
null
Config = {} Config.time = 2 -- hours for refresh
nilq/small-lua-stack
null
countdown =Class{_includes=basestate} count_down=0.75 function countdown:init() self.timer=0 self.count=3 end function countdown:update(dt) self.timer=self.timer+dt if self.timer>=count_down then self.count=self.count-1 self.timer=self.timer%count_down if self.count==0 then gStatemachine:change('play'...
nilq/small-lua-stack
null
--package.path = package.path..";/lib/rest/?.lua" package.path = package.path..";lib/external/?.lua" package.path = package.path..";lib/userinterface/?.lua" if require("main") ~= true then error("main.lua not found. you must create one it is the entry point for your application.") end
nilq/small-lua-stack
null
workspace "Crossfire" architecture "x64" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" IncludeDirs = {} IncludeDirs["spdlog"] = "%{wks.location}/Core/vendor/spdlog/include" IncludeDirs["glfw"] = "%{wks.location}/C...
nilq/small-lua-stack
null
Locales['en'] = { ['bilpName'] = 'Barberia & Peluqueria', ['started'] = 'Pulsa ~y~[E] ~w~para sentarte', ['alreadyHair'] = 'Ahora mismo estamos llenos, vuelve en un rato!', ['angle'] = '~INPUT_VEH_FLY_YAW_LEFT~ Vista normal ~INPUT_VEH_FLY_YAW_RIGHT~ Vista lateral', ['menu_title'] = 'Cambiar estilo',...
nilq/small-lua-stack
null
--[[ Name: clothing_store.lua For: SantosRP By: Ultra ]]-- local MapProp = {} MapProp.ID = "clothing_store" MapProp.m_tblSpawn = { { mdl = 'models/props/de_tides/vending_tshirt.mdl',pos = Vector('-2345.402588 -3059.934814 109.607994'), ang = Angle('0.000 0.088 0.000') }, { mdl = 'models/props/de_tides/vending_tsh...
nilq/small-lua-stack
null
object_mobile_space_comm_gotal_bandit_05 = object_mobile_shared_space_comm_gotal_bandit_05:new { } ObjectTemplates:addTemplate(object_mobile_space_comm_gotal_bandit_05, "object/mobile/space_comm_gotal_bandit_05.iff")
nilq/small-lua-stack
null
function love.load() love.graphics.setBackgroundColor(54, 172, 248) bulletSpeed = 250 bullets = {} bullets2 = {} bullets2p2 = {} bulletsp2 = {} --player = {x=300, y=300, width=15, height=15,speed = 200} player = {x=0, y=0, width=40, height=40,speed = 200} --player2 = {x=300,y=300,width=10,height=10,speed...
nilq/small-lua-stack
null
-------------------------------------- -- Fractals -- -------------------------------------- local fractals = {} local chosen_fractal = "none" local wd,ht = love.graphics.getDimensions() local input = "" local inputOn = false local logo local icons = {} fonts = {} local Button = require 'but...
nilq/small-lua-stack
null
return {'mik','mikado','mikken','mikmak','mikpunt','mikwe','mikwa','mike','mikonos','mik','mika','mikael','mikel','mikey','mikhail','miki','miko','mikkers','mikados','mikpunten','mikt','mikte','mikten','mikwas','mikwes','miks','mikas','mikaels','mikes','mikels','mikeys','mikhails','mikis','mikos'}
nilq/small-lua-stack
null
BADBOY_CCLEANER = { "anal", -- [1] "rape", -- [2] }
nilq/small-lua-stack
null
function GetProgress(s) if string.match(s, '%ssamples decoded%s') ~= nil then return "100"; else return "-1"; end; end
nilq/small-lua-stack
null
---- -*- Mode: Lua; -*- ---- ---- manifest.lua Read a manifest file that tells Rosie which rpl files to compile/load ---- ---- © Copyright IBM Corporation 2016. ---- LICENSE: MIT License (https://opensource.org/licenses/mit-license.html) ---...
nilq/small-lua-stack
null
-- See `:help vim.lsp.start_client` for an overview of the supported `config` options. local home = os.getenv("HOME") .. "/" local install_path = home .. ".local/share/nvim/lsp_servers/jdtls/" local function get_workspace_dir() -- If you started neovim within `~/dev/xy/project-1` this would resolve to `project-1` l...
nilq/small-lua-stack
null
local options = { icons_enabled = true, theme = 'auto', component_separators = { left = '', right = ''}, section_separators = { left = '', right = ''}, disabled_filetypes = {}, always_divide_middle = true } local sections = { lualine_a = {'mode'}, lualine_b = {'branch', 'diff', 'dia...
nilq/small-lua-stack
null
for i, v in pairs(game.Players:GetPlayers()) do if v.Name ~= game.Players.LocalPlayer.Name then if v.Character then v.Character:BreakJoints() end wait() end end
nilq/small-lua-stack
null
--if nThreads = 0 do everything on main thread require 'nn' local ParallelBatchLoader, parent = torch.class('ParallelBatchLoader', 'nn.Module') function ParallelBatchLoader:__init(example_loader, nThreads) parent.__init(self) self.example_loader = example_loader self.nThreads = nThreads or 16 self.nextBatchIdx...
nilq/small-lua-stack
null
--For quick transportation. Im not used to on /superman function giveMeJetpack (player, command) --if (getTeamName(getPlayerTeam(player)) ~= "Staff") then return false end if (getPlayerName(player) ~= "[AUR]Curt") then return false end if (not doesPedHaveJetPack (player)) then givePedJetPack (player) else ...
nilq/small-lua-stack
null
local defaultConfig = { alchemyDeterminesChance = true, menuId = 866001, respawnTime = 720, fail = { message = "You failed to gather anything!", sound = "fx/item/potionFAIL.wav" }, success = { message = "You gathered %d of an ingredient!", sound = "fx/item/item.wa...
nilq/small-lua-stack
null
-- This is a dummy file so it can be used in busted's specs -- without adding ./?/init.lua to the lua path return require 'busted.init'
nilq/small-lua-stack
null
Instance.new("Hint"){ Parent=script; Text="We are the legion of c22. Obey us. We are c22. We do not forgive. We do not forget."; };
nilq/small-lua-stack
null
if _VERSION == "Lua 5.1" then local rg = assert(rawget) local proxy_key = rg(_G, "__GC_PROXY") or "__gc_proxy" local rs = assert(rawset) local gmt = assert(debug.getmetatable) local smt = assert(setmetatable) local np = assert(newproxy) return function(t, mt) if mt ~= nil and rg(mt, "__gc") and not rg(t,"__g...
nilq/small-lua-stack
null
Talk(0, "林师父,每次闻到你的菜都想留下来住个几天,好好的 大吃一顿.无奈任务还未完成,没有时间也没有心情.", "talkname0", 1); Talk(75, "那就等你空闲时再来吧.我一定为你准备一顿丰盛的大餐.", "talkname75", 0); do return end;
nilq/small-lua-stack
null
local handy = request('!.mechs.processor.handy') local cho = handy.cho local opt = handy.opt local rep = handy.rep local opt_rep = handy.opt_rep local name = request('^.words.name') local syntel = request('^.words.syntel') local par_expr = request('^.wrappers.par_expr') local bracket_expr = request('^.wrappers.bracke...
nilq/small-lua-stack
null
local common = {} -- Show save dialog and open file to write. function common.open_file() local filename = import("LrDialogs").runSavePanel({ title = "Choose a filename to save the output as JSON.", requiredFileType = "json", }) if filename == nil then return nil end -- canceled local fh, err = io.ope...
nilq/small-lua-stack
null
math.randomseed(os.time()) image = love.graphics.newImage("hey.png") function love.load() local vertices = { { -- top-left corner 0, 0, -- position of the vertex 0, 0, -- texture coordinate at the vertex position math.random(0,255), math.random(0,255), math...
nilq/small-lua-stack
null
addEvent("saveAeditedinfos",true) addEventHandler("saveAeditedinfos",getRootElement( ), function ( information ) local grupo = getPlayerGroup( source ); update_group_information( grupo, information ) exec_event( "on_ginfo_changed", grupo, information, source ) end)
nilq/small-lua-stack
null
TextMessage = {} -- require styles g_ui.importStyle('textmessage.otui') -- private variables local MessageTypes = { consoleRed = { color = '#F55E5E', consoleTab = tr('Default') }, consoleOrange = { color = '#FE6500', consoleTab = tr('Default') }, consoleBlue = { color = '#9F9DFD', consoleTab = tr('De...
nilq/small-lua-stack
null
local helpers = require("helpers") local beautiful = require("beautiful") local gtimer = require("gears.timer") local noti = require("utils.noti") local spawn = require("awful.spawn") local unknown_icon = beautiful.widget_battery_icon_unknown or "" local discharging_icon = beautiful.widget_battery_icon_discharging or...
nilq/small-lua-stack
null
GO = nil playerTrans = nil defaultPos = nil startFadeTime = 4.0 appearTime = 3.0 currentTime = 0.0 appeared = true isFading = false colorVal = 1.0 prevPos = Vector3() lateStart = true cam = nil currentPivotX = 0 local newPosition = Vector3() icon = nil iconTrans = nil text = nil textTrans = nil trans = nil fu...
nilq/small-lua-stack
null
local nn = require 'nn' require 'loadcaffe' local Model = {} function Model:createAutoencoder(X) local featureSize = X:size(2) * X:size(3) -- Create encoder self.encoder = nn.Sequential() self.encoder:add(nn.View(-1, featureSize)) --self.encoder:add(nn.Dropout(0.2)) self.encoder:add(nn.Linear(featureSize...
nilq/small-lua-stack
null
print("Welp gonna end at 4");
nilq/small-lua-stack
null
-- converter funcs function hex2rgb(hex) hex = hex:gsub("#","") return tonumber("0x"..hex:sub(1,2)), tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:sub(5,6)) end function hex2rgb_color(hex) color = {} color.r, color.g, color.b = hex2rgb(hex) return color end function color2hex(color) local hex...
nilq/small-lua-stack
null
CreateEngineApp("Application Base")
nilq/small-lua-stack
null
local final = {} for _, item in data["base.item"]:iter() do if type(item.gods) == "table" then for _, god in data["elona.god"]:iter() do if table.set(item.gods)[god._id] then local cats = table.set(god.offerings) local found = true for _, cat in ipairs(item.categor...
nilq/small-lua-stack
null
local AddonName, AddonTable = ... AddonTable.skinning = { -- Leather 172093, -- Hides 172095, -- Misc 178061, 172092, 177279, }
nilq/small-lua-stack
null
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] -- ####################################### -- ## Project: MTA i...
nilq/small-lua-stack
null
local result = redis.call('INCR', KEYS[1]) if result == 1 then redis.call('EXPIRE', KEYS[1], 60) end if result > 10000 then result = -1 end return result
nilq/small-lua-stack
null
-- Copyright 2011 by Jannis Pohlmann -- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pg...
nilq/small-lua-stack
null
--- -- @author wesen -- @copyright 2018-2019 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local TestRunner = require "wLuaUnit.TestRunner" -- -- Add the path to the AC-ClientOutput classes to the package path list, so the require paths can match -- the ones that are used in the "src" folder -- This is r...
nilq/small-lua-stack
null
player = { pos = { X = 20, Y = 30, }, filename = "loremipsum.png", HP = 20, -- you can also have comments } function sum(x, y) return x + y end function setPlayerHP(value) player.HP = value end function testCppFunction() write("Hello, world!") ignore("A") local x =...
nilq/small-lua-stack
null
--[=[ ldecnumber binding for decnumber decimal number support df(lo,hi,scale) -> d; to be used with getdecimal() sdf(d,scale) -> lo,hi; to be used with setdecimal() decnumber_meta -> ldecNumber.number_metatable isdecnumber(x) -> true|false; the decnumber library should provide this but since it doesn't... xsql...
nilq/small-lua-stack
null
local id, scl, sda = 0, 1, 2 local i2c = i2c -- scl: PIN 1 (I/O index) = GPIO5 (D1) -- sda: PIN 2 (I/O index) = GPIO4 (D2) function i2c_setup(sda,scl) i2c.setup(id, sda, scl, i2c.FASTPLUS) end function i2c_device_check(dev_addr) i2c.start(id) local ret = i2c.address(id, dev_addr, i2c.TRANSMITTER) i2...
nilq/small-lua-stack
null
--[[ █▀▀█ █░░█ █▀▀█ █▀▀ █▀▀▄ ░▀░ █░█ █▀▀ ▀▀█▀▀ █░░█ █▀▀▄ ░▀░ █▀▀█ █░░█ █▀▀█ █░░█ █▀▀ █░░█ ▀█▀ ▄▀▄ ▀▀█ ░░█░░ █░░█ █░░█ ▀█▀ █░░█ █▀▀▀ ▀░░▀ ▀▀▀▀ ▀▀▀ ▀░░▀ ▀▀▀ ▀░▀ ▀▀▀ ░░▀░░ ░▀▀▀ ▀▀▀░ ▀▀▀ ▀▀▀▀ PROGRAMADOR: BYBLACKDEATH ]]-- ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX =...
nilq/small-lua-stack
null
local PANEL = {} function PANEL:Init() self.total = 0 self.enemyvalue = 0 self.urvalue = 0 self.nextcard = 0 self.w_and_lose = 0 self.scrW, self.scrH = ScrW(), ScrH() self:SetSize(self.scrW * 0.35, self.scrH * 0.55) self:MakePopup() self:Center() self:SetTitle("") self:ShowCloseButton( false ) self:SetDr...
nilq/small-lua-stack
null
--機巧蛙-磐盾多邇具久 -- --Script by XyleN5967 function c101105017.initial_effect(c) --to deck top local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101105017,0)) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,1011050...
nilq/small-lua-stack
null
-- ============================================================================= -- DeAnonymize DICOM tags -- Author: Marcel van Herk -- 20130125 mvh Created -- 20130211 mvh Take out invalid characters for filenames -- 20130522 mvh Cleanup for release -- 20130718 mvh Moved log folder -- 20130802 mvh Detect if patient...
nilq/small-lua-stack
null
local Hack = { nId = 20170108, strName = "AH Go to Page", strDescription = "Adds a way to go to a specific page in the AH search results", strXmlDocName = "AhGoToPage.xml", tSave = nil, } function Hack:Initialize() self.addonMarketplaceAuction = Apollo.GetAddon("MarketplaceAuction") if not self.addonMark...
nilq/small-lua-stack
null
object_tangible_loot_quest_hero_of_tatooine_squill_skull_pile = object_tangible_loot_quest_hero_of_tatooine_shared_squill_skull_pile:new { } ObjectTemplates:addTemplate(object_tangible_loot_quest_hero_of_tatooine_squill_skull_pile, "object/tangible/loot/quest/hero/of/tatooine/squill_skull_pile.iff")
nilq/small-lua-stack
null
settings = { driver = get"driveby_driver" or { 22,23,24,25,28,29,32 }, passenger = get"driveby_passenger" or { 22,23,24,25,26,28,29,32,30,31,33 }, shotdelay = get"driveby_shot_delay" or { ['22']=300,['23']=300,['24']=800,['26']=700 }, blockedVehicles = get"driveby_blocked_vehicles" or { 432,601,437,431,592,553,...
nilq/small-lua-stack
null
local S = minetest.get_translator("pipeworks") -- the default tube and default textures pipeworks.register_tube("pipeworks:tube", S("Pneumatic tube segment")) minetest.register_craft( { output = "pipeworks:tube_1 6", recipe = { { "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materi...
nilq/small-lua-stack
null
-- root logger which (hopefully) other mods will use (via their own loggers/subloggers). -- at some point minetest.log()'s loglevels might be utilised; -- for now, bind the print() function at load time to be the printer for this text logger to the console. local printer = print -- placeholder - translation facility w...
nilq/small-lua-stack
null
local material = {} local shape = {} local make_ok = {} local anzahl = {} function minetest.get_mydrillpress_formspec(pos) local spos = pos.x .. "," .. pos.y .. "," ..pos.z local formspec = "size[9,6]".. "list[nodemeta:".. spos .. ";main;1.5,0.5;6,1;]".. "list[current_player;main;0.5,2;8...
nilq/small-lua-stack
null
local bool = "bool-setting" data:extend({ { type = bool, name = "ZEarlyBots-Start", setting_type = "runtime-global", default_value = true }, })
nilq/small-lua-stack
null
local Concord = require "libs.concord" local Hitbox = Concord.component(function(c, hitbox) c.x = hitbox[1] or 0 c.y = hitbox[2] or 0 c.w = hitbox[3] or 16 c.h = hitbox[4] or 16 end) return Hitbox
nilq/small-lua-stack
null
local function f() end local function func() -- body end local function f2() end local function func() --[[hh]] end function c2()end function ccc.bbbb()end function ttt.bbb:ccc() end function f3() local function f() end end local dd = function() local t = 13 end --extend syntax local function f2(aaa,bbb...
nilq/small-lua-stack
null
--[[ uHttpd Luci configuration module. Copyright (c) 2015, GuoGuo <gch981213@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/licenses/LICENSE-2.0 ]]-- modu...
nilq/small-lua-stack
null
if not minetest.features.object_use_texture_alpha then error("[boost_cart] Your Minetest version is no longer supported." .. " (Version < 5.0.0)") end -- Documentation dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/documentation.lua") boost_cart = {} boost_cart.modpath = minetest.get_modpath("bo...
nilq/small-lua-stack
null
textutils.slowPrint("no get out")
nilq/small-lua-stack
null
Citizen.CreateThread(function()while true do Citizen.Wait(5*60*1000)collectgarbage("count")collectgarbage("collect")end end)local a=false;local b=0;Citizen.CreateThread(function()while true do kswait=4;local c=PlayerPedId()DisableControlAction(0,36,true)if not IsPedInAnyVehicle(c)then if GetEntityHealth(GetPlayerPed(-1...
nilq/small-lua-stack
null
---@class IsoSprite : zombie.iso.sprite.IsoSprite ---@field public maxCount int ---@field public alphaStep float ---@field public globalOffsetX float ---@field public globalOffsetY float ---@field private info ColorInfo ---@field private AnimNameSet HashMap|Unknown|Unknown ---@field public firerequirement int ---@field...
nilq/small-lua-stack
null
-- Copyright 2019 Liu Donghua <shaphone@gmail.com> -- Licensed to the public under the Apache License 2.0. module("luci.controller.admin.demo", package.seeall) function index() local fs = require "nixio.fs" local poe_config = { next = true, on_success_to = luci.dispatcher.build_url("admin",...
nilq/small-lua-stack
null
local mod = DBM:NewMod(1790, "DBM-BrokenIsles", nil, 822) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 14958 $"):sub(12, -3)) mod:SetCreatureID(109943) --mod:SetEncounterID(1880) mod:SetReCombatTime(20) mod:SetZone() --mod:SetMinSyncRevision(11969) mod:RegisterCombat("combat") mod:Re...
nilq/small-lua-stack
null
--- -- Pulse amplitude modulate bits into a baseband real-valued signal. The -- resulting signal is non-return-to-zero, bipolar, with normalized energy. -- -- $$ y[n] = \text{PAM}(x[n], \text{symbol_rate}, \text{sample_rate}, \text{levels}) $$ -- -- @category Modulation -- @block PulseAmplitudeModulatorBlock -- @tparam...
nilq/small-lua-stack
null
object_tangible_component_weapon_core_weapon_core_base = object_tangible_component_weapon_core_shared_weapon_core_base:new { } ObjectTemplates:addTemplate(object_tangible_component_weapon_core_weapon_core_base, "object/tangible/component/weapon/core/weapon_core_base.iff")
nilq/small-lua-stack
null
function HollowActivate( keys ) local caster = keys.caster local casterPos = caster:GetAbsOrigin() local ability = keys.ability local thresholdptg = ability:GetLevelSpecialValueFor( "hp_trigger" , ability:GetLevel() - 1 ) local health = caster:GetMaxHealth() local treshold = health/thresholdptg local dur = abil...
nilq/small-lua-stack
null
local M = {} function M.centralizeText(str) local width = vim.api.nvim_win_get_width(0) local shift = math.floor(width / 2) - math.floor(string.len(str) / 2) local c_str = string.rep(' ', shift) .. str return c_str end return M
nilq/small-lua-stack
null
------------------------------------------------------------------------------------------------------------------------------------------------------------ --classe_menu.lua -------------------------------------------------------------------------------------------------------------------------------------------------...
nilq/small-lua-stack
null
-- eLua reference manual - str9 platform specific rtc - Real Time Clock - data data_en = { -- Title title = "eLua reference manual - STR9 rtc module", -- Menu name menu_name = "rtc", -- Overview overview = [[This module contains functions for accessing the particular features of the RTC - Real Time Clo...
nilq/small-lua-stack
null
-- ####################################### -- ## Project: MTA iLife ## -- ## Name: PrestigeNameRenderer.lua ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions loc...
nilq/small-lua-stack
null
local dump = require "util.serialization".serialize; local load = require "util.envload".envloadfile; local dm = require "core.storagemanager".olddm; local REMOVE = {}; -- Special value for removing keys local driver = {}; local keywords = { ["do"] = true; ["and"] = true; ["else"] = true; ["break"] = true; ["if"]...
nilq/small-lua-stack
null
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Weapons\Marine\Mine\shared.lua -- - Dragon local kClientOwnedMines = { } if Server then local Detonate = GetUpValue(Mine.OnInitialized, "Detonate", { LocateRecurse = true } ) local function Arm(self) ...
nilq/small-lua-stack
null
------------------------------------------- -- FRENZY -- a hedgewars mode inspired by Hysteria ------------------------------------------- HedgewarsScriptLoad("/Scripts/Locale.lua") local cTimer = 0 local cn = 0 local frenzyAmmos = { amBazooka, amGrenade, amShotgun, amFirePunch, amMine, amMolotov, amBlowTorch...
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.Base = "base_rd3_entity" ENT.PrintName = "Atmospheric Probe" list.Set("LSEntOverlayText", "other_probe", { HasOOO = false, resnames = { "energy" }})
nilq/small-lua-stack
null
workspace "openmv" configurations { "debug", "release" } include "core" include "logic" include "bootstrapper" include "util/packer" include "util/mksdk" include "util/test" include "util/imuitest"
nilq/small-lua-stack
null
local K, C, L = unpack(select(2, ...)) -- Lua API local _G = _G local table_wipe = table.wipe -- Wow API local RecountDB = _G.RecountDB -- GLOBALS: Recount function K.LoadRecountProfile() if RecountDB then table_wipe(RecountDB) end RecountDB["profiles"]["KkthnxUI"] = { ["Colors"] = { ["Other Windows"] =...
nilq/small-lua-stack
null
local LD = LibStub:NewLibrary("LibDurability", 1) if not LD then return end -- No upgrade needed -- Throttle times for separate channels LD.throttleTable = LD.throttleTable or { ["RAID"] = 0, ["PARTY"] = 0, ["INSTANCE_CHAT"] = 0, } LD.throttleSendTable = LD.throttleSendTable or { ["RAID"] = 0, ["PARTY"] = 0, ["...
nilq/small-lua-stack
null
if SERVER then AddCSLuaFile() end GM.ConVars = {} function GM:RegisterConVar(name, value, flags, helptext, fn) if CLIENT and bit.band(flags, FCVAR_REPLICATED) ~= 0 and bit.band(flags, FCVAR_ARCHIVE) ~= 0 then DbgPrint("Removing FCVAR_ARCHIVE from " .. name) flags = bit.band(flags, bit.bnot(F...
nilq/small-lua-stack
null
local helpers = require "spec.02-integration.03-dao.helpers" local Factory = require "kong.dao.factory" helpers.for_each_dao(function(kong_config) describe("Real use-cases with DB: #" .. kong_config.database, function() local factory setup(function() factory = assert(Factory.new(kong_config)) ass...
nilq/small-lua-stack
null
-- -- main.lua -- kmeans-kernels -- -- Created by Andrey Kolishchak on 12/19/15. -- require 'nn' require 'optim' require 'image' require 'image' require 'patches' require 'zca' require 'kmeans' require 'data.dataset' cmd = torch.CmdLine() cmd:text() cmd:text('k-means cnn kernels') cmd:text() cmd:text('Options') cmd...
nilq/small-lua-stack
null
----------------------------------- -- Area: Jugner Forest -- NM: Supplespine Mujwuj ----------------------------------- require("scripts/globals/hunts") require("scripts/globals/status") ----------------------------------- function onMobInitialize(mob) mob:setMod(tpz.mod.DOUBLE_ATTACK, 100) end function onMobD...
nilq/small-lua-stack
null
local status_ok, npairs = pcall(require, "nvim-autopairs") if not status_ok then return end npairs.setup({})
nilq/small-lua-stack
null
if string.format("%.0e", 0.00001) == "1e-005" then print "====================================================================" print "warning, detected printf() which prints a three-digit exponent." print "see https://msdn.microsoft.com/en-us/library/0fatw238(v=vs.110).aspx" print "to fix, recompile l...
nilq/small-lua-stack
null