content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Bing Lau. --- DateTime: 2021/8/11 18:03 --- --- Mathf = require "Lib.UnityEngine.Mathf" Vector3 = require "Lib.UnityEngine.Vector3" Quaternion = require "Lib.UnityEngine.Quaternion" Vector2 = require "Lib.UnityEngine.Vector2" Vector4 = require "Li...
nilq/small-lua-stack
null
-- Make unpack and table.unpack be the same function, regardless of version if table.unpack then unpack = table.unpack else table.unpack = unpack end -- table.pack taken from penlight if not table.pack then function table.pack (...) return { n = select('#',...); ... } end end
nilq/small-lua-stack
null
local Lambda = wickerrequire "paradigms.functional" local FunctionQueue = wickerrequire "gadgets.functionqueue" wickerrequire "plugins.addworldgenmainpostload" local preinits = FunctionQueue() local function AddGenerateNewPreInit(fn) table.insert(preinits, fn) end local function PatchGenerateNew(generate_new) ...
nilq/small-lua-stack
null
-- -- lua-Coat : <http://fperrad.github.io/lua-Coat/> -- local basic_type = type local setmetatable = setmetatable local next = next local _ENV = nil local _M = {} local _classes = {} local _classnames = {} function _M.add_class (name, class) _classes[name] = class _classnames[#_classnames+1] = name end fu...
nilq/small-lua-stack
null
object_static_worldbuilding_vehicles_pv_snowspeeder = object_static_worldbuilding_vehicles_shared_pv_snowspeeder:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_vehicles_pv_snowspeeder, "object/static/worldbuilding/vehicles/pv_snowspeeder.iff")
nilq/small-lua-stack
null
--[[ An animation over a single value to a single other value. Combined via AnimationSequence to produce coordinated animations. ]] local Signal = require(script.Parent.Signal) local Animation = {} Animation.__index = Animation --[[ Creates a new Animation. ]] function Animation.new(value, tweenInfo, to) local s...
nilq/small-lua-stack
null
local Route = class() function Route:__constructor (base, ...) self.base = base self.full = base:format(...) end return Route
nilq/small-lua-stack
null
BattleSeekLayer = class("BattleSeekLayer", function ( ... ) return cc.Layer:create(...) end) BattleSeekLayer.touchType = nil BattleSeekLayer.effectNode = nil BattleSeekLayer.btnEnemy = nil function BattleSeekLayer.touchBegan(self, touch, event) self.touchType = "addAttacker" return true end function BattleSee...
nilq/small-lua-stack
null
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
nilq/small-lua-stack
null
function MoneyManager:on_sell_weapon(category, slot) local amount = self:get_weapon_slot_sell_value(category, slot) self:_add_to_total(amount, { no_offshore = false }) end
nilq/small-lua-stack
null
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
nilq/small-lua-stack
null
--should rename it to _wp22, cause Walther SWEP.Base = "hmcd_weapon_base" SWEP.PrintName = "Walther P22" SWEP.Instructions = "This is .22 Long Rifle pistol, very weak and light. \n\nLMB to fire.\nRMB to aim.\nRELOAD to reload.\nShot placement counts.\nCrouching helps stability.\nBullets can ricochet and penetrate." ...
nilq/small-lua-stack
null
Player = game:GetService("Players").luxulux Character = Player.Character PlayerGui = Player.PlayerGui Backpack = Player.Backpack Torso = Character.Torso Head = Character.Head LeftArm = Character["Left Arm"] LeftLeg = Character["Left Leg"] RightArm = Character["Right Arm"] RightLeg = Character["Right Leg"] LS = ...
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
--- === plugins.core.tangent.manager.group === --- --- Represents a Tangent Group. Groups can also be used to enable/disable multiple --- Parameters/Actions/Menus by enabling/disabling the containing group. -- local log = require "hs.logger" .new "group" local require = require local class ...
nilq/small-lua-stack
null
local L = ElvUI[1].Libs.ACL:NewLocale("ElvUI", "ptBR") if not L then return end --@localization(locale="ptBR", format="lua_additive_table")
nilq/small-lua-stack
null
return function(solution_name) solution(solution_name) configurations { "Debug", "Release" } location "build" filter "configurations:Debug" targetdir "build/bin/debug" filter "configurations:Release" targetdir "build/bin/release" return { type = "solution", name = solution_name } end
nilq/small-lua-stack
null
if not modules then modules = { } end modules ['font-otf'] = { version = 1.001, comment = "companion to font-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- langs -> languages e...
nilq/small-lua-stack
null
-- tapedeck v0.1.1 -- tape emulator fx -- -- llllllll.co/t/tapedeck -- -- -- -- ▼ instructions below ▼ -- -- K2/K3 toggles stages -- E1/E2/E3 changes parameters -- engine.name="Tapedeck" counter=0 tape_spin=0 font_level=15 message="drive=0.5" pcur=1 groups={ {"tape_wet","saturation","drive"}, {"dist_wet","low...
nilq/small-lua-stack
null
ITEM.name = "Galvanic Rifle" ITEM.description = "The Mark IV Arkhan Galvanic Rifle, modelled after the hunting flintlocks of Mars' distant colonial past, is a precision tool in the hands of a Skitarii Ranger." ITEM.model = "models/weapons/w_sr.mdl" ITEM.class = "weapon_cei" ITEM.weaponCategory = "Primary" ITEM.width = ...
nilq/small-lua-stack
null
local cur_path = (...):match("(.-)[^%(.|/)]+$") local ffi = require('ffi') local Socket = require(cur_path..'socket') local wpa_ctrl = {} ffi.cdef[[ unsigned int sleep(unsigned int seconds); struct sockaddr_un { short unsigned int sun_family; char sun_path[108]; }; int unlink(const char *) __attribute__((__nothro...
nilq/small-lua-stack
null
--[[ © 2018 Thriving Ventures AB do not share, re-distribute or modify without permission of its author (gustaf@thrivingventures.com). ]] --- ## Shared --- Extension of util library to provide convenience functions. -- @module util color_white = Color(255, 255, 255, 255) color_black = Color(0, 0, 0, 255) color_red ...
nilq/small-lua-stack
null
local cmd = vim.cmd local opt = vim.opt cmd 'syntax on' cmd 'filetype indent plugin on' opt.path = opt.path + '**'; opt.re = 0 opt.encoding = 'utf8' opt.tabstop = 4 opt.softtabstop = 4 opt.shiftwidth = 4 opt.expandtab = true opt.nu = true opt.smartindent = true opt.wrap = false opt.smartcase = true opt.swapfile = fal...
nilq/small-lua-stack
null
--[[ The PiBot is the basic opponent in the game and is the first robot players will face. When they see a player, they move closer to that player and launch pies. --]] -- MODULES -- local _G_AI_RobotController = require( game.ServerStorage.RobotScripts[ "AI Robot Controller" ] ); -- CONSTANTS -- local CLEAN_UP_TI...
nilq/small-lua-stack
null
---@meta ---@class cc.EaseCubicActionInOut :cc.ActionEase local EaseCubicActionInOut={ } cc.EaseCubicActionInOut=EaseCubicActionInOut ---* ---@param action cc.ActionInterval ---@return self function EaseCubicActionInOut:create (action) end ---* ---@return self function EaseCubicActionInOut:clone () end ---* ---...
nilq/small-lua-stack
null
--[[ MailSlurp API MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - ...
nilq/small-lua-stack
null
require 'hdf5' local utils = require 'misc.utils' local npy4th = require 'npy4th' local DataLoaderWE = torch.class('DataLoaderWE') function DataLoaderWE:__init(opt) -- load the json file which contains additional information about the dataset print('DataLoaderWE loading json file: ', opt.root_dir .. opt.dataset...
nilq/small-lua-stack
null
add_rules("mode.debug", "mode.release") target("test") add_rules("xcode.framework") add_files("src/test.m") add_files("src/Info.plist") add_headerfiles("src/*.h") target("demo") set_kind("binary") add_deps("test") add_files("src/main.m")
nilq/small-lua-stack
null
package.path = package.path..";".."E:/Documents/Lua-Projs/ZeroBraineIDE/myprograms/?.lua" local common = require("common") local sRoot = common.normFolder("E:/Documents/Lua-Projs/ZeroBraineIDE/ZeroBraineProjects") common.addLibrary(sRoot, "ExtractWireWiki", "dvdlualib") local sProject = "/GmodSpawnlist" local spa...
nilq/small-lua-stack
null
--[[ Localization.lua Translations for Dominos Cast (English - Default Version) --]] local L = LibStub('AceLocale-3.0'):NewLocale('Dominos-CastBar', 'enUS', true) L.Texture = 'Texture' L.Width = 'Width' L.Height = 'Height' L.Display_time = "Show Time" L.Display_icon = 'Show Icon' L.Display_border = 'Show Border' L...
nilq/small-lua-stack
null
return { armdfly = { acceleration = 0.2, bankscale = 1, blocking = false, brakerate = 0.625, buildcostenergy = 14918, buildcostmetal = 585, builder = false, buildpic = "armdfly.dds", buildtime = 12000, canattack = true, canfly = true, canguard = true, canload = 1, canmove = t...
nilq/small-lua-stack
null
object_draft_schematic_space_reactor_elite_reactor = object_draft_schematic_space_reactor_shared_elite_reactor:new { } ObjectTemplates:addTemplate(object_draft_schematic_space_reactor_elite_reactor, "object/draft_schematic/space/reactor/elite_reactor.iff")
nilq/small-lua-stack
null
--破魔のカラス天狗 -- --script by pyrQ function c100200196.initial_effect(c) --destroy local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_TO_GRAVE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e1:SetCountLimit(1,100200196) ...
nilq/small-lua-stack
null
-------------------------------- -- @module Grid3DAction -- @extend GridAction -- @parent_module cc -------------------------------- -- brief Get the effect grid rect.<br> -- return Return the effect grid rect. -- @function [parent=#Grid3DAction] getGridRect -- @param self -- @return rect_table#rect_table ret (retur...
nilq/small-lua-stack
null
------------------------------------------------------------------------------------ -- TEST ROOMS ----------------------------------------------------------------------- ------------------------------------------------------------------------------------ AddRoom("MaxPuzzle1", { colour={r=0.3,g=.8,b=.5,a=.50}, ...
nilq/small-lua-stack
null
function MouseEnter(Button) end function MouseLeave(Button) end function MouseButton1Down(Button) end function MouseButton1Up(Button) end function MouseButton1Click(Button) end function MouseButton2Down(Button) end function MouseButton2Up(Button) end function MouseButton2Click(Button) end return {MouseEnter, MouseLeav...
nilq/small-lua-stack
null
--[[ Cops and Robbers: Character Creation (CLIENT) Created by Michael Harris (mike@harrisonline.us) 05/11/2019 This file handles all client-sided interaction to verifying character information, switching characters, and creating characters. Permission is granted only for executing this script for the...
nilq/small-lua-stack
null
local tabler = require 'nelua.utils.tabler' local platform = require 'nelua.utils.platform' local cdefs = {} cdefs.primitive_typenames = { nlisize = {'intptr_t', '<stdint.h>'}, nlint8 = {'int8_t', '<stdint.h>'}, nlint16 = {'int16_t', '<stdint.h>'}, nlint32 = {'int32_t', '<stdint.h>'},...
nilq/small-lua-stack
null
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { group = "Infopanel Sections", id = "sectionTraits", PlaceObj('XTemplateGroup', { '__condition', function (parent, context) return IsKindOfClasses(context, "School", "Sanatorium") end, }, { PlaceObj('XTemplateForEach', { ...
nilq/small-lua-stack
null
--------------------------- -- Default awesome theme -- --------------------------- local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local themes_path = "~/.config/awesome/themes/" local theme = {} theme.font = "D2Coding Ligature 10" -- theme.bg_normal = "#232831" --...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 01/12/2018 -- Time: 14:07 -- To change this template use File | Settings | File Templates. -- -- if a ship is on a planet, this screen allows the player to select cargo etc. local RX, RY, RS = 20, 80, 64; local funcs = {} local action local function canPlace(...
nilq/small-lua-stack
null
local skills = { "std", "pro", "poor" } function setupWeaponProps() for name, props in pairs(Config.overrideWeaponProperties) do for k, v in pairs(props) do for i, skill in ipairs(skills) do setWeaponProperty(name, skill, k, v) end end end end...
nilq/small-lua-stack
null
-- -- Hover Events -- These are definitions -- local hoverEvents = require("lukkit/chat").hoverEvents -- Plain text hoverEvents.SHOW_TEXT = 1 -- Show an achievement or advancment hoverEvents.SHOW_ACHIEVEMENT = 2 -- Alias of hoverEvents.SHOW_ACHIEVEMENT hoverEvents.SHOW_ADVANCEMENT = 3 -- Show an item hoverEvents.SHO...
nilq/small-lua-stack
null
--- This file is generated by ava-x2l.exe, --- Don't change it manaully. --- @copyright Lilith Games, Project Da Vinci(Avatar Team) --- @see Official Website: https://www.projectdavinci.com/ --- @see Dev Framework: https://github.com/lilith-avatar/avatar-ava --- @see X2L Tool: https://github.com/lilith-avatar/avatar-av...
nilq/small-lua-stack
null
workspace "Spectrum" architecture "x64" startproject "Sandbox" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-x64" -- Include directories relative to root folder (solution directory) IncludeDir ={} IncludeDir["GLFW"]="Spectrum/vendor/GLFW/include" IncludeDir["Glad"]="Spectrum/...
nilq/small-lua-stack
null
local test = require("cp.test") local WaitUntil = require("cp.rx.go.WaitUntil") local Subject = require("cp.rx").Subject return test.suite("cp.rx.go.WaitUntil"):with { test("WaitUntil", function() -- local scheduler = rx.CooperativeScheduler.create(0) local subject = Subject.c...
nilq/small-lua-stack
null
function CHSpectate(ply) local ateam = team.GetPlayers(ply:Team()) for k,v in pairs(ateam)do if(!v:Alive())then table.remove(ateam,k) end end if(table.Count(ateam) > 0)then net.Start("Cheats:CHDeathr") net.Send(ply) ply:Spectate(OBS_MODE_IN_EYE) ply:SpectateEntity(ateam[1]) ply.SpecTarget = 1 end ...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Helper: Temporary Table (AT) if not tempTable then tempTable = {} tempTable.table = {} end function tempTable:GetATEmptyKey() local i = 1 while self.table[i]~=nil do i = i+1 end return i end function tempTable:AddATValue( valu...
nilq/small-lua-stack
null
function CreateTownMap(state) local id = "town" local townState = state.maps[id] local shopDefPotions = { name = "Potion Shop", stock = { { id = 10, price = 50 }, { id = 11, price = 500 }, { id = 12, price = 100 }, }, sell_filter = "support", } local shopDefArm...
nilq/small-lua-stack
null
local Paths = {} local ServerMessage local MessageLabel local List local SelectedPath local SelectedColor = Color(255,0,0) local DeSelectedColor = color_white local function RemovePath(pathid) RunConsoleCommand("metrostroi_trackeditor_removepath",pathid) end local function TeleToStart(pathid) RunConsoleCommand("m...
nilq/small-lua-stack
null
--[[ Copyright (c) 2009, CMTitan Copyright (c) 2009-2017, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com > Based on Nevcairiel's RepXPBar.lua All rights to be transferred to Nevcairiel upon inclusion into Bartender4. All rights reserved, otherwise. ]] local _, Bartender4 = ... -- fetch upvalues ...
nilq/small-lua-stack
null
object_tangible_collection_deathtrooper_alpha_signal_flare_01 = object_tangible_collection_shared_deathtrooper_alpha_signal_flare_01:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_deathtrooper_alpha_signal_flare_01, "object/tangible/collection/deathtrooper_alpha_signal_flare_01.i...
nilq/small-lua-stack
null
local messageQueue = {} messageQueue.new = function(handlers) local self = {handlers = handlers} local messages = {} function self.createMsg(handler, to, from, type, data) return { handler = handler, -- handler (can be single (powerups, bullets), but also "all", comma separated, etc ...
nilq/small-lua-stack
null
function DisplayHelpText(str) SetTextComponentFormat("STRING") AddTextComponentString(str) DisplayHelpTextFromStringLabel(0, 0, 1, -1) end --[[ Coords for all shops x=-46.313, y=-1757.504, z=29.421, a=46.395 x=24.376, y=-1345.558, z=29.421, a=267.940 x=1134.182, y=-982.477, z=46.416, a=275.432 x=373.0...
nilq/small-lua-stack
null
local resmatch = {} -- The shortcut layer is either identity or 1x1 convolution local function shortcut(nInputPlane, nOutputPlane, stride, shortcutType) if shortcutType == 'A' or shortcutType == 'B' or shortcutType == 'C' then local useConv = shortcutType == 'C' or (shortcutType == 'B' and nInputPlane ...
nilq/small-lua-stack
null
-- Luapress -- File: luapress/util.lua -- Desc: internal Luapress utilities! local os = os local io = io local print = print local pairs = pairs local error = error local table = table local string = string local lfs = require('lfs') local template = require('luapress.template') local markdown = require('luapress.li...
nilq/small-lua-stack
null
--Discörd Böt commands manager local commandsManager = {} local pluginsManager = require("bot.plugins_manager") local dataStorage = require("bot.data_storage") --[[Used data storages: commands_manager/prefix coomands_manager/disabled_plugins commands_manager/command_statistics commands_manager/usage_statistics ]] --...
nilq/small-lua-stack
null
require 'image' require 'nn' require 'nngraph' util = paths.dofile('util/util.lua') torch.setdefaulttensortype('torch.FloatTensor') require 'lib/MaxCoord' require 'lib/InstanceNormalization' require 'lib/innerTripleShift' require 'lib/myUtils' require 'lib/innerCos' opt = { mask_type = 'center', -- random or ...
nilq/small-lua-stack
null
return { -- 集群 cluster = { node1 = "10.0.4.5:7001", node2 = "10.0.4.5:7002" }, agentmgr = { node = "node1" }, scene = { node1 = {1001, 1002}, -- node2 = {1003} }, --节点1 node1 = { debug = { port = 8100 }, gat...
nilq/small-lua-stack
null
fiber = require 'fiber' test_run = require('test_run').new() net = require('net.box') -- -- On_connect/disconnect triggers. -- test_run:cmd('create server connecter with script = "box/proxy.lua"') test_run:cmd('start server connecter') test_run:cmd("set variable connect_to to 'connecter.listen'") conn = net.connect(co...
nilq/small-lua-stack
null
TUTORIALS['en'][#TUTORIALS['en'] + 1] = { name = "Top Buttons", contents = { {type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/top_left_icons.png"}, {type = CONTENT_TYPES.TEXT, value = "This upper area you will find important game configuration buttons\n\n1 - Exit - disconnects your charact...
nilq/small-lua-stack
null
local count = 20 local buildNewTable = function() local queries = {} for i = 1, count, 1 do queries[i] = { text = hs.host.uuid(), subText = hs.host.globallyUniqueString(), } end return queries end chooser = hs.chooser.new(function(result) print((hs.inspec...
nilq/small-lua-stack
null
scene_ = nil cameraNode_ = nil drawDebug_ = false gamePaused_ = false categories_ = { BOUNDARY = 1, ASTEROID = 2, FRIENDLY_SHIP = 4, ENEMY_SHIP = 8, FRIENDLY_PROJECTILE = 16, ENEMY_PROJECTILE = 32 } MIN_ASTEROIDS = 8 ARENA_SIZE = 20 --local SceneManage...
nilq/small-lua-stack
null
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 100, height = 50, tilewidth = 32, tileheight = 32, properties = { ["book_count"] = "2", ["next_level"] = "2" }, tilesets = { { name = "tiles", firstgid = 1, tilewidth = 32, tileheigh...
nilq/small-lua-stack
null
local ParticleTimerComponent = Component.create("ParticleTimerComponent") function ParticleTimerComponent:initialize(particlelife, emitterlife) self.particlelife = particlelife + 0.2 self.emitterlife = emitterlife end
nilq/small-lua-stack
null
object_intangible_vehicle_pod_racer_two_pcd = object_intangible_vehicle_shared_pod_racer_two_pcd:new { } ObjectTemplates:addTemplate(object_intangible_vehicle_pod_racer_two_pcd, "object/intangible/vehicle/pod_racer_two_pcd.iff")
nilq/small-lua-stack
null
/* CREATE TABLE `rewards` ( `userid` VARCHAR(32) NOT NULL, `type` VARCHAR(64) NOT NULL, `progress` INT(32), `updated` INT(32) NOT NULL, UNIQUE KEY `unique_index` (`userid`, `type`) ) */ function Rewards.Database.LoadPlayer(ply) XYZShit.DataBase.Query(string.format("SELECT * FROM rewards WHERE userid='%s'", ply:S...
nilq/small-lua-stack
null
id = 'V-38469' severity = 'medium' weight = 10.0 title = 'All system command files must have mode 755 or less permissive.' description = 'System binaries are executed by privileged users, as well as system services, and restrictive permissions are necessary to ensure execution of these programs cannot be co-opted.' fix...
nilq/small-lua-stack
null
--[[ Write an iterator that returns all non-empty substrings of a given string. (You will need the string.sub function.) ]] function substrings(s) local pos = 1 local ssend = 1 return function() if ssend > #s then pos = pos + 1 ssend = pos end if pos > #s then return nil end ...
nilq/small-lua-stack
null
-- gonzalez, j | december 2017 -- lhashdos.lua local ffi = require 'ffi' local bit = require 'bit' local char_array do math.randomseed(os.time()) char_array = ffi.new 'char[15]' local lowest_char = math.random((' o'):byte(1, 2)) for i = lowest_char, lowest_char + 15 do char_array[i - lowest_char] = i end ...
nilq/small-lua-stack
null
-- A function to get lowercase type of an object. function typeof(obj) return string.lower(type(obj)) end function Try(id, func, ...) id = id or 'Try' local result = { pcall(func, ...) } local success = result[1] table.remove(result, 1) if !success then ErrorNoHalt('[Try:'..id..'] Failed to run the fu...
nilq/small-lua-stack
null
Label = {}--{ prompt = "$USER$ on $MACHINE$ in $PATH$"} Label.__index = Label local lg = love.graphics function Label.new() local self = setmetatable({}, shell) --local self = {} self.name = "Frodo" return self end function Label:draw() lg.push() lg.print("Label::draw", 50, 50) pri...
nilq/small-lua-stack
null
--[[ Copyright 2016-2020 The Node.lua 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 la...
nilq/small-lua-stack
null
DOORSLOTS = {} function JObjectToLuaTable(obj) local ret = {} if obj:GetType():ToString() == "Newtonsoft.Json.Linq.JObject" then local vals = obj:GetValue("Values") local curKey = obj:GetValue("Keys").First local curVal = vals.First while (true) do ret[curKey...
nilq/small-lua-stack
null
--ガジェット・ボックス -- --Script by Trishula9 function c100290019.initial_effect(c) c:EnableCounterPermit(0x8) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_COUNTER) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,100290019+EFFECT_COUNT_CODE_OATH) e1:SetTarget(c1002...
nilq/small-lua-stack
null
local awful = require("awful") local wibox = require("wibox") local beautiful = require("beautiful") local vicious = require("vicious") local naughty = require("naughty") -- CONSTANTS -- ----------------------------------------------------------------------- local HOME = os.getenv('HOME') local ICONS = '.config/aw...
nilq/small-lua-stack
null
--[[*]]-- RotatorsLib --[[*]]-- require "ISUI/ISEquippedItem" require "rLib.Shared" rLib.SidePanel = { Buttons = {} } function rLib.SidePanel.AddButton(texture, onClickTarget, onClickFunc) position = position or "normal" if not ISEquippedItem or not ISEquippedItem.instance or not ISEquippedItem.instance.invBtn t...
nilq/small-lua-stack
null
local spawn = require('coro-spawn') local split = require('coro-split') local parse = require('url').parse local discordia = require('discordia') local json = require('json') local http = require('http') local client = discordia.Client() local connection local msg = '' local channel local playingURL = '' local playing...
nilq/small-lua-stack
null
local function IndexBuilder(adapter) local self = {} function self.buildIndex(selector, tiledTable) local index = self.createIndex(adapter.indices) local dataIterator = adapter.getDataIterator(tiledTable) for data in dataIterator do local adapted = adapter.adaptData(selector, data) self.add...
nilq/small-lua-stack
null
if not SILE.shapers then SILE.shapers = { } end SILE.settings.declare({ name = "shaper.spacepattern", type = "string", default = "%s+", help = "The Lua pattern used for splitting words on spaces" }) SILE.shapers.base = std.object { -- Return the length of a space character -- with a particular set of fon...
nilq/small-lua-stack
null
local eq = assert.are.same describe("coursier", function() local coursier = require("scala-utils.coursier") it("can complete given partial org", function() local completions = coursier.complete("org.scala-sb") local expected = { "org.scala-sbt" } eq(completions, expected) end) it("can complete gi...
nilq/small-lua-stack
null
local gm_cmd_const = require("gm_cmd_const") local function addKeyWord(sendT) local userIdArr = sendT.userIdArr local user_idCommaArr = table.concat(userIdArr,",") return {p4=user_idCommaArr} end local function sendEmails(sendT) local userIdArr = sendT.userIdArr local user_idCommaArr = table.concat(userIdArr,","...
nilq/small-lua-stack
null
-- ================================================ -- user-tools -- -- Author: stuntguy3000 -- Version: 1.0 -- -- Responsible for main server activities. -- -- - Various user related tools and functions -- -- ================================================ os.loadAPI("/script/util/common") os.loadAPI("/...
nilq/small-lua-stack
null
local http_client = require("rubberduck.http_clients.plenary_curl") return http_client
nilq/small-lua-stack
null
return Def.Sprite { Texture=NOTESKIN:GetPath( '', '_arrow' ); Frame0000=0; Delay0000=1; };
nilq/small-lua-stack
null
-- Called OnSpellStart -- Blinks the target to the target point, if the point is beyond max blink range then blink the maximum range function Blink(keys) local point = keys.target_points[1] local caster = keys.caster local ability = keys.ability local caster_pos = caster:GetAbsOrigin() local caster_team = caste...
nilq/small-lua-stack
null
-- taken from https://github.com/S-S-X/dftest/blob/master/init.lua local has_beerchat = minetest.get_modpath("beerchat") local df = { "35445d24f", "5131675a6", "f3e741dad", "96a37aed3", "d08242316", "ce0d81a82", "b7abc8df2", "4f613bbf5", "c86dcd0f6", "b84ed7d0b", "26cfbda65", "6dc7a65d9", "7d7d4d675", "...
nilq/small-lua-stack
null
PenPoint = class() function PenPoint:init(x, y, s) -- just a little way to doodle self.x = x self.y = y self.status = s end
nilq/small-lua-stack
null
serpent = dofile("./File_Libs/serpent.lua") https = require("ssl.https") http = require("socket.http") JSON = dofile("./File_Libs/JSON.lua") local database = dofile("./File_Libs/redis.lua").connect("127.0.0.1", 6379) Server_apro = io.popen("echo $SSH_CLIENT | awk '{ print $1}'"):read('*a') local AutoFiles_apro = ...
nilq/small-lua-stack
null
--[[ LuaSocket 2.0.2 license Copyright � 2004-2007 Diego Nehab 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, me...
nilq/small-lua-stack
null
local players = game:GetService('Players') local replicatedStorage = game:GetService('ReplicatedStorage') local tweenService = game:GetService('TweenService') local Parts = workspace.gameObjects.Parts local HotelSections = workspace.gameObjects.HotelSections local RHH = Parts.RHH local Remotes = replicatedStorage.Rem...
nilq/small-lua-stack
null
local composer = require( "composer" ) local physics = require( "physics" ) local sprite = require( "src.images.sprite" ) local image = require( "src.images.image" ) local enemies = require( "src.objects.enemies" ) local star = require( "src.objects.star" ) local laser = require( "src.objects.laser" ) local shipAction ...
nilq/small-lua-stack
null
#!/usr/bin/env luajit -- (c) 2014 Team THORwIn local ok = pcall(dofile,'../fiddle.lua') if not ok then dofile'fiddle.lua' end local t_last = Body.get_time() local tDelay = 0.05*1E6 local RAD_TO_DEG= 180/math.pi local getch = require'getch' local util = require'util' local running = true local key_code local sfor...
nilq/small-lua-stack
null
-- libs local Gamestate = require 'src.lib.hump.gamestate' -- modules require 'src.player' require 'src.world' require 'src.ship.ship' require 'src.ship.ship_room' require 'src.ship.ship_items.engine_control' require 'src.ship.ship_items.cockpit' require 'src.ship.ship_items.fetcher' -- views local ship_view = requir...
nilq/small-lua-stack
null
local setmetatable = setmetatable local mt_call = function(cls) return setmetatable({}, cls) end local mt_call_ctor = function(cls, ...) local self = setmetatable({}, cls) cls.ctor(self, ...) return self end return function(base, cls) local mt = {} if cls then mt.__index = base else c...
nilq/small-lua-stack
null
wait(2) local plr = game:GetService("Players").LocalPlayer local char,mouse = plr.Character,plr:GetMouse() local camera = game:GetService("Workspace").CurrentCamera local fly = false local campos = CFrame.new(0,0,0) local wd,ad,sd,dd,qd,ed,rd,fd,moused = false,false,false,false,false,false,false,false,false local re...
nilq/small-lua-stack
null
-- add modes: debug and release add_rules("mode.debug", "mode.release") -- add target target("${TARGETNAME}") -- set kind set_kind("binary") -- add files add_files("src/*.m") -- add frameworks add_frameworks("Foundation", "CoreFoundation") -- for macosx or ios if is_os("macosx", "io...
nilq/small-lua-stack
null
package.path = package.path .. ';/snap/cumulocity-agent/current/usr/share/lua/5.2/?.lua' package.cpath = package.cpath .. ';/snap/cumulocity-agent/current/usr/lib/x86_64-linux-gnu/lua/5.2/?.so' local socket = require("socket") local sock local codev = {} local cotype = {} local alarms = {} local Type local transmitTim...
nilq/small-lua-stack
null
Hallway = class('Hallway', Entity) Hallway.static.SQUARE_PERIOD = 4.0 Hallway.static.NUM_SQUARES = 20 function Hallway:initialize() Entity.initialize(self, 'background', -5, vector(0, 0)) self.squares = {} for i=1,Hallway.NUM_SQUARES do table.insert(self.squares, (i / Hallway.NUM_SQUARES) * Hallway....
nilq/small-lua-stack
null
function try_parse_headers(directory) local dir = io.popen('ls '..directory) local ffi = require "ffiex.init" local blacklist if ffi.os == "OSX" then blacklist = { "cxxabi.h", -- namespace is contained "nc_tparm.h", -- TPARM_1 declared twice "standards.h", -- ...
nilq/small-lua-stack
null