content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
pfUI:RegisterModule("easteregg", function ()
if date("%m%d") == "1224" or date("%m%d") == "1225" then
-- merry x-mas!
local title = (UnitFactionGroup("player") == "Horde") and PVP_RANK_18_0 or PVP_RANK_18_1
_G.CHAT_FLAG_AFK = title .. " "
_G.MARKED_AFK = "|cff33ffccpf|cffffffffUI|r w... | nilq/small-lua-stack | null |
--[[ Deep Convolutional Generative Adversarial Network (DCGAN).
Using deep convolutional generative adversarial networks
to generate face images from a noise distribution.
References:
- Generative Adversarial Nets. Goodfellow et al. arXiv: 1406.2661.
- Unsupervised Representation Learning with Deep Convoluti... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- 0205-tdeepequals-other-functions.lua: tests for other tdeepequals functions
-- This file is a part of lua-nucleo library
-- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license)
----------------------------------------... | nilq/small-lua-stack | null |
#!/usr/bin/lua
--[[
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... | nilq/small-lua-stack | null |
local nbody = require(arg[1])
local N = tonumber(arg[2]) or 1000 -- or 50000000
local REP = tonumber(arg[3]) or 1
-- N-body benchmark from benchmarks game
-- https://benchmarksgame-team.pages.debian.net/benchmarksgame/description/nbody.html
--
-- Original code by Mike Pall and Geoff Leyland, with modifications by Hu... | nilq/small-lua-stack | null |
object_tangible_furniture_decorative_event_lifeday07_orb = object_tangible_furniture_decorative_shared_event_lifeday07_orb:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_decorative_event_lifeday07_orb, "object/tangible/furniture/decorative/event_lifeday07_orb.iff")
| nilq/small-lua-stack | null |
local _M = {}
function _M.split(text, delimiter)
if text.find(text, delimiter) == nil then
return { text }
end
local splited_texts = {}
local last_position
for splited_text, position in text:gmatch("(.-)"..delimiter.."()") do
table.insert(splited_texts, splited_text)
last_position = position
... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------------------
--
-- main.lua
-- This is main screen of
-----------------------------------------------------------------------------------------
-- TODO LIST
--[[
* DO I REALLY NEED STOP MUSIC BUTTON?
--]]
-- Display background as wh... | nilq/small-lua-stack | null |
local teams = {
--{"Military Forces",0,110,0},
--{"GIGN",0,0,100},
}
function getGroups()
local official = {}
for k,v in ipairs(teams) do
if v then
table.insert(official,v[1])
end
end
return official
end
function getFirstLaw()
return "Military Forces" or "GIGN"
end
function getFirstLawColor()
f... | nilq/small-lua-stack | null |
if game.SinglePlayer() then
hook.Add("EntityTakeDamage", "ArcCW_ETD", function(npc, dmg)
timer.Simple(0, function()
if !IsValid(npc) then return end
if npc:Health() <= 0 then
net.Start("arccw_sp_health")
net.WriteEntity(npc)
net.Broadcast()
end
end)
e... | nilq/small-lua-stack | null |
--[[
TermsitionTerminal.lua
Copyright (C) 2016 Kano Computing Ltd.
License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2
]]--
return {
type = "repeat",
dialogues = {
--- 1) Welcome dialogue -------------------------------------------------------------
{
type = "copy",
... | nilq/small-lua-stack | null |
Locales['br'] = {
['911'] = '~g~Central~s~ : O alarme anti-roubo de um veículo foi disparado na area indicadas.',
['alarm1'] = '%s$ - sistema basico de alarme',
['alarm2'] = '%s$ - sistema de alarme com conexão a policia',
['alarm3'] = '%s$ - sistema de ala... | nilq/small-lua-stack | null |
object_draft_schematic_space_cargo_hold_crg_starfighter_small = object_draft_schematic_space_cargo_hold_shared_crg_starfighter_small:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_space_cargo_hold_crg_starfighter_small, "object/draft_schematic/space/cargo_hold/crg_starfighter_small.iff")
| nilq/small-lua-stack | null |
--[[
This file is part of xmldom. It is subject to the licence terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/pallene-modules/xmldom/master/COPYRIGHT. No part of xmldom, including this file, may be copied, modified, propagated, or distributed e... | nilq/small-lua-stack | null |
local def_pitch_range = range(20*60, 80*60)
DefineClass.MDSLaser =
{
__parents = { "ElectricityConsumer", "OutsideBuildingWithShifts" },
properties =
{
{ template = true, category = "MDSLaser", name = T{671, "Hit Chance"}, id = "hit_chance", editor = "number", default = 100, min = 0, max = 100, help = "The chan... | nilq/small-lua-stack | null |
-- Dialogue for NPC "npc_vincent2"
loadDialogue = function(DL)
if (not DL:isConditionFulfilled("npc_vincent", "talked")) then
DL:setRoot(1)
elseif (DL:isQuestState("spoiled_fire", "started") and not DL:isConditionFulfilled("npc_rhendal", "spoiled_schnapps")) then
DL:setRoot(9)
elseif (DL:isQuestState("spoi... | nilq/small-lua-stack | null |
-- replaces md with html in links
function Link(el)
el.target = string.gsub(el.target, "%.md", ".html")
return el
end
| nilq/small-lua-stack | null |
local skynet = require "skynet"
local group = require "mcgroup"
--local group = require "localgroup"
skynet.start(function()
local gid = group.create()
local gaddr = group.address(gid)
local g = {}
print("=== Create Group ===",gid,skynet.address(gaddr))
for i=1,10 do
local address = skynet.newservice("testgroup... | nilq/small-lua-stack | null |
local L = BigWigs:NewBossLocale("Ahn'kahet Trash", "ptBR")
if not L then return end
if L then
L.spellflinger = "Sortílego Ahn'kahar"
L.eye = "Olho de Taldaram"
L.darkcaster = "Taumaturgo do Crepúsculo"
end
| nilq/small-lua-stack | null |
local path = (...):sub(1, #(...) - #(".Framework"))
| nilq/small-lua-stack | null |
function widget:GetInfo()
return {
name = "Metalspot Finder",
desc = "Finds metal spots for other widgets",
author = "Niobium",
version = "v1.1",
date = "November 2010",
license = "GNU GPL, v2 or later",
layer = -30000,
enabled = true
}
end
-----------------... | nilq/small-lua-stack | null |
Locales['br'] = {
['Discord do servidor'] = 'Discord do servidor',
['Site do Servidor'] = 'Site do servidor',
['Servidor'] = 'Servidor',
} | nilq/small-lua-stack | null |
for i = 1, #KEYS-1 do
local has = redis.call("sismember", KEYS[i], ARGV[1])
if has == 1 then return KEYS[i] == KEYS[#KEYS] end
end
redis.call("sadd", KEYS[#KEYS], ARGV[1])
return true
| nilq/small-lua-stack | null |
--Copyright (C) 2010 <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 versio... | nilq/small-lua-stack | null |
-- Retrieve the project name
newoption { trigger = "projectname", description = "Name of the generated project" }
local projectName = _OPTIONS["projectname"]
if projectName == nil then print("The project name was not specified! --projectname=YourApplication") os.exit(1) end
if projectName == "BatteryEngine" then print... | nilq/small-lua-stack | null |
-- helper file to be able to debug the simple menu on PC
-- without messing around with actual menu code!
PLATFORM="Android"
dofile("builtin/mainmenu/init.lua")
| nilq/small-lua-stack | null |
my_table = {}
my_table.sub = {}
function my_table.sub.change_owner_and_spawn_stuff(planet)
planet.Change_Owner(Find_Player("Empire"))
Spawn_Unit(Find_Object_Type("Star_Destroyer"), planet, Find_Player("Empire"))
end | nilq/small-lua-stack | null |
local COLOR = FindMetaTable("Color")
-- negate a color/return the opposite of a color
function COLOR:Negate()
return Color( 255 - self.r, 255 - self.g, 255 - self.b, self.a )
end
--increment/decrement a color
function COLOR:Increment( am )
return Color( self.r + am, self.g + am, self.b + am, self.a )
end
-- ... | nilq/small-lua-stack | null |
--data.lua
require("calcui-prototypes")
require("calcui-styles")
require("calcui-hotkey") | nilq/small-lua-stack | null |
--- === WindowManager ===
---
--- Moves and resizes windows.
--- Features:
--- * Every window can be resized to be a quarter, half or the whole of the screen.
--- * Every window can be positioned anywhere on the screen, WITHIN the constraints of a grid. The grids are 1x1, 2x2 and 4x4 for maximized, half-sized and q... | nilq/small-lua-stack | null |
-- This will load the new copy of the library on Unix systems where it's built
-- with libtool.
package.cpath = ".libs/liblua-?.so;" .. package.cpath
local Tmpl = require 'smpltmpl'
local TmplPriv = require 'smpltmpl_priv'
-- File existence testing.
assert(TmplPriv._file_exists("test"), "_file_exists(test)")
assert(no... | nilq/small-lua-stack | null |
local context = {}
function context:create()
-- debug options
self.debug = false;
-- get device info
self.device = require("device");
-- initiate Flurry analytics
self:startAnalytics(self.debug);
-- image module initialization
self.img =require("img.img");
... | nilq/small-lua-stack | null |
vim.g.translator_default_engines = { "bing", "youdao", "haici" }
vim.g.translator_window_type = "preview"
| nilq/small-lua-stack | null |
--#selene: allow(unused_variable)
--[[
kinda complex reactive graph, stress test.
]]
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Fusion = require(ReplicatedStorage.DevPackages.Fusion)
local ReactiveGraph = require(ReplicatedStorage.DevPackages.ReactiveGraph)
local FusionState = Fusion.State
... | nilq/small-lua-stack | null |
--!nonstrict
--[[
Constructs a new state object which can listen for updates on another state
object.
FIXME: enabling strict types here causes free types to leak
]]
local runService = game:GetService("RunService")
-- Used to create a tunnel between client and server
local src = script.Parent.Parent
local packages... | nilq/small-lua-stack | null |
local PANEL = {}
function PANEL:Init()
local scrw, scrh = ScrW(), ScrH()
self.player_list = vgui.create('DListView', self)
self.player_list:DockMargin(4, 4, 2, 4)
self.player_list:Dock(LEFT)
self.player_list:AddColumn(t'ui.admin.players')
self.player_list:SetWide(scrw / 6)
for k, v in ipairs(player.all... | nilq/small-lua-stack | null |
--[===[
This file is part of https://github.com/MarcGamesons/factoriomod-cheaper-landfill which is released under MIT License.
Go to https://opensource.org/licenses/MIT for full license details.
===
For support open a new issue at https://github.com/MarcGamesons/factoriomod-cheaper-landfill/issues/new o... | nilq/small-lua-stack | null |
Player = baseCharacter:new()
function Player:load()
baseCharacter.load(self, {
scale = 0.035 * utils.vh,
xCenter = 20 * utils.vw, -- uhh vai ter q calcular como q fica certo antes era 15.5 * utils.vw
yCenter = love.graphics.getHeight() / 2,
})
-- flap sound
self.flap = love.au... | nilq/small-lua-stack | null |
return function()
local class = require(script.Parent)
it("should create a unique new table", function()
local Class = class("Class")
expect(Class).to.be.a("table")
expect(Class).to.never.equal(class("Foo"))
end)
it("should error when a name isn't supplied", function()
expect(function()
class()
end)... | nilq/small-lua-stack | null |
-- file: 'BrokeTimerCountDown.lua'
-- Description: 倒计时 动画 ;
-- 接口说明:
-- play "播放"提示 动画.(允许多次调用)
-- reset "隐藏"提示 动画.(允许多次调用 , 如果播放期间隐藏,则附加执行中断动画)
-- release "删除"相关资源
-- 可能的调用情景:
-- 动画模式;
-- (1) 播放一次(调play) -> (调release)
-- (2) 播放和隐藏多次(在同一请求页面时播放动画) (模式:play->reset->play->reset ... ) -> (调release)
... | nilq/small-lua-stack | null |
--[[
MIT License
Copyright (c) 2021 Michael Wiesendanger
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, mod... | nilq/small-lua-stack | null |
--------------------------------
-- @module EventListenerPhysicsContactWithShapes
-- @extend EventListenerPhysicsContact
-- @parent_module cc
--------------------------------
-- @function [parent=#EventListenerPhysicsContactWithShapes] hitTest
-- @param self
-- @param #cc.PhysicsShape physicsshape
-- @param #cc.Phys... | nilq/small-lua-stack | null |
-- ////////////////////////////////////
-- // MYSQL //
-- ////////////////////////////////////
sqlUsername = exports.mysql:getMySQLUsername()
sqlPassword = exports.mysql:getMySQLPassword()
sqlDB = exports.mysql:getMySQLDBName()
sqlHost = exports.mysql:getMySQLHost()
sqlPort = exports.mysql:getMySQLPort()... | nilq/small-lua-stack | null |
local rdebug = require 'remotedebug.visitor'
local NEWLINE <const> = '\n'
local INDENT <const> = ' '
local DEPTH <const> = 10
local level
local out
local visited
local putValue
local function floatToString(x)
if x ~= x then
return '0/0'
end
if x == math.huge then
return 'math.huge'... | nilq/small-lua-stack | null |
Tests = {}
Lester = {}
if not GetGameTimer then
GetGameTimer = function()
return os.time()
end
end
--- @class Context
Context = setmetatable({}, Context)
Context.__index = Context
Context.__call = function()
return "Context"
end
function Context.new(parent)
local _Context = {
_Paren... | nilq/small-lua-stack | null |
-- ===== ===== ===== ===== =====
-- Copyright (c) 2017 Lukas Grünwald
-- License MIT License
-- ===== ===== ===== ===== =====
--- {abstract} Event base class.
-- All event inherit their functionality from this.
-- Import new functions:
require( "libErrorFunctions" )
require( "libDebugFunctions" )
cEvent = {}
c... | nilq/small-lua-stack | null |
local Errors = require "kong.dao.errors"
return {
no_consumer = true, -- this plugin is available on APIs as well as on Consumers,
fields = {
-- Describe your plugin's configuration's schema here.
domain = {type = "string", required=true},
secret = {type = "string", required=true },
required_headers... | nilq/small-lua-stack | null |
local gsrTimer = 0
local gsrPositive = false
local plyPed = PlayerPedId()
local gsrTestDistance = 5
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
plyPed = PlayerPedId()
if IsPedSwimmingUnderWater(plyPed) then
Citizen.Wait(10000)
... | nilq/small-lua-stack | null |
--[[ Boss -- Slad'ran.lua
This script was written and is protected
by the GPL v2. This script was released
by Bapes of the Blua Scripting
Project. Please give proper accredidations
when re-releasing or sharing this script
with others in the emulation community.
~~End of License Agreement
-- Bapes, November 03, 2008. ... | nilq/small-lua-stack | null |
return {
metadata = {
{scaling_used = {"Exo_3D"},
subject_age = {30.0},
subject_height = {1.70},
subject_weight = {80.00},
subject_gender = {"male"},
subject_pelvisWidth = {0.2400},
subject_hipCenterWidth = {0.1700},
subject_shoulderCenterWidth = {0.4000},
subject_heelAnkleXOffset = {0.0800},
subjec... | nilq/small-lua-stack | null |
if (SERVER) then
-- CreateConVar('sbox_maxkeypads', 10) -- Handled by keypad_willox.lua
end
TOOL.Category = "Construction"
TOOL.Name = "Keypad - Wire"
TOOL.Command = nil
TOOL.ClientConVar['weld'] = '1'
TOOL.ClientConVar['freeze'] = '1'
TOOL.ClientConVar['password'] = '1234'
TOOL.ClientConVar['secure'] = '0'
TOOL.C... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
header = [[
(set-logic QF_UFDT)
(declare-datatypes ((t 0))
(((T0) (T1 (prev1 t)) (T2 (prev2 t)))))
]]
footer = [[
(check-sat)
(exit)
]]
function printf(...)
print(string.format(...))
end
function mkdiamond(n)
-- decls
for i=1,n do
printf("(declare-const c%d t)", i)
end
printf("(as... | nilq/small-lua-stack | null |
data:extend(
{
{
type = "technology",
name = "cement-shoes-equipment",
icon = "__Cement Shoes__/graphics/technology/cement-shoes-equipment.png",
icon_size = 128,
prerequisites = {"modular-armor"},
effects =
{
{
type = "unlock-recipe",
recipe = "cement-shoes"
},
... | nilq/small-lua-stack | null |
local Tunnel = module("_core", "lib/Tunnel")
local Proxy = module("_core", "lib/Proxy")
cAPI = Proxy.getInterface("API")
API = Tunnel.getInterface("API")
cam = nil
hided = false
spawnedCamera = nil
choosePed = {}
pedSelected = nil
sex = nil
zoom = 4.0
offset = 0.2
DeleteeEntity = true
local InterP = true
local adding... | nilq/small-lua-stack | null |
local E, C, L, ET, _ = select(2, shCore()):unpack()
if C.main.restyleUI ~= true then return end
local _G = _G
local select = select
local function LoadSkin()
ArenaRegistrarFrame:StripLayout(true)
ArenaRegistrarFrame:SetLayout()
ArenaRegistrarFrame.bg:SetAnchor('TOPLEFT', 14, -18)
ArenaRegistrarFrame.... | nilq/small-lua-stack | null |
-- Dialogue for NPC "npc_cat"
loadDialogue = function(DL)
DL:setRoot(1)
DL:createNPCNode(1, -1, "DL_Cat_Meow") -- Meow!
DL:addNode()
end | nilq/small-lua-stack | null |
-- This file is generated by proto-gen-lua. DO NOT EDIT.
-- The protoc version is 'v3.19.2'
-- The proto-gen-lua version is 'Develop'
return {
name = [[google/protobuf/type.proto]],
package = [[google.protobuf]],
dependency = {
[[google/protobuf/any.proto]],
[[google/protobuf/source_context... | nilq/small-lua-stack | null |
return function(p, o, sw, sh)
local pc, cx, cy = o / sw, sw / 2, sh / 2
local prog = math.min(1, math.abs(16 * pc))
for i, ic in subviews(p) do
local result = dofile("includes/formula.lua")("math.abs(-400 * math.sin(x)) - 150", pc, i, #p, sw / (2 * math.pi), sw, sh, ic.width)
ic:translate(pr... | nilq/small-lua-stack | null |
--[[
Grupy: Praca jako DJ
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-grupy
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
C_DJ = 0
local napisy = {
{476.65,-12.49,1004,17,0, fid=6},-- DJ
}
for i... | nilq/small-lua-stack | null |
local M = {}
M.config = {
goimport = "gopls", -- if set to 'gopls' will use golsp format
gofmt = "gopls", -- if set to gopls will use golsp format
tag_transform = false,
test_dir = "",
comment_placeholder = " ",
lsp_cfg = false, -- false: use your own lspconfig
lsp_on_attach = false, -- use on_attach from go... | nilq/small-lua-stack | null |
local discordia = require('discordia')
local client = discordia.Client()
local E = io.open("Test.lua"):read()
local tk = 'NzcxNDY0MjQ0MzQzODY1Mzc2.X5sgEA.3_xGyXHsbcCXmIRUzg0Gk2tMOFc'
local pf = '!'
client:on('ready', function()
print('Logged in as '.. client.user.username)
end)
client:on('messageCreate',... | nilq/small-lua-stack | null |
BigButton = class()
function BigButton:init(t, x, y)
self.text = t
self.frame = Frame(x, y, x + 140, y + 80)
self.active = true
end
function BigButton:draw()
if self.active then
stroke(255, 255, 255, 255)
else
stroke(93, 95, 125, 255)
end
strokeWidth(2)
noFill()
sel... | nilq/small-lua-stack | null |
Class = require 'class'
Menu = Class{}
function Menu:init()
-- one indexed arrays in Lua
self.options = { 'Single Player (PvsAI)', 'Multi Player (PvsP)', 'Settings', 'Exit' }
self.optionsSize = 4
self.selection = 0
end
function Menu:changeSelection(key)
if key ~= 'up' and key ~= 'down' then
... | nilq/small-lua-stack | null |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
-- autorun/client/cl_vapeswep.lua
-- Defines shared globals for Vape SWEP
-- Vape SWEP by Swamp Onions - http://steamcommunity.com/id/swamponions/
CreateConVar("vape_block_sounds", "0", FCVAR_REPLICATED, "Set... | nilq/small-lua-stack | null |
---------------- Require -----------------------
require 'image'
if opt.cuda then
require 'cutorch'
cutorch.setDevice(opt.gpuID) -- goes after cutorch and before nn
end
require 'nn'
if opt.cuda then
require 'cudnn'
require 'cunn'
end
require 'stn'
require 'util/nn/WarpFlowNew'
require 'util/nn/ShuffleTable'
req... | nilq/small-lua-stack | null |
local string = require"string"
local path = require"minipath"
local str_fmt = string.format
local dir_envir = "D:\\Mirserver\\Mir200\\Envir"
-- local dir_mirserver = [[E:\clear\Envir]]
function trim(s)
return s:match("^%s*(.-)%s*$")
end
local doc = App.active_doc
local fullpath = doc.fullpath or ""
... | nilq/small-lua-stack | null |
dofile("./opensimplex2s.lua")
local function fbm2Loop(
gen,
vx, vy,
cosa, sina,
octaves, lacunarity, gain)
local freq = 1.0
local amp = 0.5
local vinx = 0.0
local viny = 0.0
local vinz = 0.0
local vinw = 0.0
local sum = 0.0
local oct = octaves or 8
local lac = lacu... | nilq/small-lua-stack | null |
local obj = {}
obj.__index = obj
obj.name = "Command"
-- Load dependencies
local function script_path()
local str = debug.getinfo(2, "S").source:sub(2)
return str:match("(.*/)")
end
obj.spoonPath = script_path()
Validate = dofile(obj.spoonPath.."/validator.lua")
Resize = dofile(obj.spoonPath.."/resize.lua")
--- ... | nilq/small-lua-stack | null |
local TrainClass = {}
function TrainClass:new(GridModule)
local Train = GridModule
Train.class = 'Train'
function Train:isTrain()
return true
end
function Train:isTrack()
return true
end
return Train
end
return TrainClass | nilq/small-lua-stack | null |
-- Prints every received event.
inspect = require("lib/inspect")
write = require("lib/write")
local last_time_event = nil
local last_termbox_event = nil
function luabox.load()
termbox.setinmode(termbox.inmode.altMouse)
display()
end
function luabox.event(e)
if(e.key == termbox.key.CtrlC) then
... | nilq/small-lua-stack | null |
--[[
Name: cl_networking.lua
]]--
GM.Net = (GAMEMODE or GM).Net or {}
GM.Net.m_bVerbose = false
GM.Net.m_tblProtocols = (GAMEMODE or GM).Net.m_tblProtocols or { Names = {}, IDs = {} }
GM.Net.m_tblVarLookup = {
Write = {
["UInt4"] = { func = net.WriteUInt, size = 4 },
["UInt8"] = { func = net.WriteUInt, size... | nilq/small-lua-stack | null |
DefineClass.ResourceItems = {
__parents = {"ItemMenuBase"},
hide_single_category = true,
align_pos = false,
ScaleModifier = point(750,750),
lines_stretch_time_init = 350,
}
function ResourceItems:Init()
self.align_pos = GetUIStyleGamepad() and self.desktop.box:Center() or terminal:GetMousePos()
self:SetModal(... | nilq/small-lua-stack | null |
-- mydoors mod by don
-- DO WHAT YOU WANT TO PUBLIC LICENSE
-- or abbreviated DWYWPL
-- December 2nd 2015
-- License Copyright (C) 2015 Michael Tomaino (PlatinumArts@gmail.com)
-- www.sandboxgamemaker.com/DWYWPL/
-- DO WHAT YOU WANT TO PUBLIC LICENSE
-- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
... | nilq/small-lua-stack | null |
return {
source = {
type = 'dist',
location = 'https://download.samba.org/pub/rsync/rsync-3.1.2.tar.gz',
sha256sum = 'ecfa62a7fa3c4c18b9eccd8c16eaddee4bd308a76ea50b5c02a5840f09c0a1c2'
},
build = {
type = 'gnu'
}
}
| nilq/small-lua-stack | null |
package.path = './?.lua;' .. package.path
local generator = require("bin.scaffold.generator")
local lor = require("bin.scaffold.launcher")
local version = require("lor.version")
local usages = [[lor v]] .. version .. [[, a Lua web framework based on OpenResty.
Usage: lord COMMAND [OPTIONS]
Commands:
new [name] ... | nilq/small-lua-stack | null |
return
{
variables =
{
{name = "random-splitter", type = "entity-expression", value = {type = "random-of-entity-type", entity_type = "splitter"}}
},
entities =
{
{{type = "variable", name = "random-splitter"}, {x = 0, y = -1.5}, {dir = "south", dmg = {dmg = {type = "random", min = 30, max = 300}}}},
... | nilq/small-lua-stack | null |
--
-- Majordomo Protocol worker example
-- Uses the mdwrk API to hide all MDP aspects
--
-- Author: Robert G. Jakabosky <bobby@sharedrealm.com>
--
require"mdwrkapi"
require"zmsg"
local verbose = (arg[1] == "-v")
local session = mdwrkapi.new("tcp://localhost:5555", "echo", verbose)
local reply
while true do
lo... | nilq/small-lua-stack | null |
Map = Object:extend()
require "tilemap/tiledmap"
function Map:new()
_G.map = loadTiledMap('tilemap/map_data');
end
function Map:update(dt)
end
function Map.draw()
_G.map:draw()
end | nilq/small-lua-stack | null |
--- The player library is used to get the Lua objects that represent players in-game.
_G.player = {}
--- Similar to the serverside command "bot", this function creates a new Player bot with the given name. This bot will not obey to the usual "bot_*" commands, and it's the same bot base used in TF2 and CS:S.
--- The... | nilq/small-lua-stack | null |
local t = ...;
t = Def.ActorFrame{
Def.Sprite {
Texture="ScreenPlayerOptions LineHighlight P2 1x2";
Frame0000=0;
Delay0000=0.5;
Frame0001=1;
Delay0001=0.5;
InitCommand=cmd(addx,458);
};
LoadActor("Colour.png")..{
InitCommand=cmd(addx,458-100+2;addy,1;zoomy,0.98;zoomx,1.007);
};
};
retur... | nilq/small-lua-stack | null |
function getRun(i, param)
local i = i
local param = param
return function ()
--print("test");
--[[if i == 1 then
i = 0
print "aqui"
print(io.read())
end]]
--luajava.bindClass("java.lang.String")
print("teste2 "..i);
--luajava.bindClass("java.lang.Thread"):sleep(100)
luajava.newInstance("java.lang.String"... | nilq/small-lua-stack | null |
local Types = require('orgmode.parser.types')
local parser = require('orgmode.parser')
local Range = require('orgmode.parser.range')
local Date = require('orgmode.objects.date')
local config = require('orgmode.config')
describe('Parser', function()
it('should parse filetags headline', function()
local lines = {
... | nilq/small-lua-stack | null |
-- TODO: actually implement this later, for now ripple works fine with just name swaps on top of it for naming consistency.
Sound = function(asset_name, options) return ripple.newSound(love.audio.newSource('assets/sounds/' .. asset_name, 'static'), options) end
SoundTag = ripple.newTag
Effect = love.audio.setEffect
| nilq/small-lua-stack | null |
local Class = require "Base.Class"
local Object = require "Base.Object"
local Env = require "Env"
local FileSystem = require "Card.FileSystem"
local Serialization = require "Persist.Serialization"
local Utils = require "Utils"
local Path = require "Path"
local Preset = Class {}
Preset:include(Object)
funct... | nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... | nilq/small-lua-stack | null |
snippet #! "#! sh"
#! /bin/sh
endsnippet
snippet #! "#! bash"
#! /bin/bash
endsnippet
| nilq/small-lua-stack | null |
local vector = require "vector"
local platform = {}
platform.position = vector( 300, 500 )
platform.speed = vector( 800, 0 )
platform.image = love.graphics.newImage( "img/800x600/platform.png" )
platform.small_tile_width = 75
platform.small_tile_height = 16
platform.small_tile_x_pos = 0
platform.small_tile_y_pos = 0
p... | nilq/small-lua-stack | null |
animation { width = 1920, height = 1080, length = 4.5 }
-- la libs
local la = {}
la.trim = pan.require "la/trim"
la.palette, la.paints = unpack(pan.require "la/palette")
la.fonts = pan.require "la/fonts"
la.text = pan.require "la/text"
-- logo data
local LogoSize = 400
local LOffset = -LogoSize / 2 + 48
local LogoHal... | nilq/small-lua-stack | null |
EXPORTS["tripmine"] = { };
EXPORTS["tripmine"].Name = "Tripmine";
EXPORTS["tripmine"].Desc = "Detonates if it detects movement in its line-of-sight.\n\nOnce used, you can get more at your truck.";
EXPORTS["tripmine"].Secondary = true;
EXPORTS["tripmine"].Price = 4600;
EXPORTS["tripmine"].Model = "models/weapons/w_slam... | nilq/small-lua-stack | null |
local _super
_super = function(cls, self, method, ...)
local fn
if method == "new" then
fn = cls.__parent.__init
else
fn = cls.__parent.__base[method]
end
return fn(self, ...)
end
local _class
_class = function(name, tbl, extend, setup_fn)
local cls
if extend then
do
local _class_0
... | nilq/small-lua-stack | null |
--[[ file meta info
@file WhatsTrainingUI.lua
@brief Functions to build the ingame UI window
--]]
--[[
@brief Accessing the addons private table
@var _ addonName, thrown away
@var wt Global addonTable
--]]
local _, wt = ...
-- @brief "Constant" variables
local BOOKTYPE_SPELL = BOOKTYPE_SPELL -- Us... | nilq/small-lua-stack | null |
function p_print(...)
local info = debug.getinfo(2, "Sl")
local source = info.source
local msg = ("%s:%i ->"):format(source, info.currentline)
print(msg, ...)
end
function resize( s )
love.window.setMode(s*gw,s*gh)
sx,sy = s,s
end
function UUID()
local fn = function ( x )
local r = love.math.rand... | nilq/small-lua-stack | null |
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! *
---@meta
---
---[3.3]trail renderer[parent:]
---
---@class TrailRenderer
TrailRenderer = {}
---
---[3.3]constructor, 1 param
---
--- @param arg0 Context#context
--- @nodiscard
function TrailRenderer:new(arg0) end
---
---[3.3]add new point, and up... | nilq/small-lua-stack | null |
local PANEL = {}
local nextSG = 0
local quickTools = {
{
name = "Goto",
icon = "icon16/arrow_right.png",
onRun = function(ply, sid)
LocalPlayer():ConCommand("say /goto "..sid)
end
},
{
name = "Bring",
icon = "icon16/arrow_inout.png",
onRun = function(ply, sid)
LocalPlayer():ConCommand("say /brin... | nilq/small-lua-stack | null |
--ZFUNC-joinpath-v1
local function joinpath( tab ) --> path
--ZFUNC-firstchar-v1
local function firstchar( str )
return string.sub( str, 1, 1 )
end
--ZFUNC-lastchar-v1
local function lastchar( str )
return string.sub( str, #str )
end
local rooted = false
local tmptab = {}
for k,... | nilq/small-lua-stack | null |
local MetaPlayer = FindMetaTable("Player")
function MetaPlayer:CycleSpectator(a)
if self:Alive() then Error("Can't spectate while alive!")
return false
end
if not self.SpecIDX then
self.SpecIDX = 0
end
self.SpecIDX = self.SpecIDX + a
local Players = {}
for _, ply in pairs(GAMEMODE:... | nilq/small-lua-stack | null |
local PANEL = {}
function PANEL:Init()
self:SetSkin( GAMEMODE.HudSkin )
self:ParentToHUD()
self.ControlCanvas = vgui.Create( "Panel", self )
self.ControlCanvas:MakePopup()
self.ControlCanvas:SetKeyboardInputEnabled( false )
self.lblCountDown = vgui.Create( "DLabel", self.ControlCanvas )
self.lblCountDown:S... | nilq/small-lua-stack | null |
VERSION = "2.0.2"
local micro = import("micro")
local config = import("micro/config")
local shell = import("micro/shell")
local buffer = import("micro/buffer")
-- outside init because we want these options to take effect before
-- buffers are initialized
config.RegisterCommonOption("rust", "rustfmt", true)
function ... | nilq/small-lua-stack | null |
-- This performance benchmark was initially exposed in LuaJIT mailing list
-- by Laurent Deniau (Laurent.Deniau@cern.ch):
--
-- This particualar version is slightly modified in order to make
-- callgrind profiling possible.
-- Copyright (C) 2015-2019 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
local function find_d... | nilq/small-lua-stack | null |
#!/usr/bin/env luajit
---------
-- This script connects to fedmsg/zeromq interface of Anitya
-- <https://release-monitoring.org> and flags packages in the edge branch
-- for which a new version is released. It should be run as a daemon. Before
-- first run or after an outage run anitya-check-all to check all packages.
... | nilq/small-lua-stack | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.