content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
return {
type = "TEX";
file = "textures/texture.png";
}
| nilq/small-lua-stack | null |
-- C:/Users\donov\AppData\Roaming\Aseprite\scripts\pivot_export.lua
-- https://community.aseprite.org/t/how-do-others-handle-json-manipulation/4011
-- https://gist.github.com/tylerneylon/59f4bcf316be525b30ab
-- why is this shit not built in?
-- https://stackoverflow.com/questions/1426954/split-string-in-lua
function s... | nilq/small-lua-stack | null |
local M = {}
local user_settings = require("core.utils").user_settings()
function M.config()
local status_ok, which_key = pcall(require, "which-key")
if not status_ok then
return
end
local default_setup = {
plugins = {
marks = true,
registers = true,
spelling = {
enabled = t... | nilq/small-lua-stack | null |
local mod = mod_loader.mods[modApi.currentMod]
local path = mod.scriptPath .."libs/utils.dll"
local old = package.loaded["test"]
package.loaded["test"] = nil
test = nil
assert(package.loadlib(path, "luaopen_utils"), "cannot find C-Utils dll")()
local ret = test
package.loaded["test"] = old
test = old
return ret
| nilq/small-lua-stack | null |
-----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ekki-Mokki
-- Type: Standard NPC
-- !pos -26.558 -4.5 62.930 94
-----------------------------------
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
player:startEvent(409)
end
function onEventUpdate(player,csid,option)... | nilq/small-lua-stack | null |
local cjson = require "cjson"
local cookiejar = require "resty.cookie"
local jwt = require "resty.jwt"
local jwt_validators = require "resty.jwt-validators"
local util = require "util"
local errorpages_dir_path = os.getenv("AUTH_ERROR_PAGE_DIR_PATH")
if errorpages_dir_path == nil then
ngx.log(ngx.WARN, "AUTH_ERR... | nilq/small-lua-stack | null |
-- Script Created by Giant Cheese Wedge (AKA Blü)
-- Script Modified and fixed by Hoopsure
local crouched = false
local proned = false
crouchKey = 26
proneKey = 36
Citizen.CreateThread( function()
while true do
Citizen.Wait( 1 )
local ped = GetPlayerPed( -1 )
if ( DoesEntityExist( ped ) and not IsEntityDead( ... | nilq/small-lua-stack | null |
--
-- Functions
--
local fdir_to_front = {
{x=0, z=1},
{x=1, z=0},
{x=0, z=-1},
{x=-1, z=0}
}
local function checkwall(pos)
local fdir = minetest.get_node(pos).param2
local second_node_x = pos.x + fdir_to_front[fdir + 1].x
local second_node_z = pos.z + fdir_to_front[fdir + 1].z
local second_node_pos = {x=secon... | nilq/small-lua-stack | null |
--====================================================================--
-- dmc_ui/dmc_control/navigation_control.lua
--
-- Documentation:
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2015 David McCuskey. All Rights Reserved.
Permission is hereby ... | nilq/small-lua-stack | null |
EXPORT_ASSERT_TO_GLOBALS = true
lu = require('luaunit')
--[[
Use Luaunit in the v2.1 fashion and check that it still works.
Exercise every luaunit v2.1 function and have it executed successfully.
Coverage:
x Made LuaUnit:run() method able to be called with 'run' or 'Run'.
x Made LuaUnit.wrapFunctions() function able... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
-- ElvUI Chat Tweaks By Crackpotx (US, Lightbringer)
-- Based on functionality provided by Prat and/or Chatter
-------------------------------------------------------------------------------
local Module = ElvUI_ChatTweaks:NewModule("Channe... | nilq/small-lua-stack | null |
numb1 = math.random(10);
numb2 = math.random(10);
if (numb1 * numb2 == 10^2) then
value = 100
array_name[1] = "C";
array_name[2] = "";
else
array_name[1] = tens[numb1];
array_name[2] = ones[numb2];
if (numb1 == 10) then
term1 = 0
else
term1 = numb1*1... | nilq/small-lua-stack | null |
require("version-control.gitsigns-plugin")
require("version-control.gitmessenger-plugin")
require("version-control.whichkey-reg")
require("version-control.diffview-plugin")
| nilq/small-lua-stack | null |
pfDB["refloot"]["data-turtle"] = {
}
| nilq/small-lua-stack | null |
-- gate/watchdog/agent三剑客
thread = 1 -- 启动多少个线程
harbor = 0 -- 单节点
lualoader = "lualib/loader.lua" -- 不建议修改
bootstrap = "snlua bootstrap" -- 不建议修改
start = "gwagent" -- 入口脚本
-- 日志配置,默认打印到标准输出
logservice = "logger"
logger = nil
lua_cpath = "../luaclib/?.so;luaclib/?.so"
lua_path = "../lualib/?.lua;../lual... | nilq/small-lua-stack | null |
require("lsp").setup "python"
-- TODO get from dap
-- require("lang.python").dap()
| nilq/small-lua-stack | null |
return function(filename,pal)
local data = {}
for line in io.lines(filename) do
-- 117,127: (65535,61937,59624) #FFF1E8 srgb(255,241,232)
--print(string.match(line,'^(%d+),(%d+):%s*%(%s*(%d+),%s*(%d+),%s'))
local rx,ry,_,_,_,hex,_ = string.match(line,
'^(%d+),(%d+):%s+%(%s*(%d+),%s*(%d+),%s*(%... | nilq/small-lua-stack | null |
load(between("a","1.1.1","1.3"))
load(between("b","1.1.1"))
| nilq/small-lua-stack | null |
-- _ _ _ _ _
-- / \ | | | | | __ ___ _(_)
-- / _ \ | | |_ | |/ _` \ \ / / |
-- / ___ \| | | |_| | (_| |\ V /| |
-- /_/ \_\_|_|\___/ \__,_| \_/ |_|
--
-- github: @AllJavi
--
-- Volume widget
local wibox = require('wibox')
local gears = require('gears')
local awful = require(... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2021 jakub-vesely
This software is published under MIT license. Full text of the licence is available at https://opensource.org/licenses/MIT
--]]
TinyBlockBase = require "tiny_block_base"
local MotorDriver = {}
MotorDriver.__index = MotorDriver
MotorDriver.address = nil
function MotorDriver:turn_cl... | nilq/small-lua-stack | null |
-- test render system functional
describe("#ogre render system", function()
describe("manual texture", function()
it("should handle bad config", function()
-- bad texture definition
local texture = core:render():createTexture("bad", {})
assert.is_nil(texture)
end)
--[[
* * :co... | nilq/small-lua-stack | null |
--[[concommand.Add("makemayor", function(ply, cmd, args)
ply:SetTeam(CLASS_Mayor)
end)]]
local MayorBallot = MayorBallot or {}
util.AddNetworkString("OCRP_CitySpeed_Update")
net.Receive("OCRP_CitySpeed_Update", function(len, ply)
if ply:Team() ~= CLASS_Mayor then return end
local val = net.ReadInt(32)
... | nilq/small-lua-stack | null |
function recursiveAngFractal(pos, side, rotation)
if pos.x > width + side * 3 or pos.y > height + side * 3 then
return
end
rotation = rotation or 0
local next1 = pos + Vector(side, 0):rotated(rotation)
local next2 = pos + Vector(side * 3 / 2, -side * math.sqrt(3) / 2):rotated(rotation)
local next3 = pos + Vecto... | nilq/small-lua-stack | null |
slot0 = class("NetFleetUpdate", import("....BaseEntity"))
slot0.Fields = {
id = "number",
buffs = "table"
}
slot0.Setup = function (slot0, slot1)
slot0.id = slot1.id
slot0.buffs = WorldConst.ParsingBuffs(slot1.buff_list)
end
slot0.Dispose = function (slot0)
slot0:Clear()
end
slot0.GetBuffsByTrap = function (slo... | nilq/small-lua-stack | null |
SSID = "Tardis"
PASSWORD = "woosh-woosh"
MQTT_CLIENT_ID = "leddy"
MQTT_AUTH = false -- true if we need to use authentication when connecting
MQTT_TLS = false
MQTT_HOST = "tardis"
MQTT_PORT = 1883
MQTT_KEEPALIVE = 120 -- seconds
MQTT_USERNAME = "foo"
MQTT_PASSWORD = "bar"
MQTT_ROOT = "/leddy" | nilq/small-lua-stack | null |
-- basic types
--
-- int
x = 2;
-- double
pi = 3.14
-- boolean
yes = true
no = false
-- string
str = "Hello, World!"
-- table
table = {a = 7, b = 1.23, c = true, d = false, e = "Test",
f = {r = 1, g = 0.2, b = 0.5}
}
| nilq/small-lua-stack | null |
-- Filename: main.lua
-- Author: Luke Perkin
-- Date: 2010-03-22
-- Test
function foo()
end
function foo:bar()
end
bar = foo:new()
-- Load
-- Initialization
function love.load()
end
-- Logic
function love.update(dt)
end
-- Scene Drawing
function love.draw()
end
-- Input
function love.mousepressed(x,y,button)
end... | nilq/small-lua-stack | null |
local composer = require( "composer" )
local scene = composer.newScene()
math.randomseed( os.time() )
-- Set physics
local physics = require("physics")
physics.start()
----------------------------------------------------------
W = display.contentWidth
H = display.contentHeight
X = display.contentCenterX
Y = displa... | nilq/small-lua-stack | null |
local vec3 = require "modules.vec3"
describe("vec3:", function()
it("testing basic operators", function()
-- add
assert.is.equal(vec3(1, 1, 1) + vec3(2, 3, 4), vec3(3, 4, 5))
assert.is.equal(vec3(1, 1, 1) + 5, vec3(6, 6, 6))
-- sub
assert.is.equal(vec3(1, 1, 1) - vec3(2, 3, 4), vec3(-1, -2, -3))
... | nilq/small-lua-stack | null |
theme = {
nam = 'theme';
object_type = true;
system_type = true;
save = function(self, name, h, need)
if self.name() ~= '.' then
return
end
for k, v in stead.pairs(self.vars) do
h:write(stead.string.format("theme.set(%q, %q);\n", k, v))
end
end;
reset = function(...)
local a = {...};
for i = 1, ... | nilq/small-lua-stack | null |
require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 4,["5"] = 4,["6"] = 6,["7"] = 6,["8"] = 6,["9"] = 6,["10"] = 6,["11"] = 9,["12"] = 6,["13"] = 12,["14"] = 9,["15"] = 15,["16"] = 16,["17"] = 15,["18"] = 19,["19"] = 20,["20"] = 19,["21"] = 6,["22"] = 6});
local ____exports = {}
loca... | nilq/small-lua-stack | null |
local SCORE_NAME= script:GetCustomProperty("ScoreName")
local STARTING_SCORE = 4800
local HIGH_SCORE = script:GetCustomProperty("HighScore")
local scoreboardGroup = {}
scoreboardGroup[1] = script:GetCustomProperty("Scoreboard_Orange"):WaitForObject()
scoreboardGroup[2] = script:GetCustomProperty("Scoreboard_Purple"):W... | nilq/small-lua-stack | null |
y:set_memo(false); z:set_memo(false); -- no memo-izing needed
conjoin({y, z}) -- indicate that they need to be evaluated together
assert(z:is_eov() == false) -- z not fully evaluated
y:eval() -- evaluate y when needed
assert(z:is_eov() == true) -- z fully evaluated as a consequence of y eval
| nilq/small-lua-stack | null |
local HttpService = game:GetService("HttpService")
local Roact = require(script.Parent.Parent.Parent.Libraries.Roact)
local PrettyPrint = require(script.Parent.Parent.Parent.Modules.PrettyPrint)
local GetCurrentDate = require(script.Parent.Parent.Parent.Modules.GetCurrentDate)
local function ConvertButton(props)
ret... | nilq/small-lua-stack | null |
dark_seer_wall_of_replica_nb2017 = class({})
LinkLuaModifier( "modifier_dark_seer_wall_of_replica_nb2017", "modifiers/modifier_dark_seer_wall_of_replica_nb2017", LUA_MODIFIER_MOTION_NONE )
--------------------------------------------------------------------------------
function dark_seer_wall_of_replica_nb2017:OnSpel... | nilq/small-lua-stack | null |
--- Galaxy City
--- MISSIONS
printDebug("Finished Loading missions.lua")
| nilq/small-lua-stack | null |
local Store = require('store')
local StoreTests = test.declare('StoreTests', 'store')
local store
function StoreTests.setup()
store = Store.new()
end
---
-- `new()` should return an object and not crash.
---
function StoreTests.new_returnsObject()
test.isNotNil(store)
end
| nilq/small-lua-stack | null |
domain = args(1)
mailbox = args(2)
folder = args(3)
message_type = args(4)
return
{
{
action = "data_load_count",
handler = "odbc",
config = profile.db_config_message,
filters = {
mailbox = mailbox,
domain = domain,
__folder = folder,
__deleted = 0,
},
count_field = "i... | nilq/small-lua-stack | null |
-- duration in microseconds
-- total completed requests
-- total completed requests per seconds
-- total bytes received
-- total socket connection errors
-- total socket read errors
-- total socket write errors
-- total http errors (status > 399)
-- total request timeouts
-- minimim latency
-- maximum latency
-- averag... | nilq/small-lua-stack | null |
space = 16
screen = platform.window
w = screen:width()
input = ""
err = false
function Set (list)
local set = {}
for _, l in ipairs(list) do set[l] = true end
return set
end
function menu_txt()
function on.paint(gc)
menu1 = "Uses a maximum value to generate a list"
menu2 = "of numbers betwee... | nilq/small-lua-stack | null |
Images = {
TOAD_IMG = love.graphics.newImage("media/gfx/toad.png"),
PLAYER_IMG = love.graphics.newImage("media/gfx/wizard.png"),
ENEMY_BULLET_IMG = love.graphics.newImage("media/gfx/bullet.png"),
FIREBALL_IMG = love.graphics.newImage("media/gfx/fireball.png"),
POWERUP_IMG = love.graphics.newImage("media/gfx/power... | nilq/small-lua-stack | null |
require 'hdf5'
rapidjson = require 'rapidjson'
function hdf5_save(path, obj)
local h = hdf5.open(path, 'w')
local function r(prefix, o)
for k, v in pairs(o) do
local p = prefix..'/'..k
if torch.isTypeOf(v, torch.CudaTensor) then
h:write(p, v:float())
elseif torch.isTensor(v) then
h:write(p, v)
... | nilq/small-lua-stack | null |
-- title: Tiny Life
-- author: Skaruts (MetalDudeBro)
-- desc: A toy Game of Life
-- script: lua
-- input: mouse, keyboard
-- saveid: TinyLife
-- version 1.4
--=--=--=--=--=--=--=--=--=--=--=--=--
-- MIT License (c) 2019 Skaruts (MetalDudeBro)
--=--=--=--=--=--=--=--=--=--=--=--=--
--=--=--=--=--=--=--=--=--=--=--=-... | nilq/small-lua-stack | null |
local widget = require("widget")
-- SETUP DIE
local dice_sheet_options = {
width=64,
height=64,
numFrames=6
}
local dice_sheet = graphics.newImageSheet("Dice.png", dice_sheet_options)
local roll_sequence = {
{name = "roll", start=1, count=6, time=800, loopCount=3}
}
local die1 = display.newSprite(dice_sheet, r... | nilq/small-lua-stack | null |
---count, place = fun(i, count, place)
local function findOneHole(self, fun)
local count = 0
local place = nil
for i = 1, 3 do
count, place = fun(i, count, place)
end
if count >= 2 and place then
self.body[place[1]][place[2]] = self.com
return true
end
return false
end
local function playComputer(self)
l... | nilq/small-lua-stack | null |
--[[--ldoc desc
@module paidiandaxiao_2241_1
@author WahidZhang
Date 2018-03-15 14:59:44
Last Modified by WahidZhang
Last Modified time 2018-03-22 17:30:48
]]
--[[
牌点排序
级别牌打3,并且有主花色时: 牌点大小:大王>小王>主花色3>副花色3>主花色2>副花色2>A>K>Q>J>10>9>8>7>6>5>4 不可跳过牌点相连(例如:级牌=8,7799不算连对)
--]]
local LibBase = import("..b... | nilq/small-lua-stack | null |
--Server settings module for ULX GUI -- by Stickly Man!
--A settings module for modifying server and ULX based settings. Also has the base code for loading the server settings modules.
local server = xlib.makepanel{ parent=xgui.null }
--------------------------GMOD Settings--------------------------
xlib.makecheckbox... | nilq/small-lua-stack | null |
local redis = redis
--[[
new(
key, -- "key_pattern:%s" or key making function
model, -- {} table of optional model methods (including new)
object, -- {} table of optional object (row) methods (including new, delete, and insert)
autoincr_key -- "autoincrement:bar" -- use this key as the autoincrement counter ... | nilq/small-lua-stack | null |
--!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... | nilq/small-lua-stack | null |
--====================================================================--
-- dmc_ui/dmc_style.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuskey
Permission is hereby granted, fre... | nilq/small-lua-stack | null |
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "Gun Lab"
ENT.Author = "Pcwizdan"
ENT.Spawnable = false
function ENT:SetupDataTables()
self:NetworkVar("Int",0,"price")
self:NetworkVar("Entity",1,"owning_ent")
end | nilq/small-lua-stack | null |
#!/usr/bin/env luajit
-- (c) 2014 Team THORwIn
local ok = pcall(dofile,'../fiddle.lua')
if not ok then ok=pcall(dofile,'./fiddle.lua') end
if not ok then ok=dofile'../../fiddle.lua' end
local use_ros,rospub=false,nil
local is_granny=false
local cmd_type=0
local util = require'util'
local xbox360 = require 'xbox360'
... | nilq/small-lua-stack | null |
--[[*************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** self file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid comm... | nilq/small-lua-stack | null |
meshes = {
{
vertexes = {{-16,-3},{-16,3},{-13,4},{-12,4},{-7,3},{-2,0},{-7,-3},{-12,-4},{-13,-4},{-14,-11},{-2,-14},{12,-6},{6,-3},{6,3},{12,6},{-2,14},{-14,11},{-4,6},{-4,-6},{-10,10},{-10,-10},{-16,-2}},
colors = {0x353535ff, 0x353535ff, 0x353535ff, 0x353535ff, 0x353535ff, 0x353535ff, 0x353535... | nilq/small-lua-stack | null |
--[[-- Ubiquitousse main module.
Set of various Lua libraries to make game development easier, mainly made to be used alongside the [LÖVE](https://love2d.org/) game framework.
Nothing that hasn't been done before, but these are tailored to what I need. They can be used independently too, and are relatively portable, e... | nilq/small-lua-stack | null |
local systemTime = hs and hs.timer.secondsSinceEpoch or os.time
local t = systemTime()
local triangle = {
{ 75 },
{ 95, 64 },
{ 17, 47, 82 },
{ 18, 35, 87, 10 },
{ 20, 04, 82, 47,... | nilq/small-lua-stack | null |
---
-- @module CircleUtils
-- @author Quenty
local CircleUtils = {}
-- https://math.stackexchange.com/questions/110080/shortest-way-to-achieve-target-angle
-- Note: target should be within 0 and circumference
function CircleUtils.updatePositionToSmallestDistOnCircle(position, target, circumference)
assert(target >= ... | nilq/small-lua-stack | null |
-- alltypes.lua
local ffi = require("ffi")
local utils = require("libc_utils")
--[[
TODO
These get used lexically to modify other types
so we can't just #define them
#define _Addr int
#define _Int64 long long
#define _Reg int
Typical usage:
typedef unsigned _Addr size_t;
Perhaps define them as strings and create... | nilq/small-lua-stack | null |
local handler = {}
local Logger = require('logger')
local JSON = require('jansson')
local confapi = require('confapi')
local log = Logger:new('show_portstatus')
local function get_status(port)
if not port.Enable then
return 'disabled'
end
return port.Status == 'Enabled' and 'connected' or 'no... | nilq/small-lua-stack | null |
-- Georgia Institute of Technology
-- CS8803DL Spring 2016 (Instructor: Zsolt Kira)
-- Final Project: Video Classification
-- training w/ data augmentation
-- modified by Min-Hung Chen
-- contact: cmhungsteve@gatech.edu
-- Last updated: 10/11/2016
require 'torch' -- torch
require 'xlua' -- xlua provides useful... | nilq/small-lua-stack | null |
-- vim: ts=4:sw=4:expandtab
-- require st provided libraries
local capabilities = require "st.capabilities"
local cosock = require "cosock"
local Driver = require "st.driver"
local log = require "log"
local classify = require "classify"
local Semaphore = require "semaphore"
local de... | nilq/small-lua-stack | null |
return{
----------------------module-----------------------------------
Time = require "module.Time",
playerModule = require "module.playerModule",
TeamModule = require "module.TeamModule",
EncounterFightModule = require "module.EncounterFightModule",
playerModule = require "module.playerModule",
NPCModule = requ... | nilq/small-lua-stack | null |
--[[ ==========================================================================
ItemName.lua
========================================================================== ]]--
local _G = _G
local AddOnName, _ = ...
local AddOn = _G[AddOnName]
-- LUA Functions
--- WoW API
local GetContainerItemLink = _G... | nilq/small-lua-stack | null |
thwomp = class:new()
local closerange = 1 --distance before thwomp smashes, this is the frame where the thwomp is smug
function thwomp:init(x, y, t, r)
--PHYSICS STUFF
self.x = x-1
self.y = y-1
self.speedy = 0
self.speedx = 0
self.width = 22/16
self.height = 30/16
self.gravity = 0
self.static = false
self.a... | nilq/small-lua-stack | null |
-- This mod provides the visible text on signs library used by Home Decor
-- and perhaps other mods at some point in the future. Forked from thexyz's/
-- PilzAdam's original text-on-signs mod and rewritten by Vanessa Ezekowitz
-- and Diego Martinez
-- textpos = {
-- { delta = {entity position for 0° yaw}, exact yaw ... | nilq/small-lua-stack | null |
-- Updates version.c list of applied Vim patches.
--
-- Usage:
-- VIM_SOURCE_DIR=~/neovim/.vim-src/ nvim -i NONE -u NONE --headless +'luafile ./scripts/vimpatch.lua' +q
local nvim = vim.api
local function pprint(o)
print(nvim.nvim_call_function('string', { o }))
end
local function systemlist(...)
local rv =... | nilq/small-lua-stack | null |
-- Utils.lua: common lua used across multiple modules
local _,L = ...
local rematch = Rematch
-- takes an petid and returns what type of id it is ("pet" "species" "leveling" or "table")
-- pet: this is an owned petID (BattlePet-0-000etc)
-- species: this is a speciesID (42 268 etc)
-- leveling: this is a leveling pet... | nilq/small-lua-stack | null |
vim.g.vim_dict_config = { markdown='text', typescript = 'javascript' }
require("telescope").setup{
defaults = {
vimgrep_arguments = {
'rg',
'--hidden',
'--color=never',
'--no-heading',
'--with-filename',
'--line-number',
'--column',
'--smart-case',
'-g',
... | nilq/small-lua-stack | null |
require 'utils.enum'
if codes == nil then
codes = {}
end
-- Enum for trap IDs according to the order in the internal text_e.str file (US version)
codes.TRAP, codes.TRAP_NAMES = enum.register({
'Secret',
'MudTrap',
'StickyTrap',
'GrimyTrap',
'SummonTrap',
'PitfallTrap',
'WarpTrap',
... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------------------------------------------------------------------
-- VRP
-----------------------------------------------------------------------------------------------------------------------------------------
local Tunnel = module("vrp","lib/Tunn... | nilq/small-lua-stack | null |
------------------------------------------------------------------------
--[[ Experiment ]]--
-- An experiment propagates DataSets through Models. The specifics
-- such propagations are handled by Propagators. The propagation of
-- a DataSet is called an epoch. At the end of each epoch, a monitoring
-- step is perfor... | nilq/small-lua-stack | null |
-- NetHack 3.7 Rogue.des $NHDT-Date: 1432512784 2015/05/25 00:13:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.11 $
-- Copyright (c) 1992 by Dean Luick
-- NetHack may be freely redistributed. See license for details.
--
des.level_init({ style = "solidfill", fg = " " });
des.level_flags("mazelevel");
-- 1 ... | nilq/small-lua-stack | null |
concommand.Add("xyz_settings_menu", function()
XYZSettings.UI()
end)
hook.Add("XYZOnPlayerChat", "xyz_settings_command", function(ply, msg)
if not (ply == LocalPlayer()) then return end
if not (string.lower(msg) == "!settings") then return end
XYZSettings.UI()
end)
function XYZSettings.UI()
Quest.Core.NetworkPr... | nilq/small-lua-stack | null |
#!/usr/bin/env wsapi.cgi
module(..., package.seeall)
ABOUT = {
NAME = "graphite_cgi",
VERSION = "2019.08.12",
DESCRIPTION = "WSAPI CGI implementation of Graphite-API",
AUTHOR = "@akbooer",
COPYRIGHT = "(c) 2013-2019 AKBooer",
DOCUMENTATION = "",
DEBUG = false,
LICEN... | nilq/small-lua-stack | null |
local examplelib1 = require("example.library1")
local examplelib2 = require("example.library2")
print("I guess your name must be " .. examplelib2.getName())
examplelib1.superCoolWhatever() | nilq/small-lua-stack | null |
RegisterRecipe({
name = "Thermite",
duration = 15000,
stations = { "Workbench" },
input = {
{ name = "Phosphorus", quantity = 5 },
{ name = "Scrap Aluminum", quantity = 1 },
},
output = {
{ name = "Thermite", quantity = 1 },
},
})
RegisterRecipe({
name = "Joints",
duration = 4000,
stations = { "Workben... | nilq/small-lua-stack | null |
package.path = "../?.lua;"..package.path;
require("p5")
local ffi = require("ffi")
local C = ffi.C
-- A list of images to be loaded
-- The names here match the actual filenames
-- without the .tga extension
local imageList = {
"rgb_a_UL",
"rgb_a_UR",
"rgb_a_LL",
"rgb_a_LR",
"rgb_UL",
"rgb_... | nilq/small-lua-stack | null |
-- OnScreenButtons by Érico Vieira Porto 2018
local Gamestate = requireLibrary("hump.gamestate")
local Class = requireLibrary("hump.class")
local lume = requireLibrary("lume")
local
ScreenButton = Class{
-- initializes the inventory
init = function(self)
self.osString = love.system.getO... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
-- ElvUI_RaidMarkers By Crackpot (US, Arthas)
-------------------------------------------------------------------------------
local debug = false
--@debug@
debug = true
--@end-debug@
local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
loc... | nilq/small-lua-stack | null |
local sCallback = {}
exports("RegisterServerCallback", function(name, func)
sCallback[name] = func
end
RegisterServerEvent("vrp-callback:TriggerServerCallback")
AddEventHandler("vrp-callback:TriggerServerCallback", function(name, args)
local source = source
TriggerClientEvent("vrp-callback:Reciev... | nilq/small-lua-stack | null |
describe('Test tomoauto config library functions', function ()
local config
local mrcio
local MRC
local xftoxg
setup(function ()
config = require('tomoauto.config')
mrcio = require('tomoauto.mrcio')
xftoxg = require('tomoauto.settings.xftoxg')
end)
teardown(function ()
config = nil
m... | nilq/small-lua-stack | null |
number = {}
value = {""}
max = 8
number[1] = 11 - math.random(21)
value[1] = tostring( math.floor(number[1]))
add = math.random(3)
if (number[1] >= 0) then
add = -add
end
ind1 = 0
ind2 = 0
stampa = math.random(2)
if (stampa == 1) then
reply = value[1]
ind1 = ind1 + 1
else
reply = lib.check_number(n... | nilq/small-lua-stack | null |
local
function qname(func)
return func.module.."."..func.name
end
local lua_html_manual = arg[1]
local
function read_lines(file)
local f = io.open(file)
local lines = {}
local i = 1
for line in f:lines() do
lines[i] = line
i = i + 1
end
f:close()
return lines
end
local... | nilq/small-lua-stack | null |
-- TrafficConeGod
local CFRAME_NEW = CFrame.new
return function(Sunshine, entity)
local transform = entity.transform
local spinner = entity.spinner
if transform and spinner then
Sunshine:update(function()
local pos = transform.cFrame.Position
local preCalcCFrame = CFRAME_NE... | nilq/small-lua-stack | null |
--config = {
-- pem_file = "./test.pem",
-- pass_phrase = "weiboyi",
---- apns_push_host = "gateway.sandbox.push.apple.com",
-- apns_push_host = "17.172.232.18",
-- test_devtoken = "84e2b4d44912a517d906ab9d7c4c246ec8bf812a1c4d674e3de82e80bc8e36da",
-- test_msg = "%d冯,Are you crazy?",
-- apns_push_p... | nilq/small-lua-stack | null |
DuneSeaKraytsScreenPlay = ScreenPlay:new {
planet = "tatooine",
bossMobile = "dune_sea_queen",
bossRespawn = getRandomNumber(7200) + 7200,
xCoord = -5409,
yCoord = 6113,
kraytMobile = "dune_sea_krayt_dragon",
kraytRespawn = 1800,
offset = 500,
maxSpawns = 20,
}
registerScreenPlay("D... | nilq/small-lua-stack | null |
-- Copyright 2021 Kafka-Tarantool-Loader
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or ag... | nilq/small-lua-stack | null |
--[[
##########################################################
S V U I By: Munglunch
##########################################################
LOCALIZED LUA FUNCTIONS
##########################################################
]]--
--[[ GLOBALS ]]--
local _G = _G;
local select = _G.select;
local unpack = _G.unpack... | nilq/small-lua-stack | null |
--[[----------------------------------------------
Discord bot developed by SaturdaysHeroes.xyz
--]]----------------------------------------------
return function(client)
local httpr = require("coro-http")
local json = require("json")
local querystring = require("querystring")
function ... | nilq/small-lua-stack | null |
return require("lapis.db.pagination")
| nilq/small-lua-stack | null |
function MyGameMode:InitGameMode()
GameRules:GetGameModeEntity():SetCameraDistanceOverride(1400)
GameRules:SetHeroSelectionTime(30.0) -- How long should we let people select their hero?
GameRules:SetPreGameTime(30.0) -- How long after people select ... | nilq/small-lua-stack | null |
local mod = DBM:NewMod(657, "DBM-Party-MoP", 3, 312)
local L = mod:GetLocalizedStrings()
local sndWOP = mod:SoundMM("SoundWOP")
mod:SetRevision(("$Revision: 9656 $"):sub(12, -3))
mod:SetCreatureID(56541)
mod:SetZone()
mod:SetMinSyncRevision(7888)
mod:SetReCombatTime(60)
-- pre-bosswave. Novice -> Black Sa... | nilq/small-lua-stack | null |
modifier_bounty_hunter_statue_aura_effect = class({})
--------------------------------------------------------------------------------
function modifier_bounty_hunter_statue_aura_effect:IsPurgable()
return false
end
--------------------------------------------------------------------------------
function modifier... | nilq/small-lua-stack | null |
dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
local addedtolist = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*a... | nilq/small-lua-stack | null |
function onEvent(name, value1, value2)
if name == 'picogoesflaccid' then
-- debugPrint('who the fuck');
setProperty('boyfriend.visible', true);
setProperty('picobreakdance.visible', false);
setProperty('picobreakdanceshootin.visible', false);
setProperty('picoshootin.visible', true);
end
en... | nilq/small-lua-stack | null |
function handle(r)
r:puts(r.method)
end
| nilq/small-lua-stack | null |
-----------------------------------
-- Area: Ilrusi Atoll
-- NPC: Rune of Release
-- !pos 412 -9 54 55
-----------------------------------
local ID = require("scripts/zones/Ilrusi_Atoll/IDs")
require("scripts/globals/besieged")
-----------------------------------
function onTrade(player,npc,trade)
end
function onTri... | nilq/small-lua-stack | null |
--Children folder includes
includeFile("custom_content/draft_schematic/droid/component/serverobjects.lua")
-- Server Objects
includeFile("custom_content/draft_schematic/droid/cyborg_crafting_headband.lua")
includeFile("custom_content/draft_schematic/droid/cyborg_crafting_interface.lua")
includeFile("custom_content/dra... | nilq/small-lua-stack | null |
conky.config = {
--Conky config for i3
--Updates: http://github.com/lidel/dotfiles/
--vim: ts=4 et sw=4
out_to_x = false,
own_window = false,
out_to_console = true,
background = false,
max_text_width = 0,
-- Update interval in seconds
update_interval = 1.0,
-- This is the number of times Conky will update bef... | nilq/small-lua-stack | null |
require 'ext'
require 'htmlparser'
require 'socket'
local http = require 'socket.http'
require 'common'
local json = require 'dkjson'
local function flattenText(n)
if type(n) == 'string' then return n end
if n.tag == 'br' then return '. ' end
if not n.child then return '' end
return table.map(n.child, function(ch... | 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.