content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
--[[ AFK Resource - Client by: standardcombo v1.0 --]] local AFK_RES_SERVER = script:GetCustomProperty("AFKResourceServer"):WaitForObject() local PROGRESS_BAR = script:GetCustomProperty("CustomProgressBar"):WaitForObject() local UI_TEXT = script:GetCustomProperty("UITextBox"):WaitForObject() local RESOURCE_NAME = ...
nilq/small-lua-stack
null
require("ItemTweaker_Copy_CC"); --SWATPACKREDUX --Clothing TweakItem("Base.SWATPad","DisplayCategory","ClothN"); TweakItem("Base.SwatNeck","DisplayCategory","ClothN"); TweakItem("Base.Hat_SwatGasMask","DisplayCategory","ClothN"); TweakItem("Base.SwatElbowPads","DisplayCategory","ClothN"); TweakItem("Base.SwatKneePads"...
nilq/small-lua-stack
null
function balance(word) local length = string.len(word) local word = string.upper(word) -- If Word has no characters or 2 characters then not balanced if length == 0 or length == 2 then print(word .. " DOES NOT BALANCE") return end -- If Word has one character then is balance...
nilq/small-lua-stack
null
local utils = require('core.utils') utils.bootstrap() require('core.options') require('core.autocmd') require('core.plugins') require('core.mappings') local compiled_ok, _ = pcall(require, 'packer_compiled') if compiled_ok then require('packer_compiled') end
nilq/small-lua-stack
null
Citizen.CreateThread(function() -- Pillbox hospital: RequestIpl("rc12b_hospitalinterior") RequestIpl("rc12b_destroyed") end)
nilq/small-lua-stack
null
stage.group.New('menu',{},"Spell show",{lifeleft=0,power=400,faith=50000,bomb=0},false) stage.group.AddStage('Spell show','Spell show@Spell show',{lifeleft=0,power=400,faith=50000,bomb=0},false) stage.group.DefStageFunc('Spell show@Spell show','init',function(self) _init_item(self) --- New(mask_fader,'open') ...
nilq/small-lua-stack
null
local ok, lua_snip = pcall(require, 'luasnip') if not ok then vim.cmd('echom "plugin error: luasnip is missing"') return end require('user/plugins/lua-snip/mappings') local js_snips = require('user/plugins/lua-snip/js-snips') -- local function_node = plugin.function_mode; lua_snip.config.set_config { history = ...
nilq/small-lua-stack
null
function Client_SaveConfigureUI(alert) Mod.Settings.CostPerNeutralArmy = numberInputField.GetValue(); end
nilq/small-lua-stack
null
-------------- -- Draconis -- -------------- draconis = {} local path = minetest.get_modpath("draconis") -- Global Tables -- local storage = dofile(path.."/storage.lua") draconis.dragons = storage.dragons draconis.bonded_dragons = storage.bonded_dragons draconis.aux_key_setting = storage.aux_key_setting draconis.a...
nilq/small-lua-stack
null
dofile(reaper.GetResourcePath().."/UserPlugins/ultraschall_api.lua") -- Examplecode on how to toggle bypass with FXStateChunks in TakeFX by Meo Mespotine 23rd of January 2020 bypasstoggle=1 -- set it to 1 to bypass, set it to 0 to unbypass FX of Takes -- the following order is essential. If you leave out one of ...
nilq/small-lua-stack
null
local obj = {} obj.__index = obj obj.name = "Resize" function obj:enlarge(window, screen) if (window.x - 10) >= screen.x then window.x = window.x - 10 end if (window.y - 10) >= screen.y then window.y = window.y - 10 end window.w = window.w + 20 window.h = window.h + 20 return window end functi...
nilq/small-lua-stack
null
conky.config = { background = true, use_xft = true, font = 'sans:size=9', xftalpha = 1, total_run_times = 0, own_window = true, own_window_type = 'override', own_window_argb_visual = true, own_window_argb_value = 0, -- own_window_transparent = false, own_window_title = 'conkyi3info', own_window_hints = 'und...
nilq/small-lua-stack
null
return { version = "1.1", luaversion = "5.1", tiledversion = "0.14.2", orientation = "orthogonal", renderorder = "left-down", width = 50, height = 50, tilewidth = 8, tileheight = 8, nextobjectid = 1, properties = {}, tilesets = { { name = "environment", firstgid = 1, tilewi...
nilq/small-lua-stack
null
-- This is the Epuck principal control script. It is threaded velLeft=0 velRight=0 paramIsNoise=false paramNoiseProb=0.16 paramNoiseMean=0 paramNoiseSD=1 actualizeLEDs=function() if (relLedPositions==nil) then relLedPositions={{-0.0343,0,0.0394},{-0.0297,0.0171,0.0394},{0,0.0343,0.0394}, ...
nilq/small-lua-stack
null
local Game = require "game" Game.video = require("video_config")(Game.videoconfigfile) function love.load() love.keyboard.setKeyRepeat(true) end local draw_loading = function() local w, h = love.graphics.getDimensions() love.graphics.setColor(0, 0, 0) love.graphics.rectangle("fill", 0, 0, w, h) love.g...
nilq/small-lua-stack
null
function Dump(obj) if obj.proxyType ~= nil then DumpProxy(obj); elseif type(obj) == 'table' then DumpTable(obj); else print('Dump ' .. type(obj)); end end function DumpTable(tbl) for k,v in pairs(tbl) do print('k = ' .. tostring(k) .. ' (' .. type(k) .. ') ' .. ' v = ' .. tostring(v) .. ' (' .. ...
nilq/small-lua-stack
null
-- menu_list -- created on 2021/8/25 -- author @zoloypzuo local Group = require("ui.layouts.group") local MenuList = Class(Group, function(self, parent, name, locked) Group._ctor(self, parent) self.name = name or "" self.locked = locked or false self.ClickedEvent = EventWrapper(EventProcessor(), "Clicke...
nilq/small-lua-stack
null
function distanceFrom(x1,y1,x2,y2) return math.sqrt((x2 - x1) ^ 2 + (y2 - y1) ^ 2) end function makeValidPos(x,y) if x < 20 then x = 20 end if x > GameWidth - 20 then x = GameWidth - 20 end if y < 20 then y = 20 end if y > GameHeight - 20 then y = GameHeight - 20 end return x,y end functio...
nilq/small-lua-stack
null
sodium:on(events.ready, function() -- Key Bindings sodium:bind({keys.Super, keys.Return}, function() os.execute("open -a Terminal.app") end) -- Workspaces sodium:bind({keys.Super, keys.Num_1}, function() sodium:space(1) end) end) sodium:on(events.window_created, function(window) if sod...
nilq/small-lua-stack
null
require'nvim-tree'.setup { hijack_netrw = false, }
nilq/small-lua-stack
null
red = gr.material({0.8, 0.1, 0.1}, {0.5, 0.5, 0.5}, 25) green = gr.material({0.1, 0.8, 0.1}, {0.5, 0.5, 0.5}, 25) blue = gr.material({0.1, 0.1, 0.8}, {0.5, 0.5, 0.5}, 25) root = gr.node('root') BALL = gr.sphere('BALL1') BALL:translate(500, 0, -1000) BALL:scale(100, 100, 100) BALL:set_material(green) root:add_child(BA...
nilq/small-lua-stack
null
local a = require 'packer.async' local log = require 'packer.log' local util = require 'packer.util' local result = require 'packer.result' local async = a.sync local await = a.wait local config = nil local function cfg(_config) config = _config end -- Due to #679, we know that fs_symlink requires admin privileges...
nilq/small-lua-stack
null
kHydraHealth = 350 kHydraArmor = 10 kHydraPointValue = 2 kMatureHydraHealth = 450 kMatureHydraArmor = 50 kMatureHydraPointValue = 2
nilq/small-lua-stack
null
--[[ List implementation. With Perl-like `qw` operator. (c) 2012 David Manura. See README for details. --]] local M = {} local List = {}; List.__index = List function List.__add(a, b) local t = {} for _,v in ipairs(a) do t[#t+1] = v end for _,v in ipairs(b) do t[#t+1] = v end return setmetatable(t, List) en...
nilq/small-lua-stack
null
-- 2021-Jun-12 https://github.com/Immersive-Labs-Sec/msrc-api/ in Lua extend("string") -- "string":contains(), "string":trim_end() extend("table") -- table.size local json = require("json") local http = require("http") local fmt = require("fmt") local argparse = require("argparse") local parser = argparse() parser:argu...
nilq/small-lua-stack
null
local utils = require "luacheck.utils" local cache = {} -- Cache file contains check results for n unique filenames. -- Cache file consists of 3n+2 lines, the first line is empty and the second is cache format version. -- The rest are contain file records, 3 lines per file. -- For each file, first line is the filenam...
nilq/small-lua-stack
null
--[[ Base Loader A parent class for all asset loaders. ]] local Coeus = (...) local OOP = Coeus.Utility.OOP local Loader = OOP:Static() :Members { Formats = {} } --[[ Loads the asset located at path. ]] function Loader:Load(path, ...) local loader for name, member in pairs(self.Formats) do if (member:Ma...
nilq/small-lua-stack
null
return {'aov','aover','aovers'}
nilq/small-lua-stack
null
t={} t.a = 0 t.b = 0 t.c = 0 t.d = 0 t.e = 0 t.b = 0 t.f = 0 for k, v in pairs(t) do print(k) end
nilq/small-lua-stack
null
local anim8 = require 'vendor/anim8' local player = require 'player' local utils = require 'utils' local sound = require 'vendor/TEsound' local window = require 'window' local Vehicle = {} Vehicle.__index = Vehicle Vehicle.isVehicle = true function Vehicle.new(node, collider) local vehicle = {} setmetatable(vehic...
nilq/small-lua-stack
null
local socket = require("socket") local http = require("resty.http") local string_format = string.format local encode_base64 = ngx.encode_base64 local _M = {} -- 获取 IP local function get_ip_by_hostname(hostname) local _, resolved = socket.dns.toip(hostname) local list_tab = {} for _, v in ipairs(resolved.i...
nilq/small-lua-stack
null
kSyncConfigServer={} daytime = true primetime = false lunchtime = false cracktime = false cocainetime = false -- AI Settings 0-1 kSyncConfigServer.traffic = 1.0 kSyncConfigServer.crowd = 1.0 firstspawn = 0 robbing = false local randomselect = math.random(1,10) kSyncConfigServer.windSpeed = math.ceil(math.random(0,240...
nilq/small-lua-stack
null
------------------------- --- BadgerBankRobbery --- ------------------------- robberyActive = false RegisterNetEvent('BadgerBankRobbery:IsActive:Return') AddEventHandler('BadgerBankRobbery:IsActive:Return', function(bool) robberyActive = bool end) Citizen.CreateThread(function() while true do Citizen....
nilq/small-lua-stack
null
--setBufferName("shiftenter.lua") codelog = {} do setKeyHandlerProgram(keymap, stdkeyids.enter, 1, [[ local sCode = edGetLuaBlock() local p1,p2 = edGetLuaBlockPosition() if sCode == "" then sCode = getEditorLineText() p2 = getEditorLineEnd() end edSetPosition(p2) edInsertNew...
nilq/small-lua-stack
null
local class = require "ecs.common.class" local mt = class("entity_mgr") function mt:on_new() self.archetypes = {} self.e_to_arche_map = {} self.eid = 0 end function mt:foreach(filter, cb) local chunks = self:get_chunks_by_filter(filter) for _,chunk in ipairs(chunks) do for _,e_data in pairs(chunk) do --CAT...
nilq/small-lua-stack
null
---- Shared vars ---- -- Range and bearing MAX_LANDMARK_SENSING_RANGE = 30 LANDMARK_SIGNAL_CHANNEL = 1 LANDMARK_EXPLORED_NOTIIFICATION_CHANNEL = 2
nilq/small-lua-stack
null
---[[---------------------------------------------------------------------]]--- -- __ __ _ -- -- ____ ____ / /_ ______ ___ ____ _________ / /_ (_)____ -- -- / __ \/ __ \/ / / / / __ `__ \/ __ \/ ___/ __ \/ __ \/ / ___/ -- ...
nilq/small-lua-stack
null
-- This file is part of SA MoonLoader package. -- Licensed under the MIT License. -- Copyright (c) 2016, BlastHack Team <blast.hk> -- From https://wiki.winehq.org/List_Of_Windows_Messages local messages = { WM_CREATE = 0x0001, WM_DESTROY = 0x0002, WM_MOVE = 0x0003, WM_SIZE = 0x0005, WM_ACTIVATE = 0x0006, WM...
nilq/small-lua-stack
null
require("rrpg.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); function newfrmGeography() __o_rrpgObjs.beginObjectsLoading(); local obj = gui.fromHandle(_obj_newObject("form")); local self = obj; local ...
nilq/small-lua-stack
null
_BUILD = {} _BUILD.OS = "OSX" _BUILD.NAME = "Firerooter" _BUILD.VERSION = "0.2.2-devel" _BUILD.VERSIONCODE = 3
nilq/small-lua-stack
null
-- Copyright (c) 2008 Mikael Lind -- -- Permission is hereby granted, free of charge, to any person -- obtaining a copy of this software and associated documentation -- files (the "Software"), to deal in the Software without -- restriction, including without limitation the rights to use, -- copy, modify, merge, publis...
nilq/small-lua-stack
null
--[=[ @c Cache x Iterable @d description ]=] local json = require('json') local Iterable = require('iterables/Iterable') local null = json.null local Cache = require('class')('Cache', Iterable) function Cache:__init(array, constructor, parent) local objects = {} for _, data in ipairs(array) do local obj = const...
nilq/small-lua-stack
null
-- =========================================================================== -- Base File -- =========================================================================== include("LaunchBar"); include("launchbar_CQUI.lua");
nilq/small-lua-stack
null
---------------------------------------------------------------------------------- -- Total RP 3 -- Main UI API and Widgets API -- --------------------------------------------------------------------------- -- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be) -- Copyright 2014 Renaud Parize (Ellypse) ...
nilq/small-lua-stack
null
local game = Concord.world() -- ADD SYSTEMS game:addSystem(_systems.motion) game:addSystem(_systems.input) return game
nilq/small-lua-stack
null
local classes = require "klib.classes" local m = classes.module "klib.gui" classes.import(m, "klib.gui.core") classes.import(m, "klib.gui.widget") classes.import(m, "klib.gui.button") classes.import(m, "klib.gui.checkbox") classes.import(m, "klib.gui.radiobutton") classes.import(m, "klib.gui.label") classes.import(m...
nilq/small-lua-stack
null
----------------------------------- -- Area: The_Garden_of_RuHmet ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[tpz.zone.THE_GARDEN_OF_RUHMET] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item...
nilq/small-lua-stack
null
-- These are functions that were deprecated in 7.2.0, and will be removed in the next expansion. -- Please upgrade to the updated APIs as soon as possible. if (not IsPublicBuild()) then return; end -- PvP do local function RewardMapToRewardsArray(rewardsMap) local rewards; if (rewardsMap) then rewards = {};...
nilq/small-lua-stack
null
local screenX, screenY = guiGetScreenSize() --------- [ Element Data returns ] --------- local function getData( theElement, key ) local key = tostring(key) if isElement(theElement) and (key) then return exports['[ars]anticheat-system']:c_callData( theElement, tostring(key) ) else return false end end loc...
nilq/small-lua-stack
null
-- ============================================= -- This file contains misc stuff, maybe deprecate? -- ============================================= if (GetConvar('txAdmin-menuEnabled', 'false') ~= 'true') then return end -- Consts SoundEnum = { move = 'NAV_UP_DOWN', enter = 'SELECT' } -- Audio play call...
nilq/small-lua-stack
null
--- === Auto-reload or Test === --- --- If a config file changes then --- If it's listed in arot.modules_under_test, call its spec file --- If it's not, hs.reload() local M = {} -- Metadata M.name = 'AutoReloadOrTest' M.version = "0.1" M.author = "Matthew Fallshaw <m@fallshaw.me>" M.license = "MIT - https://opens...
nilq/small-lua-stack
null
function OnCommandSwitchTeamTypes(message) kTeam1Type = message.team1Type kTeam2Type = message.team2Type kTeamIndexToType[kTeam1Index] = kTeam1Type kTeamIndexToType[kTeam2Index] = kTeam2Type end Predict.HookNetworkMessage("SwitchTeamTypes", OnCommandSwitchTeamTypes)
nilq/small-lua-stack
null
local fs = require("filesystem") local shell = require("shell") local term = require("term") local dirsArg, ops = shell.parse(...) if #dirsArg == 0 then table.insert(dirsArg, ".") end local ec = 0 local gpu = term.gpu() local fOut = term.isAvailable() and io.output().tty local function perr(msg) io.stderr:write(msg...
nilq/small-lua-stack
null
local AddonName, AddonTable = ... -- MoP Engineering AddonTable.engineering = { -- Materials 94113, -- Jard's Peculiar Energy Source 90146, -- Tinker's Kit -- Crafts 87213, -- Mist-Piercing Goggles }
nilq/small-lua-stack
null
--- @todo Сделать отдельную библиотеку yunit.dll, к-ая не линкуется ни с одной из библиотек Lua. Но имеет перенаправлять вызовы функций вида luaopen_yunit_lfs в вызов фукнций из соответствующей библиотеки yunit_lua_??.dll. Это естественней, т.к. на этапе компиляции, в настройках проекта (а значит прямо из CMake) можно ...
nilq/small-lua-stack
null
require("rrpg.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); function newfrmAMZ2_2() __o_rrpgObjs.beginObjectsLoading(); local obj = gui.fromHandle(_obj_newObject("form")); local self = obj; local she...
nilq/small-lua-stack
null
T.config_bug_report = { } local config_bug = T.config_bug_report local vs10_helpers = premake.vstudio.vs10_helpers local sln, prjA,prjB,prjC,prjD,prjE function config_bug.teardown() sln = nil prjA = nil prjB = nil prjC = nil prjD = nil prjE = nil end function config_bug.setup() end local con...
nilq/small-lua-stack
null
--[[Simple Button class here.]] local Button = {} Button.defaults = { button_function = function(self, msg) print("DEFAULT BUTTON FUNCTION INVOKED") end, --What to do when pressed psp_x = 1/8, --Positive space proportion on x axis psp_y = 1/8, --Positive space proportion on y axis x = 0, y = 0, z = 1...
nilq/small-lua-stack
null
local vim = vim local M = {} local defaults = { highlight_hovered_item = true, show_guides = true, } M.options = {} function M.setup(options) M.options = vim.tbl_deep_extend("force", {}, defaults, options or {}) end return M
nilq/small-lua-stack
null
require 'iuplua' local options = {'yellow','green','blue','red'} res = iup.ListDialog( 1, "Which color?", #options, options, 2, 0, 0 ) iup.Message('ListDialog',res)
nilq/small-lua-stack
null
local tentacle12 = scene:getObjects("tentacle12"); local tentacle12weld = weldTentacleBones(tentacle12, {3, 6, 9}, 1.5, 0.5); local park4 = scene:getObjects("park4_ph")[1]:findPlaceholderComponent(); local winch0 = scene:getObjects("winch0")[1]; local winch1 = scene:getObjects("winch1")[1]; local winch2 = scene:getObje...
nilq/small-lua-stack
null
local util=require("moonscript.util")local dump=require("moonscript.dump")local transform=require("moonscript.transform")local NameProxy,LocalName do local _obj_0=require("moonscript.transform.names")NameProxy,LocalName=_obj_0.NameProxy,_obj_0.LocalName end local Set Set=require("moonscript.data").Set local ntype,value...
nilq/small-lua-stack
null
local owofaces = { "OwO", "owo", "UwU", "uwu", "^w^", ">w<" } minetest.register_on_chat_message(function(name, message) message = message:gsub("R", "W") :gsub("r", "w") :gsub("L", "W") :gsub("l", "w") minetest.chat_send_all("<"..name.."> "..message.." "..owofaces[math.random(#owofaces)]) r...
nilq/small-lua-stack
null
local AddonName, AddonTable = ... -- The Obsidian Sanctum -- https://www.wowhead.com/the-obsidian-sanctum AddonTable.os = { -- All Difficulties 43345, -- Sartharion (10) 43986, 40615, 40613, 40614, 40427, 40430, 40428, 43990, 43998, 43993, 43991, 43989, 43...
nilq/small-lua-stack
null
--[[ ####### Aseprite - MSX image files importer script ####### Copyright by Natalia Pujol (2021) This file is released under the terms of the MIT license. --]] -- ######################################################## -- ScreenMode class -- Definition of the MSX Screen modes. -- ########################...
nilq/small-lua-stack
null
-- task states return { READY = 'r', TAKEN = 't', DONE = '-', BURIED = '!', DELAYED = '~', }
nilq/small-lua-stack
null
local env1 = bare_environment() local env2 = add_decl(env1, mk_var_decl("A", Type)) assert(env2:is_descendant(env1)) assert(env2:is_descendant(env2)) assert(not env1:is_descendant(env2)) local env3 = env2:forget() assert(not env3:is_descendant(env1)) assert(not env3:is_descendant(env2)) assert(env3:is_descendant(env3))...
nilq/small-lua-stack
null
DelayedCalls = DelayedCalls or {} DelayedCalls._calls = DelayedCalls._calls or {} Hooks:Add("MenuUpdate", "MenuUpdate_Queue", function(t, dt) DelayedCalls:Update(t, dt) end) Hooks:Add("GameSetupUpdate", "GameSetupUpdate_Queue", function(t, dt) DelayedCalls:Update(t, dt) end) function DelayedCalls:Update...
nilq/small-lua-stack
null
local Prop = {} Prop.Name = "Evocity District Building 1" Prop.Cat = "Warehouse" Prop.Price = 4300 Prop.Doors = { Vector( -4424, 13692, 258.25 ), } GM.Property:Register( Prop )
nilq/small-lua-stack
null
----------------------------------- -- Area: Monarch_Linn -- NPC: Spatial Displacement -- !pos -35 -1 -539 31 ----------------------------------- local ID = require("scripts/zones/Monarch_Linn/IDs"); require("scripts/globals/bcnm"); require("scripts/globals/quests"); require("scripts/globals/missions"); require("scrip...
nilq/small-lua-stack
null
return { version = "1.5", luaversion = "5.1", tiledversion = "1.7.2", orientation = "orthogonal", renderorder = "right-down", width = 15, height = 60, tilewidth = 8, tileheight = 8, nextlayerid = 11, nextobjectid = 139, properties = {}, tilesets = { { name = "sprite_sheet", fir...
nilq/small-lua-stack
null
return require("newmodule"):from({ name = "secs", available = { "secs", "30log", "hump", "slither", "middleclass", }, }, ...)
nilq/small-lua-stack
null
#!/usr/bin/env luajit local xmlua = require("xmlua") local document = xmlua.XML.parse("<root class='A'/>") local root = document:root() -- Uses dot syntax to get attribute value print(root.class) -- -> A -- Uses [] syntax to get attribute value print(root["class"]) -- -> A -- Uses get_attribute method to get attri...
nilq/small-lua-stack
null
MageStoneProphetsNpc = { click = async(function(player, npc) local t = { graphic = convertGraphic(npc.look, "monster"), color = npc.lookColor } player.npcGraphic = t.graphic player.npcColor = t.color player.dialogType = 0 player.lastClick = npc.ID local mobName = "" --attacker.quest["zapped_".....
nilq/small-lua-stack
null
-- enUS and enGB use the same global strings, however -- this is needed in order to format dates correctly. WIM.AddLocale("enGB", { ["_DateFormat"] = "%d/%m/%Y" });
nilq/small-lua-stack
null
--[[ Outlands -- AllInOne.lua This script was written and is protected by the GPL v2. This script was released by The BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- Blua, December 01, 2008. ]] --[...
nilq/small-lua-stack
null
local config = require"lspinstall/util".extract_config("yamlls") config.default_config.cmd[1] = "./node_modules/.bin/yaml-language-server" return vim.tbl_extend('error', config, { install_script = [[ ! test -f package.json && yarn init -y || true yarn add yaml-language-server@latest ]] })
nilq/small-lua-stack
null
require("base64") require("http_common") local http_request = require("http.request") local http_tls = require("http.tls") local openssl_ctx = require("openssl.ssl.context") local http_util = require("http.util") local gcrypt = require("lua_gcrypt") local function createGrantingTicket(context, user, pass) --Perfo...
nilq/small-lua-stack
null
-- Libs local awful = require("awful") local gears = require("gears") local beautiful = require("beautiful") local wibox = require("wibox") -- Titlebar button themes local theme_name = "stoplight" local titlebar_icon_path = os.getenv("HOME") .. "/.config/awesome/theme/icons/titlebar/" .. theme_name .. '/' local tip = ...
nilq/small-lua-stack
null
-- the Royal Game of Ur -- https://en.wikipedia.org/wiki/Royal_Game_of_Ur -- the game tokens dofile(minetest.get_modpath("royal_game_of_ur").."/tokens.lua") -- nodes to create the game board dofile(minetest.get_modpath("royal_game_of_ur").."/gameboard.lua") -- nodes supplementing the game board dofile(mine...
nilq/small-lua-stack
null
local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local table = require "table" local sslcert = require "sslcert" local tls = require "tls" description = [[ Enumerates a TLS server's supported protocols by using the next protocol negotiati...
nilq/small-lua-stack
null
local assets = { Asset("ANIM", "anim/sch_explode_fx.zip"), } local function PlayFXAnim(proxy) local inst = CreateEntity() inst:AddTag("FX") --[[Non-networked entity]] inst.entity:SetCanSleep(false) inst.persists = false inst.entity:AddTransform() inst.entity:AddAnimState...
nilq/small-lua-stack
null
Locales['en'] = { ['roubado_recentemente'] = "You stole recently.", ['alvo_morto'] = "The guy you're stealing is dead.", ['alvo_longe_demais'] = "The target is far away.", ['roubo_comecou'] = "Assault in progress!", ['roubo_concluido'] = "You won ~g~$%s~s~!", ['pode_roubar_nov...
nilq/small-lua-stack
null
local util = require("util") local M = {} -- vim.lsp.handlers["textDocument/hover"] = function(_, method, result) -- print(vim.inspect(result)) -- end M.autoformat = true function M.toggle() M.autoformat = not M.autoformat if M.autoformat then util.info("enabled format on save", "Formatting") else u...
nilq/small-lua-stack
null
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
nilq/small-lua-stack
null
-- NoobDKP Options file NoobDKP_color = "|cfff0ba3c" -- maybe make a default table and a list of option names, then go through the -- real option table by name. If not there, insert from default table? if NOOBDKP_g_options == nil then NOOBDKP_g_options = {} NOOBDKP_g_options["admin_mode"] = false NOOBDKP_g_op...
nilq/small-lua-stack
null
local spec = require('cmp.utils.spec') local lsp = require('cmp.types.lsp') describe('types.lsp', function() before_each(spec.before) describe('Position', function() vim.fn.setline('1', { 'あいうえお', 'かきくけこ', 'さしすせそ', }) local vim_position, lsp_position vim_position = lsp.Position.t...
nilq/small-lua-stack
null
#!/usr/bin/env lua -- Matrix transposition local cl = require('mooncl') -- cl.trace_objects(true) -- Create device, context, and command queue local platform = cl.get_platform_ids()[1] local device = cl.get_device_ids(platform, cl.DEVICE_TYPE_ALL)[1] local context = cl.create_context(platform, {device}) local queue =...
nilq/small-lua-stack
null
--region data.pbc_config_manager.lua --Author : OWenT --Date : 2015/01/17 --启动载入项 local class = require('utils.class') local loader = require('utils.loader') local conf_set = class.register('data.pbc_config_data_set') -- 必须保证pbc已经载入 local pbc = protobuf function conf_set:get_by_table(key) if not...
nilq/small-lua-stack
null
-- protocol naming p4_swids = Proto('p4_swids','P4_SWIDSProtocol') -- protocol fields local p4_swids_swid = ProtoField.string('p4_swids.swid','swid') p4_swids.fields = {p4_swids_swid} -- protocol dissector function function p4_swids.dissector(buffer,pinfo,tree) pinfo.cols.protocol = 'P4_SWIDS' local subtree = tree...
nilq/small-lua-stack
null
-- lsp/diagnostics highlights local lush = require "lush" local base = require "nano.base" local M = {} M = lush(function() return { DiagnosticWarn { base.Popout }, DiagnosticError { base.CriticalI }, DiagnosticInfo { base.Salient }, DiagnosticHint { base.Salient }, DiagnosticUnderlineError { base.Unde...
nilq/small-lua-stack
null
-- -- Author: zhong -- Date: 2016-06-27 11:36:40 -- local CardSprite = class("CardSprite", cc.Sprite); --纹理宽高 local CARD_WIDTH = 133 local CARD_HEIGHT = 174 local BACK_Z_ORDER = 2 ------ --set/get function CardSprite:setDispatched( var ) self.m_bDispatched = var; end function CardSprite:getDispatched( ) if nil ~=...
nilq/small-lua-stack
null
data:extend( { { type = "bool-setting", name = "remelting-smooth-integration", setting_type = "startup", default_value = true, order = "a", }, } )
nilq/small-lua-stack
null
local airac = {} local date = require("date") local AIRAC_INTERVAL_DAYS = 28 local AIRAC_INITIAL_DATE = date(2015, 1, 8) local function airac_date(dt) if dt == nil then dt = date(true) end return AIRAC_INITIAL_DATE:adddays(math.floor((dt - AIRAC_INITIAL_DATE):spandays() // AIRAC_INTERV...
nilq/small-lua-stack
null
--when tool breaks leaves a stick local groups = {"wood","stone","iron","gold","diamond"} for i = 1,table.getn(groups) do --make it so wood and stone can't mine hard ores --{"wood","stone","iron","gold","diamond"} local times = {1,2,3,4,4} local looper = i local counter = 0 timey = {} for j = 1,times[i]...
nilq/small-lua-stack
null
vipWindow = nil vipButton = nil addVipWindow = nil function init() connect(g_game, { onGameStart = refresh, onGameEnd = clear, onAddVip = onAddVip, onVipStateChange = onVipStateChange }) g_keyboard.bindKeyDown('Ctrl+P', toggle) vipButton = modules.cl...
nilq/small-lua-stack
null
--[[ file meta info @file Warlock.lua @brief Tables of spell IDs for class --]] --[[ @brief Accessing the addons private table @var _ addonName, thrown away @var wt Global addonTable --]] local _, wt = ... --[[ @brief Check if the data should be loaded or not @return If not "WARLOCK", then return wit...
nilq/small-lua-stack
null
function love.load() sprites = {} sprites.background = love.graphics.newImage('sprites/background.png') sprites.bullet = love.graphics.newImage('sprites/bullet.png') sprites.player = love.graphics.newImage('sprites/player.png') sprites.zombie = love.graphics.newImage('sprites/zombie.png') playe...
nilq/small-lua-stack
null
local curl = require "lcurl.safe" script_info = { ["title"] = "去转盘", ["description"] = "http://www.quzhuanpan.com/", ["version"] = "0.0.2", } function onSearch(key, page) local data = "" local c = curl.easy{ url = "http://www.quzhuanpan.com/source/search.action?q=" .. pd.urlEncode(key) .. "&days=down&o=1&curr...
nilq/small-lua-stack
null
--class.lua local ssub = string.sub local sformat = string.format local dgetinfo = debug.getinfo --类模板 local class_tpls = _G.class_tpls or {} local function deep_copy(src, dst) local ndst = dst or {} for key, value in pairs(src or {}) do if is_class(value) then ndst[key] = value() elseif (type(value...
nilq/small-lua-stack
null