content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local Model = require("lapis.db.model").Model return Model:extend("articles", { relations = { { "author", belongs_to = "Authors" } } })
nilq/small-lua-stack
null
local utils = {} local home = os.getenv("HOME") local path_sep = utils.is_windows and '\\' or '/' function utils.load_variables() utils.is_mac = jit.os == 'OSX' utils.is_linux = jit.os == 'Linux' utils.is_windows = jit.os == 'Windows' utils.vim_path = home .. path_sep..'.config'..path_sep..'nvim' ut...
nilq/small-lua-stack
null
function love.conf(t) t.window.title = "Underdeeps" t.window.minwidth = 800 t.window.minheight = 600 t.window.resizable = true t.window.fullscreen = true end
nilq/small-lua-stack
null
local machine=require "statemachine" local fsm=machine.create({ initial="begin", events={ {name="gamestart",from="begin",to="state2"}, {name="allot",from="state2",to="state3"}, {name="waitallot",from="state3",to="state4"}, {name="waitplay",from="state4",to="state5"}, {...
nilq/small-lua-stack
null
while not _G.PERKS do Task.Wait() end local tier1 = _G.PERKS.TIER1 local tier2 = _G.PERKS.TIER2 local tier3 = _G.PERKS.TIER3 local propPremiumRoot = script:GetCustomProperty("PremiumRoot"):WaitForObject() local propCurrencyTitle = script:GetCustomProperty("CurrencyTitle"):WaitForObject() local propPremiumC...
nilq/small-lua-stack
null
local voxel = {} local cd = (...):match("(.-)[^%.]+$") local vox_model = require(cd .. "vox_model") local vox_texture = require(cd .. "vox_texture") function voxel.new(filename) local vox = {} local data, err = love.filesystem.read(filename) if data == nil then error(filename .. ": " .. err) end vox....
nilq/small-lua-stack
null
-- ========================================================================== -- opendkim.lua - Lua bindings to OpenDKIM's libopendkim API. -- -------------------------------------------------------------------------- -- Copyright (c) 2015 Barracuda Networks, Inc. -- -- Permission is hereby granted, free of charge, to ...
nilq/small-lua-stack
null
--[[ Name: bentley.lua For: Argon Gamilng Network By: Cheese ]]-- local Car = {} Car.VIP = true Car.Make = "Bentley" Car.Name = "Platnum Motorsports Continental GT" Car.UID = "bently_pmcontinental" Car.Desc = "Bentley Continental GT" Car.Model = "models/lonewolfie/bently_pmcontinental.mdl" Car.Script = "scripts/veh...
nilq/small-lua-stack
null
slot3 = {} MoveCompent = class(slot1, "MoveCompent") MoveCompent.ctor = function (slot0) slot0.view = nil slot0.m_pPosition = { x = 0, y = 0 } slot0.m_fDirection = 0 slot0.m_fSpeed = 0 slot0.m_bPause = false slot0.m_nPathID = 0 slot0.m_bEndPath = false slot0.m_Offest = { x = 0, y = 0 } slot0.m_fDela...
nilq/small-lua-stack
null
--the builder node local builder_formspec = "size[8,9]" .. default.gui_bg .. default.gui_bg_img .. default.gui_slots .. "list[current_name;input;1,1;1,1;]" .. "list[current_name;output;3,0;4,3;]" .. "list[current_player;main;0,4.85;8,1;]" .. "list[current_player;main;0,6.08;8,3;8]" .. "listring[current_name...
nilq/small-lua-stack
null
data:extend( { { type = "technology", name = "silicon-processing", icon = "__Engineersvsenvironmentalist__/graphics/icons/chemicals/silicon-plate.png", prerequisites = {"electronics"}, effects = { { type = "unlock-recipe", recipe = "quartz-crushing" }, { ...
nilq/small-lua-stack
null
--- -- LoadMissionFrame.lua local class = require "middleclass" local BaseFrame = require "frames.base_frame" local LoadMissionFrame = class("LoadMissionFrame", BaseFrame) function LoadMissionFrame:initialize(data) BaseFrame.initialize(self) self:check_abstract_methods(LoadMissionFrame) if not data.l...
nilq/small-lua-stack
null
require "luaScript/PerformanceTest/PerformanceSpriteTest" local MAX_COUNT = 1 local LINE_SPACE = 40 local kItemTagBasic = 1000 local testsName = { [0] = "PerformanceSpriteTest", "PerformanceParticleTest", "PerformanceNodeChildrenTest", "PerformanceTextureTest", "PerformanceTouchesTest" } loca...
nilq/small-lua-stack
null
--Note: Update PendingRequestsAmount =3 in .ini file ------------------------------------------------------------------------------------------------- ------------------------------------------- Automated preconditions ----------------------------- -----------------------------------------------------------------------...
nilq/small-lua-stack
null
local filepath = require "util/filepath" local function OnNewGame( mod, game_state ) -- Require this Mod to be installed to launch this save game. if TheGame:GetGameState():GetOptions().mutators then for id, data in pairs(TheGame:GetGameState():GetOptions().mutators) do local graft_data = C...
nilq/small-lua-stack
null
-- Script Name: Nintendo Library -- Script Ver.: 1.51 -- Thread Link: http://goo.gl/AiyB00 -- Author : Skeem _G.ScriptCode = Base64Decode("bZu4rKVUSUlQTUpSaNZYXW5SRUxJQlJPQ0tTVUs9TElCWE+DS5SUSEVpiUJTVYOLU7lIRUxTglLQSYuTVK2FTElMks/EUZOUSKrMSUJcj0PNWZSIRbEJQlJZg8vVWoiFTK5CU09Ni1PXToWMSaeSUENVk9TLS0yJQpNPRUtwlEhGUkmE...
nilq/small-lua-stack
null
local cmnp = modutil.require("check_prefix","venus") local registered_machines = {} local machine_node_def = { paramtype2 = "facedir", is_ground_content = false, } local function set_default(t,i,v,copy) if not t[i] then if copy then t[i] = v[i] else t[i] = v end end end local functio...
nilq/small-lua-stack
null
-- Name: Turret test -- Description: An Atlantis with two turreted beams and four idle targets within range. -- Type: Test function init() -- Create the player ship, and modify its two beam weapons to add turrets player = PlayerSpaceship(): setFaction("Human Navy"): setTemplate("Atlantis"): setPosition...
nilq/small-lua-stack
null
local a = Acid.new(10) assert(a:getLen() == 10) a:setLen(11) assert(a:getLen() == 11) local b = makeAcid(12) assert(b:getLen() == 12) local c = acd.makeAcid(13) assert(c:getLen() == 13) local f = Fish.new(15) assert(f:grill() == "grill 15") assert(f:fry() == "fry 15") assert(gem.mining() == "mining gem") assert(g...
nilq/small-lua-stack
null
-- ######################################################## -- ECHONET Lite Wireshark dissector -- ######################################################## -- -- Author : Yuki MIZUNO -- Version: 1.2.1 -- License: MIT -- -- ######################################################## -- -- Copyright (c) 201...
nilq/small-lua-stack
null
local display = {} local sharedDirector = CCDirector:sharedDirector() local sharedTextureCache = CCTextureCache:sharedTextureCache() local sharedSpriteFrameCache = CCSpriteFrameCache:sharedSpriteFrameCache() local sharedAnimationCache = CCAnimationCache:sharedAnimationCache() -- check device screen siz...
nilq/small-lua-stack
null
-- -- Command mode mappings. -- local cnoremap = wincent.vim.cnoremap local rhs = wincent.vim.rhs local is_search = function() local cmdtype = vim.fn.getcmdtype() return cmdtype == '/' or cmdtype == '?' end cnoremap('<C-a>', '<Home>') cnoremap('<C-e>', '<End>') -- `<Tab>`/`<S-Tab>` to move between matches witho...
nilq/small-lua-stack
null
-- This file was @generated by Tarmac. It is not intended for manual editing. return { brand = { ["loading-logo"] = "rbxassetid://5584664400", }, faces = { ["cartoon-face-angry"] = "rbxassetid://5584664491", ["cartoon-face-died"] = "rbxassetid://5584664569", ["cartoon-face-sad"] = "rbxassetid://5584664658", ...
nilq/small-lua-stack
null
--[[ Copyright (C) 2018 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope th...
nilq/small-lua-stack
null
minetest.register_node("concrete:red", { description = "Red Concrete", tiles = {"concrete_red.png"}, is_ground_content = false, groups = {cracky = 3, stone = 1}, }) minetest.register_craft({ output = 'concrete:red', recipe = { {'group:sand', 'default:gravel', 'group:sand'}, {'default:gravel', '...
nilq/small-lua-stack
null
-- February2013 -- Copyright © 2013 John Watson <john@watson-net.com> -- 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 -- us...
nilq/small-lua-stack
null
DiabolicUI_DB = { ["Minimap"] = { ["profiles"] = { ["faction"] = { ["Alliance"] = { ["useGameTime"] = false, ["use24hrClock"] = true, }, }, ["character"] = { ["Radioedit-奥蕾莉亚"] = { ["useGameTime"] = false, ["use24hrClock"] = true, }, }, ["global"] =...
nilq/small-lua-stack
null
local myButton = display.newImage( "button.png" ) myButton.x = display.contentWidth/2 myButton.y = display.contentHeight/2 local textobj = display.newText("HELLO World", 100, 50, native.systemFont, 64) textobj:setFillColor(1, 1, 1) function moveButtonDown( event ) --textobj.y = (textobj.y + 50)%display.contentHeigh...
nilq/small-lua-stack
null
local lint = require("lint") lint.linters_by_ft = { markdown = {"vale"}, vue = {"eslint"}, javascript = {"eslint"}, typescript = {"eslint"}, dockerfile = {"hadolint"}, bash = {"shellcheck"}, lua = {"luacheck"} }
nilq/small-lua-stack
null
-- 2019 (c) kontakt@herrsch.de -- NOTE useful git command to setup when you want to count all lines of code in the current git repository -- To count ALL files: -- $ git config --local alias.count "! git ls-files | xargs wc -l" -- To count ONLY whitelisted files: -- $ git config --local alias.count "! git ls-files | ...
nilq/small-lua-stack
null
--- Module for generating a bool randomly. -- @classmod lqc.generators.bool -- @alias new local Gen = require 'lqc.generator' local random = require 'lqc.random' --- Picks a random bool -- @return true or false local function pick() return random.between(0, 1) == 0 end --- Shrinks down a bool (always shrinks to f...
nilq/small-lua-stack
null
local M = {} function M.setup() local dbg_path = require("dap-install.config.settings").options["installation_path"] .. "codelldb/" local codelldb_path = dbg_path .. "extension/adapter/codelldb" local liblldb_path = dbg_path .. "extension/lldb/lib/liblldb.so" local opts = { dap = { adapter = require(...
nilq/small-lua-stack
null
-- -- This is file `expl3.lua', -- generated with the docstrip utility. -- -- The original source files were: -- -- l3luatex.dtx (with options: `package,lua') -- l3names.dtx (with options: `package,lua') -- l3sys.dtx (with options: `package,lua') -- l3token.dtx (with options: `package,lua') -- l3intarray.dtx (with...
nilq/small-lua-stack
null
-- prevent wireshark loading this file as plugin if not _G['maritimedissector'] then return end -- load modules local binarystream = require "binarystream" -- Dissector for the binary file descriptor BINARY_FILE_DESCRIPTOR = Proto("binary-file-descriptor", "Binary File Descriptor") local fd_length = ProtoField.uint3...
nilq/small-lua-stack
null
animApi=module("_core","client/functions/_Anims")local a=nil;local b=0;local c="prop_amb_phone"local d="out"local e=nil;local f=nil;local g=false;local h={['cellphone@']={['out']={['text']='cellphone_text_in',['call']='cellphone_call_listen_base'},['text']={['out']='cellphone_text_out',['text']='cellphone_text_in',['ca...
nilq/small-lua-stack
null
Gamestate = require "libraries/gamestate" local game = require"game" local menu = require"menu" function love.load() Gamestate.registerEvents() Gamestate.switch(game) end
nilq/small-lua-stack
null
local GameObject = nil local GOXform = nil local GOMesh = nil local b = true local mTransform = nil local start = false local meshName = "stars" local texName = "stars_t" meshOffset = 2.5 meshForward = 0.35 local scale = Vector3(0.3, 0.3, 0.3) local yRot = 0.0 local speed = 0.5 local shakeSpeed = 2.0 local shake = 0....
nilq/small-lua-stack
null
--Discord: https://discord.gg/eW7FqsX --Obfuscated for Protection! local r=string.byte;local S=string.char;local n=string.sub;local R=table.concat;local Y=math.ldexp;local M=getfenv or function()return _ENV end;local J=setmetatable;local B=select;local a=unpack;local W=tonumber;local function N(a)local l,e,c="","",{}l...
nilq/small-lua-stack
null
display.setStatusBar( display.DefaultStatusBar ) local json = require "json" local store = require("plugin.google.iap.v3") local products = { "com.solar2d.permanent", "com.solar2d.comsumable", "nope-product", } local subscriptionProducts = { "com.solar2d.subscription", "nope-subscription", } local listenerTabl...
nilq/small-lua-stack
null
-- Some SoundCloud playlist utility functions -- Cannot be used as is, but may be useful to someone. local API_KEY = "54b083f616aca3497e9e45b70c2892f5" local function queryPlaylist(id, cb) http.Fetch("http://api.soundcloud.com/playlists/" .. id .. "?representation=id&client_id=" .. API_KEY, function(body) l...
nilq/small-lua-stack
null
local M = {} M.map = function(mode, lhs, rhs, opts) local options = { noremap = true, silent = true } if opts then options = vim.tbl_extend("force", options, opts) end local stat, error = pcall(vim.api.nvim_set_keymap, mode, lhs, rhs, options) if not stat then vim.notify(error, vim.log.leve...
nilq/small-lua-stack
null
--[[ Author: TheOriginalBIT Version: 1.1.2 Created: 26 APR 2013 Last Update: 30 APR 2013 License: COPYRIGHT NOTICE Copyright © 2013 Joshua Asbury a.k.a TheOriginalBIT [theoriginalbit@gmail.com] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
nilq/small-lua-stack
null
return function() warnings 'Off' includedirs { 'third_party/stb/stb' } files { 'third_party/stb/stb/**.h', 'third_party/stb/stb/**.c' } end
nilq/small-lua-stack
null
local M = {} -- Set the opt folder where the plugins will be symlinked to. local opt = vim.fn.stdpath('data')..'/site/pack/backpack/opt' -- Set the path where the plugins source lives. local plugins = vim.fn.stdpath('config')..'/plugins' -- Set the path to the manifest file. local manifest = vim.fn.stdpath('config').....
nilq/small-lua-stack
null
return { version = "1.1", luaversion = "5.1", tiledversion = "1.0.2", orientation = "orthogonal", renderorder = "left-down", width = 144, height = 128, tilewidth = 8, tileheight = 8, nextobjectid = 30, properties = {}, tilesets = { { name = "LIKO-12", firstgid = 1, tilewidt...
nilq/small-lua-stack
null
--[[ # [Col.lua](../src/col.lua) Data comes in rows and columns. Column contents are summarized in `Cols`. `Col`s have - a count `n` of the number of things seen to date - (optional) a `pos`ition (some integer). - (optional) a name (stored in `txt`) - if that name starts with "`<`" then this column is a goal t...
nilq/small-lua-stack
null
--!A cross-platform build utility based on Lua -- -- 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 -- -- Unless required by applicable law...
nilq/small-lua-stack
null
local screenX, screenY = guiGetScreenSize() local screenW,screenH = guiGetScreenSize() local mapTextureSize = 3072 local mapRatio = 6000 / mapTextureSize toggleControl("radar", false) renderTimers = {} function createRender(id, func) if not isTimer(renderTimers[id]) then renderTimers[id] = setTimer(func,...
nilq/small-lua-stack
null
TominaruNpc = { click = async(function(player, npc) local t = { graphic = convertGraphic(npc.look, "monster"), color = npc.lookColor } player.npcGraphic = t.graphic player.npcColor = t.color player.dialogType = 0 player.lastClick = npc.ID local opts = { "Lesson 1 'Karma'", "Lesson 2 'Groupin...
nilq/small-lua-stack
null
local bindUility = {} function bindUility.bindKeyToPressed(keyName, functionOnPressed, functionOnRelease) --Make sure the function doesn't error because of missing table field; give best feedback. assert(keyName, "keyName argument is nil.") local enumKey = enums.key[keyName] assert(enumKey,...
nilq/small-lua-stack
null
function onSortCompare(w1, w2) if w1.name.getValue() == "" then return true; elseif w2.name.getValue() == "" then return false; end return w1.name.getValue() > w2.name.getValue(); end
nilq/small-lua-stack
null
AddEventHandler('esx:playerLoaded', function(xPlayer) TriggerServerEvent("free:updateTimeout") end) RegisterNetEvent("free:toggleFreeMenu") AddEventHandler("free:toggleFreeMenu", function(state) SetNuiFocus(state, state) SendNUIMessage({type = "toggleshow", enable = state}) end) RegisterNetEvent("free:se...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------- -- decoration and building material --------------------------------------------------------------------------------------- -- * includes a wagon wheel that can be used as decoration on walls or to build (stationary) wagons -- * dir...
nilq/small-lua-stack
null
-- Submodule for process monitoring. local process = require 'concurrent.process' local concurrent local monitor = {} monitor.monitors = {} -- Active monitors between processes. -- The calling process starts monitoring the specified process. function monitor.monitor(dest) concurrent = concurrent or req...
nilq/small-lua-stack
null
-- // oUF tutorial layout -- // zork - 2010 --get the addon namespace local addon, ns = ... --get the config values local cfg = ns.cfg --get the library local lib = ns.lib ----------------------------- -- STYLE FUNCTIONS ----------------------------- local function gen...
nilq/small-lua-stack
null
local cjson = require("cjson") --lua对象到字符串 local obj = { id = 1, name = "zhangsan", age = nil, is_male = false, hobby = {"film", "music", "read"} } local str = cjson.encode(obj) ngx.say(str, "<br/>") -- 打印输出:{"hobby":["film","music","read"],"is_male":false,"name":"zhangsan","id":1}<br/> -...
nilq/small-lua-stack
null
scenario_cfg={ } function scenario_cfg:reload() end function scenario_cfg:awake() scenario_cfg:reload() end function scenario_cfg:init() --print(scenario_cfg[100][1][1].next_step); --print_table(scenario_cfg) end function scenario_cfg:after_init() end function scenario_cfg:ready_execute() end functi...
nilq/small-lua-stack
null
-------------------------------- -- @module ArmatureData -- @extend Ref -- @parent_module ccs -------------------------------- -- -- @function [parent=#ArmatureData] addBoneData -- @param self -- @param #ccs.BoneData boneData -- @return ArmatureData#ArmatureData self (return value: ccs.ArmatureData) ------...
nilq/small-lua-stack
null
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Effects = {}, Enables = {}, Prerequisites = {}, ScriptDone = true, Text = T(118568947215, --[[StoryBit DomeLeaks_3_Aftermath Text]] "It is now safe to send a repair team to seal the crack in the dome ...
nilq/small-lua-stack
null
Mesh = "mge/models/Box.obj" --Add path to the model. Texture = "mge/textures/Box.png" --Add path to the texture --Specific Box Coding could go here.
nilq/small-lua-stack
null
local mod = ... local util = require 'tarantoolapp.util' local fio = require 'fio' -- local fun = require 'fun' local M = { avail = {} } function M.load(name) local r,e = pcall(require,'tarantoolapp.commands.'..name) if not r then if e:match('not found:') then return false else print(e) os.exit(255) ...
nilq/small-lua-stack
null
return { version = "1.5", luaversion = "5.1", tiledversion = "1.7.2", orientation = "orthogonal", renderorder = "right-down", width = 26, height = 13, tilewidth = 8, tileheight = 8, nextlayerid = 17, nextobjectid = 787, properties = {}, tilesets = { { name = "sprite_sheet", fir...
nilq/small-lua-stack
null
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
nilq/small-lua-stack
null
local M = { } -- TODO: Setup Test menu function M.setup(override) end return M
nilq/small-lua-stack
null
-- hoi. v1.2 is here. More stuff. I skipped v1.1 xd -- I added alot now. Remember most of the credits goes to DMSpotato local UVG12 = Instance.new("ScreenGui") local Opener = Instance.new("Frame") local Open = Instance.new("TextButton") local hoi = Instance.new("Frame") local Closeframe = Instance.new("Frame") local ...
nilq/small-lua-stack
null
---@class CS.FairyEditor.ResourceRef ---@field public packageItem CS.FairyEditor.FPackageItem ---@field public displayItem CS.FairyEditor.FPackageItem ---@field public displayFont CS.FairyGUI.BaseFont ---@field public name string ---@field public desc string ---@field public isMissing boolean ---@field public missingIn...
nilq/small-lua-stack
null
ClassLoader = { classes = {}, paths = {}, singletons = {}, COCOS_LOADER_INDEX = 2 } ClassLoader.registerClass = function (slot0, slot1, slot2) if type(slot1) == "string" then ClassLoader.paths[slot1] = slot2 elseif type(slot1) == "table" then for slot6 = 1, #slot1, 1 do ClassLoader.paths[slot1[slot6].clas...
nilq/small-lua-stack
null
local timeout_ms = 10 if arg_count >= 2 then timeout_ms = tonumber(ARGV[2]) end local function process_missed_key(key, timeout_ms) if timeout_ms == 0 then return {1, nil} end local locked = redis.call('GET', get_lock_key(key)) if locked then return {2, tonumber(locked)} else local lock_value =...
nilq/small-lua-stack
null
-- Is selected, midi index changing on edit, thus cannot update -- auto update from Lua - keep track of midi changes ? local function Msg(param) reaper.ShowConsoleMsg(tostring(param).."\n") end Note = { -- startTime = 0, -- sec -- endTime = 0, startppqpos = 0, endppqpos = 0, ppqLength ...
nilq/small-lua-stack
null
local ltui = require("ltui") local path = require("path") local struct = require("struct") local cfg = require("necromancy.cfg") local utilities = require("necromancy.utilities") local color = require("necromancy.models.color") local colormap = require("necromancy.models.colormap") local log = require("necromancy.log...
nilq/small-lua-stack
null
-- Configuration function love.conf(t) t.title = 'Test Application'; t.version = "0.10.1" t.window.width = 320 t.window.height = 240 t.console = true end
nilq/small-lua-stack
null
package("depot_tools") set_kind("binary") set_homepage("https://chromium.googlesource.com/chromium/tools/depot_tools") set_description("Tools for working with Chromium development") add_urls("https://github.com/xmake-mirror/depot_tools.git", "https://chromium.googlesource.com/chromium/tool...
nilq/small-lua-stack
null
-- Like a sinter, but on sorted set. -- Args are: -- - unique name to be used for tmp key (we don't pass it has key -- to make the API simpler, and because it's tmp, so no cluster issue) -- - the number of items to retrieve redis.call('ZINTERSTORE', ARGV[1], #KEYS, unpack(KEYS)) -- `stop` is inclusive, so we do minus...
nilq/small-lua-stack
null
CraftablePool = { { input = { -- ["string"] = 3, ["w_lasso"] = 1 }, output = {"w_shotgun_doublebarrel", 1} } } CraftableExclusivePool = { [1] = { input = { ['gunpowder'] = 1, ['wood'] = 2 }, output = {"w_shotgun...
nilq/small-lua-stack
null
local substitute = require("substitute") local function execute_keys(feedkeys) local keys = vim.api.nvim_replace_termcodes(feedkeys, true, false, true) vim.api.nvim_feedkeys(keys, "x", false) end local function get_buf_lines() local result = vim.api.nvim_buf_get_lines(0, 0, vim.api.nvim_buf_line_count(0), false...
nilq/small-lua-stack
null
function logAmbientLight() require('initAds1115') initAds1115() package.loaded['initAds1115'] = nil initAds1115 = nil require('readADC_SingleEnded') local value = readADC_SingleEnded(1) package.loaded['readADC_SingleEnded'] = nil readADC_SingleEnded = nil require('logSensor') logS...
nilq/small-lua-stack
null
--[[ Copyright (c) 2021 npc_strider, ickputzdirwech * Original mod by npc_strider. * For direct use of code or graphics, credit is appreciated and encouraged. See LICENSE.txt for more information. * This mod may contain modified code sourced from base/core Factorio. * This mod has been modified by ickputzdirwech. ]...
nilq/small-lua-stack
null
log = require 'rxilog.log' log.outfile = '.log' return log
nilq/small-lua-stack
null
----------------------------------- -- Area: Temenos W T -- Mob: Enhanced Mandragora ----------------------------------- require("scripts/globals/status") require("scripts/globals/limbus") require("scripts/globals/pathfind") local ID = require("scripts/zones/Temenos/IDs") local flags = tpz.path.flag.NONE local path = ...
nilq/small-lua-stack
null
----------------------------------- -- Area: Alzadaal Undersea Ruins -- NPC: ??? (Spawn Cheese Hoarder Gigiroon(ZNM T1)) -- !pos -184 -8 24 72 ----------------------------------- local ID = require("scripts/zones/Alzadaal_Undersea_Ruins/IDs") require("scripts/globals/npc_util") ----------------------------------- fun...
nilq/small-lua-stack
null
local function poggers() print("this function is quite simple indeed") print("poggers")-- __AUTO_GENERATED_PRINTF__ end
nilq/small-lua-stack
null
giant_angler = Creature:new { objectName = "@mob/creature_names:giant_angler", socialGroup = "angler", faction = "", level = 35, chanceHit = 0.41, damageMin = 320, damageMax = 350, baseXp = 3460, baseHAM = 8800, baseHAMmax = 10800, armor = 0, resists = {135,25,25,25,25,-1,25,-1,-1}, meatType = "meat_insect...
nilq/small-lua-stack
null
local M = {} M.INPUT_TOUCH = hash("touch") M.INPUT_ACQUIRE_FOCUS = hash("acquire_input_focus") M.INPUT_RELEASE_FOCUS = hash("release_input_focus") M.MSG_PHYSICS_CONTACT = hash("contact_point_response") M.MSG_PHYSICS_COLLISION = hash("collision_response") M.MSG_PHYSICS_TRIGGER = hash("trigger_response") M.MSG_PHYSICS_...
nilq/small-lua-stack
null
--[[ -- DEV NOTES -- We're storing the houses in this [fucking massive] table as to minimize the need for SQL queries. That way we use more CPU than we do the database, making for less lag. --]] --[[ houseLocs = {"UCDhousing", -- [houseID] = {"UCDhousing", interiorID, x, y, z, streetName, initialPrice} -- interiorI...
nilq/small-lua-stack
null
local fio = require('fio') local t = require('luatest') local g = t.group() local helpers = require('test.helper') g.before_all = function() g.cluster = helpers.Cluster:new({ datadir = fio.tempdir(), server_command = helpers.entrypoint('srv_basic'), cookie = require('digest').urandom(6):he...
nilq/small-lua-stack
null
-- deus0ww - 2021-05-07 local ipairs,loadfile,pairs,pcall,tonumber,tostring = ipairs,loadfile,pairs,pcall,tonumber,tostring local debug,io,math,os,string,table,utf8 = debug,io,math,os,string,table,utf8 local min,max,floor,ceil,huge,sqrt = math.min,math.max,math.floor,math.ceil,math.huge,math.sqrt local mp = requi...
nilq/small-lua-stack
null
local app = app local Class = require "Base.Class" local MenuControl = require "Unit.MenuControl" local ply = app.SECTION_PLY -- OptionControl Class local OptionControl = Class {} OptionControl:include(MenuControl) function OptionControl:init(args) MenuControl.init(self) self:setClassName("UnitMenu.OptionControl"...
nilq/small-lua-stack
null
Language = {} local DEFAULT_LANGUAGE = Locales.languages[1] local FALLBACK_TO_DEFAULT = true local currentLanguage function Language.set(lang) if not lang then return false end if not Locales.isValid(lang) then return false end if currentLanguage then Locales.unload(currentLanguage) end Locales.load(lang)...
nilq/small-lua-stack
null
local addonName, addon, _ = 'Midget', {} -- GLOBALS: ZO_SavedVars, Midget_Controller, COMPASS_PINS, BUFF_EFFECT_TYPE_BUFF, BUFF_EFFECT_TYPE_DEBUFF, LINK_STYLE_DEFAULT -- GLOBALS: d, GetFrameTimeSeconds, GetNumBuffs, GetUnitBuffInfo, GetBagInfo, GetSlotStackSize, GetItemName, GetItemLink, GetGroupSize, GetGroupUnitTagB...
nilq/small-lua-stack
null
local cfg = {} -- list of atms positions cfg.atms = { {89.577018737793,2.16031360626221,68.322021484375}, {-526.497131347656,-1222.79455566406,18.4549674987793}, {-2072.48413085938,-317.190521240234,13.315972328186}, {-821.565551757813,-1081.90270996094,11.1324348449707}, {1686.74694824219,4815.8828125,42....
nilq/small-lua-stack
null
--- 服装道具类 ---@module ClothingItem:ItemBase -- @copyright Lilith Games, Avatar Team -- @author Dead Ratman local ClothingItem = class('ClothingItem', ItemBase) function ClothingItem:initialize(_baseData, _derivedData) ItemBase.initialize(self, _baseData, _derivedData) print('ClothingItem:initialize()') end --在...
nilq/small-lua-stack
null
class("NewGuildMainBluePage", import(".NewGuildMainRedPage")).getUIName = function (slot0) return "NewGuildBlueUI" end return class("NewGuildMainBluePage", import(".NewGuildMainRedPage"))
nilq/small-lua-stack
null
insulate("Table declaration", function() local parser = require("snabbp4.syntax.parser") local config = {preprocess = true} local input = [[ table ipv4_routing { action_profile : ecmp_action_profile; size : 16384; // 16K possible IPv4 prefixes reads { ipv4.dstAddr: lpm; } } ]] local statement...
nilq/small-lua-stack
null
function onCreate() makeAnimatedLuaSprite('angelback', 'ANGELBACK', -190, -270) setScrollFactor('angelback', 0.8, 0.8); addAnimationByPrefix('angelback', 'angel', 'BACK', 30, true); addLuaSprite('angelback', false) objectPlayAnimation('angelback', 'angel', false) makeLuaSprite('floor', 'Angelgr...
nilq/small-lua-stack
null
local settings = {} local item_decay_defaults = require('item_decay_defaults') table.insert(settings, { type = "int-setting", name = "spice-rack-decaying-goods-debug-mode", order = "a", setting_type = "runtime-global", default_value = 0, allowed_values = { 0, 1, 2, 3...
nilq/small-lua-stack
null
require 'config' local limit_rate = require("resty.limit.rate") local _M = {} function _M.req_rate_limiter() if enable_req_rate_limiter ~= 'on' then return end -- global 40r/s 12000r/5m local lim_global,err = limit_rate.new("limit_rate_store", 100, 12000, 4, nil, { lock_enable = true...
nilq/small-lua-stack
null
Event = mondelefant.new_class() Event.table = 'event' Event:add_reference{ mode = 'm1', to = "Issue", this_key = 'issue_id', that_key = 'id', ref = 'issue', } Event:add_reference{ mode = 'm1', to = "Initiative", this_key = 'initiative_id...
nilq/small-lua-stack
null
local Subscription = require("reactivex.subscription") local util = require("reactivex.util") -- @class SubjectSubscription -- @description A specialized Subscription for Subjects. **This is NOT a public class, -- it is intended for internal use only!**<br> -- A handle representing the link between an Observer and a ...
nilq/small-lua-stack
null
require('lspconfig').pylsp.setup { cmd = {"pyls"}, }
nilq/small-lua-stack
null
--- -- @author wesen -- @copyright 2019-2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local TestCase = require "wLuaUnit.TestCase" --- -- Checks that the Server works as expected. -- -- @type TestServer -- local TestServer = TestCase:extend() --- -- The require path for the class that is tested by...
nilq/small-lua-stack
null