content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
assert(range.trangA(1) == 1 + 5) assert(range.trangB(1,1) == 2) assert(range.trangC(3,3) == 3 + 3 + 5)
nilq/small-lua-stack
null
-- trickle v0.1.0 - Lua bitstream -- https://github.com/bjornbytes/trickle -- MIT License local trickle = {} local function byteExtract(x, a, b) b = b or a x = x % (2 ^ (b + 1)) for i = 1, a do x = math.floor(x / 2) end return x end local function byteInsert(x, y, a, b) local res = x for i = a, b d...
nilq/small-lua-stack
null
surface.CreateFont("bSecure.Title",{ font = "Roboto", size = 22 }) surface.CreateFont("bSecure.Small",{ font = "Roboto", size = 18 }) surface.CreateFont("bSecure.ExtraSmallButSlightlyBigger",{ font = "Roboto", size = 17, }) surface.CreateFont("bSecure.ExtraSmall",{ font = "Roboto", si...
nilq/small-lua-stack
null
name = "player"
nilq/small-lua-stack
null
local PLUGIN = PLUGIN netstream.Hook("noteSendText", function(client, id, contents) if (string.len(contents) <= NOTELIMIT) then for k, v in pairs(nut.item.instances) do if v.uniqueID == "note" and v.id == id then v:setData("text", contents) end end end end)
nilq/small-lua-stack
null
local UIBloxRoot = script.Parent.Parent.Parent.Parent local Packages = UIBloxRoot.Parent local Roact = require(Packages.Roact) return function(props) return Roact.createElement("Frame", { BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), [Roact.Ref] = props[Roact.Ref], }) end
nilq/small-lua-stack
null
local L = BigWigs:NewBossLocale("Mephistroth", "zhCN") if not L then return end if L then L.custom_on_time_lost = "暗影消退计时" L.custom_on_time_lost_desc = "显示暗影消退为|cffff0000红色|r计时条。" end L = BigWigs:NewBossLocale("Domatrax", "zhCN") if L then L.custom_on_autotalk = "自动对话" L.custom_on_autotalk_desc = "立即选择阿格拉玛之盾对话开始与多...
nilq/small-lua-stack
null
local AI = {} function onGoal(x, y, grid) -- Comprueba si existe una casilla redonda en la posición indicada for z = 1, #grid[y + 1][x + 1] do if grid[y + 1][x + 1][z] == 5 then return true end end end local function solve(x, y, maxMoves, detailedInfo, data, grid, moves) -- Calcula todas las solucio...
nilq/small-lua-stack
null
-- パラメータ : 周波数[Hz](省略時1000) beta(省略時周波数/10) function process(data, sample_rate, parameters) freq = tonumber(parameters[1] or 1000) beta = tonumber(parameters[2] or (freq / 10)) result = {} for c = 1, #data do result[c] = {} sekibun = 0 for i = 1, #data[c] do sekibun = sekibun + data[c][i] / sample_rate ...
nilq/small-lua-stack
null
local utils = require("lui.util.utils") local Color = utils.class() function Color:init() self:set(1, 1, 1, 1) end function Color:unpackRGBA() return self.r, self.g, self.b, self.a end function Color:toTableRGBA() return { self.r, self.g, self.b, self.a } end function Color:set(r, g, b, a) if type(...
nilq/small-lua-stack
null
operation = {"more", "less"}
nilq/small-lua-stack
null
-- toggleterm plugin -- ----------------- require('toggleterm').setup { size = 20, hide_numbers = true, open_mapping = [[<C-t>]], shade_filetypes = {}, shade_terminals = false, shading_factor = 0.3, -- The degree by which to darken to terminal colour, default: 1 for dark backgrounds, 3 for light start_in_...
nilq/small-lua-stack
null
local IChargeable = class.interface("IChargeable", { charges = "number", max_charges = "number", can_be_recharged = "boolean", d...
nilq/small-lua-stack
null
-- Copyright 2016 Yat Hin Wong vector = require "lib.vector" Entity = require "entity" steering = require "steering" function love.load() math.randomseed(os.time()) player = Entity(love.graphics.getWidth()/2, love.graphics.getHeight()/2, "assets/playership.png") lasers = {} bombs = {} enemies = {}...
nilq/small-lua-stack
null
connect = require("connect") weatherlogger = require("weatherlogger") --require "config" connect.start() weatherlogger.start()
nilq/small-lua-stack
null
local channel = 1235 local reactorName = "fissionReactorLogicAdapter" local boilerName = "boilerValve" local turbineName = "turbineValve" local inductionName = "inductionPort" -- Find Wireless Modems local wirelessModems = table.pack(peripheral.find("modem", function(_, modem) return modem.isWireless() end)) lo...
nilq/small-lua-stack
null
return { fadeOut = 1.5, mode = 2, id = "NAERWEIKE1", once = true, fadeType = 1, fadein = 1.5, scripts = { { actor = 401210, side = 2, nameColor = "#a9f548", say = "为什么我们非要来这种地方执行任务啊!", dir = 1, bgm = "level02", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { a...
nilq/small-lua-stack
null
------------------------------------------------------------------ -------------------- Helper Functions ---------------------------- return { Round = function (num, numDecimalPlaces) -- try GUI.round(num[, places]) local mult = 10^(numDecimalPlaces or 0) return math.floor(num * mult + 0.5) / ...
nilq/small-lua-stack
null
require("bootstrap") vim.cmd([[packadd packer.nvim]]) vim.g["mapleader"] = "," local functions = require("functions") require("keymappings") local cmp = require("cmp") local global_opt = vim.opt_global local opt = vim.opt -- global_opt.termguicolors = true global_opt.ignorecase = true global_opt.smartcase = true...
nilq/small-lua-stack
null
local exception = {} exception.DEFENDER_PARAMS_LACKING = {code = 110001, data = {}, msg = "An internal server error has occurred on the server"} exception.DEFENDER_PARAMS_FAIL = {code = 110002, data = {}, msg = "An internal server error has occurred on the server"} exception.DEFENDER_MORE = {code = 110003, data = {}, ...
nilq/small-lua-stack
null
local module = {} module.qry_ambient = "ambient" module.qry_requested = "requested" module.API_v1 = "/api/v1/" module.API_state = "state/" module.API_v1_state_requested = module.API_v1..module.API_state..module.qry_requested return module
nilq/small-lua-stack
null
local shape = require"module/bump/shapes/shape" local point_shape = point("point"){ _pos = {x = 0,y = 0}, } function point_shape:init(x,y) Shape.init(self, 'point') self._pos = {x = x, y = y} end function point_shape:collidesWith(other) if self == other then return false end if other._type == 'point' then ...
nilq/small-lua-stack
null
-- Main crosshair (to be used in final) local crosshair = game.GUI.Image.new() crosshair:setSource("crosshair") crosshair:setPosition(game.GUI.GDim.new(0.5, -16, 0.5, -16)) crosshair:setSize(game.GUI.GDim.new(0, 32, 0, 32)) game.GUI.addImage(crosshair) -- gui.lua ---- This crosshair rotates around the main crosshair...
nilq/small-lua-stack
null
print("test_crypto_primitives begin") var b = {'1FNfecY7xnKmMQyUpc7hbgSHqD2pD8YDJ7': 20000} print("b tojson is ", tojsonstring(b)) print("sha256(\"\")=", sha256_hex("")) print("sha3(\"\")=", sha3_hex("")) print("sha1(\"\")=", sha1_hex("")) print("ripemd160(\"\")=", ripemd160_hex("")) print("sha256(\"a123\")=", sha256_...
nilq/small-lua-stack
null
-- Autogenerated with DRAKON Editor 1.32 local table = table local string = string local pairs = pairs local ipairs = ipairs local type = type local tostring = tostring local tonumber = tonumber local print = print local math = math local os = os local global_cfg = global_cfg local globs = globs local vud = require("...
nilq/small-lua-stack
null
-- ================= -- INPUT/OUPUT UTILS -- ================= -- Created by datwaft <github.com/datwaft> -- ======== -- Preamble -- ======== local M = require'bubbly.core.module'.new('utils.io') -- ======= -- Warning -- ======= -- Output a warning message M.warning = function(message) vim.cmd([[echo...
nilq/small-lua-stack
null
----------------------------------------- -- Spell: Regurgitation -- Deals Water damage to an enemy. Additional Effect: Bind -- Spell cost: 69 MP -- Monster Type: Lizards -- Spell Type: Magical (Water) -- Blue Magic Points: 1 -- Stat Bonus: INT+1 MND+1 MP+3 -- Level: 68 -- Casting Time: 5 seconds -- Recast Time: 24 sec...
nilq/small-lua-stack
null
local path = vim.fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim' if vim.fn.empty(vim.fn.glob(path)) > 0 then vim.api.nvim_command('!git clone https://github.com/wbthomason/packer.nvim '..path) end -- Required if packer is in `opt` path vim.cmd('packadd packer.nvim') local packer = require('packer') return ...
nilq/small-lua-stack
null
local clashCalc = {} function clashCalc.acerto(hitChance) local rand = math.random(1, 100) if rand < hitChance then return true end return false end function clashCalc.critical(unit) local rand = math.random(1, 100) if rand / 100 > unit:get_critical() then return true end return false end r...
nilq/small-lua-stack
null
unpack = unpack or table.unpack --problemas de versionamento local mqtt = require("mqtt_library") local plMod = require("player") local tbMod = require("textbox") local pkMod = require("puck") local binser = require("binser") local mime = require ("mime") local width, height = 800, 600 local pingTime = 10 -- o inter...
nilq/small-lua-stack
null
local ZxSimpleUI = LibStub("AceAddon-3.0"):GetAddon("ZxSimpleUI") local media = LibStub("LibSharedMedia-3.0") local Power47Options = {} Power47Options.__index = Power47Options Power47Options.OPTION_NAME = "Power47Options" ZxSimpleUI.optionTables[Power47Options.OPTION_NAME] = Power47Options ---@param barTemplateOption...
nilq/small-lua-stack
null
-- Copyright (c) 2017-present, Facebook, Inc. -- All rights reserved. -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. local speech = requi...
nilq/small-lua-stack
null
require "/scripts/vec2.lua" function init() self.delayTimer = config.getParameter("delayTime") self.aimPosition = mcontroller.position() message.setHandler("updateProjectile", function(_, _, aimPosition) self.aimPosition = self.aimPosition return entity.id() end) message.setHandler("kill", functio...
nilq/small-lua-stack
null
local config = require "config" local tiled = require "lib.levels.tiled" local layer = require "lib.levels.layer" local tiles = require "lib.tiles" local vector = require "lib.vector" local entity_handlers = require "lib.levels.entity_handlers" local level = {} ; level.__index = level function level.new (level_nam...
nilq/small-lua-stack
null
local prototype = {} local prototype_mt = { __call = function(self, ...) local result local bi = self.proto.beforeInstance if bi then result = bi(self, ...) end if type(result) == "nil" then result = self.proto._new(table.unpack(self.args)) local ri = result.instanced; if ri the...
nilq/small-lua-stack
null
---@class CS.UnityEngine.ParticleSystem.ForceOverLifetimeModule : CS.System.ValueType ---@field public enabled boolean ---@field public x CS.UnityEngine.ParticleSystem.MinMaxCurve ---@field public y CS.UnityEngine.ParticleSystem.MinMaxCurve ---@field public z CS.UnityEngine.ParticleSystem.MinMaxCurve ---@field public x...
nilq/small-lua-stack
null
local Name="yfc" local player=game.Players[Name] local char=player.Character local Suit=false Welds={} if script.Parent.className~="HopperBin" then local h=Instance.new("HopperBin") h.Name="Ice reaper" h.Parent=player.Backpack script.Parent=h end pcall(function() char.Sword:remove() end) pcall(function() char.Sheath:r...
nilq/small-lua-stack
null
#!/usr/bin/env luajit local ffi = require'ffi' local bit = require'bit' local ENABLE_CDATA = true local defaults = { int8_t = '0', int16_t = '0', int32_t = '0', int64_t = ENABLE_CDATA and "ffi.new'int64_t'" or "0", boolean = 'false', float = '0.0', double = '0.0', string = '""', byte = '0', } loca...
nilq/small-lua-stack
null
--- alle EntityCategories EntityCategories = { CavalryHeavy = 1, CavalryLight = 2, Spear = 3, Bow = 4, Sword = 5, VillageCenter = 6, Headquarters = 7, Scout = 8, Thief = 9, Rifle = 10, Cannon = 11, Worker = 12, Serf = 13, Hero8 = 14, Hero7 = 15, Hero6 = 16...
nilq/small-lua-stack
null
AddCSLuaFile() SWEP.HoldType = "pistol" if CLIENT then SWEP.PrintName = "Deagle" SWEP.Slot = 1 SWEP.ViewModelFlip = false SWEP.ViewModelFOV = 54 SWEP.Icon = "vgui/ttt/icon_deagle" end SWEP.Base = "weapon_tttb...
nilq/small-lua-stack
null
local ClassColor = { Name = "ClassColor", Type = "System", Namespace = "C_ClassColor", Functions = { { Name = "GetClassColor", Type = "Function", Arguments = { { Name = "className", Type = "string", Nilable = false }, }, Returns = { { Name = "classColor", Type = "table", Mixin = "...
nilq/small-lua-stack
null
local sStage = GAMESTATE:GetCurrentStage(); local tRemap = { Stage_1st = 1, Stage_2nd = 2, Stage_3rd = 3, Stage_4th = 4, Stage_5th = 5, Stage_6th = 6, }; if tRemap[sStage] == PREFSMAN:GetPreference("SongsPerPlay") then sStage = "Stage_Final"; else sStage = sStage; end; local t = Def.ActorFrame{}; -------...
nilq/small-lua-stack
null
require "GlobalVariables" require "MessageDispatchCenter" require "Helper" require "AttackCommand" local file = "model/dragon/dragon.c3b" Dragon = class("Dragon", function() return require "Actor".create() end) function Dragon:ctor() copyTable(ActorCommonValues, self) copyTable(DragonValues,self) ...
nilq/small-lua-stack
null
local ipairs, unpack = ipairs, unpack local table_concat, bit_band, bit_rshift = table.concat, bit.band, bit.rshift local string_len, string_byte, string_char = string.len, string.byte, string.char local t_ucs16_to_gbk = require "trochilus.common.util.codec.string.data.ucs16_to_gbk" local t_gbk_to_ucs16 = requir...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Thalnos the Soulrender", 1004, 688) if not mod then return end mod:RegisterEnableMob(59789) -------------------------------------------------------------------------------- -- Lo...
nilq/small-lua-stack
null
#!/usr/bin/env tarantool local tap = require('tap') local middleware_module = require('http.router.middleware') -- fix tap and http logs interleaving. -- -- tap module writes to stdout, -- http-server logs to stderr. -- this results in non-synchronized output. -- -- somehow redirecting stdout to stderr doesn't -- rem...
nilq/small-lua-stack
null
------------------------------------------------------------------------------------------------------------------------ -- Funnel Module Server -- Author: Morticai (META) (https://www.coregames.com/user/d1073dbcc404405cbef8ce728e53d380) -- Date: 2020/12/22 -- Version 0.1.2 ---------------------------------------------...
nilq/small-lua-stack
null
-- Custom local NETWORKED_OBJ = script:GetCustomProperty("Networked"):WaitForObject() ---@type Folder -- API local IK_API = require(script:GetCustomProperty("IK_API")) local ENCODER_API = require(script:GetCustomProperty("EncoderAPI")) local animations = {} local listeners = {} function DecodeKeyFrame(message) ...
nilq/small-lua-stack
null
-- Activate this by adding lua require'jupyter_setup'.setup() to your init.vim -- or require'jupyter_setup'.setup() to init.lua local M = {} vim.g.ipy_celldef = '^##' local function bash_cmd(input) local handle = io.popen(input) local out = handle:read("*a") handle:close() return out end M.connect_to_ipy_ker...
nilq/small-lua-stack
null
require("zenburn").setup()
nilq/small-lua-stack
null
-- NavelGame Class local flux = require "smee.libs.flux" local anim8 = require "smee.libs.anim8" local Game = require "smee.game_core.game" local Entity = require "smee.game_core.entity" local GameComponent = require "smee.game_core.gamecomponent" local EntityManager = require "smee.game_core.entitymanager"...
nilq/small-lua-stack
null
--[[ InputBox.lua @Author : DengSir (tdaddon@163.com) @Link : https://dengsir.github.io ]] local MAJOR, MINOR = 'InputBox', 2 local InputBox = LibStub('tdGUI-1.0'):NewClass(MAJOR, MINOR, 'EditBox') if not InputBox then return end function InputBox:Constructor() local tLeft = self:CreateTexture(nil, 'BACKGROUN...
nilq/small-lua-stack
null
function dividers(number) for i = 1, number do if number%i == 0 then print(i) end end end print(dividers(1000))
nilq/small-lua-stack
null
---------------------------------------------------------------------------------- --- Total RP 3 --- ElvUI chat compatibility plugin --- --------------------------------------------------------------------------- --- Copyright 2014-2019 Morgane "Ellypse" Parize <ellypse@totalrp3.info> @EllypseCelwe --- --- Licensed un...
nilq/small-lua-stack
null
-- :help options local options = { spelllang = "en_us", spellfile = vim.fn.stdpath "config" .. "/spell/dictionary.utf-8.add", undofile = true, -- enable persistent undo pumheight = 15, -- pop up menu height updatetime = 1000, -- faster completion (4000ms default) timeoutlen = 1000, -- time to wait for a m...
nilq/small-lua-stack
null
Plot = require("mod.plot.api.Plot") x = {10, 20, 30, 40} y = {5, 20, 30, 2} Plot.plot(x, y):tuples() -- Local Variables: -- open-nefia-always-send-to-repl: t -- End:
nilq/small-lua-stack
null
local nested = require 'nested' local nested_match = require 'nested.match' local nested_function = require 'nested.function' local nested_ordered = require 'nested.ordered' local t = nested.decode([=[ a: 5 b: 30 c: [ d e f g: 200 h: [ is: true but-this: false ] ] ]=], { text_filter = ...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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
env = require('test_run') test_run = env.new() engine = test_run:get_cfg('engine') box.execute('pragma sql_default_engine=\''..engine..'\'') -- create space box.execute("CREATE TABLE foobar (foo INT PRIMARY KEY, bar TEXT)") -- prepare data box.execute("INSERT INTO foobar VALUES (1, 'foo')") box.execute("INSERT INTO f...
nilq/small-lua-stack
null
-- Stand Power Star Platinum local s, id = GetID() function s.initial_effect( c ) -- You can only control 1 "${SP} Star Platinum". c:SetUniqueOnField(1, 0, id) -- Can only be equipped to a "${SU} Kujo Jotaro" you control. aux.AddEquipProcedure(c, 0, aux.FilterBoolFunction(Card.IsCode, 1090076074)) -- Destroy ...
nilq/small-lua-stack
null
-- Script: artifacts -- Description: Handles artifacts (things players can wear that are not clothes) -- Client-Side -- Created by Exciter for Owl Gaming, 15.05.2014 (DD/MM/YYYY) -- Thanks to Adams, iG Scripting Team and RPP Scripting Team for their base work. -- License: BSD function replaceModels() -- Credit for...
nilq/small-lua-stack
null
--!NEEDS:../../tiled/tiled_polygon.lua Collectibles = Core.class(Tiled_Shape_Polygon) function Collectibles:init() -- others self.snd = Sound.new("audio/Collectibles_1.wav") self.snd2 = Sound.new("audio/Collectibles_3.wav") self.volume = g_sfxvolume*0.01 * 0.3 -- event listeners self:addEventListener(Ev...
nilq/small-lua-stack
null
-- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file ...
nilq/small-lua-stack
null
local typedefs = require "kong.db.schema.typedefs" return { name = "jwt-reconcile", fields = { { consumer = typedefs.no_consumer }, { protocols = typedefs.protocols_http }, { config = { type = "record", fields = { { method = { type = "string", default = "POST", one_of = { "POST", "G...
nilq/small-lua-stack
null
--require('mobdebug').start() require ('torch') require ('nn') require ('rnn') ---------------------------------------------------------------------- -- parse command line arguments if not opt then print('==> processing options') cmd = torch.CmdLine() cmd:text() cmd:text('Bi-Directional LSTM') cmd:text(...
nilq/small-lua-stack
null
moveToNext = function() local win = hs.window.focusedWindow() local current = hs.screen.mainScreen() local nextscr = current:next() win:setFrame(nextscr:frame()) end moveToPrev = function() local win = hs.window.focusedWindow() local current = hs.screen.mainScreen() local nextscr = current:previous() w...
nilq/small-lua-stack
null
if isVoiceEnabled() then function setPlayerVoiceMuted ( player, muted ) if not checkValidPlayer ( player ) then return false end muted = not not muted or nil globalMuted[player] = muted return setPlayerVoiceBroadcastTo ( player, (not muted) and root or nil ) end function isPlayerVoiceMuted ( player ...
nilq/small-lua-stack
null
print("test") poof(0xf,2,10) led(0x10,0xff,0x00,0x00) if switch(0x20,0) then print("0") end if switch(0x20,1) then print("1") end if switch(0x20,2) then print("2") end if switch(0x20,3) then print("3") end
nilq/small-lua-stack
null
--- Library for accesing gpsd. -- The device will be named "gpsd", module "gpsd", and will generate signals -- from gpsd. The gpsd service must be started. For an example using this module, -- see listener_gpsd.lua -- @module gpsd -- @alias device local M = {} --- Initialize and starts the module. -- This is called ...
nilq/small-lua-stack
null
local mainMaxWidth = 390 local subMaxWidth = 390 local artistMaxWidth = 390 local mainMaxWidthHighScore = 192 local subMaxWidthHighScore = 280 local artistMaxWidthHighScore = 280/0.8 function TextBannerAfterSet(self,param) local Title = self:GetChild("Title") local Artist = self:GetChild("Artist") Title:maxwidth...
nilq/small-lua-stack
null
local aiconnector = {} -- parameters aiconnector.PARAMS = {} -- files that have been opened aiconnector.OPEN_FILES = {} -- functions -- main function which returns the action id function aiconnector.getAction() -- call primary function on_frame_emulated() return actions.NEXT_ACTION end -- if the AI w...
nilq/small-lua-stack
null
local manager = require "manager" local mc_supply_util = require "mc_supply_util" local util = require "util" local entitytracker = require "entitytracker" function data() return { info = { majorVersion = 0, minorVersion = 1, severityAdd = "NONE", severityRemove = "WARNING", name = _("MC Coal Bunker"), d...
nilq/small-lua-stack
null
fw.config = fw.config or {} --how often should payroll be issued? seconds fw.config.payrollTime = 60 --should payroll be deducted from the faction bank? fw.config.useFactionBank = true --should the boss have powers, allowing them to demote and remove without votes? fw.config.bossPowers = true --how many slots should t...
nilq/small-lua-stack
null
local utils = require("textadept-nim.utils") local check_type = utils.check_type local file_exists = utils.file_exists local _M = {} local sep = WIN32 and "\\" or "/" local function parse_nimble(filename) check_type("string", filename) local project = {} project.backend = "c" -- nimble builds project in C by d...
nilq/small-lua-stack
null
ThreatPlatesDB = { ["char"] = { ["仔酷 - 森金"] = { ["welcome"] = true, ["spec"] = { true, -- [1] [3] = false, }, }, ["风雨思年华 - 森金"] = { ["welcome"] = true, ["spec"] = { [3] = false, }, }, ["巨目巨目巨目 - 森金"] = { ["spec"] = { [3] = false, }, ["welcome"] = true, }, ["午盾 ...
nilq/small-lua-stack
null
-- Client Base Scripts client_script "sirencontrols.net.dll" client_script "vehiculehealth.lua" client_script "regulateur.lua" client_script "cl_indicator.lua" client_script "pointing.lua" client_script "crouch.lua" -- -- client_script "anti-gang_client" -- -- client_script 'pedblacklist.lua' server_script "sv_indica...
nilq/small-lua-stack
null
local assertClassTest = GUnit.Test:new("AssertClass") local function shouldEqualIntegerSpec() for i = 1, 100 do local randomNumber = math.random(1, 100000) GUnit.assert(randomNumber):shouldEqual(randomNumber) end end local function shouldEqualStringSpec() for i = 1, 100 do local randomString = GUnit...
nilq/small-lua-stack
null
local http = require "http" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" local target = require "target" description = [[ Retrieves information from an Apache HBase (Hadoop database) region server HTTP status page. Information gathered...
nilq/small-lua-stack
null
-- -- Main entry point for game -- require("combat") require("util") require("font") audio = require("audio") cheats = require("cheats") menu = require("menu") highscore = require("highscore") typing = require("typing") crosshair = require("crosshair") beverage = require("beverage") weapon = require("weapon") dude = r...
nilq/small-lua-stack
null
-- Copyright (c) 2015-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. local tablex = req...
nilq/small-lua-stack
null
local joystick = {} -------------------------------------------------------------------------------- --------- A small library for virtual joysticks in LOVE2D --------- -------------------------------------------------------------------------------- --------------------------------------by MightyPancake (F...
nilq/small-lua-stack
null
fig = {"paralelograma", "trougla", "trapeza"} dim = {"stranica", "visina"}
nilq/small-lua-stack
null
local enet = require "enet" ser = require "libs/binser" local bump = require "libs/bump" local level = require "level" require "utils" require "libs/dump" local messageHandler = require "messages" config = {server = "fowl2.antloop.world:5700"} game = { queueLossy = {}, queueReliable = {}, teamSpawn = {red...
nilq/small-lua-stack
null
DefineClass.DiggersMystery = { __parents = {"MysteryBase"}, scenario_name = "Mystery 2", can_destroy_diggers = false, is_big_digger_destroyed = false, destroyed_diggers = 0, display_name = T{1170, "The Dredgers (Normal)"}, rollover_text = T{1171, "\"Two possibilities exist: either we are alone in the Unive...
nilq/small-lua-stack
null
-- also see conf.lua local _={} _.scale=4 _.keyProfiler="f10" _.keyEditor="f11" _.keyDebugger="f12" _.keyDebuggerDump="f1" _.keyDebuggerWriteLogs="f2" _.keyDebuggerDumpSelected="f3" _.keyDebuggerPortal="f4" _.keyDebuggerLogEntities="f5" _.keyEditorNextItem="pagedown" _.keyEditorPrevItem="pageup" _.keyItemPickup="spac...
nilq/small-lua-stack
null
epic.register_hook({ on_execute_epic = function(player, main_pos, exit_pos, abort_pos, state) minetest.log("action", "[epic] on_execute_epic player=" .. player:get_player_name() .. " main_pos=" .. minetest.pos_to_string(main_pos) .. " exit_pos=" .. minetest.pos_to_string(exit_pos or {x=0,y=0,z=0})...
nilq/small-lua-stack
null
function objectDump(object, filename) if( filename == nil ) then object:update(); path = getExecutionPath() .. "/objdump/"; local dir = getDirectory(path); if( dir == nil ) then os.execute(sprintf('md "%s" >nul 2>&1', path)); end local id = (object.Id or...
nilq/small-lua-stack
null
local blueprints = require 'blueprints' local missile_speed = 1 local shot_cooldown_time = 6 local shot_capacity = 8 local shot_reload_rate = 1.2 / 60 local shots = 0 local cooldown = 0 function is_empty() return shots < 1 end function is_reloaded() return shots == shot_capacity end function is_cooled_down() ...
nilq/small-lua-stack
null
theme_park_reward_imperial_thrawn = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "atat_helmet", weight = 5000000}, {itemTemplate = "atat_suit", weight = 0}, {itemTemplate = "tie_helmet", weight = 5000000}, {itemTemplate = "tie_suit", weight = 0} } } addLootGroupTem...
nilq/small-lua-stack
null
--require "mattorch" require "torch" require "math" require "image" torch.setdefaulttensortype('torch.DoubleTensor') matio = require 'matio' local train_data, test_data = nil, nil local hha_train, hha_test = nil, nil -------------------------------------------------------------------------- --- Print size of a tensor...
nilq/small-lua-stack
null
-- result, err = pcall(vim.fn.json_decode, '{"jsonrpc":"2.0","method":"$/progress","params":{"token":"rustAnalyzer/roots scanned","value":{"kind":"report","message":"90/232","percentage":38}}}') -- print(result, vim.inspect(err)) out = print(vim.inspect(vim.lsp.protocol.make_client_capabilities()))
nilq/small-lua-stack
null
object_tangible_quest_corellia_corellia_38_pech_seki_bag = object_tangible_quest_corellia_shared_corellia_38_pech_seki_bag:new { } ObjectTemplates:addTemplate(object_tangible_quest_corellia_corellia_38_pech_seki_bag, "object/tangible/quest/corellia/corellia_38_pech_seki_bag.iff")
nilq/small-lua-stack
null
ENT.Type = 'anim' ENT.Base = 'base_gmodentity' ENT.PrintName = 'Quest Entity' ENT.Author = '' ENT.Contact = '' ENT.Purpose = '' ENT.Instructions = '' ENT.Spawnable = false ENT.AdminSpawnable = false ENT.hooks = {} ENT.triggers = {} ENT.points = {} ENT.npcs = {} ENT.items = {} ENT.weapons = {} ENT.players = {} ENT.val...
nilq/small-lua-stack
null
MouseEvents = { MouseMove = 512, LButtonDown = 513, LButtonUp = 514, LButtonDBl = 515, RButtonDown = 516, RButtonUp = 517, RButtonDBl = 518, MButtonDown = 519, MButtonUp = 520, MButtonDBl = 521, MouseWheel = 522, XButtonDown = 523, XButtonUp = 524, XButtonDBl = 525, }
nilq/small-lua-stack
null
ClassicLFGVersionCheck = {} ClassicLFGVersionCheck.__index = ClassicLFGVersionCheck setmetatable(ClassicLFGVersionCheck, { __call = function (cls, ...) return cls.new(...) end, }) function ClassicLFGVersionCheck.new() local self = setmetatable({}, ClassicLFGVersionCheck) ClassicLFG.EventBus:Re...
nilq/small-lua-stack
null
-- Various player and stage info, more text = fps drop so we should be sparing local profileP1 = GetPlayerOrMachineProfile(PLAYER_1) local PlayerFrameX = 0 local PlayerFrameY = SCREEN_HEIGHT-50 local t = Def.ActorFrame{ Def.Sprite { InitCommand=function(self) self:halign(0):valign(0):xy(PlayerFrameX,PlayerFrameY...
nilq/small-lua-stack
null
local _P = {} local function print(t) _P[#_P+1]=t end print[[<article> <h1>]] print(var(title,'title')) print[[</h1> ]] print(var(content,'content')) print[[</article> ]] return table.concat(_P)
nilq/small-lua-stack
null
scriptId = 'com.thalmic.generated' --TEMPLATE FOR SCRIPT GENERATION, DO NOT MODIFY --Helper functions ENABLED_TIMEOUT = 2200 function conditionallySwapWave(pose) if myo.getArm() == "left" then if pose == "waveIn" then pose = "waveOut" elseif pose == "waveOut" then pose = "wav...
nilq/small-lua-stack
null
help([==[ Description =========== Intel C, C++ & Fortran compilers More information ================ - Homepage: http://software.intel.com/en-us/intel-cluster-toolkit-compiler/ ]==]) whatis([==[Description: Intel C, C++ & Fortran compilers]==]) whatis([==[Homepage: http://software.intel.com/en-us/intel-cluster-too...
nilq/small-lua-stack
null
player = game:GetService("Players").LocalPlayer char = player.Character mouse = player:GetMouse() idleq = false stun = Instance.new("BoolValue",char) stun.Name = "Stunned" stun.Value = false atk = Instance.new("NumberValue",char) atk.Name = "Attack" atk.Value = 1.1 def = Instance.new("NumberValue",char) def.Name = "Def...
nilq/small-lua-stack
null