content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local Structure = {} local Noise = require(game.ServerStorage.Scripts.Noise) local VoxelMod = require(game.ServerStorage.Scripts.VoxelMod) local PlainTrees = game.ServerStorage.Configs.BiomeAttributes.Biomes.Default.Structures.Trees.Plain function Structure:MakeTree(pos, vmodList, minTrunkHeight, maxTrunkHeight) ...
nilq/small-lua-stack
null
ESX = nil PlayersHarvesting = {} PlayersHarvesting2 = {} PlayersHarvesting3 = {} PlayersCrafting = {} PlayersCrafting2 = {} PlayersCrafting3 = {} TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) if Config.MaxInService ~= -1 then TriggerEvent('esx_service:activateService', 'meca...
nilq/small-lua-stack
null
help([[CMake, the cross-platform, open-source build system. CMake is a family of tools designed to build, test and package software. - Homepage: http://www.cmake.org]]) whatis([[Description: CMake, the cross-platform, open-source build system. CMake is a family of tools designed to build, test and package software. ...
nilq/small-lua-stack
null
local _M = {} local function _StrIsEmpty(s) return s == nil or s == '' end local function _StringSplit(input_str, sep) if sep == nil then sep = "%s" end local t = {} for str in string.gmatch(input_str, "([^"..sep.."]+)") do table.insert(t, str) end return t end function _M.GetMedia() local mo...
nilq/small-lua-stack
null
--[[-------------------------------------------------------------------------- -- -- File: UACaptureMax.UILeaderboardItem.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: August 13, 2010 -- ---------------------...
nilq/small-lua-stack
null
require 'nn' require 'Dynamic' require 'MergeTable' require 'BranchTable' --[[ local batch_size = 6 local input_sizes = {3, 4, 5} local gru = nn.GridGRU(input_sizes) -- model local parameters = gru:getParameters() parameters:copy(torch.randn(parameters:size())) -- input local input = {} for i = 1, #input_sizes do ...
nilq/small-lua-stack
null
local demo = require"demos/xor" function love.load() demo.load() end function love.keypressed(key) if demo.keypressed then demo.keypressed(key) end end function love.update(dt) demo.update(dt) end function love.draw() demo.draw() end
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/ ]] Probabilistic = class({ _candidates = nil, _total = 0, ctor = function (self, ...) self._candidates = { } ...
nilq/small-lua-stack
null
return { name = 'Damavand Quarry', checkpoints = { LinearTransform(Vec3(-0.988949, 0.000000, -0.148253), Vec3(0.000000, 1.000000, 0.000000), Vec3(0.148253, 0.000000, -0.988949), Vec3(36.124023, 218.566208, 755.112305)), LinearTransform(Vec3(-0.424762, 0.113869, -0.898115), Vec3(0.082000, 0.99281...
nilq/small-lua-stack
null
local helpers = require "spec.lua.helpers" describe("tsmocha", function() before_each(function() helpers.before_each { run = false, runners = { typescript = "nvim-test.runners.ts-mocha" } } end) after_each(helpers.after_each) local filename = vim.fn.fnamemodify("spec/lua/test/fixtures/test.ts", ":p") i...
nilq/small-lua-stack
null
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** if isClient() then return end require "Map/SGlobalObjectSystem" ---@class SCampfireSystem : SGlobalObjectSystem SCampfireSystem = S...
nilq/small-lua-stack
null
-- -- Please see the readme.txt file included with this distribution for -- attribution and copyright information. -- local bIntact = true; local bShared = false; function buildMenu() resetMenuItems(); if not bIntact then registerMenuItem("Revert Changes", "shuffle", 8); end if bShared then registerMenu...
nilq/small-lua-stack
null
---@class RestClient RestClient = {} ---@class RestClientOptions RestClientOptions = { Headers = {} } ---@param url string ---@param options RestClientOptions ---@param cb fun(response: RestResponse): void function RestClient:Get(url, options, cb) PerformHttpRequest(url, function(err, data, headers) l...
nilq/small-lua-stack
null
local Content1 = {}; local Content2 = {}; local ISMISSION1 = false; local ISMISSION2 = false; local BBEAT = true; if not GAMESTATE:IsCourseMode() then local path=GAMESTATE:GetCurrentSong():GetSongDir(); if path then if FILEMAN:DoesFileExist(path.."MissionTag.lua") then LoadActor("../../../../"..path.."MissionT...
nilq/small-lua-stack
null
local process = {} ------------------------------------------------------------------------------- --Initialize coroutine library-- process.list = setmetatable({}, {__mode="k"}) function process.findProcess(co) co = co or coroutine.running() for main, p in pairs(process.list) do if main == co then retu...
nilq/small-lua-stack
null
Keys = {["E"] = 38, ["L"] = 182, ["G"] = 47} payAmount = 0 Basket = {} ESX = nil Citizen.CreateThread(function() while ESX == nil do Citizen.Wait(10) TriggerEvent("esx:getSharedObject", function(obj) ESX = obj end) end end) DrawText3D = function(x, y, z, ...
nilq/small-lua-stack
null
-- -- {{ cookiecutter.repo_name }}-{{ cookiecutter.version }} -- -- The MIT License (MIT) -- -- Copyright (c) {{ cookiecutter.year }}, {{ cookiecutter.full_name }} -- -- Permission is hereby granted, free of charge, to any person obtaining a copy of -- this software and associated documentation files (the "Software"), ...
nilq/small-lua-stack
null
local TEXTURE_RESOLUTION = "2K" local groundTextures = { "PBR/snow_white_tiles_02/" .. TEXTURE_RESOLUTION .. "/Albedo.png", "PBR/snow_white_tiles_02/" .. TEXTURE_RESOLUTION .. "/Normal.png", "PBR/Metallic_off.png", "PBR/snow_white_tiles_02/" .. TEXTURE_RESOLUTION .. "/Roughness2.png", "PBR/snow_whi...
nilq/small-lua-stack
null
-- 第一个为配置文件 默认路径是"/etc/config"+passwall -- m = Map("passwall", translate("PassWall Plus"), translate("On this page we can learn how the .lua work")) m = Map("passwall", translate("PassWall Plus")) -- 第二个为配置文件具体项 global -- s = m:section(TypedSection, "global", translate("Script Configuration")) m:section(SimpleSection)...
nilq/small-lua-stack
null
function getRequiredComponents() return {"position", "size", "speed", "speedForces", "jump"} end function updateEntities(entity) -- should only happen if the player dies if entity.position.y > 15000 then game.core:resetScene() end end
nilq/small-lua-stack
null
#!/usr/bin/lua require 'lexer' require 'parser' local src = '(1 2 . 3)' local lexed = lex(src) print('Tokens:') for _, token in pairs(lexed) do print(token) end local exprs = parse_expressions(lexed) if exprs == nil then print 'Error: could not parse input' else print '\nExpressions:' for _, e in ...
nilq/small-lua-stack
null
pending('tests require "busted" - cannot require', function() local describe = describe local context = context local insulate = insulate local expose = expose local it = it local pending = pending local spec = spec local test = test local setup = setup local teardown = teardown local before_each = before_ea...
nilq/small-lua-stack
null
workspace "baseless" configurations { "Debug", "Hybrid", "Release" } editAndContinue "Off" location ".build" platforms { "Win32", "Win64" } startproject "tests" targetdir "%{wks.location}/.bin/%{cfg.buildcfg} (%{cfg.architecture})/%{prj.name}" -- Special for actions filter "action:vs*" platforms { "Wi...
nilq/small-lua-stack
null
WINDOW_WIDTH = 600 WINDOW_HEIGHT = 800 VIRTUAL_WIDTH = 320 VIRTUAL_HEIGHT = 427 ball_speed = 255 push = require 'push' Class = require 'class' require 'Spike' require 'Ball' require 'Base' require 'Obstacle' local spike_sprite = love.graphics.newImage('spke.png') local background = love.graphics.new...
nilq/small-lua-stack
null
--input: keys: [], values: [ namespace, channel_id ] --output: channel_hash {ttl, time_last_seen, subscribers, messages} or nil -- finds and return the info hash of a channel, or nil of channel not found local ns = ARGV[1] local id = ARGV[2] local channel_key = ('%s{channel:%s}'):format(ns, id) local messages_key = ch...
nilq/small-lua-stack
null
workspace "Epoch" architecture "x64" startproject "Sandbox" configurations { "Debug", "Release", "Distribution" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}/%{cfg.system}/%{cfg.architecture}" IncludeDirs = {} IncludeDirs["spdlog"] = "Epoch/lib/spdlog/include" IncludeDirs["glm"] = "Epoch/lib...
nilq/small-lua-stack
null
redis.replicate_commands() local get_time = function () local time = redis.call('time') return tonumber(time[1]..string.sub(time[2], 1, 3)) end
nilq/small-lua-stack
null
local assign = import("../assign") local typeKey = import("../typeKey") local typeof = import("../functions/typeof") local Vector3 = {} setmetatable(Vector3, { __tostring = function() return "Vector3" end, }) local prototype = {} local metatable = {} metatable[typeKey] = "Vector3" function metatable:__index(ke...
nilq/small-lua-stack
null
return { summary = 'Create an identical copy of the Source.', description = [[ Creates a copy of the Source, referencing the same `Sound` object and inheriting all of the settings of this Source. However, it will be created in the stopped state and will be rewound to the beginning. ]], arguments = ...
nilq/small-lua-stack
null
-- LOCAL local main = require(game.Nanoblox) local Maid = main.modules.Maid local Signal = main.modules.Signal local Sender = {} Sender.__index = Sender -- CONSTRUCTOR function Sender.new(name) local self = {} setmetatable(self, Sender) local maid = Maid.new() self._maid = maid self.name = name self.addReque...
nilq/small-lua-stack
null
local MAX_BUNNIES = 100000 -- This is the maximum amount of elements (quads) per batch -- NOTE: This value is defined in [rlgl] module and can be changed there local MAX_BATCH_ELEMENTS = 8192 -- Create the Bunny class. local Bunny = {} Bunny.__index = Bunny function Bunny:new( pos, spd, col ) local bunny = {} setm...
nilq/small-lua-stack
null
-- add rules add_rules("mode.debug", "mode.release") -- define target target("cuda_console") -- set kind set_kind("binary") -- add include directories add_includedirs("inc") -- add files add_files("src/*.cu") -- generate SASS code for each SM architecture add_cugencodes("sm_30", "sm...
nilq/small-lua-stack
null
---------------------------- -- Bunny Hop -- -- Created by Skeyler.com -- ---------------------------- HOOKS["InitPostEntity"] = function() GAMEMODE:AddACArea(Vector(-4848, -242, -140),Vector(-4186, 437, 60)) GAMEMODE:AddACArea(Vector(-5194, -562, -51),Vector(-4851, -245, 149)) end
nilq/small-lua-stack
null
local uptime_metric_exists = function() return (metric_exists('pg.uptime') and metric_exists('pg.uptime.checkpointer')) end run_plugin_test(120, uptime_metric_exists)
nilq/small-lua-stack
null
-- (Doesn't matter the order you put it in) -- 1. Put AdminPanelGui in StarterGui -- 2. Put KickHandler script in ServerScriptService -- 3. Put KickPlayer in ReplicatedStorage -- 4. Open AdminPanelGui, then open UI, open the LocalScript in ToggleButton then replace UserHere with the users -- that you want -- An...
nilq/small-lua-stack
null
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' file 'v_int_40.ytyp' data_file 'DLC_ITYP_REQUEST' 'stream/v_int_40.ytyp' client_script "ipl.lua"
nilq/small-lua-stack
null
--this is run outside of the game to put speech files into a consistent order local file_in = arg[1] local file_out = arg[2] or file_in .. ".lua" local function alphatable(in_table, indent) indent = indent or 0 local indentstr = string.rep("\t",indent) local inner_indentstr = string.rep("\t",indent+1) local items...
nilq/small-lua-stack
null
-- just some lua for defining autocmds. -- It mimics https://github.com/neovim/neovim/pull/12076 so that when it is -- merged we can just lose this file. local M = { _CB = {} } function M.define_autocmd_group(group, opts) vim.cmd('augroup '..group) if opts.clear then vim.cmd('autocmd!') end vim.cmd('aug...
nilq/small-lua-stack
null
----------------------------------- -- -- Zone: Empyreal_Paradox -- ----------------------------------- local ID = require("scripts/zones/Empyreal_Paradox/IDs") require("scripts/globals/conquest") ----------------------------------- function onInitialize(zone) zone:registerRegion(1, 538, -2, -501, 542, 0, -497); ...
nilq/small-lua-stack
null
Citizen.CreateThread(function() while true do local sleepThread = 500 local ped = Heap.Ped local pedCoords = GetEntityCoords(ped) for _, landlordData in ipairs(LandLords) do local dstCheck = #(pedCoords - landlordData.Location.Position) ...
nilq/small-lua-stack
null
--[[ Audio Info Author: Native Instruments Written by: Yaron Eshkar Modified: June 4, 2021 --]] -- Imports local root_path = filesystem.parentPath(scriptPath) package.path = root_path .. "/?.lua;" .. package.path local ctAudio = require("Modules.CtAudio") local ctUtil = require("Modules.CtUtil") require("Modules.pa...
nilq/small-lua-stack
null
local tostring = tostring local export = { } local ownership = require 'talents.internals.reason.ownership' local transference = require 'talents.internals.reason.transference' local application = require 'talents.internals.reason.application' function export.reading (selector) local format = "This read ope...
nilq/small-lua-stack
null
local defaults_values = { config_home = vim.fn.stdpath('config') .. '/nlsp-settings', } local config = {} config.values = vim.deepcopy(defaults_values) config.set_default_values = function(opts) config.values = vim.tbl_deep_extend('force', defaults_values, opts or {}) end config.get = function(key) return con...
nilq/small-lua-stack
null
return function() local TopoRuntime = require(script.Parent.TopoRuntime) describe("TopoRuntime", function() it("should restore state", function() local function UseHook() local Storage = TopoRuntime.UseHookState() Storage.Counter = (Storage.Counter or 0) + 1 return Storage.Counter end local No...
nilq/small-lua-stack
null
-- Copyright (C) 2018 The Dota IMBA Development Team -- -- 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 ...
nilq/small-lua-stack
null
local masc_char = love.graphics.newImage 'assets/chars/masc_char.png' local fem_char = love.graphics.newImage 'assets/chars/fem_char.png' mascCharSprite = sodapop.newAnimatedSprite(16, 16) mascCharSprite:addAnimation('walkDown', { image = masc_char, frameWidth = 32, frameHeight = 32, onReachedEnd = f...
nilq/small-lua-stack
null
-- Copyright 2022 SmartThings -- -- 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 or agreed to in ...
nilq/small-lua-stack
null
---@class CS.UnityEngine.Display ---@field public displays Display[] ---@field public renderingWidth number ---@field public renderingHeight number ---@field public systemWidth number ---@field public systemHeight number ---@field public colorBuffer CS.UnityEngine.RenderBuffer ---@field public depthBuffer CS.UnityEngin...
nilq/small-lua-stack
null
note_on(0, C3, VELOCITY_DEFAULT) note_off(1, C3, VELOCITY_OFF) note_on(2, D3, VELOCITY_DEFAULT) note_off(3, D3, VELOCITY_OFF) note_on(4, C3, VELOCITY_DEFAULT) note_off(5, C3, VELOCITY_OFF) note_on(6, D3, VELOCITY_DEFAULT) note_off(7, D3, VELOCITY_OFF)
nilq/small-lua-stack
null
-- example dynamic request script which demonstrates changing -- the request path and a header for each request ------------------------------------------------------------- -- NOTE: each wrk thread has an independent Lua scripting -- context and thus there will be one counter per thread request = function() path ...
nilq/small-lua-stack
null
local uci = require("simple-uci").cursor() local f = Form('Taster') local s = f:section(Section, nil, "Hat der Router eine Wifi-Taste, so können dieser Taste unterschiedliche Funktionalitäten zugeordnet werden.") -- Sollen mehrere Taster konfiguriert werden, dann einfach folgendes Schemata vervielfaeltigen: local f...
nilq/small-lua-stack
null
function StabBlink:IsAffectedBySilence() return false end
nilq/small-lua-stack
null
local T, C, L = Tukui:unpack() ---------------------------------------------------------------- -- Tags ----------------------------------------------------------------
nilq/small-lua-stack
null
return { ["1.0.2"] = function() -- add `building` flag, remove other flags (no longer needed) for _, player_table in pairs(global.players) do player_table.flags.building = false player_table.flags.gui_open = nil player_table.flags.holding_item = nil end end }
nilq/small-lua-stack
null
local notify = require("blaz.helper.notify") -- NvimTreeOpen, NvimTreeClose, NvimTreeFocus, NvimTreeFindFileToggle, and NvimTreeResize are also available if you need them vim.keymap.set("n", "<C-n>", "<cmd>NvimTreeFindFileToggle<CR>", { remap = false }) vim.keymap.set("n", "<leader>r", "<cmd>NvimTreeRefresh<CR>", { re...
nilq/small-lua-stack
null
object_intangible_pet_som_tulrus = object_intangible_pet_som_shared_tulrus:new { } ObjectTemplates:addTemplate(object_intangible_pet_som_tulrus, "object/intangible/pet/som/tulrus.iff")
nilq/small-lua-stack
null
local AddonName, AddonTable = ... AddonTable.blacksmithing = { -- Recipe's }
nilq/small-lua-stack
null
#!/usr/bin/lua -- Cross check data file and log files -- 15 April 2005, Isaac Gouy -- Directory locations local logdir = './website/code/' local datadir = './website/data/' -- 1 get directory listing with log-files os.execute('cd '..logdir..'; ls *.log > ../../dir_list') local f = assert(io.open("dir_list","r")) ...
nilq/small-lua-stack
null
data:extend({ --Item { type = "item-with-entity-data", name = "5d-locomotive-reinforced", icon = "__5dim_trains__/graphics/diesel-locomotive3.png", flags = {"goes-to-quickbar"}, subgroup = "trains-locomotive", order = "c", place_result = "5d...
nilq/small-lua-stack
null
local actions = require('telescope.actions') require('telescope').setup{ defaults = { vimgrep_arguments = { "rg", "--color=never", "--no-heading", "--with-filename", "--line-number", "--column", "--smart-case", }, prompt_prefix = "  ...
nilq/small-lua-stack
null
--[[ Copyright 2017 KeNan Liu 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 or agreed to in writing, software distrib...
nilq/small-lua-stack
null
object_mobile_som_som_alien_parasite = object_mobile_som_shared_som_alien_parasite:new { } ObjectTemplates:addTemplate(object_mobile_som_som_alien_parasite, "object/mobile/som/som_alien_parasite.iff")
nilq/small-lua-stack
null
require "helm" -- Variables -{{{ local api = vim.api local fn = vim.fn -- }}} -- Describe a function -{{{ function helm_describe_function() helm_start({ prompt = 'Describe function:', on_enter = function(f) vim.cmd('help ' .. f) end, items = table.map(fn.getcompletion('', 'function'), func...
nilq/small-lua-stack
null
local _, L = ... local Inspector = ImmersionFrame.Inspector -- Synthetic OnLoad do local self = Inspector -- add tables for column frames, used when drawing qItems as tooltips self.Choices.Columns = {} self.Extras.Columns = {} self.Active = {} self.parent = self:GetParent() self.ignoreRegions = true self:Enabl...
nilq/small-lua-stack
null
sven_gods_strength_lua = class({}) LinkLuaModifier( "modifier_sven_gods_strength_lua", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( "modifier_sven_gods_strength_child_lua", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- function sven_gods_strength_lua:OnSpel...
nilq/small-lua-stack
null
local lib local platform = system.getInfo("platform") if platform == 'html5' then lib = require "plugin_bit_js" else local Library = require "CoronaLibrary" -- Create stub library for simulator lib = Library:new{ name='plugin.bit', publisherId='com.coronalabs' } -- Default implementations local functio...
nilq/small-lua-stack
null
-- -*- coding: utf-8 -*- local upload = require "resty.upload" local _M = {} local utils = require('utils') local cookie = require "cookie" local ACCESS_ON = 1 local _pcre_flags = 'ioj' local _truncated = 1 local function _parse_uri_args() local args, err = ngx.req.get_uri_args() if err == "truncated" then ...
nilq/small-lua-stack
null
local Pipeline = require("refactoring.pipeline") local format = require("refactoring.pipeline.format") -- local save = require("refactoring.pipeline.save") local apply_text_edits = require("refactoring.pipeline.apply_text_edits") local M = {} -- TODO: How to save/reformat??? no idea function M.create_post_refactor_ta...
nilq/small-lua-stack
null
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2009-2015 -- ============================================================= -- One Stick + One Touch - One Touch Pad + Virtual Joystick -- ============================================================= -- Licens...
nilq/small-lua-stack
null
local awful = require("awful") awful.util.menus = {} awful.util.menus.exit = require("menus.exit")()
nilq/small-lua-stack
null
kash_feral_wookiees = Lair:new { mobiles = {{"ep3_rryatt_feral_wookiee_01",2},{"ep3_rryatt_feral_wookiee_02",2},{"ep3_rryatt_feral_wookiee_03",2},{"ep3_rryatt_feral_wookiee_04",2}}, spawnLimit = 15, buildingsVeryEasy = {}, buildingsEasy = {}, buildingsMedium = {}, buildingsHard = {}, buildingsVeryHard = {}, mob...
nilq/small-lua-stack
null
-- copy or symlink this into your wireshark plugins directory, e.g. -- ~/.config/wireshark/plugins/ -- the dissector registers heuristics (no fixed ports assigned), and -- should work out of the box local function register_dnsxfr() local udp_table = DissectorTable.get("udp.port") local udp_dns_dissector = udp_table...
nilq/small-lua-stack
null
local SoundMng = {} --local audio = require('cocos.framework.audio') local bgmVol = 0.6 local sfxVol = 0.6 local bgmId = nil function SoundMng.load() local app = require("app.App"):instance() local vol = app.localSettings:get('bgmVol') if not vol then vol = 0.6 end bgmVol = vol --audio.setMusicVolume...
nilq/small-lua-stack
null
-- TÖVE Demo: renderers. -- (C) 2018 Bernhard Liebl, MIT license. local tove = require "tove" require "assets/tovedemo" local flow local g = {} local wobble = {} local t = 0 local function load(svg) -- makes a new graphics, prescaled to 200 px local function newGraphics() return tove.newGraphics(svg, 200) end ...
nilq/small-lua-stack
null
-- Vlasov-Poisson solver in Poisson-Bracket formulation ---------------------------------- -- Problem dependent parameters -- ---------------------------------- log = Lucee.logInfo polyOrder = 1 -- polynomial order knumber = 0.5 -- wave-number elcCharge = -1.0 -- signed electron charge elcMass = 1.0 -- electron mass...
nilq/small-lua-stack
null
-- User Object -- Inherits: ? -- function API.User(source, id, ipAddress) local self = {} self.source = source self.id = id self.ipAddress = ipAddress or "0.0.0.0" self.posseId = nil -- @return The source or player server id self.getSource = function() return self.source end ...
nilq/small-lua-stack
null
-- -- rima.lua -- -- -- Task manager for imap collector. -- Task's key is a user email address. -- Rima can manage some tasks with the same key. -- Tasks with identical keys will be groupped and managed as one bunch of tasks. -- -- Producers can adds tasks by rima_put() calls. -- Consumer request a bunch of tasks (wit...
nilq/small-lua-stack
null
local path = require("lapis.cmd.path") local shell_escape shell_escape = path.shell_escape local NginxRunner do local _class_0 local _base_0 = { ConfigCompiler = require("lapis.cmd.nginx.config").ConfigCompiler, AttachedServer = require("lapis.cmd.nginx.attached_server").AttachedServer, config_path = "n...
nilq/small-lua-stack
null
-- tree.lua, Lua representation of trees with edge lengths -- Copyright (C) 2015 Boris Nagaev -- See the LICENSE file for terms of use. -- init is start node. It is the first yielded value -- newNeighbours(node1) returns iterator, returning -- pairs (node2, edge), so that node2 is not repeated -- (including node1)...
nilq/small-lua-stack
null
--------------------------------- --! @file LogstreamFile.lua --! @brief ファイル出力ロガーストリーム定義 --------------------------------- --[[ Copyright (c) 2017 Nobuhiko Miyamoto ]] local LogstreamBase = require "openrtm.LogstreamBase" local LogstreamFactory = LogstreamBase.LogstreamFactory local Factory = require "openrtm.Factor...
nilq/small-lua-stack
null
if game.Players.Humaniod.Walkspeed ==16 then wait() game.Players.FindFirstChild(..Player.Name..):Kick("Unusual Player Behavior Detected. Applied ban for 1220 minutes") end
nilq/small-lua-stack
null
local cmd = vim.cmd cmd [[ set runtimepath^=~/.config/nvim/plugged/ctrlp.vim/plugin/ctrlp.vim let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/](doc|tmp|node_modules|.idea|dist|coverage)', \ 'file': '\v\.(exe|so|dll|DS_Store)$', \ } let g:ctrlp_hidden = 1 ]]
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. -- -- As per the sublicensing clause, this file is also MIT/X11 Licensed. -- ** Copyright (c) 2008-...
nilq/small-lua-stack
null
padawan_pannaqa_03_conv_handler = conv_handler:new {} function padawan_pannaqa_03_conv_handler:getInitialScreen(pPlayer, pNpc, pConvTemplate) local convoTemplate = LuaConversationTemplate(pConvTemplate) local trialOwnerID = readData(SceneObject(pNpc):getObjectID() .. ":ownerID") local playerID = SceneObject(pPlaye...
nilq/small-lua-stack
null
COMMAND.Description = "Open a VGUI menu for Pyrition." COMMAND.Realm = PYRITION_CLIENT --command functions function COMMAND:Execute(ply, arguments, arguments_string) local menu_panel = vgui.Create("PyritionMenu") menu_panel:SetSize(640, 480) menu_panel:Center() menu_panel:MakePopup() end function COMMAND:Init...
nilq/small-lua-stack
null
-- -- Packages -- package.path = "./scripts/?.lua;" .. package.path -- -- SDK -- local SDK SDK = require("keepfollowing/sdk/sdk/sdk") SDK.SetIsSilent(true).Load( { modname = "mod-keep-following", AddPrefabPostInit = function() end, }, "keepfollowing/sdk", { "Config", ...
nilq/small-lua-stack
null
-- Enable automatic workshop downloading for this addon. If set to false, this will resource.AddFile the files for this addon automatically. Set this to false only if you have a FastDL setup. AutoBodyNPC.Config.UseWorkshop = true -- Name of the auto body shop. AutoBodyNPC.Config.Name = "BRYAN'S MOTORWORKS" -- Model...
nilq/small-lua-stack
null
local f = string.format My.Translator:register("en", { graveyard_ship_description = function(shipCallSign) return Util.random({ "This ship has been put out of service years ago.", f("A clunker that formerly had the name %s.", shipCallSign), f("The name %s is still partl...
nilq/small-lua-stack
null
local addonName, addon, _ = ... local factions = addon:NewModule('Factions', 'AceEvent-3.0') -- GLOBALS: _G, LibStub, DataStore -- GLOBALS: GetNumFactions, GetFactionInfo, GetFactionInfoByID, GetFriendshipReputation, ExpandFactionHeader, CollapseFactionHeader -- GLOBALS: wipe, select, strsplit, pairs, hooksecurefunc, ...
nilq/small-lua-stack
null
local spy = require "luassert.spy" local match = require "luassert.match" local lsp_installer = require "nvim-lsp-installer" local server = require "nvim-lsp-installer.server" local a = require "nvim-lsp-installer.core.async" local std = require "nvim-lsp-installer.installers.std" local fs = require "nvim-lsp-installer...
nilq/small-lua-stack
null
--- Changes timeouts at runtime. local ahsm = require 'ahsm' local fsm -- forward declaration local s1 = ahsm.state { _name="s1", entry = function() print('S1', ahsm.get_time()) end } local s2 = ahsm.state { _name="s2", entry = function() print('S2', ahsm.get_time()) end } local t12 = ahsm.transition { src = s1, ...
nilq/small-lua-stack
null
-- gm.lua -- Implements gamemode and gm commands and console commands -- Used to translate gamemodes into strings local GameModeNameTable = { [gmSurvival] = "survival", [gmCreative] = "creative", [gmAdventure] = "adventure", [gmSpectator] = "spectator", } -- Translate strings to their representative gamemode...
nilq/small-lua-stack
null
--[[ Copyright (c) 2021-2022 Jason Morley, Tom Sutcliffe 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, ...
nilq/small-lua-stack
null
--[[ The MIT License (MIT) Copyright (c) 2014 Socialz (+ soc-i-alz GitHub organization) 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 ...
nilq/small-lua-stack
null
-- ====================================================================== -- Copyright (c) 2012 RapidFire Studio Limited -- Modified By Mingfei Liang 2019 -- All Rights Reserved. -- http://www.rapidfirestudio.com -- Permission is hereby granted, free of charge, to any person obtaining -- a copy of this software and ...
nilq/small-lua-stack
null
-- -- Copyright 2013 John Pormann -- -- 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 or...
nilq/small-lua-stack
null
if mods["boblogistics"] then --robotics if data.raw["technology"]["construction-robotics"] then data.raw["technology"]["construction-robotics"].icon = "__morebobs__/graphics/moreshiny/technologies/construction-robotics.png" data.raw["technology"]["construction-robotics"].icon_size = 128 end if data.raw["technol...
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
if mods["bobassembly"] and mods["bobplates"] and settings.startup["bobmods-assembly-electrolysers"].value == true then table.insert(data.raw.technology["logistic-machines-1"].effects, { type = "unlock-recipe", recipe = "logistic-electrolyser-2" }) table.insert(data.raw.technology["logistic-machines-2"].effects,...
nilq/small-lua-stack
null
--- === plugins.finder.preferences.panel === --- --- General Preferences Panel local require = require local image = require("hs.image") local i18n = require("cp.i18n") local tools = require("cp.tools") local iconFallback = tools.iconFallback local imageFromPath = image.imageFromPath loc...
nilq/small-lua-stack
null