content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
-- Copyright (C) Yichun Zhang (agentzh) -- Copyright (C) Shuxin Yang --[[ This module implements a key/value cache store. We adopt LRU as our replace/evict policy. Each key/value pair is tagged with a Time-to-Live (TTL); from user's perspective, stale pairs are automatically removed from the cache. Why FFI ------- ...
nilq/small-lua-stack
null
---------------------------------------------------------------- -- Copyright (c) 2012 Klei Entertainment Inc. -- All Rights Reserved. -- SPY SOCIETY. ---------------------------------------------------------------- local game = include( "modules/game" ) local util = include("client_util") local array = include("modul...
nilq/small-lua-stack
null
--[[ File @description: The functions included in this file are for network visualization. @version: V0.50 @author: Fangyi Zhang email:gzzhangfangyi@gmail.com @acknowledgement: ARC Centre of Excellence for Robotic Vision (ACRV) Queensland Univsersity of Technology (QUT) @history: V0.00 31/07/2015 d...
nilq/small-lua-stack
null
--[[ DISCOVER! MANAGEMENT CONTROLLER UI HANDLER SCRIPT. Everything below is all the code in which makes DMC's interfaces. --]] repeat wait() script.Parent = nil until script.Parent == nil Players = game:FindFirstChildOfClass("Players") ReplicatedStorage = game:FindFirstChildOfClass("ReplicatedStorage") Repl...
nilq/small-lua-stack
null
//________________________________ // // NS2 CustomEntitesMod // Made by JimWest 2012 // //________________________________ // modified from GuiExploreHint Script.Load("lua/GUIScript.lua") Script.Load("lua/NS2Utility.lua") class 'GUIEemHint' (GUIScript) GUIEemHint.kAlienBackgroundTexture = "ui/alien_commande...
nilq/small-lua-stack
null
#!/usr/bin/env lua ------------------ -- *strictness, a "strict" mode for Lua*. -- Source on [Github](http://github.com/Yonaba/strictness) -- @author Roland Yonaba -- @copyright 2013-2014 -- @license MIT local after_Lua_5_1 = _VERSION > ('Lua 5.1.5') local setmetatable, getmetatable = setmetatable, getmetatable local ...
nilq/small-lua-stack
null
--[[ Profiler Исследование производительности --]] -------------------------------------------------------------------------------- --<[ Модуль Profiler ]>--------------------------------------------------------- -------------------------------------------------------------------------------- Profiler = { init = fu...
nilq/small-lua-stack
null
dofile("myassert.lua") function func () return 5 end
nilq/small-lua-stack
null
local Debug = require'compe.utils.debug' local Callback = require'compe.utils.callback' local Completion = require'compe.completion' local Source = require'compe.source' local Config = require'compe.config' local Helper = require'compe.helper' local VimBridge = require'compe.vim_bridge' --- suppress -- suppress errors...
nilq/small-lua-stack
null
-- Get file to cat local tArgs = { ... } if #tArgs == 0 then print( "Usage: cat <path>" ) return end -- Error checking local sPath = shell.resolve(tArgs[1]) if fs.exists(sPath) and fs.isDir(sPath) then printError("Cannot cat a directory.") return end if fs.exists( sPath ) then local file = fs.open( sPath, "rb...
nilq/small-lua-stack
null
function window.svMenu() statusMessage = state.GetValue("statusMessage") or "%VERSION%" imgui.Begin("SV Menu", true, imgui_window_flags.AlwaysAutoResize) imgui.BeginTabBar("function_selection") menu.information() menu.linearSV() menu.stutterSV() menu.cubicBezierSV() menu.rangeEditor() ...
nilq/small-lua-stack
null
return { armkrypto = { acceleration = 0.015, brakerate = 0.28, buildcostenergy = 480133, buildcostmetal = 29101, builder = false, buildpic = "armkrypto.dds", buildtime = 400000, canattack = true, canguard = true, canmove = true, canpatrol = true, canstop = 1, cantbetransported =...
nilq/small-lua-stack
null
-- base_carts/init.lua -- support for Minebase translation. local S = minetest.get_translator("base_carts") carts.register_cart("base_carts:cart", { craftitem = { description = S("Cart") .. "\n" .. S("aux + left-click to pick up"), recipe = { {"base_ores:steel_ingot", "", "base_ores:steel_ingot"}, {"base_o...
nilq/small-lua-stack
null
--[[ column-div - leverage Pandoc native divs to make balanced and unbalanced column and other things based on class name and attributes. Copyright: © 2021 Christophe Agathon <christophe.agathon@gmail.com> License: MIT – see LICENSE file for details Credits: Romain Lesur and Yihui Xie for the orig...
nilq/small-lua-stack
null
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games return { ["FlaskIncreasedRecoverySpeed1"] = { type = "Prefix", affix = "Catalysed", "50% increased Recovery rate", statOrderKey = "421", statOrder = { 421 }, level = 1, group = "FlaskRecoverySpeed", weightKey = { "utility_flask...
nilq/small-lua-stack
null
local M = {} M.config = function() O.lang.php = { format = { format = { default = "psr12", }, }, environment = { php_version = "7.4", }, diagnostics = { virtual_text = { spacing = 0, prefix = "" }, signs = true, underline = true, }, filetypes = { "php", "phtml" }, formatter = { ...
nilq/small-lua-stack
null
_G.declared = {} setmetatable(_G, _G) _G.Declare = function(k, v) _G.declared[k] = true end _G.__index = function(t, k) if not _G.declared[k] then print ("Can't read undeclared variable: " .. k) return nil end return rawget(t, k) end _G.__newindex = function(t, k, v) if not _G.declared[k] then print ("Can't ...
nilq/small-lua-stack
null
package.path = package.path .. "./?.lua;/usr/local/etc/haproxy/scripts/?.lua;/usr/local/etc/haproxy/libs/?.lua" local hcaptcha = require("hcaptcha") core.register_service("hcaptcha-view", "http", hcaptcha.view) core.register_action("hcaptcha-redirect", { 'http-req', }, hcaptcha.check_captcha_status)
nilq/small-lua-stack
null
include("shared.lua") AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") function ENT:Initialize() self.BaseClass.Initialize(self) self:AddHook("Physics", "drone_phys", function(phys) if self.IsMoving then phys:AddAngleVelocity(Vector(1, 0, 0) * math.sin(CurTime() * 5) * 5) end end) end local bones = ...
nilq/small-lua-stack
null
local Screen = Level:extend() function Screen:activate() --- shape vnlue local cLenX1 = 50 local cLenY1 = cLenX1 local cLenZ1 = 25 local cX1 = Base.gui.width/4-cLenX1/2 local cY1 = Base.gui.height/4-cLenY1/2 local cLenX2 = Base.gui.width/2 - (Base.gui.width/2 - cLenX1)/2 local cLenY2 = Base.gui.height/2 - (Ba...
nilq/small-lua-stack
null
DefineClass.BaseElevator = { __parents = { "Object", "SyncObject" }, passenger = false, passenger_spot = "Passenger", up_state = "up", up_pos = false, wp_door_name = "Floordoor", wp_door1 = false, wp_door2 = false, wp_queue_name = "Queue", wp_queue1 = false, wp_queue2 = false, queue1 = false, queue2 =...
nilq/small-lua-stack
null
-- Trigger.lua -- Scripted behavior to add a Trigger component while in the scene editor. -- -- Last modified for v1.5.0 -- Copyright © 2013-2014 Florent POUJOL, published under the MIT license. --[[PublicProperties tags string "" range number 0 updateInterval number 5 /PublicProperties]] function Behavior:Awake() ...
nilq/small-lua-stack
null
local data_network = assert(yatm.data_network) minetest.register_node("yatm_data_logic:data_server", { description = "DATA Server\nSupports a CALL/RESPONSE format for payloads.", codex_entry_id = "yatm_data_logic:data_server", groups = { cracky = 1, data_programmable = 1, yatm_data_device = 1, },...
nilq/small-lua-stack
null
local ui_topbar = class("ui_topbar", ui_session) function ui_topbar.show_me() local sd = ui_session_data(ui_session_type.FIXED, ui_session_id.UI_TOPBAR) local ui_manager = fw_facade:instance():get_mgr(mgr_name.UI_MGR) if ui_manager ~= nil then ui_manager:instance():show_session(ui_topbar(sd)) ...
nilq/small-lua-stack
null
--[[ desc: User, a player manager. author: Musoucrow since: 2018-6-26 alter: 2019-9-21 ]]-- local _MAP = require("map.init") local _DUELIST = require("actor.service.duelist") local _Caller = require("core.caller") ---@class User ---@field public player Actor.Entity ---@field public setPlayerCaller Core.Caller lo...
nilq/small-lua-stack
null
local constants = {} constants.description_color = { r = 0.8, g = 0.8, b = 0.8 } constants.task_status = { not_started = { color = "black", label = { "gui.tlst-status-not-started" } }, in_progress = { color = "green", label = { "gui.tlst-status-in-progress" } }, paused = { color = "yellow", label = { "gui.tlst-...
nilq/small-lua-stack
null
local DemoScroll = class(DialogViewLayout) function DemoScroll:onInitDialog() self:setLayout("demoScroll.json") local infos = {} for i=1, 40 do infos[i] = {id=i} end self.scrollview:setLazyTableData(infos, Handler(self.onUpdateItemCell, self), 0) self.scrollview2:setLazyTableData(infos...
nilq/small-lua-stack
null
return function(libs, constants) local ffi = require'ffi' local string_len = string.len local string_format = string.format local ffi_string = ffi.string local sodium_lib = libs.sodium local char_array = ffi.typeof('char[?]') -- returns crypto_box functions local function ls_crypto_box(basename) ...
nilq/small-lua-stack
null
local GameOver = {}; GameOver.__index = GameOver function GameOver:new() local this = setmetatable({ width = 600, x = 100, y = 300, elapsedTime = 0 }, GameOver) return this end function GameOver:keypressed(key, scancode, isrepeat) if self.elapsedTime >= 2.4 then sceneDirector:exitSubscene(); s...
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
require "ratchet" counter = 0 function ctx1(host, port) local rec = ratchet.socket.prepare_tcp(host, port) local socket = ratchet.socket.new(rec.family, rec.socktype, rec.protocol) socket:setsockopt("SO_REUSEADDR", true) socket:bind(rec.addr) socket:listen() ratchet.thread.attach(ctx2, host, ...
nilq/small-lua-stack
null
print('\n\n') print('CryptoNumber Test') local CryptoNumber = require("CryptoNumber") local n = CryptoNumber(5) print("getValue:",n:getValue()) n._data = 10 -- Simulate modifying memory data print("getValue:",n:getValue()) n:setValue(10.1) print("getValue:",n:getValue()) n:setValue(10123.123) print("getValue:",n:getV...
nilq/small-lua-stack
null
require "config" require "tools" local local_run_test = lunit and function() end or run_test local lunit = require "lunit" local arg = {...} local _ENV = TEST_CASE'Statement test' local env, cnn, stmt function teardown() if stmt then stmt:destroy() end if cnn then cnn:destroy() end if env then e...
nilq/small-lua-stack
null
require("scripts/util") MoarInserterRecipePrototypeTemplate = { type = "recipe", name = "TEMPLATE", enabled = "false", ingredients = { {"TEMPLATE", 1337} }, result = "TEMPLATE" } function init(obj, typeArg, rangeArg) local baseName = typeArg .. "-" .. rangeArg .. "-MIinserter" ...
nilq/small-lua-stack
null
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- local sx,sy=guiGetScreenSize() local data={ value=nil, showed=false, text=nil, } local randomText={ "Pracuj dobrze a coś zyskasz", "Nie ma to jak praca na serwerze", ...
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.Base = "base_rd3_entity" ENT.PrintName = "Fusion Reactor" list.Set("LSEntOverlayText", "generator_energy_fusion", { HasOOO = true, num = 2, resnames = { "water", "heavy water" }, genresnames = { "energy", "steam", "water" } })
nilq/small-lua-stack
null
local score_t = {} local score_mt = { __index = score_t } local default_weights = { W1 = 9, W2 = 6, W3 = 3, W4 = 2, W5 = 1, Miss = 0, OK = 9, NG = 0, Mine_OK = 9, Mine_NG = 0 } local score_limit = 100000000 local levels = { "W1", "W2", "W3", "W4", "W5", "Miss", "OK", "NG", "Mine_OK", "Mine_NG" } --[[ ...
nilq/small-lua-stack
null
local replicating_5d_mk4 = { type = "recipe", name = "replicating-5d-mk4-transport-belt", localised_name = {"replicating-belts.prefix", {[1] = "replicating-belts.5d-mk4-transport-belt-lower"}}, enabled = false, ingredients = { {'5d-mk4-transport-belt', 1}, {'electronic-circuit', 1}, }, re...
nilq/small-lua-stack
null
local file = require("src.file") local highScore = 0 if file.Exists("gamedata.dat") then highScore = tonumber( love.data.decompress("string", "lz4", file.Read("gamedata.dat")) ) else file.Write("gamedata.dat", love.data.compress("string", "lz4", "0")) end local ScrW, ScrH = love.graphics.getWidth(), lov...
nilq/small-lua-stack
null
function on_activate(parent, ability) local targeter = parent:create_targeter(ability) targeter:set_selection_radius(ability:range()) targeter:set_free_select(ability:range()) targeter:set_free_select_must_be_passable("2by2") targeter:set_shape_object_size("2by2") targeter:activate() end function ...
nilq/small-lua-stack
null
local mr = require("match_refine") local m = require("match") describe("match-refine", function() local K = m.namespace().keys it("rolls constant projections", function() local refiner = mr.match_refine{ { {K.a, K.b}, { { x = 1 }, { y = 2} } } } assert.is.same({ a=2, b=3, x=...
nilq/small-lua-stack
null
local ffi = require('ffi') local C = ffi.C local NULL = ffi.NULL local table_new = require('table.new') local syscache = require('pllj.pg.syscache') local macro = require('pllj.pg.macro') local function get_oid_from_name(sptr) local typeId = ffi.new("Oid[?]", 1) local typmod = ffi.new("int32[?]", 1) C.pa...
nilq/small-lua-stack
null
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/404rq/GTW-RPG/ Bugtracker: https://discuss.404rq.com/t/issues Suggestions: https://discuss.404rq.com/t/deve...
nilq/small-lua-stack
null
local U = require "togo.utility" local Tool = require "Quanta.Tool" local tool = Tool("account", {}, {}, [=[ account [command] account tool ]=], function(self, parent, options, params) return self:run_command(params) end) tool:add_commands({ require("Tool.Account.Print"), }) Tool.add_tools(tool)
nilq/small-lua-stack
null
--[[ Falling from the Sky -- BigStuff Class -- Author: Yoru Sung https://github.com/spero61/falling-from-the-sky BigStuff is slightly bigger than ordinary 'Stuff's and faster than 'Stuff' by 'bigSpeedCoef' times which can be set in a difficulty.lua file. ]] BigStuff = Class{__includes = S...
nilq/small-lua-stack
null
package.cpath = package.cpath .. ";?.dylib" glfw=require("luaglfw") nvg=require("luananovg") if glfw.Init() == false then return -1; end -- Create a windowed mode window and its OpenGL context local window = glfw.window.new(640, 480, "Hello World"); if (window == nil) then glfw.Terminate(); ...
nilq/small-lua-stack
null
local CHECK_INTERVAL = 2 * 10^3 addEvent("onMute", false) addEvent("onUnmute", false) addEvent("gra.mMute.onAdminChange", false) addEvent("gra.mMute.onNickChange", false) addEvent("gra.mMute.onReasonChange", false) addEvent("gra.mMute.onTimeChange", false) mMute = {} mMute.mutes = {} function mMute.init() cDB.e...
nilq/small-lua-stack
null
-- MADE BY LEFOS -- NO CONFIG.LUA FOR PREVENTING DUMPING AND SPAMMING TO THE SPECIFIC WEBHOOKS. IF YOU DIDN'T KNOW, A SERVERSIDE SCRIPT CAN'T BE DUMPED! -- CONFIG, CHANGE THINGS local webhook1 = "YOUR WEBHOOK FOR PLAYER JOINS" -- Create a webhook and put it here local webhook2 = "YOUR WEBHOOK FOR PLAYER DROPS" -- C...
nilq/small-lua-stack
null
--[[------------------------------------------------------------------------- * * RaidIcons module for PerfectRaid addon. * * Written by: Panoramix * Version: 1.0 * ---------------------------------------------------------------------------]] local RaidIcons = PerfectRaid:NewModule("PerfectRaid-RaidIcons")...
nilq/small-lua-stack
null
--print("Hello World") --[===[32rfrf4234]===] --[[3476fuirhfefe]] --print(_VERSION) --[[for k,v in pairs(_G) do print(k,v) end]] function foo(a,b) print("foo",a) end foo(1,2) x=7 if x==100 then print(x) else print("0") end x=2323 if x<100 then print(1) elseif x<200 then print(2) else print(...
nilq/small-lua-stack
null
function drawRct(x,y,width,height,r,g,b,a) DrawRect(x + width/2, y + height/2, width, height, r, g, b, a) end Citizen.CreateThread(function() while true do Citizen.Wait(0) drawRct(0.0140, 0.968, 0.1430,0.031, 15, 15, 15,250) end end)
nilq/small-lua-stack
null
hook.Add("PhysgunPickup", "opsPhysgunPickup", function(ply, ent) if ply:IsAdmin() and ent:IsPlayer() then ent:SetMoveType(MOVETYPE_NONE) return true end end) hook.Add("PhysgunDrop", "opsPhysgunDrop", function(ply, ent) if ent:IsPlayer() then ent:SetMoveType(MOVETYPE_WALK) end end) local adminChatCol = Color...
nilq/small-lua-stack
null
return require 'solver.grhd-behavior'(require 'solver.roe')
nilq/small-lua-stack
null
local apps=require("apps") -- try hard to find any files wemay need apps.default_paths() local wzips=require("wetgenes.zips") -- strip some args before passing on to main code local a=arg or {} local argx={} local done_fun=false -- only remove the first local done_zip=false local filename="" for i=1,#a do local...
nilq/small-lua-stack
null
require "microphone" -- the future sound local sound = nil local channel = nil -- add a level meter local levelMeter = LevelMeter.new() stage:addChild(levelMeter) levelMeter:setY(30) -- the microphone local microphone = Microphone.new(nil, 22050, 1, 16) microphone:setOutputFile("|D|record.wav") microphone:addEventLi...
nilq/small-lua-stack
null
MapEditor.LoadFromFile = function(path) local file , openError = io.open(path , "r") if openError then error("Cannot load "..tostring(path)..": "..openError) end local jsonString = file:read("*a") file:close() local marshalledMap = MapEditor.JSON:decode(jsonString) return MapEditor.LoadF...
nilq/small-lua-stack
null
function init(args) entity.setInteractive(true) if args == false then pipes.init({liquidPipe}) local initInv = entity.configParameter("initialInventory") if initInv and storage.liquid == nil then storage.liquid = initInv end entity.scaleGroup("liquid", {1, 0}) self.liquidMap = {...
nilq/small-lua-stack
null
function onLogin(player) us_onLogin(player) return true end function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) return us_onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) end function onManaChange(c...
nilq/small-lua-stack
null
local pdk = require("apioak.pdk") local db = require("apioak.db") local ngx_sleep = ngx.sleep local ngx_timer_at = ngx.timer.at local ngx_worker_exiting = ngx.worker.exiting local ngx_var = ngx.var local balancer = require("ngx.balancer") local balancer_chash = require('resty.ch...
nilq/small-lua-stack
null
local server = require "nvim-lsp-installer.server" local platform = require "nvim-lsp-installer.core.platform" local path = require "nvim-lsp-installer.core.path" local functional = require "nvim-lsp-installer.core.functional" local process = require "nvim-lsp-installer.core.process" local std = require "nvim-lsp-insta...
nilq/small-lua-stack
null
--DBG(CEU.opts.cc_exe..' -xc '..CEU.opts.cc_input..' '.. '-o '..CEU.opts.cc_output..' '.. CEU.opts.cc_args..' 2>&1') local cc = CEU.opts.cc_exe..' -xc "'..CEU.opts.cc_input..'" '.. '-o "'..CEU.opts.cc_output..'" '.. CEU.opts.cc_args..' 2>&1' local f = assert(io.popen(cc)) local err = f:read'*a...
nilq/small-lua-stack
null
local mod_gui = require 'mod-gui' require 'defines' require 'gui' require 'scripts/globals' require 'scripts/request-manager' require 'scripts/blueprint-requests' function select_preset(player, preset) gui.select_preset(player, preset) local data = global["preset-data"][player.index][preset] gui.display_preset(pl...
nilq/small-lua-stack
null
-- MIT License -- Copyright (c) 2021 Holger Teutsch -- 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
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local config = require "game.config" local timetool = require "include.timetool" local s_split = require "include.stringsplit" local t_insert = table.insert local cjson = require "include.cjson" loc...
nilq/small-lua-stack
null
-- IupImage Example in IupLua -- Creates a button, a label, a toggle and a radio using an image. -- Uses an image for the cursor as well. require( "iuplua" ) -- Defines an "X" image img_x = iup.image{ { 1,2,3,3,3,3,3,3,3,2,1 }, { 2,1,2,3,3,3,3,3,2,1,2 }, { 3,2,1,2,3,3,3,2,1,2,3 }, { 3,3,2,1,2,3,2,1,2,3,...
nilq/small-lua-stack
null
--[[ @class ClientMain ]] local ReplicatedStorage = game:GetService("ReplicatedStorage") local packages = ReplicatedStorage:WaitForChild("Packages") local serviceBag = require(packages:FindFirstChild("ServiceBag", true)).new() serviceBag:GetService(require(packages.PermissionServiceClient)) serviceBag:Init() servic...
nilq/small-lua-stack
null
----------------------------------- -- Area: Open sea route to Al Zahbi -- NPC: Cehn Teyohngo -- Guild Merchant NPC: Fishing Guild -- !pos 4.986 -2.101 -12.026 46 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/shop") local ID = require("scripts/zones/Open_sea_route_to_...
nilq/small-lua-stack
null
UI = Mods.LeaderLib.UI local function OpenRollMessageBox(rollType, stat, characterNetID, title, message) local ui = Ext.GetBuiltinUI("Public/Game/GUI/msgBox.swf") if ui and stat then ui:Hide() local root = ui:GetRoot() --root.addButton(3, LocalizedText.UI.Close.Value, "", "") ro...
nilq/small-lua-stack
null
-- MFT brightness local B = { OFF = 18, MID = 32, HI = 47 } -- MFT color local C = { BLUE = 22, CYAN = 36, YELLOW = 62, ORANGE = 68, RED = 74 } return { C = C, B = B }
nilq/small-lua-stack
null
instrument { name = "LSMA", overlay = true } period = input (25,"front.period", input.integer, 1, 200) offset = input (0, "front.newind.offset", input.integer, -100, 100) source = input (1, "front.ind.source", input.string_selection, inputs.titles_overlay) input_group { "front.ind.dpo.generalline", color = i...
nilq/small-lua-stack
null
--[[ What will the following program print? for i = -10, 10 do print(i, i % 3) end ]] for i = -10, 10 do print(i, i % 3) end --[[ -10 2 -9 0 -8 1 -7 2 -6 0 -5 1 -4 2 -3 0 -2 1 -1 2 0 0 1 1 2 2 3 0 4 1 5 2 6 0 7 1 8 2 9 0 10 1 ]]
nilq/small-lua-stack
null
for l,e in pairs({(function(e,...)local E="This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu";local h=e['YvjeM6'];local j=e[((699529101-#("guys someone play Among Us with memcorrupt he is so lonely :(")))];local r=e[(505170951)];local F=e[(920566712)];local A=e[((620958460-#("A...
nilq/small-lua-stack
null
local drawing = require 'utils.drawing' return function(title, heading, label, history, tracker) local M = { title = title, keypress = function() end, draw_status = function() end, } function M:render() local rows = {} for name,load in pairs(tracker.detail) do table.insert(rows, {name=nam...
nilq/small-lua-stack
null
local ReturnValueAndError = require("gettest.vendor.misclib.error_handler").for_return_value_and_error() function ReturnValueAndError.all_leaves(raw_opts) local opts, opts_err = require("gettest.core.option").new(raw_opts) if opts_err then return nil, opts_err end local tests, err = require("gettest.core"...
nilq/small-lua-stack
null
vim.opt.fileencoding = 'utf-8' -- File content encoding for the buffer vim.opt.spelllang = 'en' -- Support US english vim.opt.signcolumn = 'yes' -- Always show the sign column vim.opt.completeopt = { 'menuone', 'noselect' } -- Options for inse...
nilq/small-lua-stack
null
local process = require "nvim-lsp-installer.process" local gem = require "nvim-lsp-installer.installers.gem" local log = require "nvim-lsp-installer.log" local VersionCheckResult = require "nvim-lsp-installer.jobs.outdated-servers.version-check-result" local function not_empty(s) return s ~= nil and s ~= "" end -...
nilq/small-lua-stack
null
local event = require("__flib__.event") local migration = require("__flib__.migration") local constants = require("constants") local cursor = require("scripts.cursor") local global_data = require("scripts.global-data") local migrations = require("scripts.migrations") local player_data = require("scripts.player-data")...
nilq/small-lua-stack
null
--- The module implements functions needed to make general accessor --- (@{accessor_general}) behaves as shard accessor and provides the --- `accessor_shard.new` function to create a new shard data accessor instance. local json = require('json') local digest = require('digest') local utils = require('graphql.utils') l...
nilq/small-lua-stack
null
----------------------------------- -- Area: Port San d'Oria -- NPC: Patolle -- Kuzotz Regional Merchant ----------------------------------- local ID = require("scripts/zones/Port_San_dOria/IDs") require("scripts/globals/conquest") require("scripts/globals/npc_util") require("scripts/globals/quests") require("scripts/...
nilq/small-lua-stack
null
--[[/* * (C) 2012-2013 Marmalade. * * 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, pu...
nilq/small-lua-stack
null
-- public utils (global!) -- these should be relatively straightforward and only contain stuff that is -- *very* common in Epine scripts --- flat concat function fconcat(list, pre, sep) pre = pre or "" sep = sep or " " if not list then return "" end local words = "" for i, v in ipair...
nilq/small-lua-stack
null
-- I dedicate any and all copyright interest in this software to the -- public domain. I make this dedication for the benefit of the public at -- large and to the detriment of my heirs and successors. I intend this -- dedication to be an overt act of relinquishment in perpetuity of all -- present and future rights to t...
nilq/small-lua-stack
null
HoverUILayer = Layer:extend() function HoverUILayer:new() HoverUILayer.super.new(self) self.layer_name = "HoverUILayer" self.from_hp = 4 self.to_hp = 4 self.max_hp = 4 self.atk = 0 self.def = 0 self.counter = 0 self.unit_name = "(no selection)" self.show_ui = false self.ani...
nilq/small-lua-stack
null
--[[ FrostMoon, cross platform Composition Based Object Factory and GUI library targeting iOS, OSX and Windows 10 Copyright Aug. 9th, 2018 Eric Fedrowisch All rights reserved. --]] ------------------------------------------ --[[ This script is the main entry point of FrostMoon. It loads the component and queue classes,...
nilq/small-lua-stack
null
vim.g.tokyonight_italic_comments = false vim.g.tokyonight_italic_keywords = false -- Change the "hint" color to the "orange" color, and make the "error" color bright red vim.g.tokyonight_colors = { hint = "orange", error = "#ff0000" } vim.cmd([[colorscheme tokyonight]])
nilq/small-lua-stack
null
registerHandler { method = 'GET', path = 'address/:city/#zip', handler = function(req, resp, pathParams) address = { city = pathParams.city, zip = pathParams.zip } return '/views/view-address.lua', address end }
nilq/small-lua-stack
null
local chars = "1,2,3,4,5,6,7,8,9,0,A,B,C,D,E,F,G,H,J,K,L,M,N,P,R,S,Q,U,V,X,W,Z" local codes = split (chars, ",") addEvent("fisher->active", true) addEventHandler("fisher->active", root, function() if isElement(window) or isElement(yemWindow) then return end window = guiCreateWindow(0, 0, 420, 223, "Balıkçı: Hoşg...
nilq/small-lua-stack
null
-- Searches through the RNG sequence to find when the next big blue rupee will -- come up. -- -- Also displays the next 3 RNG values. Press "r" to advance to the next value. local x = 0 local y = 5*16 local digX = 200 local digY = y local howmany = 3 local howmanyitems = 3 local RNGlo = 0 local...
nilq/small-lua-stack
null
require "busted.runner"() describe("[tostring]", function() local table = require "ptable" describe("empty table", function() local empty_table = table({}) local response = "table [\n]" local str = empty_table:tostring() it("should not be nil", function() assert.is_not.Nil(st...
nilq/small-lua-stack
null
import "../crowdsale.lua" --------------------------------------- -- capped crowdsale object definition -- @see https://github.com/OpenZeppelin/openzeppelin-solidity/tree/master/contracts/crowdsale/validation --------------------------------------- state.var { Cap = state.value() } cappedcrowdsale = Object(crowdsa...
nilq/small-lua-stack
null
Scene_Manager = Roomy.new()
nilq/small-lua-stack
null
xmlStr = xml.str(root):gsub("&apos;", "'"):gsub("&quot;", '"') print(xmlStr)
nilq/small-lua-stack
null
--- === plugins.finalcutpro.browser.insertvertical === --- --- Insert Clips Vertically from Browser to Timeline. local require = require local log = require "hs.logger".new "addnote" local dialog = require "cp.dialog" local fcp = require "cp.apple.finalcutpro" local go ...
nilq/small-lua-stack
null
object_tangible_component_cybernetic_cybernetic_module_base_two_core = object_tangible_component_cybernetic_shared_cybernetic_module_base_two_core:new { } ObjectTemplates:addTemplate(object_tangible_component_cybernetic_cybernetic_module_base_two_core, "object/tangible/component/cybernetic/cybernetic_module_base_two_...
nilq/small-lua-stack
null
-- -- scholarlyjsonld.lua -- -- Copyright (c) 2017 Albert Krewinkel, Robert Winkler -- -- This library is free software; you can redistribute it and/or modify it -- under the terms of the ISC license. See LICENSE for details. local json = require "dkjson" local cito = require "cito" local citation_ids = {} local fun...
nilq/small-lua-stack
null
#!/usr/bin/env tarantool local tap = require("tap") local ffi = require("ffi") local fio = require("fio") -- -- gh-5615: Static build: Bundled curl in Tarantool http client does -- not accept a valid SSL certificate -- local test = tap.test("ssl_cert_paths_discover") test:plan(6) ----- Init test env ffi.cdef([[ ...
nilq/small-lua-stack
null
function test1() local function error_func(e) error(e) end local function good_func() return "good" end local r1, e1 = pcall(error_func, "test error") local r2, e2 = pcall(error_func, "test error 2") local r3, e3 = pcall(good_func) return r1 == false and e1 == "...
nilq/small-lua-stack
null
AddCSLuaFile() local PLAYER = {} PLAYER.DisplayName = "Starter" PLAYER.icon = "icons/starter.png" ability1 = Ability.create("Speed", "Gives you bonus speed") ability1.values = {440, 470, 505, 520} ability1.MaxLevel = 4 ability1.OnSpawn = function(self, player) player.Player:SetWalkSpeed(self.values[self.Lev...
nilq/small-lua-stack
null
local _M = {} _M.COMMON = 1 return _M
nilq/small-lua-stack
null
-- Basic functionality: threads and message-passing local lunit = require "luaunit" local dpdk = require "dpdk" local memory = require "memory" local device = require "device" local timer = require "timer" local log = require "testlog" local testlib = require "testlib" local tconfig = require "tconfig" local ffi...
nilq/small-lua-stack
null