content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local theme={colors={normal={blue={0.55686274509804,0.8,0.86666666666667,1},green={0.51372549019608,0.64313725490196,0.44313725490196,1},cyan={0.48627450980392,0.61176470588235,0.68235294117647,1},white={0.8,0.8,0.8,1},red={0.84705882352941,0.52156862745098,0.4078431372549,1},magenta={0.72549019607843,0.55686274509804,...
nilq/small-lua-stack
null
--[[ ============================================================================================================ Author: wFX Date: February 24, 2015 Called when Disarm is cast. Remove the attack command from a unit. ===================================================================================================...
nilq/small-lua-stack
null
class("GuildRefreshMissionCommand", import(".GuildEventBaseCommand")).execute = function (slot0, slot1) slot2 = slot1:getBody() slot4 = slot2.callback slot5 = slot2.force if not slot0:ExistMission(slot2.id) then return end if not slot0:GetMissionById(slot3):ShouldRefresh() and not slot5 then if slot4 then ...
nilq/small-lua-stack
null
ITEM.name = "Mug" ITEM.desc = "A cermanic mug that smells like coffee" ITEM.model = "models/props_junk/garbage_coffeemug001a.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.money = {1, 4}
nilq/small-lua-stack
null
------------------------------------------------------------------------ --[[ Optimizer ]]-- -- Propagator subclass -- Trains a model using a sampling distribution. ------------------------------------------------------------------------ local Optimizer, parent = torch.class("dp.Optimizer", "dp.Propagator") Optimizer.i...
nilq/small-lua-stack
null
module(...,package.seeall) local wstr=require("wetgenes.string") local grd=require("wetgenes.grd") local grdmap=require("wetgenes.grdmap") function test_grdmap() -- print(wstr.dump(grdmap)) local gm=grdmap.create() local gk=grdmap.create() gm:setup( assert(grd.create("dat/grdmap/t1.map.p...
nilq/small-lua-stack
null
------------------------------------------------- --[[ PlayerPort ]]-- --[[ Teleport to your friends, group or ]]-- --[[ locations (via players in your guild) ]]-- --[[ ]]-- --[[ Version 0.1.4 ]]-- ------------------------------------------------ -- emit to chat window local function cha...
nilq/small-lua-stack
null
-- TODO, only when awake check for fire local FireDetector = Class(function(self, inst) self.inst = inst self.range = TUNING.FIRE_DETECTOR_RANGE self.detectPeriod = TUNING.FIRE_DETECTOR_PERIOD self.YESTAGS = { --in priority order {"fire"}, {"smolder"}, {"withered"}, {"witherable"}, {"wildfirestarter"}, ...
nilq/small-lua-stack
null
-- KillaVanilla's RNG('s), composed of the Mersenne Twister RNG and the ISAAC algorithm. -- Exposed functions: -- initalize_mt_generator(seed) - Seed the Mersenne Twister RNG. -- extract_mt() - Get a number from the Mersenne Twister RNG. -- seed_from_mt(seed) - Seed the ISAAC RNG, optionally seeding the Mersenne ...
nilq/small-lua-stack
null
local hooks, overrides, M = {}, {}, {} local allowed_hooks = { "install_plugins", "setup_mappings", "ready", } local function has_value(tab, val) for _, value in ipairs(tab) do if value == val then return true end end return false end M.add = function(name, fn) if not (has_v...
nilq/small-lua-stack
null
ITEM.name = "Мёд" ITEM.desc = "Очень сладкий мед." ITEM.category = "Еда" ITEM.model = "models/props/furnitures/mn/mn_pot/mn_pot.mdl" ITEM.hunger = 25 ITEM.thirst = 25 ITEM.force = -15 ITEM.price = 20 ITEM.quantity = 4 ITEM.permit = "food"
nilq/small-lua-stack
null
local UserFetch UserFetch = class() local USERS = config('core.users') addhook('connect', function (id) local user = app('user').new(id) USERS:push(user) end) addhook('leave', function (id) local user = USERS:where('id', id):first() USERS:removeById(id) end) ------------------------- -- INIT ...
nilq/small-lua-stack
null
--BindGlobal() local Pred = wickerrequire 'lib.predicates' -------------------------------------- local function try_require(options) if type(options) ~= "table" then options = {options} end for _, m in ipairs(options) do local status, pkg = pcall(require, m) if status then return pkg, m end end end -------...
nilq/small-lua-stack
null
local playsession = { {"WorldofWarIII", {71578}}, {"LtDerp", {4331}} } return playsession
nilq/small-lua-stack
null
local bh = require('binaryheap') local data = { { value = 98, payload = "pos08" }, -- 1 { value = 28, payload = "pos05" }, -- 2 { value = 36, payload = "pos06" }, -- 3 { value = 48, payload = "pos09" }, -- 4 { value = 68, payload = "pos10" }, -- 5 { value = 58, payload = "pos13" }, -- 6 { value = 80, pa...
nilq/small-lua-stack
null
local servers = { 'vimls', 'yamlls', 'bashls', 'texlab', 'clangd', 'pyright', 'jedi_language_server' } local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp .protocol ...
nilq/small-lua-stack
null
patterns = {"^Zoom.*Account$", "^Zoom Cloud Meetings$"} debug_print("always-minimize-on-creation: examining '" .. get_application_name() .. "'") for _, pattern in ipairs(patterns) do if (string.find(get_application_name(), pattern)) then debug_print("always-on-workspace: MINIMIZING '" .. get_application_name(...
nilq/small-lua-stack
null
-- Dire Tower Names local direTowers = { TopTier4 = 'dota_badguys_tower4_top', TopTier3 = 'dota_badguys_tower3_top', TopTier2 = 'dota_badguys_tower2_top', TopTier1 = 'dota_badguys_tower1_top', MidTier4 = 'dota_badguys_tower4_mid', MidTier3 = 'dota_badguys_tower3_mid', MidTier2 = 'dota_b...
nilq/small-lua-stack
null
if not minetest.get_modpath("digiline_routing") then -- Aliases for main nodes minetest.register_alias("digiline_routing:diode", "digicontrol:diode") minetest.register_alias("digiline_routing:filter", "digicontrol:filter") minetest.register_alias("digiline_routing:splitter", "digicontrol:splitter") -- Alias for c...
nilq/small-lua-stack
null
local make_set = require 'parse.char.utf8.make.set' return make_set { R = { '09', 'af', 'AF'; -- fullwidth '\u{ff10}\u{ff19}', '\u{ff21}\u{ff26}', '\u{ff41}\u{ff46}'; }; }
nilq/small-lua-stack
null
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
nilq/small-lua-stack
null
local a = vim.api local mappings = {} mappings.set_mappings = function (buf) local defaults = { ['<cr>'] = 'goto_cnode()', ['<2-LeftMouse>'] = 'goto_cnode()', } for k,v in pairs(defaults) do a.nvim_buf_set_keymap(buf, 'n', k, ':lua require"explorerc".'..v..'<cr>', { nowait = true, noremap =...
nilq/small-lua-stack
null
return require "nvim-lsp-installer.servers.vscode-langservers-extracted"("vscode-eslint-language-server", { "eslint" })
nilq/small-lua-stack
null
--- -- @classmod GameTranslator -- @author Quenty local require = require(script.Parent.loader).load(script) return require("JSONTranslator").new("en", { actions = { ragdoll = "Ragdoll", unragdoll = "Unragdoll", } })
nilq/small-lua-stack
null
require "test-setup" local lunit = require "lunit" local Cairo = require "oocairo" local assert_error = lunit.assert_error local assert_true = lunit.assert_true local assert_false = lunit.assert_false local assert_equal = lunit.assert_equal local assert_userdata = lunit.assert_userdata local assert_table ...
nilq/small-lua-stack
null
-- @author jaysunxiao -- @version 1.0 -- @since 2021-03-27 15:18 local SimpleObject = {} function SimpleObject:new(c, g) local obj = { c = c, -- int g = g -- boolean } setmetatable(obj, self) self.__index = self return obj end function SimpleObject:protocolId() return 1163 end...
nilq/small-lua-stack
null
--[[ Create a terminal compatible window for glasses canvas. Note that the extended chars on glasses are not consistent with the normal cc font. ]] local Terminal = require('opus.terminal') local Util = require('opus.util') local device = _G.device local Glasses = { } local palette = { ['0'] = 0xF0F0F000, ...
nilq/small-lua-stack
null
local get_us_time = minetest.get_us_time local metric = monitoring.counter("nodetimer_count", "number of nodetime calls") local metric_time = monitoring.counter("nodetimer_time", "time usage in microseconds for nodetimer calls") local metric_time_max = monitoring.gauge( "nodetimer_time_max", "max time ...
nilq/small-lua-stack
null
-- rFarclip: core -- zork, 2016 ----------------------------- -- Variables ----------------------------- local A, L = ... ----------------------------- -- Call ----------------------------- --get the current set farclip local farclip = GetCVar("farclip") --set farclip to min value SetCVar("farclip",185) --Reset...
nilq/small-lua-stack
null
--[[ Copyright 2014 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
nilq/small-lua-stack
null
local M = {} function M.get(object, properties) local values = {} for _,v in pairs(properties) do values[v] = object[v] --print("Properties: getting", v , object[v]) end return values end function M.set(object, values) for k,v in pairs(values) do object[k] = v or object[k] --print("Propertie...
nilq/small-lua-stack
null
setenv("BWA_VERSION",myModuleVersion())
nilq/small-lua-stack
null
#! /usr/bin/env luajit require 'ext' local bit = require 'bit' local ffi = require 'ffi' local ig = require 'ffi.imgui' local gl = require 'gl' local glCall = require 'gl.call' local GLProgram = require 'gl.program' local matrix = require 'matrix' local complex = require 'symmath.complex' local gnuplot = require 'gnupl...
nilq/small-lua-stack
null
local radio = { radios = {}, isPlaying = false, index = -1, volume = GetProfileSetting(306) / 10, prevVolume = volume } local customRadios = { ["RADIO_02_POP"] = { url = "http://live.boun.cc", volume = 0.2, name= "custom2"}, ["RADIO_08_MEXICAN"] = { url = "http://live.boun.cc", volume = 0.2...
nilq/small-lua-stack
null
-- [BR] Count envelope points in the envelope object allocated with BR_EnvAlloc. -- @envelope BR_Envelope -- @return integer function BR:env_count_points(envelope) return r.BR_EnvCountPoints(envelope) end -- [BR] Delete envelope point by index (zero-based) in the envelope object allocated with BR_EnvAlloc. Return...
nilq/small-lua-stack
null
function love.conf(t) t.identity = orblet t.window.vsync = true t.window.width = 480 t.window.height = 800 t.window.icon = "icon.png" t.window.msaa = 8 t.window.title = "Orblet" end
nilq/small-lua-stack
null
return function() local Indicator = script.Parent local App = Indicator.Parent local UIBlox = App.Parent local Packages = UIBlox.Parent local Roact = require(Packages.Roact) local Badge = require(script.Parent.Badge) local BadgeStates = require(script.Parent.Enum.BadgeStates) local mockStyleComponent = require(...
nilq/small-lua-stack
null
--[[ Copyright (c) 2013 David Young dayoung@goliathdesigns.com This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, ...
nilq/small-lua-stack
null
plates = { {{-cos(pi/6),0,sin(pi/6)},{0,1,0}, 120}, -- left {{cos(pi/6),0,sin(pi/6)},{0,1,0}, 120}, -- right {{0,0,-1},{0,1,0}, 120}, -- back {{0,1,0},{0,0,-1}, 128}, -- top {{0,-1,0},{0,0,-1}, 128}, -- bottom }
nilq/small-lua-stack
null
----------------------------------- -- Area: Temenos N T -- Mob: Tonberry's Avatar ----------------------------------- mixins = {require("scripts/mixins/families/avatar")} function onMobDeath(mob, player, isKiller) end
nilq/small-lua-stack
null
-- -- Notion default settings -- dopath("cfg_notioncore") dopath("cfg_kludges") dopath("cfg_layouts") dopath("mod_query") dopath("mod_menu") dopath("mod_tiling") --dopath("mod_statusbar") dopath("mod_dock") dopath("mod_sp") dopath("mod_notionflux") dopath("mod_xrandr") -- Debian extra configuration files dopath("cfg...
nilq/small-lua-stack
null
local bit = require "bit" local mysql = require "mysql" local nmap = require "nmap" local stdnse = require "stdnse" local table = require "table" description = [[ Connects to a MySQL server and prints information such as the protocol and version numbers, thread ID, status, capabilities, and the password salt. If serv...
nilq/small-lua-stack
null
local Mean, parent = torch.class('nn.Mean', 'nn.Module') function Mean:__init(dimension) parent.__init(self) dimension = dimension or 1 self.dimension = dimension end function Mean:updateOutput(input) input.torch.mean(self.output, input, self.dimension) self.output = self.output:select(self.dimension, ...
nilq/small-lua-stack
null
print("a=io.open('testio.txt','w+')") a=io.open('testio.txt','w+') print("a:write('123')") a:write('123') print("a:seek('set',1)") a:seek('set',1) print("a:write('4')") a:write('4') print("a:close()") a:close() print("os.rename('testio.txt','renamed.txt')") os.rename('testio.txt','renamed.txt') print("b=io.open('rename...
nilq/small-lua-stack
null
local ConfigMgr = Class("ConfigMgr") -- 数据配置文件的路径 local cfgPath = UTL.LuaCommon.LuaDir .. "/LuaConfigs/%s.lua" --实例对象 ConfigMgr._instance = nil -- 获取单例 function ConfigMgr.Instance() if ConfigMgr._instance == nil then ConfigMgr._instance = ConfigMgr:new() end return ConfigMgr._instance end -- override 初始化各种数据 ...
nilq/small-lua-stack
null
package.path = ";../../?/src/?.lua" require("submodsearcher") bit = require("bit")
nilq/small-lua-stack
null
-- Aura.lua : Core setup of the Aura module and event processing local PitBull4 = _G.PitBull4 local L = PitBull4.L local PitBull4_SpellIcon = PitBull4:NewModule("Aura", "AceEvent-3.0") PitBull4_SpellIcon:SetModuleType("custom") PitBull4_SpellIcon:SetName(L["SpellIcon"]) PitBull4_SpellIcon:SetDescription(L["...
nilq/small-lua-stack
null
function love.conf(t) t.title = "Ninja Rush" -- The title of the window the game is in (string) t.version = "0.10.1" -- The LÖVE version this game was made for (string) t.window.width = 960 t.window.height = 600 t.console = false end
nilq/small-lua-stack
null
return { decompress = require("lz4.decompress"), compress = require("lz4.compress"), }
nilq/small-lua-stack
null
object_tangible_furniture_all_frn_amidala_armoire = object_tangible_furniture_all_shared_frn_amidala_armoire:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_amidala_armoire, "object/tangible/furniture/all/frn_amidala_armoire.iff")
nilq/small-lua-stack
null
local positions = { Position(33097, 31976, 11), Position(33097, 31977, 11), Position(33097, 31978, 11), Position(33097, 31979, 11) } local barrierPositions = { Position(33098, 31976, 11), Position(33098, 31977, 11), Position(33098, 31978, 11), Position(33098, 31979, 11) } local function clearArena() local s...
nilq/small-lua-stack
null
local SplitterItem = require 'entities.splitter_item' local PulserItem = require 'entities.pulser_item' local RapidItem = require 'entities.rapid_item' local RapidGun = require 'entities.rapid_gun' local HealthItem = require 'entities.health_item' local RAPID_PIC = love.graphics.newImage('assets/img/seeker_sheet.pn...
nilq/small-lua-stack
null
local cl = require("cl") local error,print,setmetatable,tonumber,type = error,print,setmetatable,tonumber,type local ioOpen = io.open local stringByte = string.byte module("cue") local function timestampToSeconds(s) -- assumes mm:ss:ms local m, s, ms = s:match("(%d+):(%d+):(%d+)") local m, s, ms = tonumber(m)*60,...
nilq/small-lua-stack
null
set = {2, 2, 2, 3, 3, 5, 7} dim = 7 enum = {} denom = {} whl = {} enum_p = {} value = {} qq = {} max = 100
nilq/small-lua-stack
null
local map = require "utils".map local autocmd = require "utils.autocmd" local opts = {noremap = true} -- map("n", "<C-h>", "<Plug>(cokeline-focus-prev)", silent, "Previous Buffer") -- map("n", "<C-l>", "<Plug>(cokeline-focus-next)", silent, "Next Buffer") vim.cmd([[ nmap <silent> <C-h> <Plug>(cokeline-focus-prev) ...
nilq/small-lua-stack
null
require 'nn' require 'optim' opt = { -- training hyper parameters gpu = 1, -- gpu id batch_size = 250, -- training batch size lr = 0.001, -- basic learning rate lr_decay_startpoint = 250, -- learning rate from which epoch num_epochs = 400, -- total training epochs max_grad_norm = 5.0, clip_gr...
nilq/small-lua-stack
null
-- fuzzy.lua -- fuzzy chooser -- from https://gist.github.com/RainmanNoodles/70aaff04b20763041d7acb771b0ff2b2 local log = hs.logger.new("fuzzy", "debug") obj = {} obj.__index = obj local function fuzzyQuery(s, m) s_index = 1 m_index = 1 match_start = nil while true do if s_index > s:len() or m_index > m:len() ...
nilq/small-lua-stack
null
local ffi = require("ffi") ffi.cdef[[ static const int GUESTFS_TYPEDEF_H = 1; static const int GUESTFS_HAVE_CREATE_FLAGS = 1; static const int GUESTFS_CREATE_NO_ENVIRONMENT = (1 << 0); static const int GUESTFS_CREATE_NO_CLOSE_ON_EXIT = (1 << 1); static const int GUESTFS_HAVE_LAST_ERRNO = 1; static const int GUESTFS_T...
nilq/small-lua-stack
null
-- load namespace dofile(package.path .. "socket.lua"); dofile(package.path .. "url.lua"); dofile(package.path .. "ltn12.lua"); dofile(package.path .. "mime.lua"); dofile(package.path .. "http.lua"); local http = require("socket.http") local resp = {} client, code = http.request { url="http://www.update.l2tower.eu/up...
nilq/small-lua-stack
null
-- -- Unit and integrations tests for ljepsen -- require('test.coverage').enable() local lunit = require('lunitx') local math = require('math') local os = require('os') local helpers = require('test.helpers') local ljepsen = require('ljepsen') local client = ljepsen.client local clock = ljepsen.clock local gen_lib...
nilq/small-lua-stack
null
object_tangible_quest_smuggler_11_profession_recipe = object_tangible_quest_shared_smuggler_11_profession_recipe:new { } ObjectTemplates:addTemplate(object_tangible_quest_smuggler_11_profession_recipe, "object/tangible/quest/smuggler_11_profession_recipe.iff")
nilq/small-lua-stack
null
local playsession = { {"Gerkiz", {56667}}, {"Fingledobe", {633}}, {"Tommy17", {410}}, {"Reyand", {2406}}, {"xR1C0x", {11890}} } return playsession
nilq/small-lua-stack
null
local ObjectFactory = require "factory.ffi" local parser = require "parser" local TypeFactory = require "type" local Util = require "util" local POINTER_SIZE = 4 local stronger = { } local settings = { exposed = false, cPrefix = "" } local initialized = false local systemTypes = {} local classTypes = {} local tem...
nilq/small-lua-stack
null
require("base.flang_import") filename = "samples/eq2.flang" local f = assert(io.open(filename, "r")) local t = f:read("*all") f:close() print("===============") print(t) print("===============") -- give it to the lexer lexer = Flang.Lexer:new({sourceText = t}) -- then to the parser! parser = Flang.Parser:new({lexer...
nilq/small-lua-stack
null
local sx, sy = guiGetScreenSize(); local messages = {}; local exitting = {}; local offset = 25; local limit = 5; local screenW, screenH = guiGetScreenSize(); function dm (text, r, g, b) local text, r, g, b = text or "", r or 200, g or 100, b or 100; if text and r and g and b then if #messages > limit then ...
nilq/small-lua-stack
null
-- Path of Building -- -- Class: Item list -- Build item list control. -- local pairs = pairs local t_insert = table.insert local ItemListClass = newClass("ItemListControl", "ListControl", function(self, anchor, x, y, width, height, itemsTab) self.ListControl(anchor, x, y, width, height, 16, false, true, itemsTab.ite...
nilq/small-lua-stack
null
local base = "pure_skin_element" DEFINE_BASECLASS(base) HUDELEMENT.Base = base if CLIENT then local GetLang = LANG.GetUnsafeLanguageTable local pad = 14 -- padding local lpw = 44 -- left panel width local sri_text_width_padding = 8 -- secondary role information padding (needed for size calculations) local wat...
nilq/small-lua-stack
null
--- === plugins.finalcutpro.notifications.ifttt === --- --- IFTTT Notifications Plugin. --- --- Author: [JFtechOfficial](https://github.com/JFtechOfficial) local require = require --local log = require "hs.logger".new "ifttt" local dialog = require "hs.dialog" local http ...
nilq/small-lua-stack
null
os.loadAPI("/lib/mfsu") print("Units: "..mfsu.getUnitsCount()) print("Stored energy: "..mfsu.getTotalEnergy()) print("Total capacity: "..mfsu.getTotalCapacity())
nilq/small-lua-stack
null
PLUGIN.name = "Potions" PLUGIN.author = "AleXXX_007" PLUGIN.desc = "Adds useful potions." nut.emotes.drink = { "открывает бутылочку, подносит ее ко рту и делает глоток.", "вскрывает сосуд с характерным звуком, затем выпивает часть содержимого.", "раскупоривает склянку и выпивает часть содержимого.", "достает бутыл...
nilq/small-lua-stack
null
require("ts3defs") require("ts3errors") lastURL = " " -- OS is determined by checking for default directories -- That is offcourse unless you are running Windows -- Windows is determined by checking for starting with \ instead of / myOS = " " local fileHandle = io.open("/home/") if fileHandle ~= nil then io.close(fi...
nilq/small-lua-stack
null
require('plenary.async').tests.add_to_env() local Condvar = a.control.Condvar local eq = assert.are.same local join, run_all = a.util.join, a.util.run_all describe('condvar', function() a.it('should allow blocking', function() local var = false local condvar = Condvar.new() a.run(function() condv...
nilq/small-lua-stack
null
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local roleMgr = require "manager.roleMgr" local _M = function(role,data) if not data.id or type(data.id) ~= "number" then return 2 end if data.id <=0 or data.id > 6 then return 1900 end local pa...
nilq/small-lua-stack
null
--[[ Copyright 2018 American Megatrends Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
nilq/small-lua-stack
null
function onUse(player, item, fromPosition, target, toPosition, isHotkey) if target.actionid ~= 4632 then return false end if player:getStorageValue(Storage.GravediggerOfDrefia.Mission14) == 1 and player:getStorageValue(Storage.GravediggerOfDrefia.Mission15) < 1 then player:setStorageValue(Storage.GravediggerOfD...
nilq/small-lua-stack
null
local b64 = require("lua.b64") local sha1 = require("sha1") local utils = require("lua.utils") local ffi = require("ffi") local wslib = require("websocket.websocket") -- Websocket frame structure: -- https://datatracker.ietf.org/doc/html/rfc6455#section-5.2 -- -- 0 1 2 ...
nilq/small-lua-stack
null
data:extend({ { type = "selection-tool", name = "fp_beacon_selector", icon = "__factoryplanner__/graphics/beacon_selector.png", icon_size = 32, flags = {"hidden", "only-in-cursor"}, subgroup = "other", order = "z_fp", stack_size = 1, stackable ...
nilq/small-lua-stack
null
--[[ SimulationLoader Reference Data Structures PhysicalSimulation: Folder = { LoadScripts: Folder PreLoad: ModuleScript? PostLoad: ModuleScript? PreUnload: ModuleScript? PostUnload: ModuleScript? SimulationData: Folder AutoTools: Folder<BoolValue> Aliases: Folder<BoolValue> Na...
nilq/small-lua-stack
null
require "sys" local _version__index = { } local _version__lt = function (a,b) if a.major ~= b.major then return a.major < b.major end if a.minor ~= b.minor then return a.minor < b.minor end if a.revision ~= b.revision then return a.revision <b.revision end if a.build ~= b.build then ret...
nilq/small-lua-stack
null
#include "SEEK.lua" #include "SEEK.lua" #include "DAMAGE.lua" #include "SEEK.lua" #include "SEEK.lua" #include "DAMAGE.lua" #include "SEEK.lua" #include "SEEK.lua" #include "DAMAGE.lua" #include "SEEK.lua" #include "SEEK.lua" #include "DAMAGE.lua" #include "SEEK.lua" #include "SEEK.lua" #include "DAMAGE.lua" #include ...
nilq/small-lua-stack
null
local utils = require("leftry").utils local list = require("l2l.list") local lua = require("l2l.lua") local reader = require("l2l.reader") local vector = require("l2l.vector") local exception = require("l2l.exception") local symbol = reader.symbol local len = require("l2l.len") local loadstring = _G["loadstring"] or _G...
nilq/small-lua-stack
null
local SyntaxKind = require("lunar.ast.syntax_kind") local SyntaxNode = require("lunar.ast.syntax_node") local ParameterDeclaration = setmetatable({}, { __index = SyntaxNode, }) ParameterDeclaration.__index = setmetatable({}, SyntaxNode) function ParameterDeclaration.new(identifier) return ParameterDeclaration.const...
nilq/small-lua-stack
null
local api = vim.api local M = {} local function find_index(list, predicate_3f) _G.assert((nil ~= predicate_3f), "Missing argument predicate? on lua/udir/util.fnl:5") _G.assert((nil ~= list), "Missing argument list on lua/udir/util.fnl:5") local _3fret = nil for i, item in ipairs(list) do if (nil ~= _3fret) ...
nilq/small-lua-stack
null
------------------------------------------------------------------------------- -- Hook library ------------------------------------------------------------------------------- --- Deals with hooks -- @shared local hook_library, _ = SF.Libraries.Register("hook") local registered_instances = {} --- Sets a hook function...
nilq/small-lua-stack
null
local dailyTask = {} function dailyTask:Start() self:initData() self:initUi() self:initFx() end function dailyTask:initData() -- local _list = module.QuestModule.GetList(21) -- self.questList = {} -- for i,v in ipairs(_list) do -- if v.depend_level <= module.HeroModule.GetManager():Get...
nilq/small-lua-stack
null
require("adjustScreen") c = require("component") gpuID = c.gpu.address screenID = c.screen.address print(gpuID,screenID) startScreen(gpuID,screenID)
nilq/small-lua-stack
null
local config = require('reach.config') local module = {} function module.notify(msg, level, force) if config.config.notifications or force then vim.api.nvim_notify(msg, level or vim.log.levels.INFO, {}) end end return module
nilq/small-lua-stack
null
local gears = require("gears") local awful = require("awful") local hotkeys_popup = require("awful.hotkeys_popup") local menubar = require("menubar") local modeTags = require "utils.modeTags" require("awful.hotkeys_popup.keys") local global = {} -- Constants local MOD_PRIMARY = "Mod1" local MOD_SECONDARY = "Mod4" loc...
nilq/small-lua-stack
null
-- -- Copyright (c) 2016-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 util...
nilq/small-lua-stack
null
local mats = { Accept = Material( "icon16/accept.png" ), NotAccept = Material( "icon16/cancel.png" ), Update = Material( "icon16/wrench_orange.png" ), Certified = Material( "icon16/rosette.png", "smooth" ), DefaultPic = Material( "vgui/avatar_default", "smooth" ), Bug = Material( "icon16/bug.png...
nilq/small-lua-stack
null
local AutoTrack = {} AutoTrack.optionEnable = Menu.AddOption({"Hero Specific", "Bounty Hunter"}, "Auto Track", "Script by Rednelss") AutoTrack.autoInvisibility = Menu.AddOption({ "Hero Specific", "Bounty Hunter" }, "Auto Invisibility After Auto Track", "Script by Rednelss") function AutoTrack.OnUpdate() if not Menu....
nilq/small-lua-stack
null
local crud = require "kong.api.crud_helpers" local utils = require "kong.tools.utils" return { ["/oauth2_tokens/"] = { GET = function(self, dao_factory) crud.paginated_set(self, dao_factory.oauth2_tokens) end, PUT = function(self, dao_factory) crud.put(self.params, dao_factory.oauth2_tokens)...
nilq/small-lua-stack
null
pfUI:RegisterModule("socialmod", "vanilla:tbc", function () local playerdb = _G.pfUI_playerDB pfUI.socialmod = CreateFrame("Frame", "pfSocialMod", UIParent) pfUI.socialmod:RegisterEvent("CHAT_MSG_SYSTEM") pfUI.socialmod:SetScript("OnEvent", function() local name = cmatch(arg1, _G.ERR_FRIEND_ONLINE_SS) n...
nilq/small-lua-stack
null
Input=class({ static={ _mousePosition=Vector3:new(), _mouseButton={ }, _mouseScroll=Vector3:new(), _window=nil, mousePosition={ get=function(self) return self._mousePosition end }, GetMouseButton=function(self,k...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: RJ -- Date: 19/02/14 -- Time: 16:43 -- To change this template use File | Settings | File Templates. -- --*********************************************************** --** ROBERT JOHNSON ** --************************************************...
nilq/small-lua-stack
null
local version = { SdkVersion = "2.1.27" } return version
nilq/small-lua-stack
null
local orbit = require "orbit" return orbit.new("toycms")
nilq/small-lua-stack
null
local function createNativeMenu(menu, parent, id, menuLookup, root) local nativeMenu if root == true then nativeMenu = MenuAlloc.root() else nativeMenu = MenuAlloc.menu(menu.name, menu.active, parent) end for _, v in ipairs(menu.items) do if v.type == MenuItemType.Title then nativeMenu:addItem(MenuAlloc....
nilq/small-lua-stack
null
-- -- from src/komachi.c -- -- a part of main to komachi -- local M = require 'komachi' local komachi = M.komachi local write, insert = io.write, table.insert function p(a) for i=1,9 do write(a[i] == 1 and " + " or a[i] == -1 and " - " or "", i) end write(" = 100\n"); end function b() local T = { buffer = {}...
nilq/small-lua-stack
null
local files = require 'files' local vm = require 'vm' local lang = require 'language' local library = require 'library' local config = require 'config' local function hasSet(sources) if sources.hasSet ~= nil then return sources.hasSet end sources.hasSet = false for i = 1, #sources do...
nilq/small-lua-stack
null