content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
slot0 = class("EquipUpgradeLayer", import("..base.BaseUI")) slot0.CHAT_DURATION_TIME = 0.3 slot0.getUIName = function (slot0) return "EquipUpgradeUI" end slot0.setItems = function (slot0, slot1) slot0.itemVOs = slot1 end slot0.init = function (slot0) pg.UIMgr.GetInstance():BlurPanel(slot0._tf, false, { weight =...
nilq/small-lua-stack
null
---@type vm local config = require 'config' local defaultlibs = require 'library.defaultlibs' local files = require 'files' local guide = require 'core.guide' local rbxlibs = require 'library.rbxlibs' local rojo = require 'library.rojo' local util = require 'utility' local vm ...
nilq/small-lua-stack
null
unitevents = {}
nilq/small-lua-stack
null
------------------------------ -- Combo Point Widget ------------------------------ --[[ - Proc Widget --]] local comboWidgetPath = "Interface\\Addons\\TidyPlatesWidgets\\ComboWidget\\" local artpath = "Interface\\Addons\\TidyPlatesWidgets\\ComboWidget\\" local artfile = artpath.."PointArtLegion.tga" ...
nilq/small-lua-stack
null
-- utf8 vim.g.encoding = "UTF-8" vim.o.fileencoding = 'utf-8' -- jk移动时光标下上方保留8行 vim.o.scrolloff = 8 -- Lines of context -- Round indent vim.o.sidescrolloff = 8 -- Columns of context -- 使用相对行号 vim.wo.number = true -- Show line numbers --vim.wo.relativenumber = true -- Relative line numbers -- 高亮所在行 vim.wo.cursorline = t...
nilq/small-lua-stack
null
local config = require("lapis.config") -- Global config variables. BCRYPT_NUM_CYCLES = 8 -- Server configuration. config("development", { port = 9009, session_name = "svd_viz_session", secret = "test_secret_change_me", postgres = { host = "127.0.0.1", user = "postgres", password = "postgres_passwo...
nilq/small-lua-stack
null
local bit = require 'bit' return setmetatable({}, { __newindex = function(self, k, v) if type(k) ~= 'string' or type(v) ~= 'number' then error('bad error definition', 2) end v = bit.tobit(v) rawset(self, k, v) rawset(self, v, k) end; __index = function(self, k) if type(k) == 'string' then error('...
nilq/small-lua-stack
null
local UpdateBeat = UpdateBeat local reservedFields = { "netHandler", "isInstance", "transform", "gameObject", "luaBehavior", "enableShowAnimation", "enableHideAnimation", "widgets", "sortingLayer", "autoClose", "withMask", "maskColor", "autoInject", ...
nilq/small-lua-stack
null
level_max_x = { -- Emerald Hill Zone ["zone=0,act=0"] = 0x2A40, ["zone=0,act=1"] = 0x29C0, -- Chemical Plant Zone ["zone=13,act=0"] = 0x2840, ["zone=13,act=1"] = 0x2943, -- Aquatic Ruin Zone ["zone=15,act=0"] = 0x298C, ["zone=15,act=1"] = 0x298D, -- Casino Night Zone ["zone=12,act=0"] = 0...
nilq/small-lua-stack
null
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! * ---@meta --- ---[3.2]segment data[parent:] --- ---@class OF_SegmentFrameData --- ---[3.2]body segment texture --- ---@field segmentTexture OF_Texture#of_texture --- ---[4.4]hair segment texture --- ---@field hairTexture OF_Texture#of_texture --- --...
nilq/small-lua-stack
null
-- for managing physical chat channels local Main = CommsAddon function Main:JoinChannels() local joined = {} for k, v in pairs( self.db.global.comms ) do if not joined[v.chat] then joined[v.chat] = true JoinPermanentChannel( v.chat ) end end end function Main:JoinChatChannel( name ) JoinPermanentChann...
nilq/small-lua-stack
null
local _M = {} _M.__index = _M _M.LOOP = 0 _M.ONE_SHOT = 1 _M.REVERSE = 2 _M.PING_PONG = 3 function _M:add_frame(sframe) self.frames[#self.frames+1] = sframe end function _M:update(dt) if self.delay <= 0 then return end self.time = self.time + dt while self.time >= self.delay do s...
nilq/small-lua-stack
null
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISPlowAction : ISBaseTimedAction ISPlowAction = ISBaseTimedAction:derive("ISPlowA...
nilq/small-lua-stack
null
--------------------------------------------------------------------- --private variables --------------------------------------------------------------------- local edf = {} local edfStarted = {} local thisResource = getThisResource() local rootElement = getRootElement() createResourceCallInterface("mapmanager") addE...
nilq/small-lua-stack
null
AddCSLuaFile() DEFINE_BASECLASS("drivable_combine_soldier") ENT.Base = "drivable_combine_soldier" ENT.PrintName = "Combine Soldier (smg)" ENT.Author = "TankNut" ENT.Category = "Drivable" ENT.Spawnable = true ENT.Model = Model("models/Combine_Soldier.mdl") ENT.GunClass = "drivable_gun_smg1"
nilq/small-lua-stack
null
local spec_helper = require "spec.spec_helpers" describe("CLI", function() setup(function() pcall(spec_helper.stop_kong) end) teardown(function() pcall(spec_helper.stop_kong) end) it("the status check should fail when Kong is not running", function() assert.error_matches(function() spec_...
nilq/small-lua-stack
null
object_draft_schematic_dance_prop_prop_glowstick_l_s02 = object_draft_schematic_dance_prop_shared_prop_glowstick_l_s02:new { } ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_glowstick_l_s02, "object/draft_schematic/dance_prop/prop_glowstick_l_s02.iff")
nilq/small-lua-stack
null
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 of the License, --or (at your option) any later version. ...
nilq/small-lua-stack
null
require("lockbox").insecure(); local Bit = require("lockbox.util.bit"); local String = require("string"); local Math = require("math"); local Queue = require("lockbox.util.queue"); local AND = Bit.band; local OR = Bit.bor; local NOT = Bit.bnot; local XOR = Bit.bxor; local LROT = Bit.lrotate; local LSHIFT = Bit.lshif...
nilq/small-lua-stack
null
local Package = game:GetService("ReplicatedStorage").Fusion local New = require(Package.Instances.New) local defaultProps = require(Package.Instances.defaultProps) return function() it("should create a new instance", function() local ins = New "Frame" {} expect(typeof(ins) == "Instance").to.be.ok() expect(ins:...
nilq/small-lua-stack
null
local logger = require(".lua.common.logger").new("cfgmgr.lua") local cjson = require "cjson" local _cmgr ={} -- The _cmgr_table is the table that holds the parsed json file -- This is parsed by parts into different tables that can be used throughout -- the lifetime of the Worker. The Parse of Json file and creating th...
nilq/small-lua-stack
null
function onCreate() end function onBeatHit (...) -- for every beat end function onStupHit (...) -- for every Step end function Update (...) end
nilq/small-lua-stack
null
context("Sqlite3 API", function() local sqlite3 = require "rspamd_sqlite3" test("Sqlite3 open", function() os.remove('/tmp/rspamd_unit_test_sqlite3.sqlite') local db = sqlite3.open('/tmp/rspamd_unit_test_sqlite3.sqlite') assert_not_nil(db, "should be able to create sqlite3 db") db = sqlite3.open(...
nilq/small-lua-stack
null
sand_king_burrowstrike_lua = class({}) LinkLuaModifier( "modifier_sand_king_burrowstrike_lua", "lua_abilities/sand_king_burrowstrike_lua/modifier_sand_king_burrowstrike_lua", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( "modifier_generic_stunned_lua", "lua_abilities/generic/modifier_generic_stunned_lua", LUA_MODIFIER_MO...
nilq/small-lua-stack
null
return {'iaen'}
nilq/small-lua-stack
null
require "scripts.core.ability" require "scripts.core.projectile" require "gamemode.Spark.modifiers.modifier_Stun"; local DebugRenderer = Require("debugRenderer") Quasar = class(Ability) local Z_OFFSET = 3 function Quasar:OnCreated () self:RegisterVariable("max_range", 20) self:RegisterVariable("cast_time", 0.1) ...
nilq/small-lua-stack
null
-- https://github.com/rlane/pounce.nvim local M = {} function M.get(spec, config, opts) -- stylua: ignore return { PounceAccept = { fg = spec.bg1, bg = spec.palette.orange:harsh() }, PounceAcceptBest = { fg = spec.bg1, bg = spec.palette.cyan:harsh(), }, PounceMatch = { fg = spec.fg1, bg = spec.sel1 },...
nilq/small-lua-stack
null
local battle={} -- not used yet local xLoc = 10 local yLoc = 10 function battle.display(state) if state == false then white = Color.new(255, 255, 255) screen:fillRect(xLoc, yLoc, 460, 250, white) elseif state == true then -- dismiss the battle display end end return battle
nilq/small-lua-stack
null
--[[-------------------------------------------------------------------------- -- -- File: UIPodiumSlot.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: August 13, 2010 -- ---------------------------------------...
nilq/small-lua-stack
null
local core_utils = require "luacheck.core_utils" local stage = {} stage.warnings = { ["531"] = {message_format = "right side of assignment has more values than left side expects", fields = {}}, ["532"] = {message_format = "right side of assignment has less values than left side expects", fields = {}} } local f...
nilq/small-lua-stack
null
function VolumeElementFilterFunc(property) local elem = property.element if elem == nil then elem = 0 end local vm = require("FloatsToFloat")(); vm:Create(property.srcvolume, elem) function volume() return vm:VolumeData() end return { volume = volume } end
nilq/small-lua-stack
null
vim.g.autosource_conf_names = { '.exrc', '.exrc.lua' }
nilq/small-lua-stack
null
lp=game.Players.LocalPlayer pl=lp.Character tol=Instance.new("HopperBin",lp.Backpack) tol.Name="Skull_Smasher"--jarredbcv asd=0 Part = function(x,y,z,color,tr,cc,an,parent) local p = Instance.new('Part',parent or Weapon) p.formFactor = 'Custom' p.Size = Vector3.new(x,y,z) p.BrickColor = BrickColor.new(color) p.CanColli...
nilq/small-lua-stack
null
--[[ based on Trangenstein for curved space, I'll keep my vectors in covariant form this way the Levi-Civita tensor in teh flux, multiplied by the connection coefficents, when used in a holonomic basis, makes them cancel and when used in a static grid, the g^ij_,t terms vanish, and you get eps0 E_i,t - 1/sqrt(g) g_il...
nilq/small-lua-stack
null
--[[ Copyright (C) 2020 Blue Mountains GmbH This program is free software: you can redistribute it and/or modify it under the terms of the Onset Open Source License as published by Blue Mountains GmbH. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied w...
nilq/small-lua-stack
null
TextureManager = { imgPool={}, texPool={} } function TextureManager:loadSprite(fn, w, h, dimX, dimY) local fullFilePath = "assets/image/" .. fn if not MOAIFileSystem.checkFileExists(fullFilePath) then return nil end local image = self.imgPool[fullFilePath] if not image then image = MOAIImage.ne...
nilq/small-lua-stack
null
local pretty = require 'pl.pretty' tb = { 'one','two','three',{1,2,3}, alpha=1,beta=2,gamma=3,['&']=true,[0]=false, _fred = {true,true}, s = [[ hello dolly you're so fine ]] } print(pretty.write(tb))
nilq/small-lua-stack
null
-- Naturally spawning blocks minetest.register_craft({ output = "darkage:chalk", recipe = { {"darkage:chalk_powder","darkage:chalk_powder"}, {"darkage:chalk_powder","darkage:chalk_powder"}, } }) minetest.register_craft({ output = "darkage:mud", recipe = { {"darkage:mud_lump","darkage:mud_lump"}, {"darkage...
nilq/small-lua-stack
null
local PLUGIN = PLUGIN; Clockwork.config:AddToSystem("Business hidden", "hide_business", "Whether or not the business panel is hidden."); -- Called when the menu's items should be adjusted. function PLUGIN:MenuItemsAdd(menuItems) local businessName = Clockwork.option:GetKey("name_business"); if ( Clockwork.config:...
nilq/small-lua-stack
null
---- -- @file PhysicsConstraintBuilder ---- Brief description. -- <#Description#> -- @return <#return value description#> function PhysicsConstraintBuilder:calculateSerializeBufferSize() end ---- Brief description. -- @author James Folk, 16-02-11 15:02:08 -- <#Description#> -- @param dataBuffer <#dataBuffer descrip...
nilq/small-lua-stack
null
local spec_helper = require "spec.spec_helpers" local cassandra = require "cassandra" local constants = require "kong.constants" local DaoError = require "kong.dao.error" local utils = require "kong.tools.utils" local cjson = require "cjson" local uuid = require "uuid" -- Raw session for double-check purposes local se...
nilq/small-lua-stack
null
------------------------------------------------------------------------------- -- 64-bit hash insert fields tests ------------------------------------------------------------------------------- hash = box.schema.space.create('tweedledum') tmp = hash:create_index('primary', { type = 'hash', parts = {1, 'unsigned'}, uni...
nilq/small-lua-stack
null
local eq = assert.are.same local tester_function = function() error(7) end describe('busted specs', function() describe('nested', function() it('should work', function() assert(true) end) end) it('should not nest', function() assert(true) end) it('should not fail unless we unpcall this...
nilq/small-lua-stack
null
if (SERVER) then netstream.Hook("bizBuy", function(client, items) local char = client:getChar() if (!char) then return end if (table.Count(items) < 1) then return end local cost = 0 for k, v in pairs(items) do local itemTable = nut.item.list[k] if (itemTable and hook.Run("CanPlayerUseBus...
nilq/small-lua-stack
null
helpers = require("helpers") function love.load() local MAX_ROUNDS = 9 SCALE = .5 ROUND_STEP_ENUM = { BASE=1, DRAW=2, PICK=3, HOLD=4, } BLACK = {.196,.184,.16,1} WHITE = {.694,.682,.659,1} FONT_SIZE = 32 SCREEN_WIDTH = 800 SCREEN_HEIGHT = 480 I...
nilq/small-lua-stack
null
function setmetatables(t,mts) --takes a table and a list of metatables return setmetatable(t,{__index = function(self, k) --collisions are resolved in this implementation by simply taking the first one that comes along. for i, mt in ipairs(mts) do local member = mt[k] if member then return member ...
nilq/small-lua-stack
null
test_run = require('test_run').new() engine = test_run:get_cfg('engine') box.execute('pragma sql_default_engine=\''..engine..'\'') -- box.cfg() -- create space box.execute("CREATE TABLE zzoobar (c1 NUMBER, c2 INT PRIMARY KEY, c3 TEXT, c4 NUMBER)") box.execute("CREATE UNIQUE INDEX zoobar2 ON zzoobar(c1, c4)") box.exe...
nilq/small-lua-stack
null
-- Writer lock release script. -- This scripts checks if the lock was acquired by the same owner and then releases it. -- KEYS = [GLOB_LOCK_KEY] -- ARGV = [TOKEN] -- check that global lock is ours if redis.call("GET", KEYS[1]) == ARGV[1] then -- release global lock redis.call("DEL", KEYS[1]) -- success ...
nilq/small-lua-stack
null
-- RP Tags -- by Oraibi, Moon Guard (US) server -- ------------------------------------------------------------------------------ -- This work is licensed under the Creative Commons Attribution 4.0 International -- (CC BY 4.0) license. local RPTAGS = RPTAGS; RPTAGS.queue:WaitUntil("UTILS_MODULES", function(self, even...
nilq/small-lua-stack
null
local oop = require 'src/oop' local lg = love.graphics local menu = oop.class() -- make a new menu function menu.manual_init (name, ...) local self = love.filesystem.load('menus/' .. name .. '.lua')() if self.init then self:init(...) end setmetatable(self, {__index = menu}) if self.bg_img then ...
nilq/small-lua-stack
null
local entity_meta = global_metatable( "entity" ) function GetEntityHandle( e ) if IsEntity( e ) then return e.handle end return e end function IsValid( e ) if type( e ) == "table" and e.IsValid then return e:IsValid() end return false end function IsEntity( e ) return type( e ) == "table" and type( e.hand...
nilq/small-lua-stack
null
--[[--ldoc desc @module LoginCtr @author %s Date %s ]] local ViewCtr = require("framework.scenes.ViewCtr"); local LoginCtr = class("LoginCtr",ViewCtr); ---配置事件监听函数 LoginCtr.s_eventFuncMap = { [g_CustomEvent.LOGIN_REGISTER] = "reqRegister"; [g_CustomEvent.LOGIN_LOGIN] = "reqLogin"; [g_CustomEvent.LOGIN_RPS_LOGIN...
nilq/small-lua-stack
null
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 ...
nilq/small-lua-stack
null
local pin1 = 1 local pin2 = 2 local pin3 = 5 local pin4 = 6 local pin5 = 7 gpio.mode(pin1, gpio.INPUT) gpio.mode(pin2, gpio.INPUT) gpio.mode(pin3, gpio.INPUT) gpio.mode(pin4, gpio.INPUT) gpio.mode(pin5, gpio.INPUT) tmr.alarm(1,1000,1,function() print('1 ft:') print(gpio.read(pin1)) print('2 ft:') print(...
nilq/small-lua-stack
null
require "oil" local function returnexception(proxy, exception, operation) if operation.name == "read" and exception[1] == "IDL:Control/AccessError:1.0" then return nil, exception.reason end error(exception) end oil.main(function() local orb = oil.init() local Server local success, exception = oil.pcall...
nilq/small-lua-stack
null
local a, b, c c = false -- boolean c = {1, 2, 3} -- table c = "hello" -- string a = 3.14 -- number b = a print(type(nil)) --> nil print(type(true)) --> boolean print(type(3.14)) --> number print(type("Hello world")) --> string print(type({}...
nilq/small-lua-stack
null
--{nodes = {{frames = {{{0,1.0},{1,2.0},{2,3.0},{3,4.0},{4,10.0}},{{0,10.9},{1,13.0},{2,2.8}},{{0,20.8},{1,24.0},{2,2.6}},{{0,30.7},{1,35.0},{2,2.4}},{{0,40.6},{1,46.0},{2,2.2}},{{0,50.5},{1,57.0},{2,2.0}},{{0,60.4},{1,68.0},{2,1.8}},{{0,70.3},{1,79.0},{2,1.6}},{{0,80.2},{1,90.0},{2,1.4}},{{0,90.1},{1,101.0},{2,1.2}},{...
nilq/small-lua-stack
null
local vdom = require('vdom') function pick(src, ...) local rv = {} for _,k in ipairs({...}) do rv[k] = src[k] end return rv end return function(props) local panelprops = pick(props, 'height', 'width', 'left', 'right', 'bottom', 'top', 'halign', 'valign') panelprops.on_click = vdom.use...
nilq/small-lua-stack
null
-- Copyright (c) 2011-2015 Rob Hoelz <rob@hoelz.ro> -- -- 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,...
nilq/small-lua-stack
null
local E, L, DF = unpack(ElvUI) if E.db["euiscript"].priestpet ~= true then return end if E.myclass ~= "PRIEST" then return end local CUSTOM_CLASS_COLORS, RAID_CLASS_COLORS = CUSTOM_CLASS_COLORS, RAID_CLASS_COLORS local GetSpellInfo = GetSpellInfo local spellname = GetSpellInfo(34433) local spellname2 = GetSpellInfo(12...
nilq/small-lua-stack
null
local comb = require "snippy.parser.comb" local lazy = comb.lazy local many = comb.many local map = comb.map local one = comb.one local opt = comb.opt local pattern = comb.pattern local seq = comb.seq local skip = comb.skip local token = comb.token describe("Combinator tests", function () it("Should parse text", f...
nilq/small-lua-stack
null
RegisterCommand("change-npc", function(source, args, user) TriggerClientEvent('npcvaihto', source, args, user, {}) end)
nilq/small-lua-stack
null
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) AddEventHandler('esx:playerLoaded', function(playerId) local xPlayer = ESX.GetPlayerFromId(playerId) MySQL.Async.fetchScalar("SELECT armour FROM users WHERE identifier = @identifier", { ['@identifier'] = xPlayer.getIdentifier(...
nilq/small-lua-stack
null
local world = require('world') local powerup = {} powerup.category = tonumber('0010', 2) powerup.mask = tonumber('1001', 2) powerup.group = 0 powerup.body = love.physics.newBody(world, 340, 400, 'dynamic') powerup.body:setFixedRotation(true) powerup.body:setMass(20) powerup.shape = love.physics.newPolygonShape(20, 12,...
nilq/small-lua-stack
null
local suite = yatm_autotest.att:new_suite("YATM Brewery")
nilq/small-lua-stack
null
local Const = require("api.Const") local Enum = require("api.Enum") local Action = require("api.Action") local Draw = require("api.Draw") local Gui = require("api.Gui") local I18N = require("api.I18N") local Ui = require("api.Ui") local EquipRules = require("api.chara.EquipRules") local ICharaEquipStyle = require("api....
nilq/small-lua-stack
null
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "Sandwich"; ITEM.model = "models/foodnhouseholditems/sandwich.mdl"; ITEM.width = 1; ITEM.height = 1; ITEM.description = "A mouth-watering sandwich with various meat slices, fresh crispy tomato slices, and b...
nilq/small-lua-stack
null
return { entities = { {"stack-inserter", {x = -0.5, y = -2.5}, {dir = "west", dmg = {dmg = {type = "random", min = 1, max = 75}}, dead = 0.2}}, {"steel-chest", {x = -1.5, y = -2.5}, {dmg = {dmg = {type = "random", min = 1, max = 75}}, dead = 0.2}}, {"medium-electric-pole-remnants", {x = 1.5, y = -3.5}, ...
nilq/small-lua-stack
null
--[[ CORE Overwrite -- A lightweight and modular userdata wrapper. Inspired from a library by and written with minor help from Eir#8327 https://github.com/DimitriBarronmore/cyf-core-labs © 2021 Dimitri Barronmore --]] -- Define a metatable to mimick the properties of userdata. local function err_compare(lhs, rh...
nilq/small-lua-stack
null
ATTRIBUTE.name = "Dextery" ATTRIBUTE.description = "Skill in performing tasks, especially with the hands."
nilq/small-lua-stack
null
local SLDataText = LibStub("AceAddon-3.0"):GetAddon("SLDataText") local L = LibStub("AceLocale-3.0"):GetLocale("SLDataText") local media = LibStub("LibSharedMedia-3.0") local justTable, strataTable, pointTable = SLDataText.just, SLDataText.strata, SLDataText.point local db local realmName = GetCVar("realmName") local ...
nilq/small-lua-stack
null
--region geometricconf.lua --Author : OWenT --Date : 2014/10/22 --全局配置 return { LOG_LEVEL = { DISABLED = 0, FATAL = 1, ERROR = 2, WARNING = 3, INFO = 4, NOTICE = 5, DEBUG = 6, }, log_min_level = 1,...
nilq/small-lua-stack
null
data:extend( { { type = "item", name = "cobalt-steel-alloy", icon = "__Engineersvsenvironmentalist__/graphics/icons/metalworking/alloys/cobalt-steel-plate.png", flags = {"goes-to-main-inventory"}, subgroup = "alloy-processing", order = "cobalt", stack_size = 200 }, { type = "recip...
nilq/small-lua-stack
null
----------------------------------------------------------------------------------- -- File: init.lua -- Author: Joaquín Cuitiño -- License: MIT ----------------------------------------------------------------------------------- local grid = require("grid") local hyper = require("hyper") local windowManager = require(...
nilq/small-lua-stack
null
require("torch") require("utils") local class = require("class") local MemoryGame = class("MemoryGame") -- Static function that transforms a number to a printable symbol function MemoryGame.getSymbol(n) assert(n > 0 and n < 27, "Out of range" .. n) return string.char(n + 64) end -- Initialize game function Me...
nilq/small-lua-stack
null
local argv = {...} local options local loglevel = 1 local ocData = { baseDir = "/var/lib/mpt/mpt.db", configDir = "/var/lib/mpt/config.db", dir = "/var/lib/mpt/" } local function split(text,splitter) local rt = {} local act = "" local x = 1 while x <= #text do if text:sub(x,x+#splitter-1) == splitt...
nilq/small-lua-stack
null
require("scripts.embeddablecallbackhack") local Ancient = RegisterMod("The Ancient",1) local game = Game() local ModRNG = RNG() local playerType = Isaac.GetPlayerTypeByName("The Ancient") local TheAncientInitPool = { [1] = { --GOLD DAMAGE = 4.5, SPEED = 0, TEARS = -3, SHOTSPEED = 5, TEARHEIGHT ...
nilq/small-lua-stack
null
require('plugins') require('theme') require('mappings') require('commands') require('tabs')
nilq/small-lua-stack
null
local steamIds = { ["steam:11000013218ef32"] = true, --syd ["steam:1100001113b37ba"] = true, --syd } RegisterServerEvent('npc-doors:alterlockstate2') AddEventHandler('npc-doors:alterlockstate2', function() NPC.DoorCoords[10]["lock"] = 0 NPC.DoorCoords[11]["lock"] = 0 NPC.DoorCoords[12]["lock"] = 0 ...
nilq/small-lua-stack
null
o = Game.Players.LocalPlayer o.Character.Humanoid.PlatformStand = true bv = Instance.new("BodyAngularVelocity") bv.Parent = o.Character.Torso bv.angularvelocity = Vector3.new(0, 500, 0) bv.maxTorque = Vector3.new(math.huge, math.huge, math.huge) bg = Instance.new("BodyGyro") bg.Parent = o.Character.Torso bg.maxTorqu...
nilq/small-lua-stack
null
::foo:: do do ::my_label:: end goto foo end
nilq/small-lua-stack
null
local lure = require(select('1', ...):match(".-lure%.")..'init') -- -- Define class -- local class = lure.lib.upperclass:define('lure.dom.Document', lure.dom.Node) -- -- Specifies whether downloading of an XML file should be handled asynchronously or not -- class.public : async { default=false; type='boolean'...
nilq/small-lua-stack
null
--!A cross-platform build utility based on Lua -- -- 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...
nilq/small-lua-stack
null
local M = {} M.config = {} local default_cfg = { keymaps = { blame = "<Leader>gb", quit_blame = "q", blame_commit = "<CR>", browse = "<Leader>go", open_pull_request = "<Leader>gp", create_pull_request = "<Leader>gn", }, target_branch = "master", } function M.setup(cfg) if cfg == nil t...
nilq/small-lua-stack
null
--[[ Copyright 2014 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 ...
nilq/small-lua-stack
null
return {'ciel','ciere','cieremans','ciels'}
nilq/small-lua-stack
null
screwdriver = screwdriver or {} local S = minetest.get_translator("xdecor") local FS = function(...) return minetest.formspec_escape(S(...)) end local ceil, abs, random = math.ceil, math.abs, math.random local reg_tools = minetest.registered_tools local allowed_tools = {} -- Cost in Mese crystal(s) for enchanting. loc...
nilq/small-lua-stack
null
local RAYCAST_CUSHION = 2 local CharacterState = require(script.Parent.Parent.CharacterState) return function(self) local luanoid = self.Luanoid local rootPart = luanoid.RootPart local curState = luanoid.State local groundDistanceGoal = luanoid.HipHeight + rootPart.Size.Y / 2 + RAYCAST_CUSHION loc...
nilq/small-lua-stack
null
--- The DragonBonesCPP Sample -- @author zrong(zengrong.net) -- Creation 2014-04-28 local DragonBonesDemo = class("DragonBonesDemo", function() return display.newScene("DragonBonesDemo") end) function DragonBonesDemo:ctor(nextHandler, prevHandler, resetHandler, closeHandler) self._onNext = nextHandler self._onP...
nilq/small-lua-stack
null
object_tangible_collection_col_gcw_city_imp_3 = object_tangible_collection_shared_col_gcw_city_imp_3:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_col_gcw_city_imp_3, "object/tangible/collection/col_gcw_city_imp_3.iff")
nilq/small-lua-stack
null
require('dialogue') local d = Dialogue:new() d:seq{ start=true, name="test", next="testFunc", {text="This is a sample dialogue"}, {text="This is some more interesting text"}, {text="This conversation is over!"} } -- d:add{name="a", text="This is a sample dialogue", next="b", start=true} -- d:add{name="b"...
nilq/small-lua-stack
null
local OverlayColors = { electricity = { 0, RGBA(12 , 94 , 248, 80 ), RGBA(12 , 13 , 248, 120), RGBA(255, 23 , 255, 120), RGBA(253, 11 , 13 , 120), RGBA(255, 244, 11 , 120), RGBA(26 , 203, 9 , 120), RGBA(10 , 203, 192, 180), RGBA(240, 240, 240, 80 ), }, water = { 0, RGBA(12 , 94 , 248, 80 ), ...
nilq/small-lua-stack
null
ikopi_stag = Creature:new { objectName = "@mob/creature_names:ikopi_stag", socialGroup = "self", faction = "", level = 30, chanceHit = 0.39, damageMin = 290, damageMax = 300, baseXp = 3005, baseHAM = 8400, baseHAMmax = 10300, armor = 0, resists = {130,130,20,20,20,-1,-1,-1,-1}, meatType = "meat_wild", mea...
nilq/small-lua-stack
null
--[[ LuCI - Lua Configuration Interface Copyright 2019 lisaac <https://github.com/lisaac/luci-app-dockerman> ]]-- require "luci.util" local uci = luci.model.uci.cursor() local docker = require "luci.model.docker" local dk = docker.new() local containers, images local res = dk.images:list() if res.code <300 then image...
nilq/small-lua-stack
null
return { pairs = { {"number", "multiply",}, }, }
nilq/small-lua-stack
null
------------------------------ ----- INSTALL FORMATTERS ----- ------------------------------ -- prettierd -- npm i -g @fsouza/prettierd ------------------------------ --stylua (better than luafmt&luaformatter) -- installed binary to my ~/.formatters path -- from here: https://github.com/JohnnyMorganz/StyLua/releases --...
nilq/small-lua-stack
null
msg_frac = "Разломак" msg_dec = "Децимални број" msg_per = "Проценат %"
nilq/small-lua-stack
null
local CrossEntropyCriterion, Criterion = torch.class('nn.CrossEntropyCriterion', 'nn.Criterion') function CrossEntropyCriterion:__init(weights) Criterion.__init(self) self.lsm = nn.LogSoftMax() self.nll = nn.ClassNLLCriterion(weights) end function CrossEntropyCriterion:updateOutput(input, target) input = ...
nilq/small-lua-stack
null
Search = { anims = { normal = { Dict = "missexile3", Name = "ex03_dingy_search_case_a_michael", Flag = 48, Disarm = true, Duration = 8000 }, frisk = { Dict = "anim@gangops@facility@servers@bodysearch@", Name = "player_search", Flag = 48, Disarm = true, Duration = 1000 }, }, } --[[ Options ]]-- Main:AddOption({ ...
nilq/small-lua-stack
null
-- Lose Face - An open source face recognition project -- Copyright (C) 2008-2010 David Capello -- All rights reserved. -- -- Description: -- Creates an images-matrix from the ORL faces database. The -- images must be located in the "orl_faces" folder. -- You can run the "orl_faces\download_faces.bat" file to --...
nilq/small-lua-stack
null