content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end function get_yt_data (yt_code) local url = 'https://www.googleapis.com/youtube/v3/videos...
nilq/small-lua-stack
null
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local dismiss = {} local mattata = require('mattata') function dismiss.on_callback_query(_, _, message) if message then return mattata.delete_message(message.chat.id, m...
nilq/small-lua-stack
null
--[[------------------------------------ Name: NEXTBOT:SetupTaskList Desc: Used to setup bot's list of tasks. Arg1: table | list | List of tasks add new tasks to. Ret1: --]]------------------------------------ function ENT:SetupTaskList(list) end --[[------------------------------------ Name: NEXTBOT:SetupTasks...
nilq/small-lua-stack
null
-- Copyright 2016 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 wri...
nilq/small-lua-stack
null
#! /usr/bin/lua local arc4 = require( "arc4random" ) for i = 1, 100 do print( ( "%.3f" ):format( arc4.random() ) ) end print( arc4.random() ) print( arc4.random( 3 ) ) print( arc4.random( -5, 5 ) ) local str = arc4.buf( 16 ) str = str:gsub( "(.)", function( c ) return ( "%02x" ):format( string.byte( c ) ) end ) pr...
nilq/small-lua-stack
null
local computer = require "computer" local fs = require "filesystem" local robot = require "robot" local serial=require "serialization" local shell = require "shell" NORTH = 0 EAST = 1 SOUTH = 2 WEST = 3 t = {} local args, options = shell.parse(...) function file_exists(name) local f=io.open(name,"r") if f~=nil t...
nilq/small-lua-stack
null
local class = require '30log' yield = coroutine.yield local enumerator = class() function enumerator:init(source, length) assert(type(source) == 'table' or type(source) == 'function') local source_type = type(source) if source_type == 'function' then self.source = source else self.s...
nilq/small-lua-stack
null
local class = require('src.Utils.MiddleClass'); local Sequence = require('src.Sequence'); --- Executes each child nodes sequentially until one node returns `failure()`, --- or all nodes returns `success()`. If every child nodes returns `success()`, --- the `ReactiveSequence` node returns `success()` too, otherwise re...
nilq/small-lua-stack
null
local counts = {} local gamma, epsilon = '', '' for line in io.lines() do for i = 1, #line do local n = line:sub(i, i) if counts[i] == nil then counts[i] = 0 end if n == '1' then counts[i] = counts[i] + 1 elseif n == '0' then counts[i] = counts[i] - 1 else error('Unknown chara...
nilq/small-lua-stack
null
return [[xantham xanthan xanthate xanthates xanthein xanthene xanthian xanthic xanthin xanthine xanthium xanthoma xanthomas xanthomata xanthopsia xanthous xanthoxyl xebec xebecs xenarthral xenia xenial xenium xenobiotic xenocryst xenocrysts xenogamy xenogenous xenograft xenografts xenolith xenoliths xenomania xenon xen...
nilq/small-lua-stack
null
local _Constants_API = require(script:GetCustomProperty("Constants_API")) local Images = _Constants_API:WaitForConstant("PORTALIMAGES") local imageHolder1 =Images.ImageHolder1 -- title card and all tanks local imageHolder2 =Images.ImageHolder2 -- all premium shop and all skins local holder1Index = { ["title"] = 1...
nilq/small-lua-stack
null
local config = { [1] = { id = 1, name = "monster_name_1", type=1, body_res_id=1, weapon_res_id=1, fight_type=1, max_hp=1000, attr_list = {[1]=100,[2]=100}, move_speed=100, skill_list={}, }, } return config
nilq/small-lua-stack
null
local GUICR = {} GUICR.IdentityCat = "gui_customranges_cat" GUICR.IdentityMain = "gui_customranges_main" GUICR.IdentityCustom = "gui_customranges_range_" GUICR.Ranges = {} GUICR.Additional = {} GUICR.Locale = { ["catname"] = { ["english"] = "Custom ranges", ["russian"] = "Диапазоны", ["chinese"] = "自定義範圍" }, ...
nilq/small-lua-stack
null
--[[---------------------------------------------------------------------------- This file is part of Friday Night Funkin' Rewritten by HTV04 ------------------------------------------------------------------------------]] weeks = { init = function() bpm = 100 enemyFrameTimer = 0 boyfriendFrameTimer...
nilq/small-lua-stack
null
dofile('/home/deepanshu/acads/summer-18/p4-traffictools/samples/qmetadata/output/wireshark/qmetadata_1_ipv4.lua') dofile('/home/deepanshu/acads/summer-18/p4-traffictools/samples/qmetadata/output/wireshark/qmetadata_2_udp.lua') dofile('/home/deepanshu/acads/summer-18/p4-traffictools/samples/qmetadata/output/wireshark/qm...
nilq/small-lua-stack
null
module(..., package.seeall) -- This module provides functions for generating snabb config -- commands with random path queries and values local ffi = require("ffi") local schema = require("lib.yang.schema") local capabilities = {['ietf-softwire']={feature={'binding', 'br'}}} require('lib.yang.schema').set_default...
nilq/small-lua-stack
null
local CorePackages = game:GetService("CorePackages") local Rodux = require(CorePackages.Rodux) local Immutable = require(script.Parent.Parent.Immutable) return function(state, action) return Rodux.createReducer( { clientSearchTerm = "", clientTypeFilters = {}, serverSearchTerm = "", serverTypeFilters = {}, ...
nilq/small-lua-stack
null
object_mobile_dressed_wod_gray_outcast_06 = object_mobile_shared_dressed_wod_gray_outcast_06:new { } ObjectTemplates:addTemplate(object_mobile_dressed_wod_gray_outcast_06, "object/mobile/dressed_wod_gray_outcast_06.iff")
nilq/small-lua-stack
null
require('vimp') local assert = require("vimp.util.assert") local log = require("vimp.util.log") local helpers = require("vimp.testing.helpers") local TestKeys = '<space>t7<f4>' local TestKeys2 = ',<space>t9<f5>' local Tester do local _class_0 local _base_0 = { test_key_map = function(self) vimp.nnoremap({...
nilq/small-lua-stack
null
--- --- Created By 0xWaleed --- DateTime: 5/4/21 12:36 AM --- require('varguard') -- validation format: validator:arg, arg|validator|validator:arg describe('varguard_verify', function() it('should exist', function() assert.is_not_nil(varguard_verify) end) it('should return (false, error) if fir...
nilq/small-lua-stack
null
mg_villages.wseed = 0; minetest.register_on_mapgen_init(function(mgparams) mg_villages.wseed = math.floor(mgparams.seed/10000000000) end) function mg_villages.get_bseed(minp) return mg_villages.wseed + math.floor(5*minp.x/47) + math.floor(873*minp.z/91) end function mg_villages.get_bseed2(minp) ...
nilq/small-lua-stack
null
local test = {} test.start = function () return 0 end return test
nilq/small-lua-stack
null
H = {} Uniq = {} function Uniq:init() local ld = {} self.prefixes = {} self.state = {} self.set = function(k, v) local p = { [k] = v } self.prefixes = p end setmetatable(ld, Uniq) return self end function Uniq:insert_prefix(prefix, item) local p = se...
nilq/small-lua-stack
null
-- @Date : 2016-02-01 10:31:04 -- @Author : Miao Lian (miaolian19890421@163.com) -- @Version : 1.0 -- @Description : -- local a = require("application.lib.sim_test_lib") local test_act = {} function test_act:test() local uri = self.request.uri local args = self.request:getParams() local res = ...
nilq/small-lua-stack
null
-- local M = {} local im = imgui local keyListener = { editor = true, game = false, coding = false } local keyListenerBak = table.clone(keyListener) function M.setKeyEventEnabled(name, b) if name == true then for k, _ in pairs(keyListener) do keyListener[k] = true end elseif name ==...
nilq/small-lua-stack
null
local Tunnel = module("vrp","lib/Tunnel") local Proxy = module("vrp","lib/Proxy") vRPbs = {} Tunnel.bindInterface("vrp_barbershop",vRPbs) Proxy.addInterface("vrp_barbershop",vRPbs) function f(n) n = n + 0.00000 return n end default_overlay = { ["-1"] = { 0,0 }, ["9"] = { 18,0 }, ["7"] = { 11,0 }, ["8"] = { 10,...
nilq/small-lua-stack
null
local ShakeDetector = { count = 0 } local lastX, lastY, lastZ, timer, lastTime, threshold, timeout = 0, 0, 0, 0, 0, 0.5, 0.25 function ShakeDetector:reset(th, to) threshold, timeout = th or 0.5, to or 0.25 end function ShakeDetector:update(dt, x, y, z) timer = timer + dt if lastX == 0 and lastY == 0 and l...
nilq/small-lua-stack
null
ys = ys or {} ys.Battle.BattleControllerCommand = class("BattleControllerCommand", ys.MVC.Command) ys.Battle.BattleControllerCommand.__name = "BattleControllerCommand" ys.Battle.BattleControllerCommand.Ctor = function (slot0) slot0.Battle.BattleControllerCommand.super.Ctor(slot0) end ys.Battle.BattleControllerComman...
nilq/small-lua-stack
null
H.keymap('n', '<leader>gb', '<cmd>GitBlameToggle<cr>')
nilq/small-lua-stack
null
local pl_string = require "pl.stringx" local utils = require "kong.tools.utils" local cjson = require "cjson" local type = type local pairs = pairs local remove = table.remove local _M = {} -- Parses a form value, handling multipart/data values -- @param `v` The value object -- @return The parsed value local functio...
nilq/small-lua-stack
null
return { UniqueId = "color", Name = "Default Color Editor", Description = "The color editor included with PropertiesMod", Attribution = "", Filters = {"Special:Color"}, EntryPoint = "color", }
nilq/small-lua-stack
null
require("util") local GG = require('common') ------------------------------------------------------------------------------------ -- In this file, the base character will be overwritten with the newly created one -- unless another mod that allows to use both characters is active. -------------------------------------...
nilq/small-lua-stack
null
Config = {} Config.Jobs = { ['police'] = vector3(448.4, -973.2, 30.6), ['ambulance'] = vector3(270.5, -1363.0, 23.5), ['realestate'] = vector3(-124.786, -641.486, 167.820), ['taxi'] = vector3(903.32, -170.55, 74.0), ['cardealer'] = vector3(-32.0, -1114.2, 25.4), ['mechanic'] = vector3(-342.291,...
nilq/small-lua-stack
null
data:extend( { { type = "item-group", name = "merged-chests", order = "wide-chests", icon = "__base__/graphics/item-group/logistics.png", icon_size = 64, }, { type = "item-subgroup", name = "wide-chests", group = "merged-chests", order = "a", }, { type = "item-subgroup", name = "high-chests",...
nilq/small-lua-stack
null
--[[ Jamba - Jafula's Awesome Multi-Boxer Assistant Copyright 2008 - 2015 Michael "Jafula" Miller License: The MIT License ]]-- local L = LibStub("AceLocale-3.0"):NewLocale( "Jamba-Core", "enUS", true ) L["Slash Commands"] = true L["Team"] = true L["Quest"] = true L["Merchant"] = true L["Interaction"] = true L["Combat...
nilq/small-lua-stack
null
import "CoreLibs/graphics" import "CoreLibs/timer" local gfx = playdate.graphics local m = { x = 10, y = 10, width = 150, height = 200, is_a_pressed = false, selected = "seed-up", } local labels = { seed = "Seed rate", cell = "Cell size", } function labels:max_width() local width, height = gfx.getT...
nilq/small-lua-stack
null
object_mobile_dressed_meatlump_hideout_male_01 = object_mobile_shared_dressed_meatlump_hideout_male_01:new { } ObjectTemplates:addTemplate(object_mobile_dressed_meatlump_hideout_male_01, "object/mobile/dressed_meatlump_hideout_male_01.iff")
nilq/small-lua-stack
null
object_mobile_som_som_kenobi_blistmok = object_mobile_som_shared_som_kenobi_blistmok:new { } ObjectTemplates:addTemplate(object_mobile_som_som_kenobi_blistmok, "object/mobile/som/som_kenobi_blistmok.iff")
nilq/small-lua-stack
null
local clock = require 'clock' local fiber = require 'fiber' local fun = require 'fun' local json = require 'json' local log = require 'log' local msgpack = require 'msgpack' local net_box = require 'net.box' local CLIENT_NAME = 'zip' local URL = os.getenv('GRAPHKA_URL') URL = URL or 'localhost:3311' local NULL = msgp...
nilq/small-lua-stack
null
local path = "qnSwfRes/sfw/red_envelope_wait_fly_swf_pin.png" local red_envelope_wait_fly_swf_pin_map = { ["red_envelope_wait_fly_1.png"] = { file=path, x=2,y=2, width=127,height=127, offsetX=0,offsetY=0, utWidth=127, utHeight=127, rotated=false }, } return red_envelope_wait_fly_swf_pin_map
nilq/small-lua-stack
null
local mongodb = require("libs/mongodb"); function onRequest(headers, matches, json) local mdbConn = mongodb.new("mongodb://localhost:27017/"):connect(); local collection = mdbConn:getCollection("taplection", "users"); local success, err = collection:update(json.query, json.data); collection:close(); mdbConn:disco...
nilq/small-lua-stack
null
C_LFGuildInfo = {} ---@param index number ---@return GuildTabardInfo? tabardInfo ---[Documentation](https://wow.gamepedia.com/API_C_LFGuildInfo.GetRecruitingGuildTabardInfo) function C_LFGuildInfo.GetRecruitingGuildTabardInfo(index) end
nilq/small-lua-stack
null
Config = Config or {} Config.DownloadTimer = { ["Twitter"] = 5000, ["Twitch"] = 3000, ["Advertisement"] = 4000, ["Cars"] = 5000, } Config.TelfixCommand = "phonenuifix" -- or nil -- Config.Voip = "pma-voice" -- or mumble or pma-voice Config.Webhooks = { ["Camera"] = "changeme", [...
nilq/small-lua-stack
null
local _, ns = ... local SyLevel = ns.SyLevel function SyLevel:SetFontSettings() SyLevel:UpdateAllPipes() end function SyLevel:GetFontSettings() local db = SyLevelDB.FontSettings return db.typeface, db.size, db.align, db.reference, db.offsetx, db.offsety, db.flags end
nilq/small-lua-stack
null
-- Setup nvim-cmp. local cmp = require'cmp' local lspkind = require'lspkind' cmp.setup({ snippet = { expand = function(args) -- For `ultisnips` user. vim.fn["UltiSnips#Anon"](args.body) end, }, mapping = { ['<Tab>'] = function(fallback) if cmp.visible() then cmp.select_next_...
nilq/small-lua-stack
null
local SyntaxKind = require("lunar.ast.syntax_kind") local SyntaxNode = require("lunar.ast.syntax_node") local IndexExpression = setmetatable({}, { __index = SyntaxNode, }) IndexExpression.__index = setmetatable({}, SyntaxNode) function IndexExpression.new(start_pos, end_pos, base, index) return IndexExpression.cons...
nilq/small-lua-stack
null
--[[print(" ") print(" ") print(" ") print(" ") print("GMapRotate init is running!") print(" ") print(" ") print(" ") print(" ") print(" ") ]] AddCSLuaFile( "gmaprotate/cl_nextmap.lua" ) if SERVER then include("sv_gmr_config.lua") include("gmaprotate/sv_nextmap.lua") end if CLIENT then include("gmaprotate/cl...
nilq/small-lua-stack
null
--region CPoint.lua --Author : jefflwq --Date : 2016/04/24 --说明 : Point类 --endregion using "Joop" namespace "System.Drawing" { class "CPoint" { -- 此 Point 的 X 坐标。 X = false, -- 此 Point 的 Y 坐标。 Y = false, -- 初始化 Point 类的新实例。 CPoint = ...
nilq/small-lua-stack
null
net.Receive(amapvote.NetString, function() amapvote.ReceiveVoteStart() end) function amapvote.ReceiveVoteStart() local tbl = net.ReadTable() amapvote.ShowVote(tbl.options, tbl.endTime) end net.Receive(amapvote.ShowWinnerString, function() amapvote.ReceiveVoteResults() end) function amapvote.ReceiveVoteRes...
nilq/small-lua-stack
null
local path = ... local path_req = path:sub(1, -7) local utf8 = require(path_req .. ".utf8") local util = require(path_req .. ".util") local parse = {} local function stack() local push = function(self, element) table.insert(self, element) end local pop = function (self) if (#self > 0) then return table.r...
nilq/small-lua-stack
null
project "c_log" location "." kind "StaticLib" language "C" files { "**.c", "**.h" } includedirs { "_vendor", "." }
nilq/small-lua-stack
null
local loc = GetLocale() local dbs = { "items", "quests", "quests-itemreq", "objects", "units", "zones", "professions", "areatrigger", "refloot" } local noloc = { "items", "quests", "objects", "units" } -- Patch databases to merge TurtleWoW data local function patchtable(base, diff) for k, v in pairs(diff) do if ...
nilq/small-lua-stack
null
test = require 'u-test' common = require 'common' function OnXblTitleManagedStatsWriteAsync() -- this fast loop will trigger 429s XblTitleManagedStatsWriteAsync(); end function TitleManagedStatsNoSVD_Handler() XblTitleManagedStatsWriteAsync() end test.skip = true test.TitleManagedStatsNoSVD = function() ...
nilq/small-lua-stack
null
local t = LoadFallbackB(); t[#t+1] = StandardDecorationFromFileOptional("ExplanationFrame","ExplanationFrame"); return t
nilq/small-lua-stack
null
module(..., package.seeall) local lgstring = require "lgstring" local i18n = require 'bamboo.i18n' _G.translate = i18n.translate local function getlocals(context, depth) local i = 1 while true do local name, value = debug.getlocal(depth, i) if not name then break end context[name] = value i = i + 1...
nilq/small-lua-stack
null
local name = "gotk" local version = "0.1.5" local release = "v" .. version local org = "fluxcd" local repo = "toolkit" local url = "https://github.com/" .. org .. "/" .. repo food = { name = name, description = "Kubernetes toolkit for assembling CD pipelines the GitOps way", homepage = "https://toolkit.flu...
nilq/small-lua-stack
null
return { PlaceObj('ModItemCode', { 'name', "LakeComfort", 'FileName', "Code/LakeComfort.lua", }), PlaceObj('ModItemCode', { 'name', "WaterLoss", 'FileName', "Code/WaterLoss.lua", }), PlaceObj('ModItemCode', { 'name', "MoistureVaporatorSucksWater", 'FileName', "Code/MoistureVaporatorSucksWater.lua", }), }
nilq/small-lua-stack
null
local vim = vim local string_utils = require "lsp_smag.utils.strings" local list_utils = require "lsp_smag.utils.lists" local lsp_provider_names = require "lsp_smag.lsp.provider_names" local lsp_tag_kinds = require "lsp_smag.tags.kinds" local function get_tag_kind_priority_order() local order_as_provider_entries =...
nilq/small-lua-stack
null
id = 'V-38451' severity = 'medium' weight = 10.0 title = 'The /etc/passwd file must be group-owned by root.' description = 'The "/etc/passwd" file contains information about the users that are configured on the system. Protection of this file is critical for system security.' fixtext = [=[To properly set the group owne...
nilq/small-lua-stack
null
local wk = require("which-key") vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, { underline = true, virtual_text = {severity_limit = "Warning"}, signs = true }) local custom_attach = function(client, bufnr) local functio...
nilq/small-lua-stack
null
#!/usr/bin/env lua return { connect = { host = 'localhost', port = 3306, name = 'luadbi', user = 'luadbi', pass = 'testing12345!!!' }, encoding_test = { 12435212, 463769, 8574678, -12435212, 0, 9998212, 7653.25, 7635236, 0.000, -7653.25, 1636.94783, "string 1", "another_string...
nilq/small-lua-stack
null
local t = ...; t = Def.ActorFrame{ Def.Quad{ InitCommand=cmd(setsize,SCREEN_WIDTH,38;diffuse,color("#b87000")); UpdateFrameMessageCommand=function(s,param) if param.PCont then if param.PCont[PLAYER_1] == param.PCont[PLAYER_2] then s:croptop(0.5) else s:croptop(0) end end end, }; Loa...
nilq/small-lua-stack
null
local keymap = vim.api.nvim_set_keymap local g = vim.g keymap('n', '<leader>gh', ':diffget //2<CR>', { noremap = true }) keymap('n', '<leader>gl', ':diffget //3<CR>', { noremap = true }) require('gitsigns').setup { numhl = true, signcolumn = false, }
nilq/small-lua-stack
null
-- Double Ore patch amounts /c local surface = game.player.surface local patches = {"iron-ore-patch", "copper-ore-patch", "coal-patch", "stone-patch", "uranium-ore-patch"} for _, ore in pairs(surface.find_entities_filtered({type="resource"})) do for _, patchname in pairs(patches) do if ore.name == patchname...
nilq/small-lua-stack
null
local _G = _G; local ABP_4H = _G.ABP_4H; local GetNumGuildMembers = GetNumGuildMembers; local GetGuildRosterInfo = GetGuildRosterInfo; local GuildRoster = GuildRoster; local Ambiguate = Ambiguate; local table = table; local guildInfo = {}; function ABP_4H:RebuildGuildInfo() table.wipe(guildInfo); for i = 1, ...
nilq/small-lua-stack
null
local lavender_0 = DoorSlot("lavender","0") local lavender_0_hub = DoorSlotHub("lavender","0",lavender_0) lavender_0:setHubIcon(lavender_0_hub) local lavender_1 = DoorSlot("lavender","1") local lavender_1_hub = DoorSlotHub("lavender","1",lavender_1) lavender_1:setHubIcon(lavender_1_hub) local lavender_2 = DoorSlot("lav...
nilq/small-lua-stack
null
local ReplicatedStorage = game:GetService('ReplicatedStorage') local Modules = ReplicatedStorage:WaitForChild('Modules') -- local logger = require(Modules.src.utils.Logger) local clientSrc = game:GetService('StarterPlayer'):WaitForChild('StarterPlayerScripts').clientSrc local Support = require(Modules.src.utils.Support...
nilq/small-lua-stack
null
local widget = require( "widget" ) local composer = require( "composer" ) local json = require ("json") local myData = require ("mydata") local loadsave = require( "loadsave" ) local upgrades = require("upgradeName") local missionScene = composer.newScene() --------------------------------------------------------------...
nilq/small-lua-stack
null
-- Universal Fluid API implementation -- Copyright (c) 2018 Evert "Diamond" Prants <evert@lunasqu.ee> local modpath = minetest.get_modpath(minetest.get_current_modname()) fluid_lib = rawget(_G, "fluid_lib") or {} fluid_lib.modpath = modpath fluid_lib.unit = "mB" fluid_lib.unit_description = "milli-bucket" fluid_lib...
nilq/small-lua-stack
null
-- -- YATM Codex Entries -- -- Provides CODEX entries for YATM mods -- local mod = foundation.new_module("yatm_codex_entries", "1.0.0") local modules = { -- YATM "yatm_armoury", "yatm_armoury_icbm", "yatm_autotest", "yatm_bees", "yatm_blasts", "yatm_blasts_emp", "yatm_blasts_frost", "yatm_brewery", ...
nilq/small-lua-stack
null
local diditload = false local dff,txd function loadBTWheels(load) if load == true then txd = engineLoadTXD("wheels/bt/j2_wheels.txd", 1082 ) engineImportTXD(txd, 1082) dff = engineLoadDFF("wheels/bt/wheel_gn1.dff", 1082 ) engineReplaceModel(dff, 1082) dff = engineLoadDFF("wheels/bt/wheel_gn2.df...
nilq/small-lua-stack
null
description = [[ Exploits insecure file upload forms in web applications using various techniques like changing the Content-type header or creating valid image files containing the payload in the comment. ]] --- -- @usage nmap -p80 --script http-fileupload-exploiter.nse <target> -- -- This script discovers the uploa...
nilq/small-lua-stack
null
local SubType = { [0] = true, [1] = true, [9] = true, } return function (Data) assert(SubType[Data],"交易限制【"..Data.."】错误,必须为0,1,9其中之一") return Data end
nilq/small-lua-stack
null
return { --> identifying information <-- id = 7; --> generic information <-- name = "Oak Club"; rarity = "Common"; image = "rbxassetid://2528902806"; description = "A heavy wooden club"; --> equipment information <-- isEquippable = true; equipmentSlot = 1; equipmentType = "sword"; gripCFrame = CFrame.An...
nilq/small-lua-stack
null
local fs_normalise = require "util" .fs_normalise local split_at = require "util" .split_at local PATH_TYPE = "$Path" local function create_path(root_dir, path) local p = {} local mt = {} if path:sub(1, 1) == "/" then path = fs_normalise(path) else path = fs_normalise(root_dir .. "/" .. path) end mt.__pa...
nilq/small-lua-stack
null
-- Copyright 2015 -- Matthew -- Licensed to the public under the Apache License 2.0. local state = (luci.sys.call("pidof cifsd > /dev/null") == 0) if state then state_msg = "<b><font color=\"green\">" .. translate("Running") .. "</font></b>" else state_msg = "<b><font color=\"red\">" .. translate("Not running") .. ...
nilq/small-lua-stack
null
AnimEvent = SimpleClass(SkillEvent) function AnimEvent:initialize() self.animCfg = ConfigHelper:getConfigByKey('AnimConfig',self.cfgId) self.animName = self.animCfg and self.animCfg.animName or nil end --子类重写 function AnimEvent:doEvent() --print("<color=red>AnimEvent: </color>",self.tickFrame,SkillEventTypeLang[...
nilq/small-lua-stack
null
local b = require "bootstrap" --[[]] --require("mobdebug_start") --[[]] --require("test_mongodb") -- ]] local lapis = require("lapis") local lapis_serve = lapis.serve lapis_serve("web.lapis_app") --[[]]
nilq/small-lua-stack
null
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' description 'ESX Animations' version '1.0.0' files { 'img/header/animations.jpg' } client_scripts { 'config.lua', 'client/main.lua', '@NativeUI/NativeUI.lua' } exports { 'openAnimations' }
nilq/small-lua-stack
null
require 'networks.convnet' return function(args) args.n_units = {256, 512, 512, 512} args.filter_size = {8, 4, 3, 3} args.filter_stride = {4, 2, 1, 1} args.padding = {1, 0, 0, 0} args.n_hid = {2048, 1024} args.nl = nn.ReLU return create_network(args) end
nilq/small-lua-stack
null
------------------------------------------------------------------------------- -- Spine Runtimes Software License v2.5 -- -- Copyright (c) 2013-2016, Esoteric Software -- All rights reserved. -- -- You are granted a perpetual, non-exclusive, non-sublicensable, and -- non-transferable license to use, install, execute, ...
nilq/small-lua-stack
null
--[[ Copyright (c) 2019 robot256 (MIT License) * Project: Multiple Unit Train Control * File: data.lua * Description: Add the MU locomotives and technology --]] require ("util.copyPrototype") require ("util.createMuLocoEntityPrototype") require ("util.createMuLocoItemPrototype") require ("util.createMuLocoRecipePro...
nilq/small-lua-stack
null
meas = "cm" temp = 5 + math.random(17) edge_b = temp edge_c = temp factor = lib.math.round_dec(1 + 0.1 * (3 + math.random(10)),1) edge_a = lib.math.round_dec(factor * temp, 1) circ = lib.math.round_dec((3 + factor) * temp, 1)
nilq/small-lua-stack
null
ESX = nil local ItemsLabels = {} local GunShopPrice = Config.EnableClip.GunShop.Price local GunShopLabel = Config.EnableClip.GunShop.Label local BlackWeashopPrice = Config.EnableClip.BlackWeashop.Price local BlackWeashopLabel = Config.EnableClip.BlackWeashop.Label TriggerEvent('esx:getSharedObject', func...
nilq/small-lua-stack
null
 -- declare colour codes for console messages local RED = "|cffff0000" local GREEN = "|cff00ff00" local YELLOW = "|cffffff00" local WHITE = "|cffffffff" local GREY = "|cffbababa" local DATA_VERSION = 4 -- route calibration versioning local CMD_VERSION = "VER" local CMD_KNOWN = "KWN4" local NauticusClassi...
nilq/small-lua-stack
null
-- -- Created by David Lannan -- User: grover -- Date: 26/04/13 -- Time: 1:21 AM -- Copyright 2013 Developed for use with the byt3d engine. -- ------------------------------------------------------------------------------------------------------------ shadow_vsm_storedepth_vert = [[ attribute vec3 vPosition; unifo...
nilq/small-lua-stack
null
return { entities = { {{type = "random-of-entity-type", entity_type = "splitter"}, {x = 1, y = -0.5}, {dir = "south", dmg = {dmg = {type="random", min = 0, max = 50}}}}, }, }
nilq/small-lua-stack
null
GM.PlayersReady = {} GM.ReadyTimer = false --local variables local ready = false local ready_allowed = false local round_preparation = false local wave_active = false --local functions local function decide_text() local text = "NO TEXT" if wave_active then text = string.upper(GetHostName()) elseif not ready_allo...
nilq/small-lua-stack
null
local ffi = require "ffi" local pipe = require "pipe" local mg = require "moongen" local serpent = require "Serpent" local memory = require "memory" local log = require "log" local C = ffi.C ffi.cdef[[ struct rate_limiter_batch { int32_t size; void* bufs[0]; }; struct limiter_control { uint...
nilq/small-lua-stack
null
local validate_handler do local _obj_0 = require("gimlet.utils") validate_handler = _obj_0.validate_handler end local Route do local _base_0 = { validate = function(self) local _list_0 = self.handlers for _index_0 = 1, #_list_0 do local h = _list_0[_index_0] validate_handler(h) ...
nilq/small-lua-stack
null
#!/usr/bin/env texlua -- skip all tests includetests = {}
nilq/small-lua-stack
null
--[[ ======================================= Racing Panel Proudly Sponsored By N'wah Leaf Importers ======================================= @Undyne Keith Mitchell ]]--======================================= --[[ Version 1.1 2019-05-11 ==============...
nilq/small-lua-stack
null
local _ local actionMenu = nil --xSits.Core.Menu:Close() function xSits.Core.Popup(ply, reason) if not IsValid(xSits.Core.Menu) then xSits.Core.Menu = XYZUI.Frame("Open Sits", Color(2, 108, 254), true, nil, true) xSits.Core.Menu:SetSize(ScrW()*0.15, ScrH()*0.3) xSits.Core.Menu:SetPos(0, (ScrH()*0.5) - (xSits.Cor...
nilq/small-lua-stack
null
local Screen = Level:extend() function Screen:activate() --- shape value local cubeZ = 50 local cubeLenX = 150 local cubeLenY = base.guiHeight-1-1 local cubeLenZ = 40 --- -- levelName local levelName = lang.level_RockClimbing -- player location local playerX = 50 local playerY = 90 local playerZ = cubeZ -...
nilq/small-lua-stack
null
Preview = {} function Preview:Update() local retval, didHit, hitCoords, surfaceNormal, materialHash, entity = table.unpack(Raycast()) if not retval or not didHit then return end local ped = PlayerPedId() local coords = GetEntityCoords(ped) local dist = #(coords - hitCoords) -- Check can place. local canPlac...
nilq/small-lua-stack
null
object_tangible_tcg_series5_hangar_ships_hutt_fighter_heavy_02 = object_tangible_tcg_series5_hangar_ships_shared_hutt_fighter_heavy_02:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series5_hangar_ships_hutt_fighter_heavy_02, "object/tangible/tcg/series5/hangar_ships/hutt_fighter_heavy_02.iff")
nilq/small-lua-stack
null
--!The Make-like Build Utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache L...
nilq/small-lua-stack
null
if settings.startup["moreshinybobs-order"] and settings.startup["moreshinybobs-order"].value == true then require('prototypes/order/pole-order') end
nilq/small-lua-stack
null
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -- -- ───────────────────────────────────────────────── -- -- Plugin: feline.nvim -- Github: github.com/feline-nvim/feline.nvim -- ───────────────────────────────────────────────── -- -- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -- -- ━━━━━━━━...
nilq/small-lua-stack
null
for line in io.lines(arg[1]) do local r, a, b, x, y = 0, line:match("(%d+)x(%d+) | (%d+) (%d+)") while b ~= y do r, a, b, x, y = r+a, b-1, a, b-y, x end print(r+x) end
nilq/small-lua-stack
null