content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
-- @brief Synology Finder Protocol(9999/udp) Dissector Plugin -- @author cq674350529 -- reference: -- 1) https://mika-s.github.io/wireshark/lua/dissector/2017/11/04/creating-a-wireshark-dissector-in-lua-1.html -- 2) https://github.com/wireshark/wireshark/blob/master/epan/dissectors/packet-cdp.c -- 3) https://www.wi...
nilq/small-lua-stack
null
local K, C = unpack(KkthnxUI) local Module = K:GetModule("Loot") -- Sourced: ShestakUI (Wetxius, Shestak) local _G = _G local GetItemInfo = _G.GetItemInfo local GetLootRollItemInfo = _G.GetLootRollItemInfo local GetLootRollItemLink = _G.GetLootRollItemLink local MAX_PLAYER_LEVEL = _G.MAX_PLAYER_LEVEL local RollOnLoo...
nilq/small-lua-stack
null
Classes = {} Common = {} ---@class GameHelpers GameHelpers = { Item = {}, Math = {}, Skill = {}, Status = {}, Tooltip = {}, UI = {}, Ext = {}, Internal = {} } ---Simple wrapper around assigning a variable to another without making EmmyLua pick up the result. function GameHelpers.SetVariable(v1,v2) v1 = v2 end...
nilq/small-lua-stack
null
local LrApplication = import 'LrApplication' local LrLogger = import 'LrLogger' local logger = LrLogger('FlaskUtils') logger:enable("print") logger:info("Loading module...") local M = {} local serializeMetadata = function(t) -- TODO: encode newlines. local k, v local res = "" for k, v in pairs(t)...
nilq/small-lua-stack
null
--NOTE: THIS EXAMPLE IS OLD. Updated I2C examples can be found in the I2C folder. print("Communicate with a HMC6352 via I2C") --When using I2C remember to wire SDA and SCL to VS through a resistor (pull-up). --Usually something in the range of 1.8kΩ to 20kΩ will work, but HMC6352 documentation --indicates that 10kΩ pul...
nilq/small-lua-stack
null
object_draft_schematic_dance_prop_prop_ribbon_spark_r_s05 = object_draft_schematic_dance_prop_shared_prop_ribbon_spark_r_s05:new { } ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_ribbon_spark_r_s05, "object/draft_schematic/dance_prop/prop_ribbon_spark_r_s05.iff")
nilq/small-lua-stack
null
local ifInt = require("ifInt") return function(v) return ifInt(v) and 0 == v%1 and v >= 0 end
nilq/small-lua-stack
null
tcs.magic1= "* /\\\\,%,_\n* \\\\%%%/,\\\\\n* _.-\\\"%%|//%\n* .\\' .-\\\" /%%%\n* _.-\\'_.-\\\" 0) \\\\%%%\n* /.\\\\.\\' \\\\%%%\n* \\\\ / _, %%%\n* `\\\"---\\\"~`\\\\ _,*\\'\\\\%%\\' _,--\\\"\\\"\\\"\\\"-,%%,...
nilq/small-lua-stack
null
local bin = require "bin" local comm = require "comm" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local table = require "table" description = [[ Enumerates SCADA Modbus slave ids (sids) and collects their device information. Modbus ...
nilq/small-lua-stack
null
local List = script.Parent local Llama = List.Parent local t = require(Llama.t) local validate = t.tuple(t.table, t.integer) local function removeIndex(list, indexToRemove) assert(validate(list, indexToRemove)) local len = #list if indexToRemove < 1 then indexToRemove += len end assert(inde...
nilq/small-lua-stack
null
--[[ Based on a plugin by topkecleon. Copyright 2017 wrxck <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local bing = {} local mattata = require('mattata') local https = require('ssl.https') local url = require('socket.url') local ltn12 = require('ltn12') lo...
nilq/small-lua-stack
null
--[[ © 2013 GmodLive private project do not share without permission of its author (Andrew Mensky vk.com/men232). --]] local PLUGIN = PLUGIN or greenCode.plugin:Loader(); -- License list. PLUGIN:AddLicense("weapon", { name = "Оружие", description = "Лицензия на продажу или ношение пистолета", job = {TEA...
nilq/small-lua-stack
null
ITEM.name = "'Kite' Gunpowder" ITEM.description = "'Kite' brand gunpowder with a blue top." ITEM.longdesc = "High quality smokeless gunpowder from the 'Kite' brand, a top end producer of gunpowder. Used by some technicians in the zone to reload ammunition for sale." ITEM.model = "models/illusion/eftcontainers/gpblue.md...
nilq/small-lua-stack
null
hook.Add("PlayerInitialSpawn", "xAdminLoadPlayerRank", function(ply) xAdmin.Database.GetUsersGroup(ply:SteamID64(), function(data) if not data or not data[1] then xAdmin.Database.UpdateUsersGroup(ply:SteamID64(), xAdmin.Config.DefaultGroup) xAdmin.Users[ply:SteamID64()] = xAdmin.Config.DefaultGroup else x...
nilq/small-lua-stack
null
local spec_helper = require "spec.spec_helpers" local constants = require "kong.constants" local stringy = require "stringy" local IO = require "kong.tools.io" local fs = require "luarocks.fs" describe("Static files", function() describe("Constants", function() it("version set in constants should match the one i...
nilq/small-lua-stack
null
-- Castlevania: Portrait of Ruin - RNG simulator -- This script runs on both of normal lua host and emulua host (desmume) if not bit then require("bit") end -- pure 32-bit multiplier function mul32(a, b) -- separate the value into two 8-bit values to prevent type casting local x, y, z = {}, {}, {} x[1] = bit.band...
nilq/small-lua-stack
null
-- synthy v0.3.2 -- soft, melancholic synth -- -- llllllll.co/t/synthy -- -- -- -- ▼ instructions below ▼ -- E2 modulates flanger -- E3 modulates lpf -- K2 generates chords -- K3 stops/starts chord -- sequencer engine.name="Synthy" articulation=include('synthy/lib/arm') fourchords_=include("synthy/lib/fourchords...
nilq/small-lua-stack
null
local normalizeLuaSource = require("__debugadapter__/normalizeLuaSource.lua") local json = require('__debugadapter__/json.lua') local variables = require("__debugadapter__/variables.lua") -- uses pcall local print = print local debug = debug -- log protection is disabled in Instrument Mode on Factorio >= 0.18.34...
nilq/small-lua-stack
null
--- A doubly-linked @{Queue} of items. -- Implements a Queue as a @{LinkedList}, providing the same performance -- characteristics as the LinkedList. -- -- LinkedQueue implements all optional @{Queue} and @{Collection} methods. -- -- **Implements:** @{Queue}, @{Collection}, @{Enumerable} -- -- @classmod LinkedQueue lo...
nilq/small-lua-stack
null
module(...,package.seeall) local buffer = require("core.buffer") local packet = require("core.packet") local lib = require("core.lib") local link_ring = require("core.link_ring") require("core.packet_h") --- # App runtime system -- Dictionary of all instantiated apps (Name -> App). apps...
nilq/small-lua-stack
null
require "util" plugin = {} plugin.loaders = {} plugin.path = fs.ydwe_path() / "plugin" plugin.blacklist = { 'YDTileLimitBreaker', 'YDCustomObjectId' } function plugin.load (self, plugin_config_path) log.trace("Load plugin config " .. plugin_config_path:string()) local plugin_config = sys.ini_load(plugin...
nilq/small-lua-stack
null
-- See LICENSE for terms local mod_RainType local orig_GetTerraformParamPct = GetTerraformParamPct local function fake_GetTerraformParamPct(param, ...) if not mod_RainType then return orig_GetTerraformParamPct(param, ...) end if mod_RainType == "normal" and (param == "Atmosphere" or param == "Temperature" or pa...
nilq/small-lua-stack
null
-- // bekiroj function kasa_ver() if getElementData(source, "loggedin") == 0 then return end if not exports.mrp_global:takeMoney(source, 250) then outputChatBox("[!]#ffffff Eşyayı satın almak için yeterli miktarda paran yok.",source,100,100,255,true) return end outputChatBox("[!]#ffffff Kasaya ₺250 ödeyerek 1 ad...
nilq/small-lua-stack
null
#!/opt/local/bin/lua local xml_string = [=[<?xml version="1.0" encoding="UTF-8"?> <ns1:any_attr xmlns:ns1="http://test_example.com" xmlns:ns2="http://mnrec.com" attr1="SN" attr2="MUK" ns2:attr3="SNT"><one>Hello</one></ns1:any_attr>]=] mhf = require("schema_processor") any_attr = mhf:get_message_handler("any_attr", "...
nilq/small-lua-stack
null
-- randbytes.lua -- Colin 'Oka' Hall-Coates -- MIT, 2015 local defaults = setmetatable ({ bytes = 4, mask = 256, file = 'urandom', filetable = {'urandom', 'random'} }, { __newindex = function () return false end }) local files = { urandom = false, random = false } local utils = {} function utils:gettabl...
nilq/small-lua-stack
null
-------------------------------- -- @module TransitionFadeDown -- @extend TransitionFadeTR -- @parent_module cc ---@class cc.TransitionFadeDown:cc.TransitionFadeTR local TransitionFadeDown = {} cc.TransitionFadeDown = TransitionFadeDown -------------------------------- --- Creates a transition with duration and inc...
nilq/small-lua-stack
null
-- Areas module - used for specifying areas, which can then be inserted -- into a given map (typically the world map). Area = {} Area.__index = Area function Area:new(row, col) local obj = {} setmetatable(obj, self) -- Set the row and column for this area. obj.row = row obj.col = col -- Set the additio...
nilq/small-lua-stack
null
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseBuyProp_pb', package.seeall) local BSEBUYPROP = protobuf.Descriptor(); local BSEBUYPROP_SUCCESS_FIELD = protobuf.FieldDescriptor(); local BSEBUYPROP_MESSAGE_FIELD = protobuf.FieldDescriptor(); BSEBUYPROP_SUCCESS_FIELD.name = "s...
nilq/small-lua-stack
null
local ensure_character = require("modules/inventory_sync/ensure_character") -- on_gui_click local handle_gui_events = function(event) if not event.element.valid then return end local player = game.get_player(event.player_index) if event.element.name == "inventory_sync_failed_download_abort" then -- Give the pl...
nilq/small-lua-stack
null
--[[ -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or -- its licensors. -- -- For complete copyright and license terms please see the LICENSE at the root of this -- distribution (the "License"). All use of this software is governed by the License, -- or, if provided, by the license be...
nilq/small-lua-stack
null
--雨水元素·玛度 local m=37564003 local cm=_G["c"..m] xpcall(function() require("expansions/script/c37564765") end,function() require("script/c37564765") end) cm.Senya_name_with_elem=true function cm.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,4,2) c:EnableReviveLimit() local e1=Effect.CreateEffect(c) e1:Set...
nilq/small-lua-stack
null
local sceneman = require('lib.sceneman') local lovebind = require('lib.love_bind') local lens = require('lib.lens') local _layers = require('scenes.layers') local _autobind = require('scenes.autobind') local _timers = require('scenes.timers') local function base() local scene = {} scene.layers = _layers() scene...
nilq/small-lua-stack
null
-- This is an example of code that you can put into your start.lua file to setup a benchmark -- local myCondition = true -- ex: currentTas == 'benchmark%' -- if myCondition then -- local benchmark = require('scripts/benchmark') -- -- Create the sqlite file and insert records if the file doesn't exist -- lo...
nilq/small-lua-stack
null
--[[ @brief Represents a screen of the game (e.g a game screen, a level, a menu screen, ...) \ They can be stacked one on top of each others through the ScreenManager \ Each screen contains a scene, which is the graphical representation of the screen @class Screen ]] require('Scene') require('Class') Scr...
nilq/small-lua-stack
null
local Iterator = require(script.Parent.Parent.Iterator) local FromFunc = setmetatable({}, Iterator) FromFunc.__index = FromFunc FromFunc.__call = Iterator.__call function FromFunc.new(after) return setmetatable({ after = after, }, FromFunc) end return FromFunc
nilq/small-lua-stack
null
function table.Invert(src, key, idnum) local ret = {} if not istable(src) then return end for k, v in pairs(src) do if key and istable(v) then if v[key] then ret[v[key]] = v if idnum then v.IDNUM = k end end else ret[v] = k end end return ret end function table.StoreKeys(src, ke...
nilq/small-lua-stack
null
--Drop items on dig function minetest.handle_node_drops(pos, drops, digger) for _,item in ipairs(drops) do local count, name if type(item) == "string" then count = 1 name = item else count = item:get_count() name = item:get_name() end --if not inv or not inv:contains_item("main", ItemStack(name))...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0148-template-additional-submenus.md#backwards-compatibility -- Issue: https://github.com/smartdevicelink/sdl_core/issues/3524 ---------...
nilq/small-lua-stack
null
_G._TEST = true require("mocks.awesome") local mock_watch = require("mocks.awful.widget.watch") local wifi_status = require("daemons.wifi_status") local connected_result = [[connected ramen-wf 80 ]] local disconnected_result = [[disconnected ]] describe("daemons.wifi_status", function() describe("private", fun...
nilq/small-lua-stack
null
pfUI:RegisterModule("castbar", "vanilla:tbc", function () local font = C.castbar.use_unitfonts == "1" and pfUI.font_unit or pfUI.font_default local font_size = C.castbar.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size local rawborder, default_border = GetBorderSize("unitframes") local cbt...
nilq/small-lua-stack
null
--requires engine.utility local oop = {} local object = {} local lib oop.object = object oop.objectify = function(self, to, lightweight) lib.utility.table_merge(self.object, to) if (not lightweight) then to.__type = to.__type or "object" end end object.inherit = function(self, from) lib.utility.table_merge(fr...
nilq/small-lua-stack
null
names = {"Peter", "Paul", "Mary"} grades = {Mary = 10, Paul = 7, Peter = 8} function sort_by_grade(names, grades) table.sort(names, function (n1, n2) return grades[n1] > grades[n2] end) end -- 在上面的匿名函数中,grades 既不是全局变量,也不是局部变量,是 non-local -- 变量,在 Lua 里面也叫 upvalues
nilq/small-lua-stack
null
local ffi = require("ffi") local libraryloader = require("core_libraryloader_l1_1_1"); local WTypes = require("WTypes") ffi.cdef[[ BOOL QueryWorkingSetEx(HANDLE hProcess,PVOID pv,DWORD cb); ]] local function main() local handle = libraryloader.LoadLibraryExA("psapi", nil, 0); proc = libraryloader.GetProcAddress(...
nilq/small-lua-stack
null
--[=[ @c ClassName [x base_1 x base_2 ... x base_n] @t tag @mt methodTag (applies to all class methods) @p parameterName type @op optionalParameterName type @d description+ ]=] --[=[ @m methodName @t tag @p parameterName type @op optionalParameterName type @r return @d description+ ]=] --[=[ @p propertyName type descri...
nilq/small-lua-stack
null
SILE.require("packages/infonode") SILE.scratch.chapterverse = {} SILE.registerCommand("save-book-title", function (options, content) SU.debug("bcv", "book: " .. content[1]) SILE.scratch.chapterverse.book = content[1] end) SILE.registerCommand("save-chapter-number", function (options, content) SU.debug("bcv", "c...
nilq/small-lua-stack
null
--[[ MplusLedger A WoW addon to keep long-term track of a player's Mythic+ runs so they may analyze how they're doing for a given spec, dungeon, affixes, level, and party composition. @copyright Velukh 2017 --]] MplusLedger = LibStub("AceAddon-3.0"):NewAddon( "MplusLedger", "AceComm-3.0", "AceConsole-3.0", "...
nilq/small-lua-stack
null
#!/usr/bin/env tarantool local stats = require('luacov.stats') local runner = require('luacov.runner') local accumulator = {} local output_statsfile = 'luacov.stats.out' for _, statsfile in ipairs(arg) do print(('Processing %s'):format(statsfile)) local new_data = stats.load(statsfile) for name, item in...
nilq/small-lua-stack
null
data:extend({ -- Startup -- Global { type = "bool-setting", name = "Noxys_Multidirectional_Trains-enabled", setting_type = "runtime-global", default_value = true, order = "a", }, { type = "int-setting", name = "Noxys_Multidirectional_Trains-on_nth_tick", setting_type = "runtime-global", minimum_...
nilq/small-lua-stack
null
local JSON = assert(loadfile "LuaScripts/json.lua")() local UIScore = {} UIScore["instantiate"] = function(params, entity) p = JSON:decode(params) local self = {} self.entity = entity if p then if p.actualScore ~= nil then self.actualScore = p.actualScore end end -- Llamar a esta...
nilq/small-lua-stack
null
local enum = require('discordia').enums.enum return { optionType = enum({ subCommand = 1, subCommandGroup = 2, string = 3, integer = 4, boolean = 5, user = 6, channel = 7, role = 8 }), interactionType = enum({ ping = 1, applicationCommand = 2 }), interactionResponseType = enum({ pong = 1, ...
nilq/small-lua-stack
null
-- Wrapper for exit on internal server error function exit (message, status) ngx.status = status ngx.say('{"error": "' .. message .. '"}') ngx.exit(ngx.HTTP_OK) end -- Drop all non-POST requests local REQUEST_METHOD = ngx.var.request_method if REQUEST_METHOD ~= 'POST' then exit('Method not allowed', ng...
nilq/small-lua-stack
null
---------------pet acb227 is makin------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- script.Parent = workspace.acb227 Owner = Workspace.acb227 admin = "acb227" pl = Game.Players:GetChildren() ...
nilq/small-lua-stack
null
local _ENV = mkmodule('plugins.automaterial') local buildingplan = require('plugins.buildingplan') -- construct the building and register it with buildingplan for item selection function build_with_buildingplan_box_select(subtype, x, y, z) local pos = xyz2pos(x, y, z) local bld, err = dfhack.buildings.constru...
nilq/small-lua-stack
null
 local sum = 0; for i = 0, 1000, 1 do sum = sum .. "."; end; return sum;
nilq/small-lua-stack
null
---- Roleplay: Prison local WorkbenchFrame = nil local WorkbenchFrameWidth, WorkbenchFrameHeight = 600, 600 function IsWorkbenchOpen() return IsValid(WorkbenchFrame) end function ShowWorkbenchFrame() if IsWorkbenchOpen() then return end WorkbenchFrame = vgui.Create("DFrame") WorkbenchFrame:SetSize(Workb...
nilq/small-lua-stack
null
--- === UnsplashRandom === --- --- Automatically sets a random Unsplash image as your wallpaper daily. --- --- Download: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/UnsplashRandom.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/UnsplashRandom.spoon.zip) local obj={} obj.__index = obj -...
nilq/small-lua-stack
null
local composer = require( "composer" ) local scene = composer.newScene() -- initialize variables ------------------------------------------------------- local windowMod = require( "scenes.libs.window" ) local tabulatorMod = require( "scenes.libs.tabulator" ) local savedata = require( "scenes.libs.savedata" ) -- load ...
nilq/small-lua-stack
null
--------------------------defines------------------------- gr = love.graphics kb = love.keyboard ms = love.mouse pi = math.floor(math.pi*1000)/1000 -------------------------requires------------------------- --require "lib/class" --require "lib/binary" require "lib/func" require "lib/camera" require "lib/base" require "...
nilq/small-lua-stack
null
module = "another_fantasycalendar" typesetdemofiles = { "example-calendar-1.tex" } typesetfiles = { "typesetfiles" } sourcefiles = { "*.code.tex", "*.cls", "*.sty"} installfiles = sourcefiles
nilq/small-lua-stack
null
-- -- SILLY premake configuration script -- project.name = "SILLY" project.bindir = "bin" project.libdir = "lib" package = newpackage() package.name = "SILLY" package.kind = "dll" package.language = "c++" package.files = { matchfiles("src/*.cpp"), matchfiles("src/loaders/*.cpp"), matchfiles("include/*.h")...
nilq/small-lua-stack
null
--StoryTeller was made by EvanTheHuman (4096x2160) under the MIT license --https://github.com/EvanTheHuman/StoryTeller/blob/main/LICENSE local story = { formatver = 1, background = "rbxasset://textures/loading/darkLoadingTexture.png", textcolor = Color3.new(1, 1, 1), initialtext = "A thief with a chainsaw an...
nilq/small-lua-stack
null
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = { PlaceObj('UnitAppear', { 'Location', "MapBorder", }), PlaceObj('Malfunction', nil), }, Effects = {}, Enables = { "MissingRover_5_Repaired", }, Prerequisites = {}, ScriptDone = true, Suppres...
nilq/small-lua-stack
null
Fluid = {} Fluid.color = {r = 167/255, g = 229/255, b = 255/255} Fluid.entity_types = {"pipe", "pipe-to-ground", "storage-tank"} Fluid.unlocked = function(force) return force.technologies["factory-connection-type-fluid"].researched end local DX = { [defines.direction.north] = 0, [defines.direction.east] = 1, [defi...
nilq/small-lua-stack
null
local util = {} function util.format(...) return string.format(...) end function util.printf(fmt, ...) io.write(string.format(fmt, ...)) end function util.getHostname() -- TODO: get this function to work -- on Winbl^H^Hdows-based systems local fallback = "lolcathost" local hostname = "" if not io.open('/etc/...
nilq/small-lua-stack
null
-- -- (C) 2013 Kriss@XIXs.com -- local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,load,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,stri...
nilq/small-lua-stack
null
package.cpath = "luaclib/?.so" package.path = "lualib/?.lua;proto/?.lua;" if _VERSION ~= "Lua 5.3" then error "Use lua 5.3" end local socket = require "socket" local proto = require "proto" local sproto = require "sproto" local host = sproto.new(proto.s2c):host "package" local request = host:attach(sproto.new(proto...
nilq/small-lua-stack
null
-- This code is part of u8g2 project and is responsible for -- generation of u8g2_d_setup.c and its declarations in u8g2.h local utils = require 'resources/Common/utils' local setupgen = { add = function(s, controller) -- Main wrapper s.impls[#s.impls+1] = ('/* %s */'):format(controller.name); --for k, v in cont...
nilq/small-lua-stack
null
-- create a 3D track function create3DTrack(dat, id, sources, typ, pos, route, speed, err) track = {} track.creation_date = dat track.last_update_date = dat track.count = 1 track.sources = sources track.type = typ track.3d = true track.id = id track.pos = pos track.route = route track.speed = spe...
nilq/small-lua-stack
null
-- -- Copyright (c) 2017, Jesse Freeman. All rights reserved. -- -- Licensed under the Microsoft Public License (MS-PL) License. -- See LICENSE file in the project root for full license information. -- -- Contributors -- -------------------------------------------------------- -- This is the official list of Pixel Visi...
nilq/small-lua-stack
null
-- Copyright (c) 2019 askmeaboutloom -- -- 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 current_dir = _SCRIPT_DIR function IncludeScanning() local refcount = IncludePackage("scanning") local _project = project() sysincludedirs(current_dir .. "/include") links("scanning") filter("system:linux or macosx") links("dl") filter("system:macosx") links("CoreServices.framework") if refcount ...
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
--[[ Copyright (C) 2015 Real-Time Innovations, Inc. 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
lastCreatedZoneType = nil lastCreatedZone = nil createdZoneType = nil createdZone = nil drawZone = false RegisterNetEvent("polyzone:pzcreate") AddEventHandler("polyzone:pzcreate", function(zoneType, name, args) if createdZone ~= nil then TriggerEvent('chat:addMessage', { color = { 255, 0, 0}, multili...
nilq/small-lua-stack
null
return {'faq','faqs'}
nilq/small-lua-stack
null
local strutil = require("acid.strutil") local tableutil = require("acid.tableutil") local acid_redis = require("acid.redis") local acid_json = require("acid.json") local acid_chash_conf = require("acid.chash_conf") local to_str = strutil.to_str local str_split = strutil.split local _M = { _VE...
nilq/small-lua-stack
null
-- Author: L -- Date: 2021-02-18 local open = io.open local _M = { VERSION = 0.1 } function _M.read_file(file_path) local file, err = open(file_path, "rb") if not file then return false, "failed to open file: " .. file_path .. ", error info:" .. err end local data, err = file:read("*all") ...
nilq/small-lua-stack
null
local draw = {} function draw.graph(meshes, range, color, f) local produced_mesh = { vertexes = {}, segments = {{}}, colors = {} } for x = range["g_begin"], range["g_end"], range["g_step"] do y = f(x) table.insert(produced_mesh.vertexes, {x, y}) table.insert(produced_mesh.color...
nilq/small-lua-stack
null
female_forest_slice_hound = Creature:new { objectName = "@mob/creature_names:female_forest_slice_hound", socialGroup = "slice_hound", faction = "", level = 10, chanceHit = 0.28, damageMin = 130, damageMax = 140, baseXp = 356, baseHAM = 675, baseHAMmax = 825, armor = 0, resists = {0,0,0,0,0,0,0,-1,-1}, meat...
nilq/small-lua-stack
null
-- A basic LDtk loader for LÖVE created by Hamdy Elzonqali -- Last tested with LDtk 0.9.3 -- -- ldtk.lua -- -- Copyright (c) 2021 Hamdy Elzonqali -- -- 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
object_tangible_quest_heroic_heroic_echo_base_tower_hatch = object_tangible_quest_heroic_shared_heroic_echo_base_tower_hatch:new { } ObjectTemplates:addTemplate(object_tangible_quest_heroic_heroic_echo_base_tower_hatch, "object/tangible/quest/heroic/heroic_echo_base_tower_hatch.iff")
nilq/small-lua-stack
null
require("turtle") local signals = require("signals") --[[ Here goes the neurons activating function It should recieve number and return number ]] local function act(x) return (1 / (1 + math.exp(-x))) end --[[ This is the data that we must train our neural net with For multiple inputs, ]] local tTr = { {...
nilq/small-lua-stack
null
local DeconvnetReLU, parent = torch.class('nn.DeconvnetReLU', 'nn.ReLU') function DeconvnetReLU:__init(p) parent.__init(self, p) self.deconv = false end function DeconvnetReLU:updateOutput(input) return parent.updateOutput(self, input) end function DeconvnetReLU:updateGradInput(input, gradOutput) if self.dec...
nilq/small-lua-stack
null
return {'zak','zakagenda','zakatlas','zakband','zakbijbel','zakboekje','zakbreuk','zakcent','zakcomputer','zakdoek','zakduit','zakeditie','zakelijk','zakelijkheid','zaken','zakenauto','zakenbank','zakenbankier','zakenbankiers','zakenbelang','zakenbelangen','zakenblad','zakenbrief','zakencentrum','zakencijfer','zakendin...
nilq/small-lua-stack
null
local sensors = require("sensors") local dht_sensors = require("dht_sensors") local actuators = require("actuators") local settings = require("settings") local sensorSend = {} local dni = wifi.sta.getmac():gsub("%:", "") local timeout = tmr.create() local sensorTimer = tmr.create() local sendTimer = tmr.create() timeo...
nilq/small-lua-stack
null
local att = {} att.name = "md_lightbolt" att.displayName = "Light Bolt" att.displayNameShort = "Light Bolt" att.statModifiers = {RecoilMult = 0.15, FireDelayMult = -.25, MaxSpreadIncMult = 0.25 } if CLIENT then att.displayIcon = surface.GetTextureID("atts/md_3006bolt") att.description = {[1] = {t = "Increases RPM a...
nilq/small-lua-stack
null
local ConfigReader = {}; -- ------------------------------------------------ -- Constants -- ------------------------------------------------ local FILE_NAME = 'settings.cfg'; local TEMPLATE_PATH = 'res/templates/settings_template.cfg'; local INVALID_CONFIG_HEADER = 'Invalid config file'; local MISSING_SECTION_WAR...
nilq/small-lua-stack
null
g_PluginInfo = { Name = "Weapons", Version = "3", Date = "2017-11-25", SourceLocation = "https://github.com/mathiascode/Weapons", Description = [[Plugin that adds weapons to a Cuberite server. Currently available weapons are Anvil Dropper, Lightning Stick, Nuker and Sniper.]], Commands = { ["/weapons"] = { ...
nilq/small-lua-stack
null
local oil = require "oil" local ComponentContext = require "scs.core.ComponentContext" local Log = require "scs.util.Log" local utils = require "scs.core.utils" utils = utils() Log:level(3) -- OiL configuration local orb = oil.init() oil.main(function() -- starts to wait for remote calls orb:loadidlfile(os.geten...
nilq/small-lua-stack
null
function draw_cell(cell, x, y, color) if cell == 1 then love.graphics.setColor(color) love.graphics.rectangle("fill", x, y,_square_size,_square_size) else love.graphics.setColor(colors.coral) love.graphics.rectangle("fill", x, y,_square_size,_square_size) end end loc...
nilq/small-lua-stack
null
fysiks.FullPolyhedron = fysiks.FacedPolyhedron:new(nil, {}, {}, {}) fysiks.FullPolyhedron.type = "polyhedron" fysiks.FullPolyhedron.__index = fysiks.FullPolyhedron function fysiks.FullPolyhedron:new(obj, verts, edges, faces) local p = setmetatable(fysiks.FacedPolyhedron:new(obj, verts, faces), self) p.edges = {} f...
nilq/small-lua-stack
null
local class = require 'CompileMe.class' -- Something like "echo" "Hi" is invalid in cmd.exe. We need echo "Hi" instead local cmd_builtins = { "ASSOC", "BREAK", "CALL", "CD", "CHDIR", "CLS", "COLOR", "COPY", "DATE", "DEL", "DIR", "DPATH", "ECHO", "ENDLOCAL", "ERASE", "EXIT", "FOR", "FTYPE", "GOTO", "IF", "KEYS", ...
nilq/small-lua-stack
null
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA -- weapon_vape/init.lua -- Defines common serverside code/defaults for Vape SWEP -- Vape SWEP by Swamp Onions - http://steamcommunity.com/id/swamponions/ AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua")...
nilq/small-lua-stack
null
--require("Menu/MainMenu/mainMenuStyle.lua") --this = SceneNode() PreSetPanel = {} function PreSetPanel.removePreSet(button) if PreSetPanel.functionRemoveCallback then PreSetPanel.functionRemoveCallback(button:getParent():getTag():toString()) end PreSetPanel.presetPanel:removePanel(button:getParent(...
nilq/small-lua-stack
null
local array = include( "modules/array" ) local util = include( "client_util" ) local cdefs = include( "client_defs" ) local simdefs = include("sim/simdefs") local simquery = include("sim/simquery") local mui_tooltip = include( "mui/mui_tooltip" ) local mui_util = include( "mui/mui_util" ) local inventory = include("sim...
nilq/small-lua-stack
null
local GuildInfo = require("guild_info") local name = "viewalias" -- Name of the command. local permissions = { bot_owner = false, -- Whether only the bot owner can use this command. manage_server = true, -- Whether you must have `Manage Server` to use this command. moderator = false, -- Whether you must b...
nilq/small-lua-stack
null
vim.cmd('inoreabbrev rexp // [[Rcpp::export]]')
nilq/small-lua-stack
null
--[[ Copyright 2012 The lev Authors. All Rights Reserved. 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 agree...
nilq/small-lua-stack
null
return { corhgol = { acceleration = 0.03, brakerate = 0.69, buildcostenergy = 27521, buildcostmetal = 2381, builder = false, buildpic = "corhgol.dds", buildtime = 30000, canattack = true, canguard = true, canhover = true, canmove = true, canpatrol = true, canstop = 1, category = "ALL LARGE ...
nilq/small-lua-stack
null
local function setup_ios() files { "source/posix/**.cpp", "source/mach/**.cpp" } end local function setup_osx() files { "source/posix/**.cpp", "source/mach/**.cpp" } end local function setup_linux() files { "source/posix/**.cpp" } en...
nilq/small-lua-stack
null