content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local constants = require(".lua.common.constants") local logger = require(".lua.common.logger").new("gateway_new.lua") local request_builder = require(".lua.request_builder") local request_dispatcher = require(".lua.request_dispatcher") local response_dispatcher = require(".lua.response_dispatcher") local util = requir...
nilq/small-lua-stack
null
local colbox_type1 = { --top blocks type = 'fixed', fixed = {{-.49, -.5, 0.05, .5, .5, .52}} } local colbox_type2 = { --outside corner columns type = 'fixed', fixed = {{-.2, -.5, -.2, .5, .5, .5}} } local colbox_type3 = { --bottom blocks type = 'fixed', fixed = {{-.5, -.5, -.16, .5, .5, .25}} } local colbox_type4...
nilq/small-lua-stack
null
require "view.IView" CocosView = class("CocosView", IView) function CocosView:ctor(root) self.root = root local cache = cc.SpriteFrameCache:getInstance() local f = cache:getSpriteFrame(string.format("scene.OrangeWrap%04d", 0)) local effect= cc.Sprite:createWithSpriteFrame(f) e...
nilq/small-lua-stack
null
if global.playerSettings == nil then goto SkipMigration end for player_index, _ in pairs(game.players) do local playerSettings = global.playerSettings[player_index] if playerSettings == nil then goto NextPlayer end for _, tracker in pairs(playerSettings.trackers) do if tracker.type...
nilq/small-lua-stack
null
mpackage = "Bashing"
nilq/small-lua-stack
null
vim.g["sneak#label"] = 1 -- case insensitive sneak vim.g["sneak#use_ic_scs"] = 1 -- immediately move to the next instance of search, if you move the cursor sneak is back to default behavior vim.g["sneak#s_next"] = 1 -- Cool prompts vim.g["sneak#prompt"] = "๐Ÿ”Ž" -- remap so I can use , and ; with f and t vim.cmd([[ m...
nilq/small-lua-stack
null
--[[ Copyright (C) 2015 - Auke Kok <sofar@foo-projects.org> "flowerpot" is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the license, or (at your option) any later version....
nilq/small-lua-stack
null
--[[--------------------------------------------------------- Variables -----------------------------------------------------------]] local PANEL = {} --[[--------------------------------------------------------- Function: Init -----------------------------------------------------------]] function PANEL:Init...
nilq/small-lua-stack
null
local uv = require 'couv' local exports = {} exports['tcp.flags'] = function(test) coroutine.wrap(function() local handle = uv.Tcp.new() test.ok(true) handle:nodelay(true) test.ok(true) handle:keepalive(true, 60) test.ok(true) handle:close() test.ok(true) end)() uv.run() te...
nilq/small-lua-stack
null
return LoadActor("Cursorarrow")..{ InitCommand=cmd(zoom,0.65;glowshift;skewx,-0.25;effectmagnitude,0.95,1,1;effectperiod,0.75;); --pulse; };
nilq/small-lua-stack
null
describe("constructor '#rep'", function() local linq = require("lazylualinq") it("requires <count>", function() assert.has_error( function() linq.rep(1) end, "Second argument 'count' must be a positive number!" ) end) it("requires <count> to be a number", function() assert.has_error( function() lin...
nilq/small-lua-stack
null
RegistryTool = { desription = "Show registry", inventory_image = "core_registry.png", wield_image = "core_registry.png" } function RegistryTool.on_use(_, player) local connection = connections:get_connection(player:get_player_name(), common.get_env("GRI...
nilq/small-lua-stack
null
--[[ ๅฎž็Žฐๆ€่ทฏ 1๏ผŒๅˆ›ๅปบไธ€ไธชๅฏ่งฆๆ‘ธๅฑ‚ๆ•่Žท่งฆๆ‘ธไบ‹ไปถ touchNode 2๏ผŒๅˆ›ๅปบๅฎนๅ™จnode ่ฃ…ๆ‰€ๆœ‰็š„cell่Š‚็‚น 3๏ผŒๆ นๆฎ้…็ฝฎๅ‚ๆ•ฐใ€็ผฉๆ”พ็›ฎๆ ‡ๆ ผๅญใ€‘ใ€็ผฉๆ”พๆฏ”ไพ‹ใ€‘ใ€้—ด้š”ๅฎฝๅบฆใ€‘ใ€ๆ˜ฏๅฆๅพช็Žฏใ€‘ใ€...ใ€‘ๅฏนๅ„่Š‚็‚น้ๅކๅค„็† 4๏ผŒๆทปๅŠ ๆŽฅๅฃๅฏๅฏนไปปๆ„ๆ ผๅญๅš็ผฉๆ”พๅค„็†๏ผˆ็บฟๆ€งๅ…ณ็ณป๏ผ‰๏ผŒๆธๅ˜ๅค„็†๏ผŒไฝ็ฝฎๅ็งป่ฎพๅฎš 5๏ผŒ ]] -- local SlideElastic = SlideElastic or class2("SlideElastic",function() -- return ui.node() -- end) -- function SlideElastic:ctor() -- s...
nilq/small-lua-stack
null
local nvim_pid = 2201099 vim.api.nvim_buf_set_lines(981, 0, -1, false, vim.fn.systemlist({'pmap', tostring(nvim_pid), '-X'}))
nilq/small-lua-stack
null
-- Copyright (c) 2020-2021 hoob3rt -- MIT license, see LICENSE for more details. local function encoding() return vim.opt.fileencoding:get() end return encoding
nilq/small-lua-stack
null
--[[ Tru --]] local Clockwork = Clockwork; function RappelFinish(e,playercolor,movetype,weaponcolor) local oldwepcolor = weaponcolor local oldcolor = playercolor if IsValid(e.Rappel) then e:EmitSound("prappel/rappel_land2.wav") timer.Simple(1, function() if IsValid(e.Rappel) then local ply = e.Rappe...
nilq/small-lua-stack
null
while true do if redstone.getAnalogInput("right") <= 13 then redstone.setAnalogOutput("left", 15) os.pullEvent("redstone") else redstone.setAnalogOutput("left", 0) os.pullEvent("redstone") end end
nilq/small-lua-stack
null
--[[ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification The version of the OpenAPI document: 1.1.2-pre.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech ]] -- unlabeled_load_statistics class local unlabeled_load_statistics = {} local unlabeled_load_st...
nilq/small-lua-stack
null
require "projectTemplate" require "demoTemplate" workspace ("Helltooth") filter { "system:windows"} configurations { "Debug-GL", "Release-GL", "Debug-DX", "Release-DX", } filter { "system:linux"} configurations { "Debug-GL", "Release-GL", } filter {} platforms { "x86", "x64", } l...
nilq/small-lua-stack
null
pac.PartTemplates = pac.PartTemplates or {} pac.VariableOrder = {} pac.GroupOrder = pac.GroupOrder or {} do local META = {} META.__index = META function META:StartStorableVars() self.store = true self.group = nil return self end function META:EndStorableVars() self.store = false self.group = nil ...
nilq/small-lua-stack
null
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local Roact = require(Modules.Packages.Roact) local UIBlox = require(Modules.Packages.UIBlox) local withStyle = UIBlox.Style.withStyle local GRADIENT_IMAGE = "rbxasset://textures/ui/LuaApp/graphic/gradient_0_100.png" local GR...
nilq/small-lua-stack
null
require 'utils' local car = getCar() local addr = car:f('name').address -- Obtain a pointer to the name buffer. -- local tp = dbgscript.createTypedPointer('kernelbase!char', addr) -- Print the first few characters. -- print (tp[0].value) print (tp[1].value)
nilq/small-lua-stack
null
ix.randomitems.tables["reward_generic_valuable"] = { {500, {"value_statue_cat"}}, {300, {"value_statue_horse"}}, {400, {"value_statue_lion"}}, {500, {"value_gunpowder_green"}}, {400, {"value_gunpowder_blue"}}, {300, {"value_gunpowder_red"}}, {100, {"value_watch"}}, {250, {"value_phone_old"}}, {125, {"...
nilq/small-lua-stack
null
local Pill = script.Parent local App = Pill.Parent local UIBlox = App.Parent local Packages = UIBlox.Parent local Roact = require(Packages.Roact) local Cryo = require(Packages.Cryo) local t = require(Packages.t) local Images = require(App.ImageSet.Images) local CursorKind = require(App.SelectionImage.CursorKind) loca...
nilq/small-lua-stack
null
workspace "JetbrainsTask" architecture "x64" configurations { "Debug", "Release" } outputDir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" includeDir = {} includeDir["GLFW"] = "JetbrainsTask/vendor/glfw/include" include "JetbrainsTask/vendor/glfw" project "Jetbrai...
nilq/small-lua-stack
null
--[[ FLY by RedPolygon The functions in this file combine the orientation and auto flying functions to calculate the controls based off the mode the user is in --]] -- CONSTANTS local attitude = require "calc/attitude" local autopilot = require "calc/autopilot" local fly = {} fly.motorPins = { 1, 2, 3, ...
nilq/small-lua-stack
null
function love.conf(t) v1 = 1080 v2 = 540 t.window.title = "LuaChip8" t.window.width = v2 * (16/9) t.window.height = v2 t.console = false t.window.resizeable = false t.window.vsync = true end
nilq/small-lua-stack
null
-- Small functions for working with player, maybe that should be in base instead of lib player_meta = FindMetaTable( "Player" ) -- Returns true if player is captain function player_meta:IsCaptain() if self.se_role == SE_CAPTAIN then return true else return false end end -- Gets players role function pl...
nilq/small-lua-stack
null
local packer = require('util.packer') local global = require('core.global') local config = { max_jobs = global.is_mac and 60 or nil, profile = { enable = true, threshold = 0, -- the amount in ms that a plugins load time must be over for it to be included in the profile }, display = { open_fn = func...
nilq/small-lua-stack
null
--[[ Desc: State of being lifted up Author: SerDing Since: 2018-02-26 14:25:46 Alter: 2018-02-26 14:25:46 ]] local _Timer = require("utils.timer") local _Base = require("entity.states.base") ---@class State.Lift : Entity.State.Base local _Lift = require("core.class")(_Base) function _Lift:Ctor(data, name) _B...
nilq/small-lua-stack
null
local Sp,Si,Sm = "personality.lua","init.lua", "main.lc" local SA,SR,SL,SC,SM,SH,SW = "Aborting: ","Running: ", "Loading: ", "Connected: " , " Missing", "Heap: ","Waiting... " print(SH, node.heap()) fver = {} ; OS = false ; print(SL,SH,node.heap()) -- hardware init.lua means NO OS local fn,fp = "init", {"0.4b","5/23/18...
nilq/small-lua-stack
null
local Dash = {} Dash.config = function() if not lvim.builtin.telescope.active then return end -- -- If Dash.nvim plugin is installed and Dash.app is found -- configure Dash as a Telescope extension -- local status_ok, _ = pcall(require, "dash") if status_ok then local dash_app = vim.fn.glob "/...
nilq/small-lua-stack
null
local _waypointId = "splinter" SplinterNpc = { click = async(function(player, npc) Tools.configureDialog(player, npc) local opts = { "Buy", "Sell", "Crafting Skills", "Gathering Wood", "Don't Knock Woodworking", "Woodworking Devotion" } if (not Waypoint.isEnabled(player, _waypointId)) then...
nilq/small-lua-stack
null
base_research = nil base_research = { { Name = "MothershipBUILDSPEEDUpgrade1", RequiredResearch = "", RequiredSubSystems = "Research", RequireTag = "VaygrBuilder", Cost = 1000, Time = 60, DisplayedName = "$7815", DisplayPriority = 90, Description = "$7816", UpgradeType = ...
nilq/small-lua-stack
null
local SpatialConvolutionMap, parent = torch.class('nn.SpatialConvolutionMap', 'nn.Module') nn.tables = nn.tables or {} function nn.tables.full(nin, nout) local ft = torch.Tensor(nin*nout,2) local p = 1 for j=1,nout do for i=1,nin do ft[p][1] = i ft[p][2] = j p = p + 1 end end return f...
nilq/small-lua-stack
null
local CircularBuffer = require(script.Parent.Parent.Parent.CircularBuffer) local Signal = require(script.Parent.Parent.Parent.Signal) local MAX_DATASET_COUNT = tonumber(settings():GetFVariable("NewDevConsoleMaxGraphCount")) local getClientReplicator = require(script.Parent.Parent.Parent.Util.getClientReplicator) loc...
nilq/small-lua-stack
null
require "Client.Scripts.Modulus.Entity.Const.__init" require "Client.Scripts.Modulus.Entity.Data.__init" require "Client.Scripts.Modulus.Entity.SkillEvent.__init" require "Client.Scripts.Modulus.Entity.Role.__init" require "Client.Scripts.Modulus.Entity.Mgr.EntityMgr" require "Client.Scripts.Modulus.Entity.Mgr.SkillM...
nilq/small-lua-stack
null
local ffi = require("ffi") __VIR_LIBVIRT_H_INCLUDES__ = true; local export = {} -- Copy one dictionary into another local function appendTable(dst, src) if not src then return dst; end for key, value in pairs(src) do dst.key = value; end return dst; end -- Load all the definitions, while copying -- dict...
nilq/small-lua-stack
null
local config = require("lvim-kbrd.config") local utils = require("lvim-kbrd.utils") local autocmd = require("lvim-kbrd.autocmd") local M = {} M.setup = function(user_config) if user_config ~= nil then utils.merge(config, user_config) end M.init() end M.init = function() if config.active_plugi...
nilq/small-lua-stack
null
-- Julia vim.g.default_julia_version = "1.7" vim.g.latex_to_unicode_tab = "on" vim.g.latex_to_unicode_auto = false vim.g.julia_indent_align_import = false vim.g.julia_indent_align_brackets = false vim.g.julia_indent_align_funcargs = false WhichKey.register({ j = { name = "Julia", b = { ":call jul...
nilq/small-lua-stack
null
local composer = require( "composer" ) local mui = require( "materialui.mui" ) local scene = composer.newScene() -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (...
nilq/small-lua-stack
null
module(...,package.seeall) --by nirenr local function ps(str) str = str:gsub("%b\"\"",""):gsub("%b\'\'","") local _,f= str:gsub ('%f[%w]function%f[%W]',"") local _,t= str:gsub ('%f[%w]then%f[%W]',"") local _,i= str:gsub ('%f[%w]elseif%f[%W]',"") local _,d= str:gsub ('%f[%w]do%f[%W]',"") local _,e= str:gsub...
nilq/small-lua-stack
null
--[[ Pixel Vision 8 - New Template Script Copyright (C) 2017, Pixel Vision 8 (http://pixelvision8.com) Created by Jesse Freeman (@jessefreeman) This project was designed to display some basic instructions when you create a new game. Simply delete the following code and implement your own Init(), Update() ...
nilq/small-lua-stack
null
--mobs_fallout v0.0.1 --maikerumine --made for Extreme Survival game --dofile(minetest.get_modpath("mobs_fallout").."/api.lua") --CODING NOTES --REF CODE FROM PMOBS by CProgrammerRU --https://github.com/CProgrammerRU/progress --[[ -- right clicking with cooked meat will give npc more health on_rightclick = functio...
nilq/small-lua-stack
null
--- === cp.apple.finalcutpro.timeline.CaptionsSubrole == --- --- *Extends [Role](cp.apple.finalcutpro.timeline.Role.md)* --- --- A [Role](cp.apple.finalcutpro.timeline.Role.md) representing Captions. local axutils = require "cp.ui.axutils" local CheckBox = require "cp.ui.CheckBox" local StaticT...
nilq/small-lua-stack
null
-- -- Small utility module for dealing with battery inventories. -- local invbat = {} function invbat.calc_capacity(inv, list_name) local size = inv:get_size(list_name) local capacity = 0 for i = 1,size do local stack = inv:get_stack(list_name, i) if not stack:is_empty() then local en = stack:ge...
nilq/small-lua-stack
null
require('nn') require('nngraph') require('loadcaffe') require('xlua') require('image') require('optim') require('cunn') require('cudnn') require('./lib/tvloss') require('./lib/contentloss') require('./lib/gramloss') require('./lib/mrfloss') require('./lib/masked_gramloss') require('./lib/amplayer') require('./lib/rand...
nilq/small-lua-stack
null
#!/usr/bin/env tarantool local test = require("sqltester") test:plan(109) --!./tcltestrunner.lua -- 2005 June 25 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive o...
nilq/small-lua-stack
null
local class = require 'lib.middleclass.middleclass' local Messages = {} local Message = class('MidiMessage') function Message:initialize() end Messages.NoteOff = class("NoteOff", Message) function Messages.NoteOff:initialize(n) Message.initialize(self) self.prefix = 0 self.note = n end Messages.NoteOn = class...
nilq/small-lua-stack
null
--- Utilities and generic auxiliary functions -- @module util --- Get an element from the matrix -- @tparam table matrix -- @tparam int x position of the element -- @tparam int y position of the element -- @return The element at the given position or null if there is none function get_matrix_element(matrix, x, y) if...
nilq/small-lua-stack
null
--Last update by GlitterStorm @ Azralon on Feb,22th,2015 if GetLocale() ~= "ptBR" then return end local L -------------- -- Brawlers -- -------------- L= DBM:GetModLocalization("Brigรตes") L:SetGeneralLocalization({ name = "Brigรตes: Geral" }) L:SetWarningLocalization({ warnQueuePosition2 = "Vocรช รฉ %d na fila", sp...
nilq/small-lua-stack
null
#!/usr/bin/env luajit local xmlua = require("xmlua") local path = arg[1] local file = assert(io.open(path)) local html = file:read("*all") file:close() -- Parses HTML local success, document = pcall(xmlua.HTML.parse, html) if not success then local message = document print("Failed to parse HTML: " .. message) ...
nilq/small-lua-stack
null
-- Adds an ADSR (Attack, Decay, Sustain, Release) envelope to the input -- Convert from dB to voltage ratio, -- e.g. dbToRatio(6) is about 2, dbToRatio(-3) is about 0.7 local function dbToRatio(db) return 10 ^ (db/20) end local defs = {name = 'ADSR', knobs = {}} defs.knobs.attack = { min = 0.5, max = 10000.0...
nilq/small-lua-stack
null
-- CONFIGURATION -- How often to run. At 1, it will run every update. At 10, -- it will run every 10th update. The lower it is, the more -- responsive it will be, but it will also take more processing time. UpdateRate = 4 -- Range to fire interceptors InterceptRange = 1000 -- Hostile missiles at or below this altitu...
nilq/small-lua-stack
null
platforms = {} -- To hold all the platform objects from the object layer -- Platform (Object Layer) related function function spawnPlatform(x, y, width, height) -- Create a platform for the player local platform = world:newRectangleCollider(x, y, width, height, {collision_class = "Platform"}) platfo...
nilq/small-lua-stack
null
--[[============================================================ --= --= Get Latest Version Number Script --= --= Args: none --= --= Outputs: --= :version --= <version> --= <downloadUrl> --= --= :error_request --= <errorMessage> --= --= :error_http --= <statusCode> --= <statusText> --= --= ...
nilq/small-lua-stack
null
SILE.scratch.masters = {} local _currentMaster local function defineMaster (self, args) SU.required(args, "id", "defining master") SU.required(args, "frames", "defining master") SU.required(args, "firstContentFrame", "defining master") SILE.scratch.masters[args.id] = {frames = {}, firstContentFrame = nil} fo...
nilq/small-lua-stack
null
--[[ Class: Drawable Base class for drawables. Properties: (none) Methods: - (void) Draw ((number) dt) ]] -- Constants local _C = require("Helpers.Common") -- Imports local Class = require("Helpers.Class") -- This local Drawable = {} -- Prototype Drawable.prototype = { type = "Drawable", -- typ...
nilq/small-lua-stack
null
require "/scripts/vec2.lua" function init() storage.timer = storage.timer or 0 if storage.active == nil then updateActive() end object.setSoundEffectEnabled(storage.active) self.fireTime = config.getParameter("fireTime", 1) self.fireTimeVariance = config.getParameter("fireTimeVariance", 0) self.p...
nilq/small-lua-stack
null
--[[Author: Pizzalol Date: 06.04.2015. If the target unit is owned by the caster then heal it to full]] function HandOfGod( keys ) local caster = keys.caster local target = keys.target local ability = keys.ability local sound = keys.sound local hand_particle = keys.hand_particle if target:GetPlayerOwnerID() =...
nilq/small-lua-stack
null
vim.g.gruvbox_colors = { red = '#FA7970', orange = '#FAA356', yellow = '#D8A657', --cyan = '#89B482', blue = '#7DAEA3', purple = '#D3869B', bg_yellow = '#D8A657', }
nilq/small-lua-stack
null
require('luacov') local unpack = unpack or table.unpack local testcase = require('testcase') local basedir = require('basedir') local mkdir = require('mkdir') local rmdir = require('rmdir') local TESTDIR = 'test_dir' function testcase.new() -- test that create a basedir objrect assert(basedir.new(TESTDIR)) ...
nilq/small-lua-stack
null
--[[ VERIFIED @ 2017.08.14 by Qige <qigezhao@gmail.com> History: 2017.06.19 import abb from Proto-EC54S 2017.08.10 gws_abb|indent 2017.08.11 update_safe_rt|mesh_id 2017.08.14 bitrate TODO: 1. set() ]]-- -- DEBUG USE ONLY --local DBG = print local function DBG(msg) end local iwinfo = require "i...
nilq/small-lua-stack
null
local T, C, L = Tukui:unpack() local _, ns = ... local RaidCooldowns = ns.RaidCooldowns local UnitGUID = _G.UnitGUID local GetRealmName = _G.GetRealmName local IsInRaid = _G.IsInRaid local IsInGroup = _G.IsInGroup local GetNumGroupMembers = _G.GetNumGroupMembers local GetSpellInfo = _G.GetSpellInfo local GetSpellBa...
nilq/small-lua-stack
null
local M = {} local sanitize = require("nvim-rss.modules.utils").sanitize function M.insert_entries(entries) local append = vim.fn.append local line = vim.fn.line for i, entry in ipairs(entries) do append(line("$"), "") append(line("$"), "") append(line("$"), entry.title) append(line("$"), "----...
nilq/small-lua-stack
null
local t = Def.ActorFrame {} local TIMER = THEME:GetMetric("ScreenAdInfo","TimerSeconds") size = SCREEN_WIDTH/2.5; distance = SCREEN_WIDTH/4; t[#t+1] = LoadActor(THEME:GetPathG("","background/common_bg/shared"))..{ InitCommand=cmd(diffusealpha,0;linear,2;diffusealpha,1;sleep,TIMER-1;linear,1;diffusealpha,0)...
nilq/small-lua-stack
null
return function() print("GET", game:GetService("HttpService"):GetAsync("https://www.example.com")) end
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 "Li...
nilq/small-lua-stack
null
norns.script.load("code/gatherum/live.lua") tapestop() tapestart() tapebreak() clock.run(function() clock.sleep(1.5);tapestop();clock.sleep(2.5);tapestart() end) clock.run(function() clock.sleep(1.5);tapebreak() clock.sleep(1.5);tapebreak() end) play("bbr",er("if math.random()<0.2 then e.brev(1) end",5)) play("bbb",...
nilq/small-lua-stack
null
require "posix" -- require "inotify" require "logging.console" require 'socket.http' local logger = logging.console() local config = {} local handle local charmap = { Arc = "Archeologist", Bar = "Barbarian", Cav = "Caveman", Hea = "Healer", Kni = "Knight", Mon = "Monk", Pri = "Priest", Rog = "R...
nilq/small-lua-stack
null
function Bolt:CheckPassword(steam_id64, ip, sv_pass, cl_pass, name) local steam_id = util.SteamIDFrom64(steam_id64) local entry = self:get_bans()[steam_id] if entry and Plugin.call('ShouldCheckBan', steam_id, ip, name) != false then if entry.duration != 0 and entry.unban_time >= os.time() and Plugin.call('Sh...
nilq/small-lua-stack
null
local AlmaApiInternal = {}; AlmaApiInternal.ApiUrl = nil; AlmaApiInternal.ApiKey = nil; local types = {}; types["log4net.LogManager"] = luanet.import_type("log4net.LogManager"); types["System.Net.WebClient"] = luanet.import_type("System.Net.WebClient"); types["System.Text.Encoding"] = luanet.import_type("System.Text....
nilq/small-lua-stack
null
testInfo = { CodeName="Plot", ShortName="Plot", LongName="Plot", Description="Plots sequences", Functions= { "MakePlot", }, MakesIndividualImages = true, MakesSampleTypeImages = false, SamplePageShowsFunctionName = false, }
nilq/small-lua-stack
null
---@type number local aNumber ---@type boolean local aBoolean ---@type nil | number local nilOrNumber ---@type nil | boolean local nilOrBoolean ---@type fun(): number, boolean... local varreturnFunction aNumber, nilOrBoolean, nilOrBoolean = varreturnFunction() aNumber, nilOrBoolean, nilOrBoolean, <error descr="Typ...
nilq/small-lua-stack
null
cluster_center = "127.0.0.1:7000" cluster_db = "127.0.0.1:7001" cluster_login = "127.0.0.1:7002" cluster_gate = "127.0.0.1:7003" cluster_hall = "127.0.0.1:7004" cluster_game_niuniu = "127.0.0.1:6000" cluster_game_br = "127.0.0.1:6001"
nilq/small-lua-stack
null
function onPre(v) vee.putreg(v, RAX, 64, 50505050) vee.putreg(v, RBX, 64, 50505050) vee.putreg(v, RCX, 64, 50505050) vee.putreg(v, RDX, 64, 50505050) vee.putreg(v, RBP, 64, 50505050) vee.putreg(v, RSI, 64, 50505050) vee.putreg(v, RDI, 64, 50505050) vee.putreg(v, R8, 64, 50505050) ve...
nilq/small-lua-stack
null
al MAX_LONG_4BYTE = 1 << 32 local MIN_INT = -2147483648 local MAX_INT = 2147483647 local MIN_LONG = 0x8000000000000000 local MAX_LONG = 0x7fffffffffffffff local MIN_LONG_STRING = "-9223372036854775808" --The natural logarithm of 2. local LN2 = 0.6931471805599453 Long = {} function Long:new(low, high) local obj = ...
nilq/small-lua-stack
null
game.AddParticles("particles/tfa_fubar_muzzle.pcf") game.AddParticles("particles/tfa_fubar_particles.pcf") game.AddParticles("particles/tfa_fubar_particles_aq.pcf") game.AddParticles("particles/tfa_fubar_particles_blu.pcf") PrecacheParticleSystem("tfa_muzzle_fubar") PrecacheParticleSystem("weapon_fubar_trail") Preca...
nilq/small-lua-stack
null
force_bread = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Ancient Force Bread", directObjectTemplate = "object/tangible/loot/misc/mt_flatbread.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } addLootItemTemplate("force_bread", force_bread)
nilq/small-lua-stack
null
malkloc_bull = Creature:new { objectName = "@mob/creature_names:malkloc_bull", socialGroup = "malkloc", faction = "", level = 28, chanceHit = 0.35, damageMin = 240, damageMax = 250, baseXp = 2822, baseHAM = 8200, baseHAMmax = 10000, armor = 0, resists = {135,135,10,-1,-1,-1,10,150,-1}, meatType = "meat_her...
nilq/small-lua-stack
null
--!strict --[=[ @class ChickynoidServer @server Server namespace for the Chickynoid package. ]=] local DefaultConfigs = require(script.Parent.DefaultConfigs) local Types = require(script.Parent.Types) local TableUtil = require(script.Parent.Vendor.TableUtil) local ServerCharacter = require(script.Server...
nilq/small-lua-stack
null
local Server = require 'server' local TEsound = {} local server = Server.getSingleton() local soundList = {} function TEsound.playSfx(file) local msg = string.format("%s %s %s","broadcast","sound",file) for k,v in pairs(server.clients) do soundList[k] = soundList[k] or {} table.insert(soundL...
nilq/small-lua-stack
null
local zone_manager = require(script.ZoneManager).New() local zone, zone_tag = zone_manager:CreateNewZone(Vector3.new(0, 12.5, 0), Vector3.new(25, 25, 25), false, 'Mald') zone.OnPlayerEntered:Connect(function(player: Player) print(player.Name, 'has entered zone #' .. zone_tag) end) zone.OnPlayerExited:Connect(functio...
nilq/small-lua-stack
null
local build_freqtable = function (data) local freq = { } for i = 1, #data do local cur = string.sub (data, i, i) local count = freq [cur] or 0 freq [cur] = count + 1 end local nodes = { } for w, f in next, freq do nodes [#nodes + 1] = { word = w, freq = f } end table.sort (nodes, functi...
nilq/small-lua-stack
null
require("indent_blankline").setup { indentLine_enabled = 1, char = "โ–", filetype_exclude = { "help", "terminal", "dashboard", "packer", "lspinfo", "TelescopePrompt", "TelescopeResults", "startify", "dashboard", "dotooagenda", "log", "fugitive", "gitcommit", "packer", "vimwiki", "markdown", "txt"...
nilq/small-lua-stack
null
local STACK = require("constraint/stack") local Throw = require("util/throw") -- NOTE: Index start from 1 in Lua API local Stack = { -- virtual stack slots = nil, _top = nil, -- call info state = nil, closure = nil, varargs = nil, openuvs = nil, pc = nil, prev = nil, } functi...
nilq/small-lua-stack
null
-- ============================================================================ -- -- CommandItems Tab (View) -- Tab to preview and purchase rights to commands -- -- ============================================================================ -- =============================================================...
nilq/small-lua-stack
null
local levels = { [1] = 100, [2] = 200, [3] = 300, [4] = 400, [5] = 500, [6] = 600, [7] = 700, [8] = 800, [9] = 900, [10] = 1000, [11] = 1100, [12] = 1200, [13] = 1300, [14] = 1400, [15] = 1500, [16] = 1600, [17] = 1700, [18] = 1800, [19] = 1900, [20] = 2000, [21] = 2100, [22]...
nilq/small-lua-stack
null
local gd = require 'gd' local getFormat = function(path) local file = io.open(path,"r"); if not file then return nil; end local fileType = file:read(1):byte(1,1); io.close(file); --ๆ นๆฎๅ›พ็‰‡็ฑปๅž‹ๅ’Œ่ทฏๅพ„็”Ÿๆˆgdๅฏน่ฑก local ext = nil; if fileType == 137 then -- png ext = ".png" elseif fileType == 71 then -- gif ex...
nilq/small-lua-stack
null
-- ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. ======= -- -- lua\DamageTypes.lua -- -- Created by: Andreas Urwalek (andi@unknownworlds.com) -- -- Contains all rules regarding damage types. New types behavior can be defined BuildDamageTypeRules(). -- -- Important c...
nilq/small-lua-stack
null
local turtle = _G.turtle local function doCommand(command, moves) local function format(value) if type(value) == 'boolean' then if value then return 'true' end return 'false' end if type(value) ~= 'table' then return value end local str for k,v in pairs(value) do if not str then str = '{ ...
nilq/small-lua-stack
null
local L = BigWigs:NewBossLocale("Neltharions Lair Trash", "koKR") if not L then return end if L then L.breaker = "๋ง‰๋Œ ํŒŒ๊ดด์ž" L.hulk = "์•…์„ฑ์ˆ˜์ • ๊ดด์ˆ˜" L.gnasher = "๋Œ๊ฐ€์ฃฝ ๋พฐ์กฑ๋‹ˆ์•…์–ด" L.trapper = "๋Œ๊ฐ‘์˜ท ์†๋ฐ•ํˆฌ์‚ฌ" end L = BigWigs:NewBossLocale("Rokmora", "koKR") if L then L.warmup_text = "๋กœํฌ๋ชจ๋ผ ํ™œ์„ฑํ™”" L.warmup_trigger = "๋‚˜๋ฐ”๋กœ๊ทธ? ์ด ๋ฐฐ์‹ ์ž! ๊ฐํžˆ ์นจ์ž…์ž...
nilq/small-lua-stack
null
local map = vim.api.nvim_buf_set_keymap local file = vim.fn.expand('%') --compile map(0, "n", "<Leader>c", ":te pdflatex " .. file .. "<CR>", {noremap = true, silent = true}) --execute map(0, "n", "<Leader>e", ":!zathura " .. file:gsub(".tex", ".pdf&<CR><CR>"), {noremap = true, silent = true})
nilq/small-lua-stack
null
Config = {} local configFrame, titleLabel, versionLabel, contributorsLabel, separator, generalOptionsLabel, showWaitingRoomCheckbox, showWaitingRoomLabel, muteSoundsCheckbox, muteSoundsLabel, modulesFrame local function UpdateConfigFrameValues() showWaitingRoomCheckbox:SetChecked(REPORTED2_PREFS...
nilq/small-lua-stack
null
RaidJobsTweakData = RaidJobsTweakData or class() -- Lines: 5 to 17 function RaidJobsTweakData:init(tweak_data) self.challenges = {} self:_init_weapon_challenges(tweak_data) self:_init_mask_challenges(tweak_data) end -- Lines: 21 to 90 function RaidJobsTweakData:_init_weapon_challenges(tweak_data) table.insert(se...
nilq/small-lua-stack
null
yavin4_angler_giant_neutral_medium_boss_01 = Lair:new { mobiles = {{"giant_angler",1}}, bossMobiles = {{"mad_angler",1}}, spawnLimit = 15, buildingsVeryEasy = {"object/tangible/lair/base/antpile_dark.iff"}, buildingsEasy = {"object/tangible/lair/base/antpile_dark.iff"}, buildingsMedium = {"object/tangible/lair/ba...
nilq/small-lua-stack
null
main = { love = {} } function main.load() --requires-- dofile("app0:/controls.lua") --dofile("app0:/gameB.lua") --dofile("app0:/gameBmulti.lua") --dofile("app0:/gameA.lua") dofile("app0:/menu.lua") dofile("app0:/failed.lua") dofile("app0:/rocket.lua") vsync = true autosize() ...
nilq/small-lua-stack
null
local config = {} function config.nvim_treesitter() vim.api.nvim_command('set foldmethod=expr') vim.api.nvim_command('set foldexpr=nvim_treesitter#foldexpr()') require'nvim-treesitter.configs'.setup { -- list install ensure_installed = "maintained", -- ensure_installed = { "bash", "c", "make", "cpp",...
nilq/small-lua-stack
null
csc = {} csc.config = {} include("cl_csc_config.lua") net.Receive("csc.newMessage", function() local id = net.ReadString() local name = net.ReadString() local text = net.ReadString() chat.AddText(Color(25, 25, 220), "["..id.."] ", Color(25, 220, 25), name..": ", Color(235, 235, 235), text) end)
nilq/small-lua-stack
null
local finders = require('telescope.finders') local previewers = require('telescope.previewers') local pickers = require('telescope.pickers') -- Create a new finder. -- This finder, rather than taking a Lua list, -- generates a shell command that should be run. -- -- Each line of the shell command is converted to an...
nilq/small-lua-stack
null