content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
return function() local Janitor = require(script.Parent) describe("Janitor.is", function() it("should recognize janitor constructed from Janitor.new function", function() expect(function() assert(Janitor.is(Janitor.new()) == true) end).never.throw() end) end) end
nilq/small-lua-stack
null
-- * Metronome IM * -- -- This file is part of the Metronome XMPP server and is released under the -- ISC License, please see the LICENSE file in this source package for more -- information about copyright and licensing. module:set_global() local jid_bare = require "util.jid".bare -- Setup, Init functions. -- initia...
nilq/small-lua-stack
null
local pairs = pairs local GetSpellInfo = GetSpellInfo local CreateFrame = CreateFrame local Gladdy = LibStub("Gladdy") local L = Gladdy.L local Auras = Gladdy:NewModule("Auras", nil, { auraFontSize = 16, auraFontColor = {r = 1, g = 1, b = 0, a = 1} }) function Auras:Initialise() self.frames = {} sel...
nilq/small-lua-stack
null
CodexDB["meta"]={ ["chests"]={ [-186750]=0, [-184935]=0, [-184933]=0, [-184930]=0, [-181804]=0, [-181802]=0, [-181800]=0, [-181798]=0, [-181366]=0, [-181083]=0, [-181074]=0, [-180523]=0, [-180392]=0, [-180229]=0, [-180228]=0, [-179703]=0, [-179564]=0, [-179528]=0, [-176944]=0, [-176224]=0, [-176188]=0, [-169243]=0, [-1...
nilq/small-lua-stack
null
--[[ Repeat loops ]] -- Simple repeat repeat print "Good 1" until true -- Simple repeat with continue repeat continue until true print "Good 2" -- Repeat with code after a continue repeat print "Good 3" if true then continue end print "Bad 1" until true -- Repeat with locals before and after a conti...
nilq/small-lua-stack
null
----------------------------------- -- Area: Xarcabard -- NPC: qm1 (???) -- Involved in Quests: The Three Magi -- !pos -331 -29 -49 112 ----------------------------------- local ID = require("scripts/zones/Xarcabard/IDs") require("scripts/globals/npc_util") require("scripts/globals/quests") ---------------------------...
nilq/small-lua-stack
null
-- Class Definition Character = {} Character.__index = Character setmetatable(Character, { __call = function(self, playerId, data) local character = {} character.PlayerId = playerId character.Id = data.Id character.PermissionLevel = data.PermissionLevel character.SteamId = data.SteamId character....
nilq/small-lua-stack
null
--------------------------------------------- -- Perfect Defense --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/msg") --------------------------------------------- function onAbilityC...
nilq/small-lua-stack
null
local Basis = require "Basis" local DataStruct = require "DataStruct" local Grid = require "Grid" local Updater = require "Updater" local Time = require "Lib.Time" local x0, y0 = 0.0, 0.0 -- location of O local zet = 1e9 -- Dpar/Dperp local Dpar = 1.0 -- parallel heat conduction local Dperp = Dpar/zet -- perpendicular...
nilq/small-lua-stack
null
function class(base, init) local c = {} -- a new class instance if not init and type(base) == 'function' then init = base base = nil elseif type(base) == 'table' then -- our new class is a shallow copy of the base class! for i,v in pairs(base) do c[i] = v end ...
nilq/small-lua-stack
null
dofile(minetest.get_modpath("mylights").."/lightbox.lua") dofile(minetest.get_modpath("mylights").."/lightbulbs.lua") dofile(minetest.get_modpath("mylights").."/ws.lua") dofile(minetest.get_modpath("mylights").."/cubes.lua") dofile(minetest.get_modpath("mylights").."/lamppost.lua") dofile(minetest.get_modpath("mylight...
nilq/small-lua-stack
null
luaSetWaxConfig({openBindOCFunction=true}) require "TwitterTableViewController" waxClass{"AppDelegate", protocols = {"UIApplicationDelegate"}} function applicationDidFinishLaunching(self, application) local f = CGSize(33.0,44.0) local a = f.width print("结构体", tostring(f)) local frame = UIScreen:mainScreen():...
nilq/small-lua-stack
null
function _init() end function _draw() end function _update60() end --- [adapted from Lua wiki](http://lua-users.org/wiki/ObjectOrientationTutorial) function make_class() local cls = {} function cls.new(...) local instance = setmetatable({}, cls) local init = cls._init if init then init(instance, ...) ...
nilq/small-lua-stack
null
dependencies = { basePath = "./deps" } function dependencies.load() dir = path.join(dependencies.basePath, "premake/*.lua") deps = os.matchfiles(dir) for i, dep in pairs(deps) do dep = dep:gsub(".lua", "") require(dep) end end function dependencies.imports() for i, proj in pairs(dependencies) do if type(...
nilq/small-lua-stack
null
-- avoid memory leak collectgarbage("setpause", 100) collectgarbage("setstepmul", 5000) require "mainMenu" ---------------- -- run local scene = CCScene:create() scene:addChild(CreateTestMenu()) CCDirector:sharedDirector():runWithScene(scene)
nilq/small-lua-stack
null
-- Keybindings -- ============================================================================= local map = vim.api.nvim_set_keymap -- Cursor movement -- ----------------------------------------------------------------------------- map('n', '<up>', 'gk', {silent = true, noremap = true}) map('n', '<down>'...
nilq/small-lua-stack
null
local MAKE_SNAPSHOT game._snapshots = {} stead.make_snapshot = function(nr) if not stead.tonum(nr) then nr = 0 end local h = { }; h.txt = '' h.write = function(s, ...) local a = {...}; for i = 1, stead.table.maxn(a) do s.txt = s.txt .. stead.tostr(a[i]); end end local old = game._snapshots; game._snapsho...
nilq/small-lua-stack
null
Talk(0, "小师父,你先回龙门客栈,若有需要你帮忙时,我再去找你.", "talkname0", 1); Leave(49); ModifyEvent(60, 2, 1, 1, -1, -1, -1, 6650, 6694, 6650, 20, -2, -2); ModifyEvent(60, 15, 1, 1, 983, -1, -1, 6604, 6648, 6604, 20, -2, -2); do return end;
nilq/small-lua-stack
null
local varm_util = require("modules/varm_util") local node_reqs = {} -- ('Set Variable: A = !B' Node) function node_reqs.ensure_support_methods(node, proj_state) -- Only primitive types, so no required includes to check. return true end -- ('Set Variable: A = !B' Node) function node_reqs.append_node(node, node_gr...
nilq/small-lua-stack
null
local table1 = {1,2,3} local table2 = table1 table2[3] = 4 print(unpack(table1))
nilq/small-lua-stack
null
minetest.register_on_dieplayer(function(player) local pname = player:get_player_name() local pos = player:getpos() pos.x = math.floor(pos.x) pos.y = math.floor(pos.y) pos.z = math.floor(pos.z) minetest.chat_send_player(pname, "You died at " ..pos.x.. ", " ..pos.y.. ", " ..pos.z) minetest.lo...
nilq/small-lua-stack
null
grenade_imperial_detonator = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Imperial detonator grenade", directObjectTemplate = "object/weapon/ranged/grenade/grenade_imperial_detonator.iff", craftingValues = { {"mindamage",645,989,0}, {"maxdamage",1300,2000,0}, {"attackspeed",6,2.5,1}, {"woundc...
nilq/small-lua-stack
null
local lz4 = require("lz4") local readfile = require("readfile") local function decompress(s, e, size) local ds = lz4.block_decompress_safe(e, size) assert(s == ds) local df = lz4.block_decompress_fast(e, size) assert(s == df) end local function test_block(s) local e1 = lz4.block_compress(s) decompress(s, ...
nilq/small-lua-stack
null
local Vector=require("vector") require("objects") backgroundColor=draw.white textColor=draw.gray defaultColor=draw.black scale=60/1 drawScale=true function computeForces(o) table.insert(o.forces,{ f=Vector(0,0), r=Vector(0,0) }) end function initObjects() initCircle{x=2,y=2,r=0.5,Vx=5,Vy=...
nilq/small-lua-stack
null
require 'nn'; require 'nngraph'; local san = {} function san.n_attention_layer(img_feat_size, img_tr_size, rnn_size, common_embedding_size, num_attention_layer, num_last_fc, fc1_size, fc2_size, non_linearity, num_visual_concepts) local inputs, outputs = {}, {} table.insert(inputs, nn.Identity()()) table....
nilq/small-lua-stack
null
local addonName = ...; -- @class RisenAuctions local RisenAuctions = LibStub("AceAddon-3.0"):NewAddon("RisenAuctions", "AceConsole-3.0", "AceEvent-3.0", "...
nilq/small-lua-stack
null
ITEM.name = "Hellhound Meat" ITEM.description = "Uncooked meat from a Hellhound." ITEM.longdesc = "This chunk of meat from the mutated type of dog called a Hellhound feels warm to the touch, even though it was killed hours ago. Considered a delicacy among STALKERs used to eating the regular dog meat." ITEM.model = "mod...
nilq/small-lua-stack
null
modifier_pet_summoner_critters = class({}) function modifier_pet_summoner_critters:CheckState() return { [MODIFIER_STATE_DISARMED] = true, [MODIFIER_STATE_HEXED] = true, [MODIFIER_STATE_MUTED] = true, [MODIFIER_STATE_SILENCED] = true } end function modifier_pet_summoner_critters:DeclareFunctions() return ...
nilq/small-lua-stack
null
--esmobs v1.3 --maikerumine --made for Extreme Survival game --License for code is WTFPL ------------------------- --BAD NPC'S ------------------------- mobs:register_mob("esmobs:badplayer2", { type = "monster", hp_min = 35, hp_max = 75, collisionbox = {-0.3, -1.0, -0.3, 0.3, 0.8, 0.3}, visual = "mesh", mesh = "...
nilq/small-lua-stack
null
minetest.register_item(":", { type = "none", wield_image = "wieldhand.png", wield_scale = {x=1,y=1,z=2.5}, tool_capabilities = { full_punch_interval = 0.9, max_drop_level = 0, groupcaps = { crumbly = {times={[2]=3.00, [3]=0.70}, uses=0, maxlevel=1}, snappy = {times={[3]=0.40}, uses=0, maxlevel=...
nilq/small-lua-stack
null
local i18n = require("core.i18n") i18n.add { wish = { what_do_you_wish_for = "何を望む?", your_wish = "「{$1}!!」", it_is_sold_out = "あ、それ在庫切れ。", something_appears = "足元に{itemname($1)}が転がってきた。", something_appears_from_nowhere = "足元に{itemname($1)}が転がってきた。", you_learn_skill = "{$1}の技術を会...
nilq/small-lua-stack
null
--- Called before an operation to check whether other plugins allow the operation. -- returns true to abort operation, returns false to continue. -- a_HookName is the name of the hook to call. Everything after that are arguments for the hook. function CallHook(a_HookName, ...) assert(g_Hooks[a_HookName] ~= nil) ...
nilq/small-lua-stack
null
local UserInputService = game:GetService("UserInputService") local gui = script.Parent local dragging local dragInput local dragStart local startPos local function update(input) local delta = input.Position - dragStart gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startP...
nilq/small-lua-stack
null
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*- -- vim: ts=4 sw=4 ft=lua noet ---------------------------------------------------------------------- -- @author Daniel Barney <daniel@pagodabox.com> -- @copyright 2015, Pagoda Box, Inc. -- @doc -- -- @end -- Created : 21 May 2015 by Daniel Barne...
nilq/small-lua-stack
null
includes("volk", "flecs", "EASTL", "header_only", "glm", "GLFW")
nilq/small-lua-stack
null
local skynet = require "skynet" local mysql = require "mysql" local CMD = {} local db function CMD.start() -- print("CMD.start start connect.") db = mysql.connect{ host = "127.0.0.1", port = 3306, database = "employees", user = "root", password = "sa12345", max_packet_size = 1024 * 1024 } -- print("C...
nilq/small-lua-stack
null
----------------------------------- -- Area: North Gustaberg -- Mob: Maneating Hornet -- Note: Place Holder For Stinging Sophie ----------------------------------- local ID = require("scripts/zones/North_Gustaberg/IDs") require("scripts/globals/regimes") require("scripts/globals/mobs") --------------------------------...
nilq/small-lua-stack
null
return Def.Sprite { Texture=NOTESKIN:GetPath( '_downleft', 'tap note' ); Frames = Sprite.LinearFrames( 6, 1 ); };
nilq/small-lua-stack
null
local configure_rainbow = require('config.plugins.rainbow.theme') local available, highlight = pcall(require, 'nvim-treesitter.highlight') g.rainbow_active = 1 configure_rainbow() -- Handle treesitter screweing up colored brackets if available ~= nil then local hlmap = vim.treesitter.highlighter.hl_map hlmap.e...
nilq/small-lua-stack
null
--Pre-made areas --Waves AREA_SHORTWAVE3 = { {1, 1, 1}, {1, 1, 1}, {0, 3, 0} } AREA_WAVE10 = { {1, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 0, 3, 0, 0, 0} } AREA_WAVE11 = { {1, 1, 1, ...
nilq/small-lua-stack
null
----------------------------------------------- -- battleaxe_small.lua -- Represents a battleaxe that a player can wield or pick up -- Created by NimbusBP1729 ----------------------------------------------- -- -- Creates a new small battleaxe object -- @return the small battleaxe object created return { hand_x = 12,...
nilq/small-lua-stack
null
local M = {} local function motion(key, back_key) if vim.v.count1 > 1 then vim.cmd("normal! " .. vim.v.count1 .. key) return end local initial_line = vim.fn.line(".") vim.cmd("normal! " .. key) local new_line = vim.fn.line(".") if initial_line ~= new_line then vim.cmd("normal! " .. back_key) end end fu...
nilq/small-lua-stack
null
local M = { } local name = "test_cart2" local me = ... local TK = require("PackageToolkit") local case = (require(me .. ".case"))["case"] M[name] = function() local separator = TK.lists.head(TK.strings.split(package.config)) local s1 = string.format("A%s1", separator) local s2 = string.format("A%s2", separator) ...
nilq/small-lua-stack
null
--[[ * Natural Selection 2 - Combat++ Mod * WhiteWizard - 2017 * CPPShared ]] if Server then Script.Load("lua/Server.lua") elseif Client then Script.Load("lua/Client.lua") elseif Predict then Script.Load("lua/Predict.lua") end Script.Load("lua/CPPUtilities.lua") if Server then -...
nilq/small-lua-stack
null
local function create_targeter(data) local _name = data.name return { type = "item", name = _name, icon = data.sprite..".png", flags = {"goes-to-quickbar"}, order = "a[".._name.."]", place_result = (data.type and data.type == "target" and _name) or nil, stack_size = 2 } end local func...
nilq/small-lua-stack
null
local Skada = Skada local pairs, wipe, max = pairs, wipe, math.max local getmetatable, setmetatable, time = getmetatable, setmetatable, time -- a dummy table used as fallback local dummyTable = {} Skada.dummyTable = dummyTable -- this one should be used at modules level local T = Skada.Table local cacheTable = T.get...
nilq/small-lua-stack
null
--[[------------------------------------------------------------------ Flashlight icon. ]]-------------------------------------------------------------------- local FLASH_FULL, FLASH_EMPTY, FLASH_BEAM = 'flash_full', 'flash_empty', 'flash_beam' local gmod_suit = GetConVar('gmod_suit') --[[ Create element ]]-- loca...
nilq/small-lua-stack
null
tfm.exec.disableAutoShaman() tfm.exec.disableAutoNewGame() math.inSquare = function(x1,y1,r1,x2,y2,r2) return (x1 + r1 > x2 - r2 and x1 - r1 < x2 + r2) and (y1 + r1 > y2 - r2 and y1 - r1 < y2 + r2) end info = {} eventNewPlayer = function(n) tfm.exec.chatMessage("<J>Press <B>spacebar</B> to get the enemy and <B>B</B...
nilq/small-lua-stack
null
function GM:Think() self:StateThink(); self:ConsciousnessThink(); self:AIThink(); end
nilq/small-lua-stack
null
---------------------------------------------------------------------------------------- -- Configuration of Nameplates ---------------------------------------------------------------------------------------- local E, C, L = select(2, ...):unpack() C.nameplate.whiteList = { -- Buffs [642] = true, -- 圣盾术 ...
nilq/small-lua-stack
null
local loveMath = require("love.math") local abs = math.abs local cos = math.cos local floor = math.floor local max = math.max local min = math.min local modf = math.modf local sin = math.sin local sqrt = math.sqrt local M = {} function M.clamp(x, minX, maxX) return min(max(x, minX), maxX) end function M.cross(ax,...
nilq/small-lua-stack
null
local basePath = (...):gsub('[^%.]+$', '') local Button = require(basePath .. "Button") local SliderHandle = Button:extend() function SliderHandle.updatePos(self, dx, dy, isLocal) local startPoint = -self.length/2 + self.offset -- Slider handle must be anchored to center point. local endPoint = self.length...
nilq/small-lua-stack
null
local insert, concat do local _obj_0 = table insert, concat = _obj_0.insert, _obj_0.concat end local unpack = unpack or table.unpack local lpeg = require("lpeg") local R, S, V, P R, S, V, P = lpeg.R, lpeg.S, lpeg.V, lpeg.P local C, Cs, Ct, Cmt, Cg, Cb, Cc, Cp C, Cs, Ct, Cmt, Cg, Cb, Cc, Cp = lpeg.C, lpeg.Cs, lpeg.C...
nilq/small-lua-stack
null
if Client then function MarineActionFinderMixin:OnProcessMove() PROFILE("MarineActionFinderMixin:OnProcessMove") local kIconUpdateRate = 0.25 local prediction = Shared.GetIsRunningPrediction() if prediction then return end local now = Shar...
nilq/small-lua-stack
null
local mysql = mysql local encode = encode local random = math.random local min = math.min local mysqlconn = { host = "DBHOSTNAME", port = 3306, database = "hello_world", user = "benchmarkdbuser", password = "benchmarkdbpass" } return function(ngx) local db = mysql:new() assert(db:connect(mysqlconn)) local num...
nilq/small-lua-stack
null
local spec = require('cmp.utils.spec') local feedkeys = require('cmp.utils.feedkeys') local types = require('cmp.types') local core = require('cmp.core') local source = require('cmp.source') local keymap = require('cmp.utils.keymap') local api = require('cmp.utils.api') describe('cmp.core', function() describe('conf...
nilq/small-lua-stack
null
local StateBase = require(script:GetCustomProperty("StatesStateBase")) local SLIDING_BRAKING = script:GetCustomProperty("SlidingBraking") local SLIDING_FRICTION = script:GetCustomProperty("SlidingFriction") local SLIDING_VELOCITY = script:GetCustomProperty("SlidingVelocity") local DEFAULT_BRAKING = script:GetCustomProp...
nilq/small-lua-stack
null
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PrgAmbientLife["Visitslide"] = function(unit, bld, obj, spot, slot_data, slot, slotname) local spot_pos, wp, wait_pos, _x, _y, _x2, _y2, _z, _angle, slideOut unit:PushDestructor(function(unit) PrgChangeSpotFlags(bld, bld, spot, 0, 1, slotname, slot...
nilq/small-lua-stack
null
--MoveCurve --H_Tohka/HitDown_1 HitDown_1 return { filePath = "H_Tohka/HitDown_1", startTime = Fixed64(0) --[[0]], startRealTime = Fixed64(0) --[[0]], endTime = Fixed64(23068672) --[[22]], endRealTime = Fixed64(346031) --[[0.33]], isZoom = true, isCompensate = false, curve = { [1] = { time = 0 --[[0]], ...
nilq/small-lua-stack
null
local crypto_shorthash_keygen_sig = [[ void %s(unsigned char *) ]] local crypto_shorthash_sig = [[ int %s(unsigned char *, const unsigned char *, unsigned long long, const unsigned char *) ]] local signatures = { ['crypto_shorthash_keygen'] = crypto_shorthash_keygen_sig, ['crypto_shorthash'] ...
nilq/small-lua-stack
null
--- === ConfigWatcher === --- --- Reload the environment when .lua files in ~/.hammerspoon are modified. local PathWatcher = require("hs.pathwatcher") local Settings = require("hs.settings") local hs = hs local obj = {} obj.__index = obj obj.name = "ConfigWatcher" obj.version = "1.0" obj.author = "roeybiran <roeybir...
nilq/small-lua-stack
null
-- TipScaner.lua -- @Author : Dencer (tdaddon@163.com) -- @Link : https://dengsir.github.io -- @Date : 5/22/2020, 9:31:04 AM ---@type ns local ns = select(2, ...) ---@type GameTooltip local TipScaner = CreateFrame('GameTooltip') ns.TipScaner = TipScaner ---@type FontString[] local LFonts, RFonts = {}, {} for i ...
nilq/small-lua-stack
null
object_building_player_city_cityhall_tatooine_02 = object_building_player_city_shared_cityhall_tatooine_02:new { } ObjectTemplates:addTemplate(object_building_player_city_cityhall_tatooine_02, "object/building/player/city/cityhall_tatooine_02.iff")
nilq/small-lua-stack
null
local assert = assert local buffer = require 'buffer' local read_buf = buffer.read local M = {} local function read_struct(buf, info, fmt) local res = read_buf(buf, assert(fmt or info.fmt)) assert(# res == # info) local r = {} for i, v in ipairs(info) do r[v] = res[i] end return r end M.read_buf = read_bu...
nilq/small-lua-stack
null
------------------- ABOUT ---------------------- -- -- This is the first stop of hero's journey. -- Here he'll get fuels to continue traveling. -- However, the PAotH allies of the hero have -- been taken hostages by professor Hogevil. -- So hero has to get whatever available equipement -- there is and rescue them. Hed...
nilq/small-lua-stack
null
--- -- Module containing some general utility functions used in many places in Kong. -- -- NOTE: Before implementing a function here, consider if it will be used in many places -- across Kong. If not, a local function in the appropriate module is prefered. -- -- @copyright Copyright 2016 Mashape Inc. All rights reserve...
nilq/small-lua-stack
null
-- -- Please see the license.html file included with this distribution for -- attribution and copyright information. -- -- The target value is a series of consecutive window lists or sub windows local bVisibility = nil; local nLevel = 1; local aTargetPath = {}; function onInit() for sWord in string.gmat...
nilq/small-lua-stack
null
return { cURL = { { description = "cURL: Lua binding to libcurl", homepage = "https://github.com/Lua-cURL", license = "MIT/X11", name = "cURL", require = { lcurl = "0.3.1-103", luajit = "2.0" }, version = "0.3.1-103", version_dir = "0_3_1+103" } ...
nilq/small-lua-stack
null
local AddPlayerPostInit = AddPlayerPostInit local AddPrefabPostInit = AddPrefabPostInit local AddPrefabPostInitAny = AddPrefabPostInitAny local AddStategraphPostInit = AddStategraphPostInit GLOBAL.setfenv(1, GLOBAL) -------------------------------------------------------------------------------- ----------------------...
nilq/small-lua-stack
null
--[[ Loops through the list of tags and cleans out any references to expired keys. If all keys are cleaned from a tag, removes the tag. --]] local tagList = {} local tagsRemoved = 0 local keysCleaned = 0 if(#tagList == 0) then tagList = redis.call('keys', '*:tag:*') end for _, tagName in pairs(tagList) do local tagTy...
nilq/small-lua-stack
null
local PLUGIN = PLUGIN; Clockwork.kernel:IncludePrefixed("sv_plugin.lua");
nilq/small-lua-stack
null
require ("prototypes.entity.demo-pipecovers") local hit_effects = require ("prototypes.entity.demo-hit-effects") local sounds = require("prototypes.entity.demo-sounds") if not data.is_demo then require ("prototypes.entity.assemblerpipes") end data:extend( { { type = "mining-drill", name = "electric-minin...
nilq/small-lua-stack
null
local builder = require("installer/integrations/null_ls/helpers").npm.builder return builder({ name = "prettier", install_package = "prettier", type = { "formatting" }, })
nilq/small-lua-stack
null
return function (x, y, w, h, r, line_width, color) love.graphics.setLineStyle("smooth") love.graphics.setLineWidth(line_width) if color then love.graphics.setColor(color) end love.graphics.rectangle("line", x, y, w, h, r, r) end
nilq/small-lua-stack
null
local Modules = script.Parent.Parent.Parent local Roact = require(Modules.Roact) local StudioThemeAccessor = require(Modules.Plugin.Components.StudioThemeAccessor) local Util = require(Modules.Plugin.Util) local function ScrollingFrame(props) local children = {} if props.List then local listProps = props.List ==...
nilq/small-lua-stack
null
--[[ Script for adding the extensions menu items. ]]-- function onInit() registerMenuItems(); end -- Add menu items to the Settings menu, pertaining to the 5e Combat Enhancer extension. function registerMenuItems() OptionsManager.registerOption2("CE_HCW", false, "option_header_5eenhancer", "option_actor_heal...
nilq/small-lua-stack
null
--[[ Simple Anti MapHack for Starcraft: BroodWar 1.16.1 Copyright (C) 2014 HarpyWar (harpywar@gmail.com) This file is a part of the PvPGN Project http://pvpgn.pro Licensed under the same terms as Lua itself. ]]-- -- just unique request id for maphack ah_mh_request_id = 99 -- map visible offset ah_mh_offset =...
nilq/small-lua-stack
null
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' ui_page('html/index.html') files({ 'html/index.html', 'html/script.js', 'html/style.css', 'html/img/burger.png', 'html/img/bottle.png', 'html/img/donuts.png', 'html/img/biere.png', 'html/img/absinthe.png', 'html/img/champagne.png', 'html/i...
nilq/small-lua-stack
null
ys = ys or {} ys.Battle.BattleBuffBulletPierce = class("BattleBuffBulletPierce", ys.Battle.BattleBuffEffect) ys.Battle.BattleBuffBulletPierce.__name = "BattleBuffBulletPierce" ys.Battle.BattleBuffBulletPierce.Ctor = function (slot0, slot1) slot0.Battle.BattleBuffBulletPierce.super.Ctor(slot0, slot1) end ys.Battle.Ba...
nilq/small-lua-stack
null
local items = {} for _, file in ipairs(love.filesystem.getDirectoryItems("assets/items")) do local itemList = dofile("assets/items/" .. file) for name, i in pairs(itemList) do items[name] = i end end return items
nilq/small-lua-stack
null
local UnityEngine = require "LuaRoot.lib.unity_engine" local GameObject = UnityEngine.GameObject local MeshFilter = UnityEngine.MeshFilter local Resources = UnityEngine.Resources local Mesh = UnityEngine.Mesh local Vector3 = UnityEngine.Vector3 local MeshRenderer ...
nilq/small-lua-stack
null
if m_simpleTV.User == nil then m_simpleTV.User = {} end if m_simpleTV.User.WestSide == nil then m_simpleTV.User.WestSide = {} end if m_simpleTV.User.WestSide.info == nil then m_simpleTV.User.WestSide.info = 0 end if m_simpleTV.User.WestSide.info == 0 then m_simpleTV.Control.ExecuteAction(161,0) --KEY_OSD_SHOW...
nilq/small-lua-stack
null
-------------------------------------------------------- -- Frame Saving & Loading -------------------------------------------------------- local EGP = EGP EGP.Frames = {} function EGP:SaveFrame( ply, Ent, index ) if (!EGP.Frames[ply]) then EGP.Frames[ply] = {} end EGP.Frames[ply][index] = table.Copy(Ent.RenderTa...
nilq/small-lua-stack
null
function PLUGIN:PlayerShouldGetHungry(ply) if ply:IsAdmin() and ply:GetMoveType() == MOVETYPE_NOCLIP then return false end end
nilq/small-lua-stack
null
--Minetest 0.4.7 mod: concrete --(c) 2013 by RealBadAngel <mk@realbadangel.pl> local technic = rawget(_G, "technic") or {} technic.concrete_posts = {} -- Boilerplate to support localized strings if intllib mod is installed. local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end for i = 0, ...
nilq/small-lua-stack
null
local g = vim.g local xdg_base = vim.fn['hz#xdg_base'] -- Share tags cache between vim and gvim g.gutentags_cache_dir = xdg_base('cache', 'tags')
nilq/small-lua-stack
null
----------------------------------------- -- INFORMATION ----------------------------------------- --[[ Each quest has many different Main steps Each Main step can have many steps each step can have many conditions Main steps are not actually created by ZOS --]] ----------------------------------------...
nilq/small-lua-stack
null
return {'nvs'}
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
--[[ Name: "sh_mysterious_fiveseven.lua". Product: "HL2 RP". --]] local ITEM = {}; -- Set some information. ITEM.base = "weapon_base"; ITEM.name = "Mysterious's FiveSeven"; ITEM.model = "models/weapons/w_pist_fiveseven.mdl"; ITEM.weight = 1.5; ITEM.uniqueID = "mysterious_fiveseven"; ITEM.weaponClass = "weapon_fivesev...
nilq/small-lua-stack
null
-- '#include' statements local SampleInterface = require("SampleInterface") local SampleInterfaceImplementation = require("SampleInterfaceImplementation") insulate("Insulated Interface Test | ", function() local sampleInterface = nil setup(function() sampleInterface = SampleInterface:new() end) test("Sho...
nilq/small-lua-stack
null
local server = require "http.server" local searchMgr = require "SearchMgr" local write = server.write local htmlTags = require "HtmlTags" local console = require "sys.console" local localConfig = require "LocalConfig" local core = require "sys.core" local keywordDatabaseMgr = require "KeywordDatabaseMgr" local dispat...
nilq/small-lua-stack
null
return {'orde','ordebewaarder','ordebroeder','ordedienst','ordehandhaver','ordehandhaving','ordeketen','ordekleed','ordekruis','ordelievend','ordelijk','ordelijkheid','ordelint','ordeloos','ordeloosheid','ordenen','ordening','ordeningsbeleid','ordeningsprincipe','ordentelijk','ordentelijkheid','ordepolitie','ordeproble...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Function......... : easeOutInQuad -- Author........... : -- Description...... : -------------------------------------------------------------------------------- ---------------------------------------------------------------------...
nilq/small-lua-stack
null
local M = {} M.config = { settings = { ltex = { language = "en-GB", }, }, } return M
nilq/small-lua-stack
null
-- Prosody XMPP Server Configuration -- -- Information on configuring Prosody can be found on our -- website at https://prosody.im/doc/configure -- -- Tip: You can check that the syntax of this file is correct -- when you have finished by running this command: -- prosodyctl check config -- If there are any errors, ...
nilq/small-lua-stack
null
slot0 = class("TaskCommonPage", import("..base.BaseSubView")) slot0.getUIName = function (slot0) return "TaskListPage" end slot0.OnLoaded = function (slot0) slot0._scrllPanel = slot0:findTF("right_panel") slot0._scrollView = slot0._scrllPanel:GetComponent("LScrollRect") end slot0.OnInit = function (slot0) slot0....
nilq/small-lua-stack
null
-- you can "require" lua libraries require "randist" -- comment out things in this file using: --[[ comment in order to test how things work --]] function testfunc() -- delay by 1/2 beat bdelay(.5) bv(1500) -- set beat value for this environment (1500 ms) -- do the following 3 times: for i=1, 3 do -- send to "bd...
nilq/small-lua-stack
null
#!/usr/bin/env lua --require 't5' -- this is a test comment -- test comment -- test comment --tables city = {} city.name = "Seattle" city.population = 10000 city.mayor = "Klark McDonald" -- test comment -- test comment --[[io.write('Hello, what is your name? ') local name = io.read() io.write('Nice to meet you, ', ...
nilq/small-lua-stack
null
-- This might have been installed in Lua 5.1 .luarocks so make sure to set the version correctly local _testMain = require("TestMain") local game = _testMain.game local habitat = _testMain.habitat local ReplicatedStorage = _testMain.ReplicatedStorage local replicatedStorageChildren = ReplicatedStorage:GetChildren() ...
nilq/small-lua-stack
null