content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
---@class PermissionOverwrite ---@field client Client ---@field parent Container|Client ---@field createdAt number ---@field id SnowflakeId ---@field timestamp string ---@field allowedPermissions number ---@field channel GuildChannel ---@field deniedPermissions number ---@field guild Guild ---@field type string local ...
nilq/small-lua-stack
null
ITEM.name = "Dark Grey Exosuit" ITEM.description = "A basic Exosuit colored in dark grey." ITEM.category = "Outfit" ITEM.model = "models/tnb/stalker/items/exo.mdl" ITEM.width = 2 ITEM.height = 3 ITEM.outfitCategory = "model" ITEM.pacData = {} ITEM.newSkin = 9 ITEM.replacements = "models/tnb/stalker/male_exo.mdl"
nilq/small-lua-stack
null
function love.conf(t) t.identity = "Top Down Shooter" t.version = "11.3" t.console = false t.window.title = "TDS" t.window.width = 800 t.window.height = 600 t.window.minwidth = 100 t.window.minheight = 100 t.window.resizable = true t.window.fullscreen = false t.window.fulls...
nilq/small-lua-stack
null
function init() animator.setAnimationState("beamaxe", "active") object.setInteractive(false) end function showBeamaxe() animator.setAnimationState("beamaxe", "active") object.setInteractive(true) end function onInteraction(args) animator.setAnimationState("beamaxe", "inactive") object.setInteractive(false...
nilq/small-lua-stack
null
local Model = require ("lapis.db.model").Model local Articles = Model:extend("articles", { relations = { { "user", belongs_to = "Users"} } }) function Articles:all() return Articles:select("ORDER BY date desc LIMIT 10") end return Articles
nilq/small-lua-stack
null
--[[ Copyright (c) 2016-2018 Martin Jesper Low Madsen <martin@martinjlowm.dk> 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...
nilq/small-lua-stack
null
local env = environment() local A = Local("A", Type) env = add_decl(env, mk_var_decl("eq", Pi(A, mk_arrow(A, A, Prop)))) local eq = Const("eq") local a = mk_local("a", "a", A) local b = mk_local("b", "a", A) local H = Local("H", eq(A, a, b)) local m = mk_metavar("m", Pi(A, a, b, H, eq(A, a, b)))(A, a, b, H) print(t...
nilq/small-lua-stack
null
zUI:RegisterComponent("zUnitframes", function () zUI.zUnitframes = CreateFrame("Frame", "zUnitframes", UIParent); --setfenv(0, zUI:GetEnvironment()) --local _G = getfenv(0) --local C = zUI_config for _, v in pairs({ PlayerFrame, TargetFrame, PartyMemberFrame1 }) do v:SetUserPlaced(true) v:SetMovable(tr...
nilq/small-lua-stack
null
object_draft_schematic_furniture_furniture_guild_screen_cartridge_imp_2 = object_draft_schematic_furniture_shared_furniture_guild_screen_cartridge_imp_2:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_guild_screen_cartridge_imp_2, "object/draft_schematic/furniture/furniture_guild_screen...
nilq/small-lua-stack
null
require 'pl.app'.require_here ".." local arb_tool = require 'arbitrate' local arbitrate = arb_tool.arbitrate local makearb = arb_tool.makearb local utest = require 'tools.unittest' local orderbook1 = { bids = { price = { 0.02040001, 0.02040000, 0.02020000, 0.02010000...
nilq/small-lua-stack
null
-- Factorio STD Lib require 'stdlib/area/area' require 'stdlib/area/position' require 'stdlib/table' require 'stdlib/string' -- Sementic Version comparision tool local v = require 'lib/semver' -- This Mod's functions require 'lib/resource' require 'lib/feature' require 'lib/upgrade' -- events hook -- Spawn ore patche...
nilq/small-lua-stack
null
local lexer = require("kotaro.parser.lexer") local function lex(src) return lexer(src, "test") end describe("lexer", function() it("lexes prefix", function() local l = lex("\nx = 1") local t = l:peekToken() assert.same("\n", t:prefix()) ...
nilq/small-lua-stack
null
name = {"правим", "оштрим", "тупим"} padez = {"правих", "оштрих", "тупих"}
nilq/small-lua-stack
null
------------- Set hyper to ctrl + cmd --------------- hyper = {'ctrl', 'cmd'} hyperShiftCmd = {'cmd', 'shift'} hyperShiftCtrl = {'shift', 'ctrl'} hyperShift = {'ctrl', 'cmd', 'shift'} -- define modules hotkey = require 'hs.hotkey' window = require 'hs.window' application = require 'hs.application' -- hammerspoon con...
nilq/small-lua-stack
null
function onCreate() -- background shit makeLuaSprite('blacksky', 'blacksky', -700, -200); setScrollFactor('blacksky', 0.7, 0.7); makeLuaSprite('beam1', 'beam1', -850, -400); setScrollFactor('beam1', 0.8, 1.0); makeLuaSprite('beam2', 'beam2', -850, -400); setScrollFactor('beam2', 0.8, 1.0); makeLuaSprite('bui...
nilq/small-lua-stack
null
object_tangible_deed_vehicle_deed_senate_pod_deed = object_tangible_deed_vehicle_deed_shared_senate_pod_deed:new { } ObjectTemplates:addTemplate(object_tangible_deed_vehicle_deed_senate_pod_deed, "object/tangible/deed/vehicle_deed/senate_pod_deed.iff")
nilq/small-lua-stack
null
local app,abs = math.Approach,math.abs local max = math.max local min = math.min local clamp = math.Clamp local smoothe,smooths = 10000, 10000 local function fogapp(current,goal,speed) if not speed then speed = 1 end local dif = abs(current - goal) local ap = max(current / 500,1) return app(current,goal,ap * speed)...
nilq/small-lua-stack
null
object_static_worldbuilding_terminal_floor_data_terminal_01 = object_static_worldbuilding_terminal_shared_floor_data_terminal_01:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_terminal_floor_data_terminal_01, "object/static/worldbuilding/terminal/floor_data_terminal_01.iff")
nilq/small-lua-stack
null
local ReplaySelectScene = Scene:extend() ReplaySelectScene.title = "Replays" local binser = require 'libs.binser' current_replay = 1 function ReplaySelectScene:new() -- reload custom modules initModules() -- load replays replays = {} replay_file_list = love.filesystem.getDirectoryItems("replays") for i=1,#rep...
nilq/small-lua-stack
null
--- Module implementing the LuaRocks "make" command. -- Builds sources in the current directory, but unlike "build", -- it does not fetch sources, etc., assuming everything is -- available in the current directory. local make = {} local build = require("luarocks.build") local fs = require("luarocks.fs") local util =...
nilq/small-lua-stack
null
--[[ * Natural Selection 2 - Combat++ Mod * Authors: * WhiteWizard * * Overridden Functions: * 'GhostModel:Update' - Because indiviual marines can now place structures, the ghost model * for placing that structure sometimes returns a radius. This attempts to add a ghost guide * with the com...
nilq/small-lua-stack
null
----------------------------------- -- Area: The Shrine of Ru'Avitau -- NPC: Door (Yellow) ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) return 0; end; function onEventUpdate(player,csid,option) end; function onEventFinish(player,csid,option) end;
nilq/small-lua-stack
null
-- Dependencies local Assets = require("engine.Assets") local Class = require("engine.Class") local Config = require("engine.Config") local Music = require("engine.Music") local State = require("engine.State") local Transition = require("engine.Transition") local GenericMenu = requir...
nilq/small-lua-stack
null
require "lpeg" local P, C, Cf, Cc = lpeg.P, lpeg.C, lpeg.Cf, lpeg.Cc lookandsay = Cf(Cc"" * C(P"1"^1 + P"2"^1 + P"3"^1)^1, function (a, b) return a .. #b .. string.sub(b,1,1) end) t = "1" for i = 1, 10 do print(t) t = lookandsay:match(t) end
nilq/small-lua-stack
null
-- Scene - Gameplay -- local Base = require 'src.gamestates.gamestate' local Scene = Base:extend() local dispatch = function(obj, name, ...) return obj:dispatch(name, ...) end -- Event: onLoad -- function Scene:init(data) Base.init(self, { name = 'scene', controls = _Control['scene'] }) end -- Tear down ...
nilq/small-lua-stack
null
return PlaceObj("ModDef", { "title", "Change Skin Wasp Drones", "version", 1, "version_major", 0, "version_minor", 1, "saved", 0, "image", "Preview.png", "id", "ChoGGi_ChangeSkinWaspDrones", "steam_id", "1653474003", "pops_any_uuid", "7f5565f7-ea07-45b1-b438-ac6be3f3617c", "author", "ChoGGi", "lua_revision",...
nilq/small-lua-stack
null
--[[ Gradient Scale Layer. Forward pass is the identity while backward pass scales the incoming gradients by a provided factor. --]] local GradientScale, parent = torch.class('nn.GradientScale', 'nn.Module') function GradientScale:__init(g_scale) parent.__init(self) self.g_scale = g_scale or 1 self.train =...
nilq/small-lua-stack
null
local death_blocks = require("Modules.JawnGC.death_blocks") local checkpoints = require("Checkpoints/checkpoints") local temple2 = { identifier = "temple2", title = "Temple 2: Sqaure Peg", theme = THEME.TEMPLE, width = 4, height = 4, file_name = "temp-2.lvl", world = 5, level = 2, } loc...
nilq/small-lua-stack
null
ConsoleInputLine = Object:extend() function ConsoleInputLine:new(x, y, opts) self.id = UUID() self.timer = Timer() self.x, self.y = x, y self.text = opts.text self.console = opts.console self:setCharacters() self.timer:every(0.4, function() self.cursor_show = not self.cursor_show end) ...
nilq/small-lua-stack
null
local harfbuzz = require("harfbuzz") local compare_glyphs_against_fixture = function(glyphs, fixture) local json = require('dkjson') local f = io.open("fixtures/"..fixture) local s = f:read("*all") f:close() local hb_shape_glyphs = json.decode(s) assert.are_equal(#hb_shape_glyphs, #glyphs) for c = 1, #gl...
nilq/small-lua-stack
null
-- NetBSD syscall numbers local nr = { SYS = { syscall = 0, exit = 1, fork = 2, read = 3, write = 4, open = 5, close = 6, compat_50_wait4 = 7, compat_43_ocreat = 8, link = 9, unlink = 10, chdir = 12, fchdir = 13, compat_50_mknod = 14, chmod = 15, chown = 16, ["break"] = 17, compat...
nilq/small-lua-stack
null
local idcounter = {} function idcounter.get_id(type) if not idcounter[type] then idcounter[type] = 1 else idcounter[type] = idcounter[type] + 1 end return idcounter[type] end return idcounter
nilq/small-lua-stack
null
------------------------------------------------ -- Copyright © 2013-2014 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ local LuaHelper=LuaHelper local CUtils=CUtils local delay = delay local Timer = luanet.Timer local fun = fun local CooldownLabel=class(function(self,...
nilq/small-lua-stack
null
-- Copyright (C) Anton heryanto. local cjson = require "cjson" local upload = require "resty.upload" local table_new_ok, new_tab = pcall(require, "table.new") local open = io.open local sub = string.sub local find = string.find local byte = string.byte local type = type local tonumber = tonumber local setmetatable ...
nilq/small-lua-stack
null
module("nn_move", package.seeall) require "bots/data/ability_data" require "bots/dota2_nn/util" local json = require "game/dkjson" local function ShouldAct(newInput, lastInput) -- check to see if we should bother asking the NN about the latest game state if lastInput == nil then util.Debug("first move") return...
nilq/small-lua-stack
null
vim.api.nvim_set_var('NERDCreateDefaultMappings', 1) vim.api.nvim_set_var('NERDSpaceDelims', 1) vim.api.nvim_set_var('NERDCompactSexyComs', 1) vim.api.nvim_set_var('NERDDefaultAlign', 'left') vim.api.nvim_set_var('NERDCommentEmptyLines', 1) vim.api.nvim_set_var('NERDTrimTrailingWhitespace', 1) vim.api.nvim_set_var('NER...
nilq/small-lua-stack
null
workspace "JEngine" architecture "x64" startproject "Sandbox" configurations { "Debug", "Release", "Distribution" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- Include dirs relative to root folder (solution dir) IncludeDir = {} IncludeDir["GLFW"] = "...
nilq/small-lua-stack
null
--[[ author: https://github.com/sheldarr license: MIT name: etl-xpsave repository: https://github.com/sheldarr/etl-xpsave version: 1.2 ]]-- local json = require('dkjson') local MOD_NAME = "etl-xpsave" local CONSOLE_COMMANDS = { LOAD_XP = "loadxp", SAVE_XP = "savexp", RESET_XP = "reset...
nilq/small-lua-stack
null
local playsession = { {"MKIch", {915277}}, {"WorldofWarIII", {1560232}}, {"MovingMike", {1565129}}, {"Presbo", {1093720}}, {"Zorky", {1459389}}, {"DukeAl", {2327306}}, {"Liadin", {501076}}, {"Yannickool2", {1461231}}, {"untouchablez", {1520620}}, {"harukine", {1525928}}, {"GuidoCram", {974455}}, {"CawaEast"...
nilq/small-lua-stack
null
require "src/game/actor" local actor = Actor.new("charles", "Charles", costumes.charles, { 0, 0.9, 0 }) actor.defaultScale = 0.55
nilq/small-lua-stack
null
local baseg = cat.require"module/graphics/base_graphics" function load_vertex(vertex) local ver = {} for i = 1,#vertex,2 do local v = cat.position(vertex[i],vertex[i + 1]) table.insert(ver,v) end return ver end function get_position(vertex) local min_x = math.huge local min_y =...
nilq/small-lua-stack
null
----------------------------------------- -- ID: 4539 -- Item: goblin_pie -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 12 -- Magic 12 -- Dexterity -1 -- Agility 3 -- Vitality -1 -- Charisma -5 -- Defense % 9 (cap 100) ----------------------------------------- require("scripts/glo...
nilq/small-lua-stack
null
local options = { frames = { {x=0,y=0,width=32,height=32,}, -- frame 1 {x=32,y=0,width=32,height=32,}, -- frame 2 {x=64,y=0,width=32,height=32,}, -- frame 3 {x=96,y=0,width=32,height=32,}, -- frame 4 {x=128,y=0,width=32,height=32,}, -- frame 5 {x=160,y=0,width=32,height=32,}, -- frame 6 ...
nilq/small-lua-stack
null
-- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ifc = net:get_interface() local hostname, accept_ra, send_rs local bcast, defaultroute, peerdns, dns, metric, clientid, vendorclass hostname = section:taboption("gener...
nilq/small-lua-stack
null
ccs = ccs or {} ---DisplayManager object ---@class DisplayManager : Ref local DisplayManager = {} ccs.DisplayManager = DisplayManager -------------------------------- -- ---@return Node function DisplayManager:getDisplayRenderNode() end -------------------------------- -- ---@return vec2_table function DisplayManager...
nilq/small-lua-stack
null
local types = require(script.Parent.types) return { Brand = Color3.fromHex("9333EA"), Light = { background = Color3.fromHex("F3F4F6"), canvas = Color3.fromHex("FFFFFF"), stroke = Color3.fromHex("D1D5DB"), text = Color3.fromHex("000000"), storybookEntry = Color3.fromHex("C4C4C4"), icons = { arrow = Co...
nilq/small-lua-stack
null
local VH2Gui = Instance.new("ScreenGui") local TheBox = Instance.new("Frame") local ThyButton1 = Instance.new("TextButton") local ThyButton2 = Instance.new("TextButton") local ThyButton3 = Instance.new("TextButton") VH2Gui.Name = "VH2Gui" VH2Gui.Parent = game.CoreGui TheBox.Name = "TheBox" TheBox.Parent = VH2Gui The...
nilq/small-lua-stack
null
local slider_demo = {} local function event_handler(obj, event) if(event == lvgl.EVENT_VALUE_CHANGED) then print(string.format("Value: %d\n", lvgl.slider_get_value(obj))); end end function slider_demo.demo() --Create a slider local slider = lvgl.slider_create(lvgl.scr_act(), nil); ...
nilq/small-lua-stack
null
if not _G.FreeInstanceSharer then return end local F, L, P, G = unpack(_G.FreeInstanceSharer) local originIsInviteOnWhisperMsg = F.IsInviteOnWhisperMsg F.IsInviteOnWhisperMsg = function(self, sender, text, ...) if not F.db.MultiInvite.Enable then return originIsInviteOnWhisperMsg(self, sender, text, ...
nilq/small-lua-stack
null
local function formatCharacter(character) return string.format("%%%02X", character:byte(1,1)) end return function(stringToEncode) return stringToEncode:gsub("[^%w_%-%!%.%~%*%'%(%)]", formatCharacter) end
nilq/small-lua-stack
null
pg = pg or {} pg.enemy_data_statistics_400 = { [295040] = { cannon = 221, name = "海伦娜·META(Tier.10)", reload = 150, cannon_growth = 0, speed_growth = 0, air = 305, hit_growth = 0, dodge = 30, base = 541, durability_growth = 0, antiaircraft = 321, reload_growth = 0, dodge_growth = 0, speed =...
nilq/small-lua-stack
null
local o= require "tests" local function _one( k) k=1 print(2) assert(1==2,"impossible") end b=2 o.k{_one}
nilq/small-lua-stack
null
object_building_mustafar_terrain_must_bridge_rock_lrg = object_building_mustafar_terrain_shared_must_bridge_rock_lrg:new { } ObjectTemplates:addTemplate(object_building_mustafar_terrain_must_bridge_rock_lrg, "object/building/mustafar/terrain/must_bridge_rock_lrg.iff")
nilq/small-lua-stack
null
object_tangible_item_beast_converted_urnsoris_decoration = object_tangible_item_beast_shared_converted_urnsoris_decoration:new { } ObjectTemplates:addTemplate(object_tangible_item_beast_converted_urnsoris_decoration, "object/tangible/item/beast/converted_urnsoris_decoration.iff")
nilq/small-lua-stack
null
--- convert this UTC date to local. function Date:toLocal () -- convert this UTC date to local. local ndate = Date(self) -- convert this UTC date to local. -- convert this UTC date to local. if self.utc then -- convert this UTC date to local. ndate.utc = false -- convert this UTC date to local. ...
nilq/small-lua-stack
null
require('luacov') local unpack = unpack or table.unpack local testcase = require('testcase') local plut = require('plut') function testcase.set() local p = assert(plut.new()) -- test that set segment values local last_equal for _, v in ipairs({ { pathname = '/foo', valu...
nilq/small-lua-stack
null
local TOOL = ix.meta.tool or {} -- code replicated from gamemodes/sandbox/entities/weapons/gmod_tool/stool.lua function TOOL:Create() local object = {} setmetatable(object, self) self.__index = self object.Mode = nil object.SWEP = nil object.Owner = nil object.ClientConVar = {} object.ServerConVar = {} obje...
nilq/small-lua-stack
null
-- globals local hudForceHide = false local hudPresence = false local activated = false -- Compatibility with frameworks if GetConvar('tfnrp_framework_init', 'false') == 'true' then Config.CommandAccessHandling = function () return exports.framework:GetLocalClientDuty() > 0 end end --------------------------...
nilq/small-lua-stack
null
local M = require("dotfiles.autoload")("dotfiles.utils.vim") function M.normalize_bufnr(bufnr) if bufnr == nil or bufnr == 0 then return vim.api.nvim_get_current_buf() else return bufnr end end return M
nilq/small-lua-stack
null
function recursiveTriFractal(pos, side) if pos.x > width or pos.y > height then return end if side < 1 then vecPoint(pos) else recursiveTriFractal(pos + Vector(side / 4, side * math.sqrt(3) / 4), side / 2) recursiveTriFractal(pos + Vector(side / 2, 0), side / 2) recursiveTriFractal(pos, side / 2) end end...
nilq/small-lua-stack
null
AddCSLuaFile() DEFINE_BASECLASS( "base_gmodentity" ) ENT.PrintName = "Quaffle" ENT.Author = "baristaner" ENT.Information = "Quaffle" ENT.Category = "baristaner Quidditch" ENT.Editable = true ENT.Spawnable = true ENT.AdminOnly = false surface.CreateFont( "ent", { font = "Harry P", ex...
nilq/small-lua-stack
null
local sentryResupplyTime = 15 local function ShouldResupplySentry(player) if not player:GetIsAlive() then return false end if player:GetHasCombatUpgrade(kCombatUpgrades.Sentries) then local ownerId = player:GetId() for _, sentry in ientitylist( Shared.GetEntitiesWithClassname("Sentry") ) do --Print(...
nilq/small-lua-stack
null
do local i = 0 repeat i = i + 1 print(i) if i > 3 then break end until i == 7 print("end") end
nilq/small-lua-stack
null
DoReady.DemonHunter.Vengeance.MythicPlus.Fortified.Legendarys = { [1] = 355893, [2] = 337534, [3] = 337547, [4] = 337544, [5] = 337504, [6] = 355886, [7] = 355996, [8] = 355890, } DoReady.DemonHunter.Vengeance.MythicPlus.Fortified.Talents = { [1] = 207548, [2] = 227174, [3] = 247454, [4] = 263642, [5] = 209281, [6] = 3...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- logging -------------------------------------------------------------------------------- local _PACKAGE = string.gsub(...,"%.","/") or "" return { logger = require (_PACKAGE.."/logger"), }
nilq/small-lua-stack
null
--- -- @module Utility -- ~~~~~~~~~~~ -- Version: 0.3 2014-10-06 -- -------------------------------------------------------------------------- -- -- Copyright (c) 2011-2012 Geekscape Pty. Ltd. -- All rights reserved. This program and the accompanying materials -- are made available under the terms of the Eclipse Public...
nilq/small-lua-stack
null
--ブラックフェザー·アサルト·ドラゴン --Script by Corvus1998 & mercury233 function c101110042.initial_effect(c) aux.AddCodeList(c,9012916) c:EnableCounterPermit(0x10) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsType,TYPE_SYNCHRO),aux.NonTuner(nil),1) c:EnableReviveLimit() --spsummon condition local e...
nilq/small-lua-stack
null
object_tangible_loot_creature_loot_collections_ig_88_left_leg = object_tangible_loot_creature_loot_collections_shared_ig_88_left_leg:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_ig_88_left_leg, "object/tangible/loot/creature/loot/collections/ig_88_left_leg.iff")
nilq/small-lua-stack
null
local shell = require "shell" local filesystem = require "filesystem" local args = {...} local options = {} options.count = math.huge options.bs = 128 options["if"] = "-" options.of = "-" for _, arg in pairs(args) do local k, v = arg:match("(%w+)=(.+)") if not k then print("Ilegal argument: " .. arg) ...
nilq/small-lua-stack
null
/*--------------------------------------------------------------------------- DarkRP hooks ---------------------------------------------------------------------------*/ function GM:Initialize() self.BaseClass:Initialize() end function GM:playerBuyDoor(ply, ent) if RPExtraTeams[ply:Team()] and RPExtraTeams[ply:Team()...
nilq/small-lua-stack
null
-- debug stuff -- it's not long before printing every debug message makes debugging AND doing stuff in game impossible -- ephemeral strings to chat is not a very good replacement for a proper debug log -- this module is about limiting debug output to that of current interest and / or storing logout surviving logs -- la...
nilq/small-lua-stack
null
local KLDCriterion, parent = torch.class('nn.KLDCriterion', 'nn.Criterion') function KLDCriterion:updateOutput(inputs) mu_phi, logsigma_phi, mu_omega, logsigma_omega = table.unpack(inputs) -- Appendix B from VAE paper: 0.5 * sum(1 + log(sigma^2) - mu^2 - sigma^2) local mu_phi_sq = torch.pow(mu_phi, 2)...
nilq/small-lua-stack
null
--[[ Serverside Custom Addon file Base ]] -- --require("sb_space") MsgC(Color(255,255,255),"-----------------------[SERVER]----------------------\n") MsgC(Color(100,100,255)," CAF - Loading Spacebuild Adddon \n") MsgC(Color(255,255,255),"-----------------------------------------------------\n") pl...
nilq/small-lua-stack
null
-- 0-idle (random walk) -- 1-chase player --local stateCode=0 -- seekbox for target local seekRadiusX=18 local seekRadiusY=18 local walkRadius=30 local moveRandomly=function(actor) local x=actor.x+Lume.random(-walkRadius,walkRadius) local y=actor.y+Lume.random(-walkRadius,walkRadius) local world=CurrentWorld ...
nilq/small-lua-stack
null
local moduleAliens = {} local aliens_mt = { __index = moduleAliens } function moduleAliens.nouveau( ) print("Module 4 / création d'une instance de moduleAliens") local nouveauModuleAliens = {} nouveauModuleAliens.nombre = 0 return setmetatable( nouveauModuleAliens, aliens_mt ) end function moduleAliens...
nilq/small-lua-stack
null
local Ansi = require('opus.ansi') local Event = require('opus.event') local UI = require('opus.ui') local Util = require('opus.util') local fs = _G.fs local peripheral = _G.peripheral local source, target local function getDriveInfo(tgt) local total = 0 local throttle = Util.throttle() tgt = fs....
nilq/small-lua-stack
null
-- set description set_description("The Console Program (tbox)") -- set project directory set_projectdir("project") -- add macros add_macros("targetname", "$(targetname)") -- add macro files add_macrofiles("src/xmake.lua") -- set create script on_create(function () -- copy packages os.cp("$(packagesdir)/tb...
nilq/small-lua-stack
null
--[[ New Car Horn/Siren Spam Script New No Recoil New Give Radio New Give Mobile Customize Fix Give Emotes SCRIPT IS BY Jxnt#9029 ]] local SynapseXen_IIIiiIIliIlIIIlIii=select;local SynapseXen_lIiIIlIlIiliilI=string.byte;local SynapseXen_lIIIlillIIiliIl=string.sub;local SynapseXen_IlliliII=string.char;local Syn...
nilq/small-lua-stack
null
----------------------------------------- -- Spell: Water -- Deals water damage to an enemy. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") ----------------------------------------- function onMagicCastingCheck(caster, target, spell) return 0 end funct...
nilq/small-lua-stack
null
resource_manifest_version '05cfa83c-a124-4cfa-a768-c24a5811d8f9' server_scripts { 'server.lua' } client_script 'client.lua'
nilq/small-lua-stack
null
Citizen.CreateThread(function() RemoveIpl("rc12b_fixed") RemoveIpl("rc12b_destroyed") RemoveIpl("rc12b_default") RequestIpl("rc12b_hospitalinterior_lod") RequestIpl("rc12b_hospitalinterior") end)
nilq/small-lua-stack
null
CenterBlock = Class{} function CenterBlock:init(util, centerBlockTable, tetriminoManager, BLOCK_DIMENSION, VIRTUAL_WIDTH, VIRTUAL_HEIGHT) local x = util:toCoords({VIRTUAL_WIDTH/2, VIRTUAL_HEIGHT/2}) centerBlockTable[x] = {1,0,0,1} self.width = BLOCK_DIMENSION self.height = BLOCK_DIMENSION -- For ...
nilq/small-lua-stack
null
--[[ test.lua Created by Masatoshi Teruya on 13/10/19. Copyright 2013 Masatoshi Teruya. All rights reserved. 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 witho...
nilq/small-lua-stack
null
local layer, parent = torch.class('nn.UnionSlicer', 'nn.Module') function layer:__init() parent.__init(self) self.grad_features = torch.Tensor() self.grad_gt_features = torch.Tensor() end function layer:updateOutput(input) local features = input[1] local label_idx = input[2] if label_idx:nElement()...
nilq/small-lua-stack
null
wampa_christmas = Creature:new { objectName = "@mob/creature_names:wampa", socialGroup = "wampa", faction = "", level = 300, chanceHit = 25.00, damageMin = 670, damageMax = 1250, baseXp = 700668, baseHAM = 250000, baseHAMmax = 300000, armor = 3, resists = {50,50,50,50,50,50,50,50,50}, meatType = "", meatA...
nilq/small-lua-stack
null
if name == "LinearDetected reverse" then end stop = tonumber(value2); local turn = 0 local turn2 = 0 local y = 0; local x = 0; local canBob = true local Strums = 'opponentStrums' function onCreate() math.randomseed(os.clock() * 1000); --doTweenAlpha("gone","camHUD",0,0.01) end function onBeat...
nilq/small-lua-stack
null
--- The surface library allows you to draw text and shapes on the screen. Primarily used for making HUDs & custom GUI panels. _G.surface = {} --- Creates a new font. --- To prevent the font from displaying incorrectly when using the "outline" setting, set "antialias" to false. This will ensure the text properly fil...
nilq/small-lua-stack
null
local status_ok, lsp_installer = pcall(require, "nvim-lsp-installer") if not status_ok then return end local servers = { "cssls", "cssmodules_ls", "emmet_ls", "html", -- "jdtls", "jsonls", "solc", "sumneko_lua", "tflint", "tsserver", "pyright", "yamlls", "bashls" } local settings = { ens...
nilq/small-lua-stack
null
#!/usr/bin/env lua local spy = require( "allocspy" ) spy.enable( true ) local t = { 1, 2, 3 } local bytes = spy.disable() local t2 = { 1, 2, 3 } print( "bytes allocated:", bytes )
nilq/small-lua-stack
null
DEFINE_BASECLASS("player_defender") local PLAYER = { DisplayName = "Server Defender", JumpPower = 240, MaxHealth = 400, RunSpeed = 450, StartArmor = 50, StartHealth = 400, TeammateNoCollide = true, WalkSpeed = 220 } AccessorFunc(PLAYER, "FlugelHalo", "FlugelHalo") --unfortunately I have been unable to succes...
nilq/small-lua-stack
null
require("specs.busted") require("specs.Cocos2d-x") require("lang.Signal") require("Logger") Log.setLevel(LogLevel.Warning) local BridgeCall = require("bridge.BridgeCall") local BridgeResponse = require("bridge.BridgeResponse") local Error = require("Error") local Manager = require("social.Manager") local Network = re...
nilq/small-lua-stack
null
---------------------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. -- For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- --...
nilq/small-lua-stack
null
--[[ - Version: 0.1 - Made by Tom Tuning - Mail: tom.tuning@sas.com ****************** - INFORMATION ****************** - runTimez Functions: Keeps track of runtimer listeners in a table ----------------------- -- Usage ----------------------- --]] ---------------------------------------------...
nilq/small-lua-stack
null
local defaultcolor = {r=0.651, g=0.792, b=1} data:extend({ { type = "item", name = "reinforced-wall", icon = modname.."/graphics/icons/reinforced-wall.png", flags = {"goes-to-quickbar"}, subgroup = "defensive-structure", order = "a[wall]-a[reinforced-wall]", place_result = "reinforced-wal...
nilq/small-lua-stack
null
local activeMap = nil local activePath = nil local monW, monH = term.getSize() local curX, curY = math.floor(monW/2)-7, math.floor(monH/2)-1 local mapX, mapY = 0, 0 local placement = {'X', 'P', 'E', 'B', '$', '*', '!'} local desc = {"Wall", "Player Spawn: Max 1", "Enemy Spawn", "Boss Spawn: Max 2", "Loot", "Trap", "D...
nilq/small-lua-stack
null
-- ReMade by Donrskbb -- --- DONT EDIT IN THIS FILE --- local Melee = { -1569615261, 1737195953, 1317494643, -1786099057, 1141786504, -2067956739, -868994466 } local Bullet = { 453432689, 1593441988, 584646201, -1716589765, 324215364, 736523883, -270015777, -1074790547, -2084633992, -1357824103, -1660422300, 21447417...
nilq/small-lua-stack
null
local oop = medialib.load("oop") local DailyMotionService = oop.class("DailyMotionService", "HTMLService") DailyMotionService.identifier = "dailymotion" local all_patterns = { "https?://www.dailymotion.com/video/([A-Za-z0-9_%-]+)", "https?://dailymotion.com/video/([A-Za-z0-9_%-]+)" } function DailyMotionService:pa...
nilq/small-lua-stack
null
local t = {} t.init = {x = 2, y = 2} t.layout = {} t.layout[1] = { {1, 1, 1, 0}, {1, 0, 2, 2}, {5, 1, 6, 2}, {1, 0, 2, 2}, {1, 1, 1, 0} } t.moves = {2, 3} return t
nilq/small-lua-stack
null
local DEFAULT_RECORDER = "luatrace.trace_file" -- Check if the ffi is available, and get a handle on the c library's clock. -- LuaJIT doesn't compile traces containing os.clock yet. local ffi if jit and jit.status and jit.status() then local ok ok, ffi = pcall(require, "ffi") if ok then ffi.cdef("unsigned l...
nilq/small-lua-stack
null
require("examples.serialization")
nilq/small-lua-stack
null