content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
require "user.conf.notify" require "user.conf.nvim-tree" require "user.conf.cmp" require "user.conf.telescope" require "user.conf.treesitter" require "user.conf.autopairs" require "user.conf.comment" require "user.conf.gitsigns" require "user.conf.vgit" require "user.conf.bufferline" require "user.conf.lualine" require...
nilq/small-lua-stack
null
-- references: -- 1. Linguist: https://github.com/github/linguist -- 2. coc-explorer: https://github.com/weirongxu/coc-explorer/blob/59bd41f8fffdc871fbd77ac443548426bd31d2c3/src/icons.nerdfont.json#L2 -- 3. chad-tree: https://github.com/ms-jpq/chadtree/blob/f9f333c062/artifacts/icons.json -- jquery = { -- icon = "๎",...
nilq/small-lua-stack
null
sptbl["waveset"] = { files = { module = "waveset.c", header = "waveset.h", example = "ex_waveset.c", }, func = { create = "sp_waveset_create", destroy = "sp_waveset_destroy", init = "sp_waveset_init", compute = "sp_waveset_compute", }, param...
nilq/small-lua-stack
null
require "lib/ext" --TODO local configuration = require("configuration") if not configuration.disable_rest_api then require "lib/rest" end
nilq/small-lua-stack
null
-- require "luasocket"
nilq/small-lua-stack
null
--[[ [guid]={pos,level, {[statid, statrate]*6}} ]] return { [212992]={3,50,511166,100000}, [212993]={2,50,511186,100000}, [212994]={3,50,511266,100000}, [212995]={2,50,511586,100000}, [212996]={5,50,510846,100000}, [212997]={2,50,510926,100000}, [212998]={3,50,511026,100000}, [212999]={3,50,511746,100000...
nilq/small-lua-stack
null
StateMachine = Class{} function StateMachine:init(states) self.empty = { render = function() end, update = function() end, processAI = function() end, enter = function() end, exit = function() end } self.states = states or {} -- [name] -> [function that returns states] self.current = self.empt...
nilq/small-lua-stack
null
local awful = require("awful") local beautiful = require("beautiful") local gears = require("gears") local hotkeys_popup = require("awful.hotkeys_popup") local naughty = require("naughty") -- Default modkey. -- Usually, Mod4 is the key with a logo between Control and Alt. -- If you do not like this or do not have such...
nilq/small-lua-stack
null
--mediafire script:ClearAllChildren() Player = Game:GetService("Players").LocalPlayer Character = Player.Character function FindNearestTorso(Position) Distance = math.huge People = Workspace:GetChildren() for Child = 1, #People do if People[Child]:FindFirstChild("Zombie") == nil then Template2 = People[Child] if ( ...
nilq/small-lua-stack
null
net.Receive("DJSet:AddToQueue", function(_, ply) if XYZShit.CoolDown.Check("DJSet:AddToQueue", 5, ply) then return end local set = net.ReadEntity() if set:Getowning_ent() ~= ply then return end if set:GetClass() ~= "xyz_dj_set" then return end local url = net.ReadString() HTTP({ ['method'] = 'post', ['url'...
nilq/small-lua-stack
null
load("nixpkgs/16.09") load("imkl/11.3.4.258") load("intel/2016.4")
nilq/small-lua-stack
null
local utils = require("utils") local configs = require("configs") local persistence = require("persistence") local pluginLoader = require("plugin_loader") local modHandler = require("mods") local toolUtils = require("tool_utils") local logging = require("logging") local toolHandler = {} toolHandler.tools = {} toolHan...
nilq/small-lua-stack
null
-- Copyright (C) YuanSheng Wang (membphis), 360 Inc. local lock = require "resty.lock" local _M = { _VERSION = '0.01', } local running = true local mt = { __index = _M } function _M.new(opts) opts = opts or {} local unit_name = opts.unit_name local write_log = (nil == opts.write_log) and true or opt...
nilq/small-lua-stack
null
TellMeWhenDB = { ["profileKeys"] = { ["ๆƒ…ไผค้šพๆ„ˆไธถ - ๅ‡คๅ‡ฐไน‹็ฅž"] = "ๆƒ…ไผค้šพๆ„ˆไธถ - ๅ‡คๅ‡ฐไน‹็ฅž", }, ["global"] = { ["TextLayouts"] = { ["icon1"] = { { }, -- [1] { }, -- [2] }, ["bar2"] = { { }, -- [1] { }, -- [2] }, }, }, ["Version"] = 85702, ["profiles"] = { ["ๆƒ…ไผค้šพๆ„ˆไธถ - ๅ‡คๅ‡ฐไน‹็ฅž"] = { ["...
nilq/small-lua-stack
null
-- test ai oo.class("Brain_test","Brain") function Brain_test:__init(owner, name) Brain.__init(self, owner, name) end -- ๆญปไบกไน‹ๅŽ๏ผŒๆธ…้™คๅฌๅ”ค็š„ๅฐๆ€ช function Brain_test:onStop() --print("ๅœๆญขai") end function Brain_test:onStart() local pz = 0 local owner = self:getOwner() local x,y = owner:getCell() local root = PriorityNode:n...
nilq/small-lua-stack
null
return function(Sunshine, entity) local collisionSpawner = entity.collisionSpawner local collider = entity.collider local spawner = entity.spawner if collisionSpawner and collider and spawner then Sunshine:update(function() if collider.hitEntity and collider.hitEntity.character and c...
nilq/small-lua-stack
null
--[[------------ Q U A K E II Heads Up Display Armor indicator ]]-------------- if CLIENT then local lastAP = 0; local time = 0; local anim = false; local size = 73; local function ArmorPanel() if LocalPlayer():Armor() <= 0 then return end; local ap = LocalPlayer():Armor(); local scale = Q2HUD....
nilq/small-lua-stack
null
๏ปฟlocal L = LibStub("AceLocale-3.0"):NewLocale("GatherLite", "krKR") if not L then return end L["tracking"] = "์ถ”์ " L["mining"] = "์ฑ„๊ด‘" L["herbalism"] = "์•ฝ์ดˆ" L["fish"] = "๋‚š์‹œ" L["containers"] = "์ƒ์ž" L["worldmap.show"] = "GatherLite ํ‘œ์‹œ" L["worldmap.hide"] = "GatherLite ์ˆจ๊ธฐ๊ธฐ" -- ์ฑ„๊ด‘mining L['node.copper_vein'] = "๊ตฌ๋ฆฌ ๊ด‘๋งฅ"...
nilq/small-lua-stack
null
player_ai = nil GlobalTargetID = nil playersetupcomplete = false function OnAIGoingFirstSecond(name) local result = 1 player_ai = 0 if name=="AI_Harpie" or name=="AI_Blackwing" or name=="AI_Shaddoll" --or name=="AI_Kozmo" or name=="AI_Lightsworn" or name=="AI_GladiatorBeast" or name=="AI_Fluffal" th...
nilq/small-lua-stack
null
local skynet = require "skynet" local const = require "logger_const" require "skynet.manager" local command = {} local logfile = nil local openTime = nil local logNameTag = nil local logFilePath = nil local logLevel = const.log_level.debug local defaultLogFileSize = 1024*1024*1024 local maxLogFileSize = tonumber(skyne...
nilq/small-lua-stack
null
local awful = require("awful") local gears = require("gears") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local helpers = require("helpers") local pad = helpers.pad -- Text ...
nilq/small-lua-stack
null
function get() -- Block access for anyone who is not admin if not session:isLogged() or not session:isAdmin() then http:redirect("/") return end local data, edit = {}, tonumber(http.getValues.id) if edit ~= nil then data = db:singleQuery("SELECT id, title, text FROM castro_articles WHERE id = ?", e...
nilq/small-lua-stack
null
local ghosts = {} function onClientEnterTurf(turfID) -- exports.UCDdx:add("turf_indicator") end addEvent("onClientEnterTurf", true) addEventHandler("onClientEnterTurf", root, onClientEnterTurf) function onClientTurf(infoTable) if (_infoTable) then for k, v in ipairs(_infoTable) do exports.UCDdx:del("turf_indi...
nilq/small-lua-stack
null
local analysis = {} -- Returns strips of pixels in the given row that fulfill the given condition. -- The condition should be a function image_data, x, y, first_x -> boolean -- first_x is the x-coordinate of the first pixel in the current strip that -- fulfilled the condition, or nil. -- The return value is a table wh...
nilq/small-lua-stack
null
local DEFAULT_BANDWIDTH = 100 * 10^3 local LATENT_BANDWIDTH = 50 * 10^3 addEvent("gra.cSync.request", true) addEvent("gra.cSync.gui", true) local activeClients = {} local keyPermissions = {} local keyResponders = {} local keyOptions = {} cSync = {} function cSync.register(key, permission, options) check("s,?s,?t"...
nilq/small-lua-stack
null
--[[ FiveM Scripts Copyright C 2018 Sighmir This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or at your option any later version. ...
nilq/small-lua-stack
null
#!/usr/bin/env lua --[[ http://echo.lab.madgex.com is an OAuth Test Server --]] local Spore = require 'Spore' local keys = { oauth_consumer_key = 'key', oauth_consumer_secret = 'secret', } local client = Spore.new_from_string [[ { "base_url" : "http://echo.lab.madgex.com", "...
nilq/small-lua-stack
null
return { settings = { outDir = "retroplug/luawrapper/generated", }, modules = { audio = { path = "retroplug/scripts/audio" }, common = { path = "retroplug/scripts/common" }, ui = { path = "retroplug/scripts/ui" }, config = { path = "config/0.3", compile = false } } }
nilq/small-lua-stack
null
๏ปฟ--[[ Copyright 2019 Manticore Games, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
nilq/small-lua-stack
null
local p = require('lib/utils').prettyPrint local uv = require('luv') local child, pid child, pid = uv.spawn("sleep", { args = {"100"} }, function (code, signal) p("EXIT", {code=code,signal=signal}) uv.close(child) end) p{child=child, pid=pid} -- uv.kill(pid, "SIGTERM") uv.process_kill(child, "SIGTERM") repe...
nilq/small-lua-stack
null
--[[ Name: init.lua For: SantosRP By: TalosLife ]]-- AddCSLuaFile "cl_init.lua" AddCSLuaFile "shared.lua" include "shared.lua" function ENT:Initialize() self:SetModel( "models/props_equipment/gas_pump_p16.mdl" ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYS...
nilq/small-lua-stack
null
local config = {} function config.compe() vim.o.completeopt = "menuone,noselect" require"compe".setup { enabled = true, autocomplete = true, debug = false, min_length = 1, preselect = "enable", throttle_time = 80, source_timeout = 200, incomplete_...
nilq/small-lua-stack
null
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' dependency "vrp" server_script { "@vrp/lib/utils.lua", "server.lua" } client_script { "@vrp/lib/utils.lua", "init.lua" } files { "client.lua", "c-cops-abilities.lua", "c-cops-dispatch.lua" }
nilq/small-lua-stack
null
DEFINE_BASECLASS("ma2_proj_ppc_lvl1") AddCSLuaFile() ENT.Base = "ma2_proj_ppc_plasma_lvl1" ENT.Damage = 454 ENT.BlastRadius = 400 ENT.ParticleAttach = "gm_MA2_Plasma_PPC_lvl2" ENT.FireSound = Sound("MA2_Weapon.PlasmaPPC2") PrecacheParticleSystem("gm_MA2_Plasma_PPC_lvl2")
nilq/small-lua-stack
null
-- ************************************************* -- *****S C E N E I N I T I A L I S A T I O N***** -- ************************************************* -- Skybox skybox = CreateActorFromModel("Skybox", "Resources/Skybox/Skybox.obj") skybox:GetTransform():SetScale(vec3(30000.0, 30000.0, -30000.0)) skybox:GetTran...
nilq/small-lua-stack
null
object_tangible_loot_npc_loot_artifact_generic = object_tangible_loot_npc_loot_shared_artifact_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_artifact_generic, "object/tangible/loot/npc/loot/artifact_generic.iff")
nilq/small-lua-stack
null
-- ChunkGenerated function OnChunkGenerated(World, ChunkX, ChunkZ, ChunkDesc) return ObfuscateChunk(World, ChunkX, ChunkZ, ChunkDesc) end -- PlayerBreakingBlock function OnPlayerBreakingBlock(Player, BlockX, BlockY, BlockZ, BlockFace, BlockType, BlockMeta) Deobfuscate(Player, BlockX, BlockY, BlockZ, BlockFa...
nilq/small-lua-stack
null
local M = { __prefix = 'name', __parse_methods = {'name', 'name_with_middle'}, __fetched_methods = {'last_name', 'first_name', 'prefix', 'suffix'} } M.title = function(self) return self:fetch('name.title.descriptor') .. ' ' .. self:fetch('name.title.level') .. ' ' .. self:fetch('name.title.job') end ...
nilq/small-lua-stack
null
return { id = "tentacles", name = "Mr. Tentacles", description = "Lots of arms!", type = "hat", rarity = 2, hidden = false, }
nilq/small-lua-stack
null
return { id = 22, furnitures_1 = { { id = 22001, parent = 0, y = 0, dir = 1, x = 0, child = {} }, { id = 22106, parent = 0, y = 21, dir = 1, x = 21, child = {} }, { id = 22002, parent = 0, y = 0, dir = 1, x = 0, child = {} }, { id = 22304, pare...
nilq/small-lua-stack
null
object_tangible_quest_speeder_junk_barc_chassis = object_tangible_quest_shared_speeder_junk_barc_chassis:new { } ObjectTemplates:addTemplate(object_tangible_quest_speeder_junk_barc_chassis, "object/tangible/quest/speeder_junk_barc_chassis.iff")
nilq/small-lua-stack
null
--ๆ•ฐๆฎไธŠๆŠฅๆŽฅๅฃ require("gameData/dataInterfaceBase"); require("ubReport/ubReport"); require("isolater/interface/gameInfoIsolater"); ReportIsolater = class(DataInterfaceBase); --่Žทๅ–ๅฎžไพ‹ ReportIsolater.getInstance = function() if not ReportIsolater.s_instance then ReportIsolater.s_instance = new(ReportIsolater); ...
nilq/small-lua-stack
null
--- ๆจกๅ—ๅŠŸ่ƒฝ๏ผšๅฎŒๅ–„luat็š„cๅบ“ๆŽฅๅฃ -- @module clib -- @author openLuat -- @license MIT -- @copyright openLuat -- @release 2017.9.20 local uartReceiveCallbacks = {} local uartSentCallbacks = {} --- ๆณจๅ†Œไธฒๅฃไบ‹ไปถ็š„ๅค„็†ๅ‡ฝๆ•ฐ -- @number id ไธฒๅฃID: 1่กจ็คบไธฒๅฃ1๏ผŒ2่กจ็คบไธฒๅฃ2๏ผŒuart.ATC่กจ็คบ่™šๆ‹ŸATๅฃ -- @string event ไธฒๅฃไบ‹ไปถ: -- "recieve"่กจ็คบไธฒๅฃๆ”ถๅˆฐๆ•ฐๆฎ๏ผŒๆณจๆ„๏ผšไฝฟ็”จuart.setup้…็ฝฎไธฒๅฃๆ—ถ๏ผŒ็ฌฌ6ไธชๅ‚ๆ•ฐ่ฎพ็ฝฎไธบn...
nilq/small-lua-stack
null
-- httpserver-connection -- Part of nodemcu-httpserver, provides a buffered connection object that can handle multiple -- consecutive send() calls, and buffers small payloads to send once they get big. -- For this to work, it must be used from a coroutine and owner is responsible for the final -- flush() and for cl...
nilq/small-lua-stack
null
require("Framework.event.Event") local emptyCaller = {} ---@class Framework.event.EventDispatcher ---@field private nameMap EventDispatcher = class("Framework.event.EventDispatcher") function EventDispatcher:ctor() self:reset() end ---DispatchEvent ---@param evt Framework.event.Event function EventDispatcher:...
nilq/small-lua-stack
null
SWEP.PrintName = "WESTAR-M5" SWEP.Author = "TFA, Servius" SWEP.ViewModelFOV = 56 SWEP.Slot = 2 SWEP.HoldType = "ar2" SWEP.Base = "tfa_3dscoped_base" SWEP.Instructions = "This gun is called 'WESTAR M5' not WEST-AR-M5. This is for the idiots that have been saying its the latter of the two." --I...
nilq/small-lua-stack
null
test_run = require('test_run').new() REPLICASET_1 = { 'storage_1_a', 'storage_1_b' } REPLICASET_2 = { 'storage_2_a', 'storage_2_b' } test_run:create_cluster(REPLICASET_1, 'misc') test_run:create_cluster(REPLICASET_2, 'misc') util = require('util') test_run:wait_fullmesh(REPLICASET_1) test_run:wait_fullmesh(REPLICASET_2...
nilq/small-lua-stack
null
return function() local returnArgs = require(script.Parent) it("should provide proper values", function() expect(function() local a, b, c = returnArgs(1, 2, 3)() assert(a == 1 and b == 2 and c == 3) end).never.throw() end) end
nilq/small-lua-stack
null
--[[ ################################################################################ # # Copyright (c) 2014-2020 Ultraschall (http://ultraschall.fm) # # 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 ...
nilq/small-lua-stack
null
for i = 1,100 do output = "" if i % 3 == 0 then output = output .. "Fizz" end if i % 5 == 0 then output = output .. "Buzz" end if output == "" then print(i) else print(output) end end
nilq/small-lua-stack
null
--[[ |WARNING| THESE TESTS RUN IN YOUR REAL ENVIRONMENT. |WARNING| If your tests alter a DataStore, it will actually alter your DataStore. This is useful in allowing your tests to move Parts around in the workspace or something, but with great power comes great responsibility. Don't mess up your stuff! ------------...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' 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
--[[ Description: Contains bytecode/loadstring-related functionality Author: Sceleratis Date: 12/11/2021 --]] local Root, Package, Utilities, Service --- Bytecode-related functionality. --- @class Client.Bytecode --- @tag Core --- @tag Package: System.Core --- @client local Bytecode = {} local RemoteCommands =...
nilq/small-lua-stack
null
require('libraries/timers') local GLOBAL_origin = nil local ABILITY_dupe_heroes = nil local function IllusionsCast() if ABILITY_dupe_heroes:IsFullyCastable() then ExecuteOrderFromTable({ UnitIndex = thisEntity:entindex(), OrderType = DOTA_UNIT_ORDER_CAST_NO_TARGET, AbilityIndex = ABILITY_dupe_...
nilq/small-lua-stack
null
-- ========================== -- BUBBLY.NVIM SIGNIFY BUBBLE -- ========================== -- Created by: datwaft [github.com/datwaft] local bubble_factory = require'bubbly.factories.bubble' return function(inactive) if inactive then return '' end if vim.fn.exists('*sy#repo#get_stats') == 0 then return '' end ...
nilq/small-lua-stack
null
return { check = function (data) return (LuaEnvName ~= "private" and data.msg:gsub("%[CQ:.-%]",""):len() > 1 and (data.msg:find("%[CQ:at,qq="..CQApi:GetLoginQQId().."%]") or randNum() > 0.9)) or data.msg == "ๆŠ•้ฃŸ" end, run = function (data,sendMessage) if data.msg == "ๆŠ•้ฃŸ" then ...
nilq/small-lua-stack
null
--[[ Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the license found in the LICENSE-examples file in the root directory of this source tree. --]] require('nn') require('paths') local tnt = require('torchnet') -- use GPU or not: local cmd = torch.CmdLine() cmd:...
nilq/small-lua-stack
null
--"Imports" (ik they are variables) local component = require ("component") local sides = require("sides") local event = require("event") local term = require("term") local gpu = component.gpu local myColors = require("myColors") -- local rectangle = require("rectangle") local button = require("buttonAPI") -- for k...
nilq/small-lua-stack
null
--[[--------------------------------------------------------- Media Player History -----------------------------------------------------------]] MediaPlayer.History = {} --- -- Default metadata table name -- @type String -- local TableName = "mediaplayer_history" --- -- SQLite table struct -- @type String -- local ...
nilq/small-lua-stack
null
local shader = nil local time function love.load() time = 0 print("before shader") shader = love.graphics.newShader[[ extern number time; vec4 effect( vec4 color, Image texture, vec2 texture_coords, vec2 screen_coords ){ return vec4(abs(sin(time)),abs(cos(time)),abs(tan(time)),1.0); } ]] print("finished sett...
nilq/small-lua-stack
null
-- car = nil -- function aaa(thePlayer, seat, jacked) -- if (getElementType(thePlayer) ~= "player") then -- return -- end -- -- asdf = getModelHandling(476) -- -- for k,g in pairs(asdf) do -- -- setVehicleHandling(source, k, g) -- -- end -- local sir = createPed(120,0,0,0) -- if (car) then -- destroyEleme...
nilq/small-lua-stack
null
ModifyEvent(-2, -2, -2, -2, -1, -1, -1, 2608, 2608, 2608, -2, -2, -2); AddItem(174, 200); AddItem(171, 10); AddItem(1, 4); AddItem(3, 1); AddItem(11, 3); AddItem(22, 2); AddItem(186, 2); AddItem(102, 5); AddEthics(-2); do return end;
nilq/small-lua-stack
null
-- Copyright (c) 2021 Kirazy -- Part of Artisanal Reskins: Bob's Mods -- -- See LICENSE in the project directory for license information. -- Check to see if reskinning needs to be done. if not (reskins.bobs and reskins.bobs.triggers.logistics.entities) then return end -- Set input parameters local inputs = { type...
nilq/small-lua-stack
null
return function(config) local eslint_d = { lintCommand = "eslint_d -f unix --stdin --stdin-filename ${INPUT}", lintStdin = true, lintFormats = {"%f:%l:%c: %m"}, lintIgnoreExitCode = true, formatCommand = "eslint_d --fix-to-stdout --stdin --stdin-filename=${INPUT}", fo...
nilq/small-lua-stack
null
-- CONFIGURATION VARIABLES FOR YOU TO EDIT local teamLock = true -- True locks the launcher to the teams listed below, false allows everyone to use it local teams = {"Staff", "Military Forces", "Government", "Criminals", "Bloods", "SWAT Team"} -- These are the teams that will be allowed to use the grenade launcher if y...
nilq/small-lua-stack
null
TaanabStarhunterStationScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "TaanabStarhunterStationScreenPlay" } registerScreenPlay("TaanabStarhunterStationScreenPlay", true) function TaanabStarhunterStationScreenPlay:start() if (isZoneEnabled("taanab")) then self:spawnMobiles() self:spawnSceneOb...
nilq/small-lua-stack
null
workspace "HelloWorld" do startproject("Main") -- ใƒ“ใƒซใƒ‰ใ‚ณใƒณใƒ•ใ‚ฃใ‚ฐใƒฌใƒผใ‚ทใƒงใƒณใฎๆง‹ๆˆ configurations{ "Debug", "Release" } -- ใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐ่จ€่ชž language "C++" cppdialect "Default" -- ใƒžใ‚ฏใƒญ filter "configurations:*Debug" defines{ "DEBUG" } -- ใ‚ณใƒผใƒ‰ใฎๆœ€้ฉๅŒ– filter "configurations:*Debug" optimize "Debug" filter "configurations:*Release"...
nilq/small-lua-stack
null
--[[ ยฉ CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] local Clockwork = Clockwork; local tonumber = tonumber; local tostring = tostring;...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: Noneatme -- Date: 05.02.2015 -- Time: 13:38 -- To change this template use File | Settings | File Templates. -- cEinstellungsGUI = {}; --[[ ]] -- /////////////////////////////// -- ///// New ////// -- ///// Returns: Object ////// -- /////////////////////////////// funct...
nilq/small-lua-stack
null
-- Ensure that ujit.table.toset works correctly on tables -- mutated in various manner. -- Copyright (C) 2020-2021 LuaVela Authors. See Copyright Notice in COPYRIGHT -- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT require("jit").off() local toset = require("ujit.table").toset local tests = {}...
nilq/small-lua-stack
null
local function lua() local i = 0 while arg[i] ~= nil do i = i - 1 end return arg[i + 1] end local function exec(...) local args = table.pack(...) table.insert(args, 1, lua()) os.execute(table.concat(args, " ")) end local function build(ver) exec("build/"..ver.."/manual/2html", ...
nilq/small-lua-stack
null
return {'moravisch','morgenland','moriaan','morin','mora','moraal','moraalfilosofie','moraalfilosoof','moraalridder','moraaltheologie','moraaltheoloog','moraaltheorie','moralisatie','moraliseren','moralisme','moralist','moralistisch','moraliteit','moraliteitsbeginsel','moratoir','moratorium','morbide','morbiditeit','mo...
nilq/small-lua-stack
null
local battery = require("hs.battery") local menu = require("hs.menubar") local styledtext = require("hs.styledtext") local module = {} local adjustTitle = function() if module.menu then local text = tostring(battery.amperage()) .. "\n" if battery.isCharging() then text = text ...
nilq/small-lua-stack
null
RegisterNUICallback("data_status", function(data) if data.type == "finished" then soundInfo[data.id].playing = false TriggerEvent("xSound:songStopPlaying", data.id) end end) RegisterNetEvent("xsound:stateSound") AddEventHandler("xsound:stateSound", function(state, data) local soundId = data...
nilq/small-lua-stack
null
-- for debuing purposes --require('mobdebug').start() require('torch') require('nn') require('rnn') ---------------------------------------------------------------------- -- parse command line arguments if not opt then print '\n==> processing options' cmd = torch.CmdLine() cmd:text() cmd:text('Bi-Direction...
nilq/small-lua-stack
null
-- *************************************************************************** -- SHT1x module for ESP8266 with nodeMCU -- SHT1x compatible tested 2016-3-15 -- -- Written by Bill Deng -- -- MIT license, http://opensource.org/licenses/MIT -- *************************************************************************** --...
nilq/small-lua-stack
null
PLUGIN.name = "DeathDrop" PLUGIN.author = "gumlefar" PLUGIN.desc = "Handles items when player dies." ix.config.Add("deathWeaponDura", true, "If true weapons will take damage when player dies.", nil, { category = "Death" }) ix.config.Add("deathWeaponWearDmg", 35, "How much wear damage a weapon will take from a player...
nilq/small-lua-stack
null
local core = { _VERSION = 'paseto v0.4.0', _DESCRIPTION = 'PASETO (Platform-Agnostic Security Tokens) for Lua', _URL = 'https://github.com/peter-evans/paseto-lua', _LICENSE = [[ MIT License Copyright (c) 2018 Peter Evans Permission is hereby granted, free of charge, to any person o...
nilq/small-lua-stack
null
package.cpath = package.cpath..";../src/?.so" require 'geoip' print(geoip.country_code_by_name("212.56.71.159"))
nilq/small-lua-stack
null
-- Controllers local add_task = require "src.controller.add_task" local get_task = require "src.controller.get_task" local stop_task = require "src.controller.stop_task" local list_tasks = require "src.controller.list_tasks" local delete_task = require "src.controller.delete_task" local list_today_tasks = require "src....
nilq/small-lua-stack
null
local typedecl = require 'titan-compiler.typedecl' local types = typedecl("Type", { Types = { Invalid = {}, Nil = {}, Boolean = {}, Integer = {}, Float = {}, String = {}, Value = {}, Function = {"params", "retty...
nilq/small-lua-stack
null
--[[ Name: "sh_combine_lock.lua". Product: "HL2 RP". --]] local ITEM = {}; -- Set some information. ITEM.name = "Combine Lock"; ITEM.cost = 150; ITEM.model = "models/props_combine/combine_lock01.mdl"; ITEM.weight = 4; ITEM.useText = "Place"; ITEM.business = true; ITEM.vocations = {VOC_CPA_EPU, VOC_OTA_OWC}; ITEM.desc...
nilq/small-lua-stack
null
-- very simple multicast test client, just listens to a multicast address -- and prints what it receives. -- Demonstrates how to set up a multicast client socket and read data -- from it. if arg[1] == '6' then addr = 'ff01::1' else addr = '127.255.255.255' end port = 8000 ls = require "lsocket" client, err = ls.bi...
nilq/small-lua-stack
null
local MainUIRoleHeadView = BaseClass() function MainUIRoleHeadView:DefaultVar( ) return { UIConfig = { prefab_path = "Assets/AssetBundleRes/ui/mainui/MainUIRoleHeadView.prefab", canvas_name = "MainUI", components = { }, }, } end function MainUIRoleHeadView:OnLoad( ) local names = { "money_1","m...
nilq/small-lua-stack
null
-- API local _Constants_API = require(script:GetCustomProperty("Constants_API")) local UTIL = require(script:GetCustomProperty("MetaAbilityProgressionUTIL_API")) -- Object references local TANK_TABLE_TEMPLATE = script:GetCustomProperty("TANK_TABLE_TEMPLATE") local UIScrollPanel = script:GetCustomProperty("UIScrollPan...
nilq/small-lua-stack
null
if GameHelpers.Data == nil then GameHelpers.Data = {} end local ClientCharacterData = Classes.ClientCharacterData ---@class LEVELTYPE LEVELTYPE = { GAME = 1, CHARACTER_CREATION = 2, LOBBY = 3, EDITOR = 4, } ---@class GAMEMODE GAMEMODE = { CAMPAIGN = 1, ARENA = 2, GAMEMASTER = 3 } local UserIds = {} ---@cla...
nilq/small-lua-stack
null
local Cam = {} Cam.Name = "Cinematic" Cam.CamChangeDel = CurTime() Cam.CurCam = 1 Cam.LastCam = 1 Cam.NrOfCams = 7 Cam.CamFuncs = {} Cam.LookPos = Vector(0,0,0) Cam.newAng = Angle(0,0,0) Cam.newPos = Vector(0,0,0) function Cam:Init() end function Cam:FirstPerson(ply, pos, ang, fov, SCar, veh) return Cam:Cinemati...
nilq/small-lua-stack
null
C_LevelSquish = {} ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_LevelSquish.ConvertFollowerLevel) ---@param level number ---@param maxFollowerLevel number ---@return number squishedLevel function C_LevelSquish.ConvertFollowerLevel(level, maxFollowerLevel) end ---[Documentation](https://wowpedia.fandom.co...
nilq/small-lua-stack
null
local Behavior = CreateAIBehavior("VtolAttack", "HeliAttack", { Alertness = 2, })
nilq/small-lua-stack
null
-- Describes the cRankManager class API return { cRankManager = { Desc = [[ Manages the players' permissions. The players are assigned a single rank, which contains groups of permissions and restrictions. The functions in this class query or modify these.</p> <p> All the functions are static, call them...
nilq/small-lua-stack
null
return { prototype = "resources.levels.level", entities = { { title = "Camera", components = { transform = {}, viewport = {}, camera = { transform = {0, 0, 0, 24}, }, }, }, { components = { transform = { transform = ...
nilq/small-lua-stack
null
--[[ Collision Shape reference: 1 = __ |__| 2 = /| /__| 3 = |\ |__\ 4 = __ | / |/ 5 = __ \ | \| ]] return { image = "street1.gif"; tilesize = 16; -- not actually used, just for legacy tiles = { {x=0, y=1, colshape=0}; {x=1, y=1, colshape=1}; ...
nilq/small-lua-stack
null
๏ปฟ-- Import SM for statusbar-textures, font-styles and border-types local SharedMedia = LibStub("LibSharedMedia-3.0"); -- Default settings local default = { controlledChildren = {}, anchorPoint = "CENTER", xOffset = 0, yOffset = 0, frameStrata = 1, border = false, borderColor = {1....
nilq/small-lua-stack
null
local state = { students = {}, source_constant = "192.168.1.69" } local function send_core_page(sck) local response = { "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n" } response[#response + 1] = "<head>" response[#response + 1] = "<link href='https://unpkg.com/tailwindcss@^1.0/dist/tailwind.m...
nilq/small-lua-stack
null
-- functions local function setTextColour(color) if term.isColor() then term.setTextColour(color) end end local function question(_question) if _question == nil then else setTextColour(colors.orange) term.write(_question.."? [") setTextColour(colors.lime) term.write(...
nilq/small-lua-stack
null
LinkLuaModifier("modifier_item_moon_crest_passive", "items/neutral/moon_crest.lua", LUA_MODIFIER_MOTION_NONE) item_moon_crest = class(ItemBaseClass) function item_moon_crest:GetIntrinsicModifierName() return "modifier_item_moon_crest_passive" end --------------------------------------------------------------------...
nilq/small-lua-stack
null
-- kernels local updateKernels = {} updateKernels[1] = function(diffCoeff, dxCells, qTL, qT, qTR, qL, q, qR, qBL, qB, qBR, kerOut) local dx, dy = dxCells[1], dxCells[2] local Dxx, Dxy, Dyy, Dyx = diffCoeff.Dxx, diffCoeff.Dxy, diffCoeff.Dyy, diffCoeff.Dxy kerOut[1] = (0.3333333333333333*qTR[4]*Dyx)/(dx*dy)+(0...
nilq/small-lua-stack
null
local eonz = require 'eonz' local table = eonz.pf.table local string = eonz.pf.string local Stream = eonz.class "eonz::lexer::Stream" do function Stream:init(list, index) self._l = assert(list) self._i = index or 1 end function Stream:clone() return Stream(self._l, self._i) end function Stream:list(i) ...
nilq/small-lua-stack
null
if game:GetService("RunService"):IsServer() then return require(script.server) else local server = script:FindFirstChild("server") if server then server:Destroy() end return require(script.client) end
nilq/small-lua-stack
null
--=========== Copyright ยฉ 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: trigger_transition -- --==========================================================================-- entities.require( "trigger" ) class "trigger_transition" ( "trigger" ) function trigger_transition:trigger_transition() t...
nilq/small-lua-stack
null