content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
return Def.ActorFrame{ LoadActor(THEME:GetPathB("","ScreenSelectMusic overlay/current_group"))..{ InitCommand=cmd(x,SCREEN_LEFT;y,SCREEN_TOP+5;horizalign,left;vertalign,top;zoomx,1;cropbottom,0.3); }; LoadFont("monsterrat/_montserrat light 60px")..{ InitCommand=cmd(uppercase,true;horizalign,left;x,SCREEN...
nilq/small-lua-stack
null
local node_box = { type = "connected", fixed = {{-1/4, -1/2, -1/4, 1/4, 1/2, 1/4}}, -- connect_bottom = connect_front = {{-3/16, -1/2, -1/2, 3/16, 3/8, -1/4}}, connect_left = {{-1/2, -1/2, -3/16, -1/4, 3/8, 3/16}}, connect_back = {{-3/16, -1/2, 1/4, 3/16, 3/8, 1/2}}, connect_right = {{ 1/4, -1...
nilq/small-lua-stack
null
min = 2; max = 20; side = min + math.random(max - min); factor = min + math.random(5); if (ITEM == 1) then circ = side * 4 answ = msg1 .. tostring(math.floor(circ)) .. msg2 else circ = side * (factor + 1) * 2 answ = msg3 .. tostring(math.floor(circ)) .. msg4 .. tostring(math.floor(factor)) .. msg5 e...
nilq/small-lua-stack
null
local VALIDATOR = {} -- faz a checagem de tipo para os parametros simples recebidos local function checkSimpleType(interfaceType, param) local err = nil if interfaceType == "char" then if type(param) ~= "string" or #param ~= 1 then err = "Erro parametro não eh char. Param recebido: " .. type(param) e...
nilq/small-lua-stack
null
local ffi = require('ffi') local const = require('metrics.const') local quantile = {} if not pcall(ffi.typeof, "sample") then ffi.cdef[[ typedef struct sample {int Delta, Width; double Value; } sample; ]] end local sample_constructor = ffi.typeof('sample') local function quicksort(array, low, high) ...
nilq/small-lua-stack
null
-- Developers: --Divine (http://forum.botoflegends.com/user/86308-divine/) --PvPSuite (http://forum.botoflegends.com/user/76516-pvpsuite/) local sVersion = '2.1'; local rVersion = GetWebResult('raw.githubusercontent.com','/Nader-Sl/BoLStudio/master/Versions/p_movementHumanizer.version?no-cache=' .. math.rando...
nilq/small-lua-stack
null
----------------------------------------------------------- -- FFI ----------------------------------------------------------- local ffi = require 'ffi' ffi.cdef [[ typedef void* CURL; typedef int CODE; int curl_version (); void curl_free (void* p); CURL curl_easy_init (); CURL curl_easy_duph...
nilq/small-lua-stack
null
local red = require "resty.redis" local setmetatable = setmetatable local tonumber = tonumber local concat = table.concat local floor = math.floor local sleep = ngx.sleep local null = ngx.null local now = ngx.now local var = ngx.var local function enabled(val)...
nilq/small-lua-stack
null
--[[ A top-down action game made with Bitty Engine Copyright (C) 2021 Tony Wang, all rights reserved Engine page: https://paladin-t.github.io/bitty/ Game page: https://paladin-t.github.io/games/hb/ ]] Melee = class({ --[[ Variables. ]] _shape = nil, _affecting = false, _isBlade = false, _preInterval = 0.05, _...
nilq/small-lua-stack
null
CreateConVar("karma_tracker_debug", 0, 1, "Print debug messages to console.") local enableDebugLogging = GetConVar("karma_tracker_debug"):GetBool() function print_debug(...) if (enableDebugLogging) then print("[Karma Tracker]", ...) end end
nilq/small-lua-stack
null
--- Define an object Share. --- @class Share Share = {} Share.__index = Share --- The constructor of the object Share --- @return Share The new Share just created with the table of available services function Share:new() return setmetatable({services = {}}, Share) end --- This method inserts a service into the tabl...
nilq/small-lua-stack
null
function Populater(level, map) local spawnedPrism = false local treasureRoom = false local store = false local toSpawn = {} local roomsLeft = #map._rooms - 1 -- subtract the starting room local doors = {} local function hash(x, y) return x and y * 0x4000000 + x or false -- 26-bit x and y end lo...
nilq/small-lua-stack
null
object_mobile_greck_thug_m_04 = object_mobile_shared_greck_thug_m_04:new { } ObjectTemplates:addTemplate(object_mobile_greck_thug_m_04, "object/mobile/greck_thug_m_04.iff")
nilq/small-lua-stack
null
local CHIP_DATA = require "defs.chip_data_defs" local GENERIC_DEFS = require "defs.generic_defs" local gauntlet_data = require "gauntlet_data" local deepcopy = require "deepcopy" local CHIP = require "defs.chip_defs" local CHIP_ID = require "defs.chip_id_defs" local CHIP_CODE = require "defs.chip_code_defs" local rando...
nilq/small-lua-stack
null
ITEM.name = "Browning Hi-Power" ITEM.description= "A semi-automatic pistol chambered for 9x19mm." ITEM.longdesc = "The Browning Hi-Power pistol is product of the French military requesting a new service pistol.\nThe Hi-Power name alludes to the 13-round magazine capacity, almost twice that of contemporary designs such ...
nilq/small-lua-stack
null
local wibox = require('wibox') local mat_list_item = require('widgets.mat-list-item') local mat_slider = require('widgets.mat-slider') local icons = require('theme.icons') local watch = require('awful.widget.watch') local dpi = require('beautiful').xresources.apply_dpi local total_prev = 0 local idle_prev = 0 local s...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Lua client for the DomRobot XML-RPC API. -- https://github.com/boethin/inwx-lua -- -- Copyright (c) 2015 Sebastian Böthin <sebastian@boethin.berlin> -------------------------------------------------------------------------------- -- Sa...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- БАРС для 81-722 -------------------------------------------------------------------------------- Metrostroi.DefineSystem("81_722_BARS") TRAIN_SYSTEM.DontAccelerateSimulation = true function TRAIN_SYSTEM:Initialize() self.Train:Loa...
nilq/small-lua-stack
null
--[[ Copyright 2019 Manticore Games, Inc. 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, publish, d...
nilq/small-lua-stack
null
project "assimp" kind "StaticLib" language "C++" cppdialect "C++17" systemversion "latest" staticruntime "On" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("inter/" .. outputdir .. "/%{prj.name}") warnings "Off" defines { -- For more info on the formats: http:...
nilq/small-lua-stack
null
----------------------------------------------------------------------------- -- Simple 911 Script by Mr.Gamer- A Simple FiveM Script, Made By Mr.Gamer#2222 -- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------------...
nilq/small-lua-stack
null
project "02-Instancing" kind "ConsoleApp" language "C++" cppdialect "C++17" targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") files { "src/**.h", "src/**.cpp", "assets/**/*", "%{wks.location}/V...
nilq/small-lua-stack
null
object_tangible_loot_beast_beast_steroid_gorilla_griffon = object_tangible_loot_beast_shared_beast_steroid_gorilla_griffon:new { } ObjectTemplates:addTemplate(object_tangible_loot_beast_beast_steroid_gorilla_griffon, "object/tangible/loot/beast/beast_steroid_gorilla_griffon.iff")
nilq/small-lua-stack
null
local myname, ns = ... _G["SLASH_".. myname:upper().."1"] = GetAddOnMetadata(myname, "X-LoadOn-Slash") SlashCmdList[myname:upper()] = function(msg) ns:Slash() end
nilq/small-lua-stack
null
object_tangible_loot_creature_loot_collections_aurebesh_tile_senth = object_tangible_loot_creature_loot_collections_shared_aurebesh_tile_senth:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_aurebesh_tile_senth, "object/tangible/loot/creature/loot/collections/aurebesh_tile_senth.iff...
nilq/small-lua-stack
null
object_intangible_beast_bm_tauntaun = object_intangible_beast_shared_bm_tauntaun:new { } ObjectTemplates:addTemplate(object_intangible_beast_bm_tauntaun, "object/intangible/beast/bm_tauntaun.iff")
nilq/small-lua-stack
null
return { IsClient = false, IsServer = true, Module = function() App.route( { method = "GET", path = "/", }, function (Request, Response, go) Response.body = '<p>OwO</p> <meta http-equiv="refresh" content="3; URL=/i...
nilq/small-lua-stack
null
-- dvdlogo.lua -- -- An object to control a dvdlogo. -- -- Uses bounce movement method for it's movement pattern. Changes -- it's sprite's colors when it bounces off of a wall. ----------------------------------------------------------------------- local dvdlogo = {} ---------------------------------------------------...
nilq/small-lua-stack
null
function CreateWindow(name, mode, x, y, width, height, id) local Window = { name = name or 'Generic Window', mode = mode or 'fill', x_offset = NormalizeToWindowWidth(x), y_offset = NormalizeToWindowHeight(y), width = width, height = height, id = id ...
nilq/small-lua-stack
null
local K, C = unpack(select(2, ...)) if not IsAddOnLoaded("KkthnxUI_Config") then return end local pairs = pairs -- Blizzard has too many issues with per character saved variables. if (not KkthnxUIConfigShared) then KkthnxUIConfigShared = {} end if (not KkthnxUIConfigShared.Account) then KkthnxUIConfigShared.Accou...
nilq/small-lua-stack
null
-- The following code is from "Get Comfortable [cozy]" (by everamzah; published under WTFPL) -- Thomas S. modified it, so that it can be used in this mod ts_vehicles.sit = function(pos, player, offset) local name = player:get_player_name() if not player_api.player_attached[name] then player:move_to(pos)...
nilq/small-lua-stack
null
local InputDevice = require("web-driver/interactions/input-device") local PointerInput = require("web-driver/interactions/pointer-input") local KeyInput = require("web-driver/interactions/key-input") local NoneInput = require("web-driver/interactions/none-input") local Interaction = require("web-driver/interactions/in...
nilq/small-lua-stack
null
if (!PW.Enabled) then return; end local Player = FindMetaTable("Player"); function Player:CanUsePW() for k,v in pairs(PW.Groups) do if (self:IsUserGroup(v)) then return true; end end return false; end if (CLIENT) then function Player:AddMsg(str) chat.AddText(PW.Chat.TagBracketsCol, "[", PW.Chat.TagCol, ...
nilq/small-lua-stack
null
-- Health check implementation for debugpy.nvim local M = {} local health = require 'health' local command = require('debugpy').adapter.executable.command local function check_dap() local success = pcall(require, 'dap') if success then health.report_ok "Plugin 'nvim-dap' found" else health.report_error "Plugi...
nilq/small-lua-stack
null
local names = {"FormDefine", "Form", "FormCategory", "FormInstance", "FileItem"} for i, it in ipairs(names) do io.write("Query<", it, "> query", it, "();\n") end
nilq/small-lua-stack
null
-- create node Combine require "moon.sg" local node = moon.sg.new_node("sg_combine") if node then node:set_pos(moon.mouse.get_position()) end
nilq/small-lua-stack
null
function do_remap() ts.client_request.set_url_host(ts.client_request.header["X-Api-Umbrella-Backend-Server-Host"]) ts.client_request.set_url_port(ts.client_request.header["X-Api-Umbrella-Backend-Server-Port"]) ts.client_request.set_url_scheme(ts.client_request.header["X-Api-Umbrella-Backend-Server-Scheme"]) --...
nilq/small-lua-stack
null
local get_buffers = require "helpers.nvim_get_buffers" local is_empty = require "helpers.is_empty" local function get_terminal_buffers() local buffers = get_buffers() local terminal_buffers = {} for _, buffer in pairs(buffers) do if not is_empty(vim.fn.matchstr(buffer, "^term://.*")) then ...
nilq/small-lua-stack
null
vim.opt_local.expandtab = false vim.opt_local.softtabstop = 0
nilq/small-lua-stack
null
Citizen.CreateThread(function() while true do if IsPedInAnyVehicle(GetPlayerPed(-1)) then local canshoot = false local kmhSpeed = GetEntitySpeed(GetVehiclePedIsUsing(PlayerPedId(-1))) * 3.6; if kmhSpeed < sc0tt_lucky_driveby.kmh then canshoot = true else canshoot = false end SetPlayerCanDo...
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
AddCSLuaFile() ENT.Base = "gballoon_tower_base" ENT.Type = "anim" ENT.PrintName = "Rainbow Beamer" ENT.Category = "RotgB: Towers" ENT.Author = "Piengineer" ENT.Contact = "http://steamcommunity.com/id/Piengineer12/" ENT.Purpose = "This tower shoots a rainbow beam that shreds gBalloons." ENT.Instructions = "" ENT.Spawna...
nilq/small-lua-stack
null
local request = require 'lusty-nginx.request' local response = require 'lusty-nginx.response' --returns a request table for this server --uses metatables to memoize calls out to nginx local function getRequest() local memo = {} return setmetatable({},{ -- lazy-load all of the ngx data requests so we only call...
nilq/small-lua-stack
null
--[[ RA-MOD ]]-- module("luci.controller.chinadns", package.seeall) function index() if not nixio.fs.access("/etc/config/chinadns") then return end local page page = node("admin", "RA-MOD") page.target = firstchild() page.title = _("RA-MOD") page.order = 65 page = entry({"admin", "RA-MOD", "chinadns"},...
nilq/small-lua-stack
null
-- -- test if ss is working -- local host, port = "www.youtube.com", 443 local socket = require("socket") local tcp = assert(socket.tcp()) tcp:settimeout(2); tcp:connect(host, port); tcp:send("GET / HTTP/1.1\n"); local s, status, partial = tcp:receive() if status == "closed" then io.write('yes') else io.write(...
nilq/small-lua-stack
null
local c local player = Var "Player" local JudgeCmds = { TapNoteScore_W1 = THEME:GetMetric("Judgment", "JudgmentW1Command"), TapNoteScore_W2 = THEME:GetMetric("Judgment", "JudgmentW2Command"), TapNoteScore_W3 = THEME:GetMetric("Judgment", "JudgmentW3Command"), TapNoteScore_W4 = THEME:GetMetric("Judgment", "Judgment...
nilq/small-lua-stack
null
function polypoints(sides, radius, start, displacement) local vertices = {} local x_center = RAND(-displacement,displacement) or 0.0 local y_center = RAND(-displacement,displacement) or 0.0 local angle = start local angle_increment = 2 * math.pi / sides local x=0.0 local y=0.0 -- print(s...
nilq/small-lua-stack
null
return {'zaza','zazas'}
nilq/small-lua-stack
null
function GetDesire() return ( 0.0); end
nilq/small-lua-stack
null
local ReplicatedStorage = game:GetService("ReplicatedStorage") local ServerStorage = game:GetService("ServerStorage") local Knit = require(ReplicatedStorage.Knit) Knit.Shared = ReplicatedStorage.Shared Knit.Modules = ServerStorage.Modules Knit.AddServices(ServerStorage.Services) Knit.Start():ThenCall(print, "Started ...
nilq/small-lua-stack
null
require'nvim-treesitter.configs'.setup { ensure_installed = { "c_sharp", "rust", "html", "css", "scss", "javascript", "typescript", "tsx", "toml", "yaml", "json", "swift", "vim", "lua" }, highlight = { enable = true, disable = { } }, indent ...
nilq/small-lua-stack
null
local txAdminClientVersion = "1.1.0" print("[txAdminClient] Version "..txAdminClientVersion.." starting...") -- Detect version compatibility issues Citizen.CreateThread(function() Citizen.Wait(1000) local serverCompatVersion = GetConvar("txAdmin-clientCompatVersion", "--") if serverCompatVersion ~= txAdmin...
nilq/small-lua-stack
null
if vim.b.did_ftp == true then return end vim.bo.commentstring = "#\\ %s" vim.opt_local.cursorline = true vim.opt_local.cursorcolumn = false
nilq/small-lua-stack
null
local config = {} function config.lsp() local servers = { 'bash', 'cpp', 'css', 'dart', 'docker', 'elixir', 'go', 'graphql', 'html', 'java', 'js-ts', 'json', 'latex', 'lua', 'omnisharp', 'php', 'python', 'ruby', 'rust', 'svelte', 'vim', 'yaml' } for _, server in ipairs(servers) do ...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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
--[[-------------------------------------------------------------------- optparser.lua: does parser-based optimizations This file is part of LuaSrcDiet. Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net> The COPYRIGHT file describes the conditions under which this software may be distributed. See the ...
nilq/small-lua-stack
null
# -*- lua -*- propT = { state = { validT = { experimental = 1, testing = 1, obsolete = 1 }, displayT = { experimental = { short = "(E)", long = "(E)", color = "blue", doc = "Experimental", }, testing = { short = "(T)", long = "(T)", color = "green", doc = "Testing", },...
nilq/small-lua-stack
null
--- A tiny program to remove most errors in your program. -- -- No, this isn't serious. It's a terrible idea. -- -- @usage require("error-fix") print(2 + false) -- won't error! local mt, void = {}, function() return nil end local methods = { "__call", "__index", "__newindex", "__len", "__unm", "__add", "__sub", ...
nilq/small-lua-stack
null
local ffi = require 'ffi' local ParseBack = require 'parseback' ffi.cdef [[ struct Expr; struct Select; struct sql_trigger; enum ast_type { AST_TYPE_UNDEFINED = 0, AST_TYPE_SELECT, AST_TYPE_EXPR, AST_TYPE_TRIGGER, ast_type_MAX }; struct sql_parsed_ast { const char* sql_query; /**< original query */ enum ast...
nilq/small-lua-stack
null
data:extend({ { type = "radar", name = "long-range-radar", icon = "__Long_Range_Radar__/graphics/item_icon_advanced_radar.png", icon_size = 64, icon_mipmaps = 4, flags = {"placeable-player", "player-creation"}, minable = {hardness = 0.2, mining_time = 0.5, result = "long-range-radar"}, max_h...
nilq/small-lua-stack
null
local node = require("nodes/node") local gameState = require("data/gamestate") local gameData = require("data/gamedata") local fonts = require("data/fonts") local display = require("data/display") local button = require("nodes/ui/textbutton") local uiOverlay = node:create() uiOverlay.TEXT_COLOR = { 1, 1, 1 } uiOverla...
nilq/small-lua-stack
null
SURVIVAL_IN_POLLUTION = "survival_in_pollution"
nilq/small-lua-stack
null
--- --- Copy a file from the system to a mass storage gadget --- usb = luausb.create({ id = 0, type = "keyboard"}, {id = 0, type = "storage" }) kb = usb.dev[1] local LABEL = "MY_DRIVE_LABEL" -- label of the drive (as assigned by you) while true do print("idle") -- poll until usb plugged in while usb.stat...
nilq/small-lua-stack
null
local EnemyBuffList = {} local function SortBuffs(buffs) local passive_buff = {} local other_buff = {} for _, buff in ipairs(buffs) do if buff.icon and buff.icon ~= "0" and buff.icon ~= "" and buff.icon ~= 0 then if buff.id >= 3000000 and buff.id < 4000000 then table.in...
nilq/small-lua-stack
null
-- Configurations -- Config = { width = lg.getWidth(), height = lg.getHeight(), debug = true, camera = { scale = 3 }, world = { tileSize = 16, cellSize = 32, }, color = { debug = { _:color('red-800') }, white = { _:color('white') }, black = { _:color('black') }, slopes = { _:c...
nilq/small-lua-stack
null
--[[ author: @sw1tch ]]-- function checkPlayerAdminLevel(player,level) local level = tonumber(level) local a_level = getElementData(player,"admin_level") if not level then if a_level > 0 then return true else return false end return end if a_level == level then return t...
nilq/small-lua-stack
null
function onEvent(name, value1, value2) if name == 'foxyj2' then makeAnimatedLuaSprite( 'foxyj2', 'foxyj2', 0, 0); addAnimationByPrefix('foxyj2', 'foxyj2', 'idle'); setObjectCamera('foxyj2', 'hud') addLuaSprite('foxyj2', true); objectPlayAnimation('foxyj2', 'idle', true); ...
nilq/small-lua-stack
null
------------------------------------------------------------------ -- -- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Copyright (C) 2015-2016 Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of lua-gntp library. -- -----...
nilq/small-lua-stack
null
vol,mute=io.popen("osascript -e 'get Volume settings'"):read("*all"):match(".*output volume:(%d+).*output muted:(%l+).*") vol=tonumber(vol) if mute=="true" then icon="婢" else icon="墳" end if vol==0 then bar=' ' elseif val < 13 then bar='_' elseif val < 25 then bar='▁' elseif val < 38 then bar='▂' elseif va...
nilq/small-lua-stack
null
return { PlaceObj("ModItemOptionNumber", { "name", "Range", "DisplayName", T(302535920011581, "Range"), "Help", T(302535920011582, "Max Range of Artificial Sun."), "DefaultValue", ArtificialSun.effect_range or 8, "MinValue", 1, "MaxValue", 250, --~ "StepSize", 10, }), }
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- db.lua -------------------------------------------------------------------------------- local string_format = string.format local c = tengine.c local redis = tengine.redis local INFO_MSG = tengine.INFO_MSG local ERROR_MSG = tengine.ER...
nilq/small-lua-stack
null
-- -- User: Glastis -- Date: 15-Nov-19 -- local file = require('common.file') local utilities = {} local function trim(str) return str:gsub("^%s+", ""):gsub("%s+$", "") end utilities.trim = trim local function get_elem_in_table(table, elem) local i i = 1 while i <= #table do if table[i] == ...
nilq/small-lua-stack
null
local Context = require "Base.Context" local Mode = require "Base.Mode" local CardStatusViewer = require "Card.StatusViewer" local CardConsole = require "Card.Console" -- define the state local mode = Mode("Eject") local window = CardStatusViewer() local context = Context("Eject", window) function mode:enter() Mode...
nilq/small-lua-stack
null
-- replace.lua --[[---------------------------------------------------------------------------- * LuaFAR 2.6 is required because of 'gsub' method of compiled Far regex. This method is used in the "fast count" case, namely (aOp == "count") and not aParams.bSearchBack, that greatly speeds up counting matche...
nilq/small-lua-stack
null
-- schema.lua -- Holds the schema of your plugin's configuration, so that the user can only enter valid configuration values. -- Required: Yes return { no_consumer = true, -- this plugin is available on APIs as well as on Consumers, fields = { -- Describe your plugin's configuration's schema here. -- resou...
nilq/small-lua-stack
null
Locales["tr"] = { -- :) laot ["LAOT_GLING_PLAYDICE"] = "Oynamak için ~r~E ~w~basın.", ["LAOT_GLING_CANTPLAY"] = "Başkası oyunda!", ["LAOT_GLING_WAITNIGHT"] = "Şuan gece değil!", ["LAOT_GLING_NOTENOUGHMONEY"] = "Yeterince paranız yok!", ["LAOT_GLING_MINBET"] = "Mininum bahis mutlaka basılmalı!" ...
nilq/small-lua-stack
null
init_vanilla() --+--------------------------------------------------------------------------------+-- -- if Registry['VA_ENV'] == nil then local helpers = LoadV "vanilla.v.libs.utils" function sprint_r( ... ) return helpers.sprint_r(...) end function lprint_r( ... ) local rs = sprint_...
nilq/small-lua-stack
null
--[[ Model - Private Traffic Route Choice Type - MNL Authors - Adnan, Shahita ]] --Estimated values for all betas --Note: the betas that not estimated are fixed to zero. local beta_bTTVOT = -0.0013904847537047364 local beta_bCommonFactor = 1.542931900577706 local beta_bLength = -2.2760243196051997e-06 local beta_bH...
nilq/small-lua-stack
null
-- zenburn-red, awesome3 theme, by Adrian C. (anrxc), modified by jessor --{{{ Main local awful = require("awful") awful.util = require("awful.util") theme = {} home = os.getenv("HOME") config = awful.util.getdir("config") shared = "/usr/share/awesome" if not awful.util.file_readable(shared .....
nilq/small-lua-stack
null
--[[ Create a dictionary where each value in the given list corresponds to a key in the dictionary with a value of true ]] local function toSet(list) local new = {} for i = 1, #list do new[list[i]] = true end return new end return toSet
nilq/small-lua-stack
null
-------------------------------- -- Happy Weather: ABM registers -- License: MIT -- Credits: xeranas -------------------------------- -- ABM for extinguish fire minetest.register_abm({ nodenames = {"fire:basic_flame"}, interval = 4.0, chance = 2, action = function(pos, node, active_object_count, active_object_co...
nilq/small-lua-stack
null
local skynet = require "skynet" local socket = require "skynet.socket" local crypt = require "skynet.crypt" local log = require "skynet.log" local pbc = require "protobuf" local redis = require "skynet.db.redis" require "skynet.manager" local utils = require "utils" local constant = require "constant" local cjson = req...
nilq/small-lua-stack
null
local basaltFileName = "basalt-source.lua" local absolutePath = "source" local basalt = dofile(fs.combine(absolutePath, "packager.lua")) -- path to packager local b = fs.open(fs.combine(absolutePath, basaltFileName), "w") b.write(basalt) b.close()
nilq/small-lua-stack
null
local hissedHP = 0.45 local takedown = 0.11 local creepIsShaking = false function start (song) if difficulty == 1 then hissedHP = 0.63 takedown = 0 end print("Heww yeh, is angwy cat time >:3 -- Hiss Rate: " .. hissedHP .. " per hisssss") end function update (elapsed) local currentBeat = (songPos / 1000) * (bp...
nilq/small-lua-stack
null
local actions = require('telescope.actions') local action_set = require('telescope.actions.set') local action_state = require('telescope.actions.state') local finders = require('telescope.finders') local make_entry = require('telescope.make_entry') local path = require('telescope.path') local pickers = require('telesco...
nilq/small-lua-stack
null
--- removes a player from the call for everyone in the call. ---@param source number the player to remove from the call ---@param callChannel number the call channel to remove them from function removePlayerFromCall(source, callChannel) logger.verbose('[call] Removed %s from call %s', source, callChannel) call...
nilq/small-lua-stack
null
local utils = require('util') local url = require('url') local fs = require('fs') local path = require('path') local core = require('core') local client = require('rtsp/client') local RtspClient = client.RtspClient local rtspClient = nil local TAG = 'RTSPC' local color = console.color local function test_rtsp_c...
nilq/small-lua-stack
null
local orig_update_creative_inventory = creative.update_creative_inventory function creative.update_creative_inventory(player_name, tab_content) -- do original stuff orig_update_creative_inventory(player_name, tab_content) -- Set all stacks to maximum count local player_inv = minetest.get_inventory({type = "detach...
nilq/small-lua-stack
null
help( [[ This module loads the MPC Libraries into the environment. Gnu Mpc is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. ]]) whatis("Loads the Gnu MPC Libraries") local version = "1.0.3" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modu...
nilq/small-lua-stack
null
gadsle_distombe = Creature:new { objectName = "@mob/creature_names:gadsle_distombe", socialGroup = "sith_shadow", faction = "sith_shadow", level = 87, chanceHit = 0.75, damageMin = 620, damageMax = 950, baseXp = 8315, baseHAM = 12400, baseHAMmax = 15200, armor = 0, resists = {70,70,70,70,70,70,70,70,-1}, m...
nilq/small-lua-stack
null
--- @param character EsvCharacter --- @param status string --- @param tooltip TooltipData local function OnStatusTooltip(character, status, tooltip) end local function Statuses_Tooltips_Init() Game.Tooltip.RegisterListener("StatusDescription", nil, OnStatusTooltip) end Ext.RegisterListener("SessionLoaded", S...
nilq/small-lua-stack
null
-- -- HERKULEX_* SUBSYSTEM REPORTING -- -- Setup reporter components for servo_inv and herkulex_sched. -- Component -- -- Intended to be run via config script. -- require "reporting" -- herkulex_sched statistics reporting.add_filereporter("herkulex_statistics", { { name = "herkulex/sched" , ports= {"statistics"} } ...
nilq/small-lua-stack
null
return { byte = 1, char = 1, dump = 1, find = 1, format = 4, gmatch = 1, gsub = 4, len = 1, lower = 1, match = 1, pack = 4, rep = 1, reverse = 1, sub = 1, unpack = 4, upper = 1, }
nilq/small-lua-stack
null
ResFontNumTxt = ClassUtil.class("ResFontNumTxt") ResFontNumTxt.ctor = function (slot0, slot1, slot2, slot3, slot4, slot5) slot0.iNum = nil ClassUtil.extends(slot0, ResFontTxt, true, slot1, slot2, slot3, slot4, slot5) end ResFontNumTxt.setNumber = function (slot0, slot1, slot2) if slot0.iNum ~= slot1 or slot2 then...
nilq/small-lua-stack
null
--[[ Awesome-Freedesktop Freedesktop.org compliant desktop entries and menu Menu section Licensed under GNU General Public License v2 * (c) 2016, Luke Bonham * (c) 2014, Harvey Mittens --]] local awful_menu = require("awful.menu") local menu_gen = require("menubar.menu_gen") local...
nilq/small-lua-stack
null
local RegionAttachment = {} function RegionAttachment.new (name) if not name then error("name cannot be nil", 2) end local self = { name = name } return self end return RegionAttachment
nilq/small-lua-stack
null
local GSE = GSE local AceGUI = LibStub("AceGUI-3.0") local L = GSE.L local libS = LibStub:GetLibrary("AceSerializer-3.0") local libC = LibStub:GetLibrary("LibCompress") local libCE = libC:GetAddonEncodeTable() local importframe = AceGUI:Create("Frame") importframe.AutoCreateIcon = true importframe:Hide() ...
nilq/small-lua-stack
null
res = 4 - 10 print(res) res = -34 print(res) numeroReal = 45.5 print(numeroReal) outroReal = -3.1 print(outroReal) pi = 3.145654646465656 print('PI ' .. pi)
nilq/small-lua-stack
null
local App = { gotoScene = function(class, options) end, newScene = function() return {} end } return App
nilq/small-lua-stack
null
-- * Metronome IM * -- -- This file is part of the Metronome XMPP server and is released under the -- ISC License, please see the LICENSE file in this source package for more -- information about copyright and licensing. -- This library contains shared code for Access Control Decision Function. local ipairs, type = i...
nilq/small-lua-stack
null