content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
--- Ragdolls the humanoid on fall
-- @classmod BindableRagdollHumanoidOnFall
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local BaseObject = require("BaseObject")
local FRAMES_TO_EXAMINE = 8
local FRAME_TIME = 0.1
local RAGDOLL_DEBOUNCE_TIME = 1
local REQUIRED_MAX_FALL_VELO... | nilq/small-lua-stack | null |
platformParts:registerNew({
id = "_cpu_1",
partType = platformParts.TYPES.CPU,
display = _T("PLATFORM_CPU_1_ALT", "CPU - tier 1 Alterninative"),
quad = "Cpu_1",
price = 80,
attractiveness = 80,
gameScale = 4,
devDifficulty = 0.4,
devTime = 40,
devCostMult = 1,
progression = {
{year = 1987, mont... | nilq/small-lua-stack | null |
--[[
Fighting Cheers v1
Author: RBS ID
]]
local t_fightCheers;
local fightCheerNodes = {
--{"/Global/Ambient/CheerBank/NPC_Cheer_A/Default/Idle/ExecuteRandomCheers", "Act/Anim/Ambient.act"},
{"/Global/3_G3_Conv/Cheerage", "Act/Conv/3_G3.act"},
{"/Global/2_04_Conv/Cheerage", "Act/Conv/2_04.act"},
--{"/Global/2_S0... | nilq/small-lua-stack | null |
-- vendorized from https://github.com/Kagami/mpv_slicing
-- edited to not result in huge avi files (just copy input video/audio streams)
-- and to save to my $DOWNLOADS directory if possible (else defaults to $HOME)
-- use 'c' to mark start/end of slice
local msg = require "mp.msg"
local utils = require "mp.utils"
loca... | nilq/small-lua-stack | null |
-- https://github.com/schteppe/poly-PolyDecomp.js
local tmpPoint1 = {}
local tmpPoint2 = {}
local tmpLine1 = {}
local tmpLine2 = {}
PolyDecomp = {}
PolyDecomp.__index = PolyDecomp
--[[
* Compute the intersection between two lines.
* @static
* @method lineInt
* @param {Array} l1 Line vector 1
* @param {Ar... | nilq/small-lua-stack | null |
package.path = package.path .. ";./?.lua"
local sock = require("sock/sock")
local json = require("json")
local bitser = require("bitser/bitser")
local gamestate = {
players = {},
shots = {}
}
function love.load()
tickRate = .033
offset = .014
stop = false
tick = 0
playerTimeout = 8
... | nilq/small-lua-stack | null |
--[[ Author: Firetoad
Date: 12.05.2017 ]]
if modifier_contributor_statue == nil then
modifier_contributor_statue = class({})
end
function modifier_contributor_statue:CheckState()
local state = {
[MODIFIER_STATE_INVULNERABLE] = true,
[MODIFIER_STATE_NOT_ON_MINIMAP] = true,
[MODIFIER_STATE_NO_HEALTH_BAR] = tr... | nilq/small-lua-stack | null |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by shuieryin.
--- DateTime: 12/01/2018 10:42 PM
---
function estimateGaussian(X)
--ESTIMATEGAUSSIAN This function estimates the parameters of a
--Gaussian distribution using the data in X
-- [mu sigma2] = estimateGaussian(X),
-- T... | nilq/small-lua-stack | null |
RegisterServerEvent('npc-scuba:checkAndTakeDepo')
AddEventHandler('npc-scuba:checkAndTakeDepo', function()
local src = source
local user = exports["npc-core"]:getModule("Player"):GetUser(src)
user:removeMoney(400)
end)
RegisterServerEvent('npc-scuba:returnDepo')
AddEventHandler('npc-scuba:returnDepo', function()
l... | nilq/small-lua-stack | null |
local lgi = require("lgi")
local Gtk = lgi.require("Gtk", "3.0")
local App = Gtk.Application({
application_id = "com.github.Miqueas.Lua-GTK3-Examples.GtkBox1"
})
function App:on_startup()
Gtk.ApplicationWindow({
application = self,
default_width = 400,
default_height = 400
})
end
function App:on_ac... | nilq/small-lua-stack | null |
local config = require "config"
local message = require "common.message"
local TopicProxy = require "proxy.topic"
local UserProxy = require "proxy.user"
local ReplyProxy = require "proxy.reply"
local fuckforbid = require "common.fuckforbid"
local table = table
local string = string
local exports = {}
function expor... | nilq/small-lua-stack | null |
-- [[ globals ]]
-----------------------[[
-- colorscheme --
-----------------------]]
vim.cmd[[colorscheme nord]]
-----------------------[[
-- settings --
-----------------------]]
vim.opt.background = 'dark'
vim.opt.listchars = {tab = '▸ ', eol = '¬', space = '␣'}
vim.opt.showmode = true
vi... | nilq/small-lua-stack | null |
--Author: blunty666
--forum post: http://www.computercraft.info/forums2/index.php?/topic/19491-starnav-advanced-turtle-pathfinding-and-environment-mapping/
local maps = {}
local function toGridCode(tVector)
return math.floor(tVector.x/16), math.floor(tVector.y/16), math.floor(tVector.z/16), tVector.x % 16, tVector.y... | nilq/small-lua-stack | null |
local PANEL = {}
--accessor functions
AccessorFunc(PANEL, "Font", "Font", FORCE_STRING)
AccessorFunc(PANEL, "MinimumCropSize", "MinimumCropSize", FORCE_NUMBER)
--local functions
local function get_power(result) return math.ceil(math.log(result, 2)) end
--post function setup
if not KAKOGE.CropperFontMade then
surfa... | nilq/small-lua-stack | null |
-- Script to filter out sensor values
local debug = true -- Print debug data to console
local verbose = false -- Print even more debug data
function onInit()
print("Sending sensor values to influx-DB via Plugin %s", os.date("%Y-%m-%d %X"))
local ifx = require "influx.DB"
if ifx == nil then
print("Influx sen... | nilq/small-lua-stack | null |
dofile("table_show.lua")
dofile("urlcode.lua")
local urlparse = require("socket.url")
local http = require("socket.http")
local zip = require("zip")
JSON = (loadfile "JSON.lua")()
local item_dir = os.getenv('item_dir')
local warc_file_base = os.getenv('warc_file_base')
local item_type = os.getenv('item_type')
local it... | nilq/small-lua-stack | null |
local debugMode = false
logger = {}
function logger.area_to_string(area)
return string.format("{{%s, %s}, {%s, %s}}", area[1][1], area[2][1], area[1][2], area[2][2])
end
function logger.position_to_string(position)
return string.format("{%s, %s}", position.x, position.y)
end
function logger.print(message)
... | nilq/small-lua-stack | null |
local DATE_FORMAT = "%d/%m/%Y %H:%M:%S"
mAdmChat.gui = {}
function mAdmChat.gui.init()
local tab = cGUI.addTab("Chat")
mAdmChat.gui.tab = tab
local mainHlo = guiCreateHorizontalLayout(GS.mrg2, GS.mrg2, -GS.mrg2*2, -GS.mrg2*2, GS.mrg, false, tab)
guiSetRawSize(mainHlo, 1, 1, true)
guiHorizontalLayoutSetSizeFi... | nilq/small-lua-stack | null |
local MapEditor122Plugin = require("mod.map_editor.api.plugin.MapEditor122Plugin")
local MapEditorLayoutPlugin = require("mod.map_editor.api.plugin.MapEditorLayoutPlugin")
local MapEditorNefiaPlugin = require("mod.map_editor.api.plugin.MapEditorNefiaPlugin")
local MapEditorWfcPlugin = require("mod.map_editor.api.plugin... | nilq/small-lua-stack | null |
APIDocumentationMixin = {};
-- "public"
function APIDocumentationMixin:OnLoad()
self.tables = {};
self.functions = {};
self.systems = {};
self.fields = {};
self.events = {};
self.Commands = {
Default = 1,
CopyAPI = 2,
OpenDump = 3,
};
DEFAULT_CHAT_FRAME:SetMaxLines(2000);
end
function APIDocumentation... | nilq/small-lua-stack | null |
local Quad
local QuadTexture
function love.load()
Quad = love.graphics.newQuad(0, 0, 100, 100, 10, 10)
QuadTexture = love.graphics.newImage("Resources/Textures/White.png")
end
function love.draw()
love.graphics.draw(QuadTexture, Quad, 0, 0)
end | nilq/small-lua-stack | null |
--
-- created with TexturePacker (http://www.codeandweb.com/texturepacker)
--
-- $TexturePacker:SmartUpdate:459fc7091d0a2612fe2f6ac2521fece9:796598a08e961b575f09566039a37861:7f3c883f0651180a344ed5c6ae525a42$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI... | nilq/small-lua-stack | null |
fx_version 'cerulean'
games { 'rdr3', 'gta5' }
author 'nimaiso'
description 'Discord'
version '1.0.0'
client_script 'client.lua'
server_script 'server.lua' | nilq/small-lua-stack | null |
CloneClass(TimerGui)
function TimerGui.init(this, unit)
local res = this.orig.init(this, unit)
local timer_header_text = managers.localization:text("prop_timer_gui_estimated_time")
this._gui_script.time_header_text:set_text(timer_header_text)
return res
end
| nilq/small-lua-stack | null |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
combat:setArea(createCombatArea(AREA_CIRCLE3X3))
function onGetFormulaValues(player, level, maglevel)
local min = (level / 5) + (maglevel * 5) + 25
local max = (level / 5) + (... | nilq/small-lua-stack | null |
require('lspkind').init({})
local cmp = require('cmp')
local lspkind = require('lspkind')
local luasnip = require('luasnip')
local neogen = require('neogen')
local replace_termcodes = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
local check_back_space = function()
local col ... | nilq/small-lua-stack | null |
local modpath = minetest.get_modpath("treegrowth")
-- Add everything:
local modname = "treegrowth"
treegrowth = {}
treegrowth.heights = {
{2,3}, -- 1
{3,3}, -- 2
{3,4}, -- 3
{3,5}, -- 4
{4,5}, -- 5 == default:tree
}
treegrowth.leaves = {
{1,0,1, 60}, -- 1
{2,1,2, 30}, -- 2
{2,0,2, 20}, -- 3
{2,0,2, 40},... | nilq/small-lua-stack | null |
project "Hedron" -- Name of the project
kind "StaticLib" -- Type of project (in that case a .lib (static library))
language "C++" -- The language in which the project is written
cppdialect "C++17" -- The version of our C++ used
staticruntime "on"
targetdir ("bin/" .. outputdir .. "/%{prj... | nilq/small-lua-stack | null |
return {
{name="Fido", age=4},
{name="Dough the 3rd", age=2},
{name="Scar", age=7},
}
| nilq/small-lua-stack | null |
local constants = require("scripts.constants")
local testing_lab = {}
--- @param player LuaPlayer
--- @param player_table table
--- @param ts_setting? string
function testing_lab.toggle(player, player_table, ts_setting)
local key = ts_setting == constants.testing_lab_setting.personal and player.index or "shared"
... | nilq/small-lua-stack | null |
minetest.register_craftitem("sailing_kit:boat", {
description = "Sailboat",
inventory_image = "sailboat_inv.png",
wield_image = "sailboat_inv.png",
-- wield_scale = {x = 2, y = 2, z = 1},
liquids_pointable = true,
-- groups = {flammable = 2},
on_place = function(itemstack, placer, pointed_thing)
if pointed_thin... | nilq/small-lua-stack | null |
-- MineClone2 Redefinitions and Additions.
-- Unbreakable Bedrock
local S = technic.getter
minetest.override_item("mcl_core:bedrock", {
description = S("Bedrock"),
_doc_items_longdesc = ("Bedrock is a very hard type of rock. It can not be broken, destroyed, collected or moved by normal means, unless in Creative ... | nilq/small-lua-stack | null |
Hooks:PostHook(PlayerStandard, "init", "Railgun_SteelsightColor_PlayerStandard__init", function(self)
self._in_steelsight_last = false
self._in_steelsight_delault_color = managers.user:get_setting("video_color_grading")
self._in_steelsight_use_color = "color_heat"
end)
Hooks:PostHook(PlayerStandard, "_check_action_... | nilq/small-lua-stack | null |
local playsession = {
{"Sinok", {107781}},
{"everLord", {101324}},
{"ismailka22", {2073}},
{"Benzka", {10292}},
{"kaimix", {9464}}
}
return playsession | nilq/small-lua-stack | null |
local options =
{
frames =
{
{x=0,y=0,width=64,height=64,}, -- frame 1
{x=64,y=0,width=64,height=64,}, -- frame 2
{x=128,y=0,width=64,height=64,}, -- frame 3
{x=192,y=0,width=64,height=64,}, -- frame 4
{x=256,y=0,width=64,height=64,}, -- frame 5
{x=320,y=0,width=64,height=64,}, -- frame 6 ... | nilq/small-lua-stack | null |
local util = {}
local nord = require('nord.theme')
-- Go trough the table and highlight the group with the color values
util.highlight = function (group, color)
local style = color.style and "gui=" .. color.style or "gui=NONE"
local fg = color.fg and "guifg=" .. color.fg or "guifg=NONE"
local bg = color.bg and "... | nilq/small-lua-stack | null |
----------------------------------------------------------------------
--
-- Deep Genetic Programming: Reifying an AI researcher.
--
-- Main script file
-- * Parsing options
-- * Loading datas
-- * Initializing
-- * Launching
--
----------------------------------------------------------------------
-------... | nilq/small-lua-stack | null |
AngryKeystones_Config = {
["__version"] = 1,
["announceKeystones"] = true,
["resetPopup"] = true,
["silverGoldTimer"] = true,
}
AngryKeystones_Data = {
["state"] = {
["playerDeaths"] = {
},
},
["splits"] = {
},
["progress"] = {
[127482] = {
[4] = 27,
},
[131670] = {
[6] = 8,
},
[129602] = ... | nilq/small-lua-stack | null |
local function nicename( word )
local ret = word:lower()
if ret == "normal" then return "number" end
return ret
end
local function checkFuncName( self, funcname )
if self.funcs[funcname] then
return self.funcs[funcname], self.funcs_ret[funcname]
elseif wire_expression2_funcs[funcname] then
return wire_express... | nilq/small-lua-stack | null |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
__is_kind_of = "XTextButton",
group = "CCC",
id = "CommandCenterButton",
PlaceObj('XTemplateWindow', {
'__class', "XToggleButton",
'RolloverTemplate', "Rollover",
'RolloverAnchor', "right",
'Padding', box(12, 12, 12, ... | nilq/small-lua-stack | null |
---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2019, Enric Morales <me@enric.me>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
-- * (c) 2009, Rémy C. <shikamaru@mandriva.org>
-- * (c) 2009, Benedikt Sauer <filmor@gmail.com>
-- * (c) 2009, Henning Gl... | nilq/small-lua-stack | null |
-- it'd probably be a good idea to look into why this is happening in the first place
-- it seems like a fairly recent issue, but i'm not 100% positive
hook.Add("AcceptInput", "ElevatorSoundsFix", function(ent, name, activator, caller, data)
if (ent:GetName() == "tt_elevator") then
if (name == "SetPosition... | nilq/small-lua-stack | null |
print("project13b")
dofile("lib-STEPPER.lua")
dofile("lib-GPIO28.lua")
--[[
Stepper1 on pins 4-7 simply runs 100 steps forward and stops.
Stepper on slow pins 15-18 firstly does a "calibration run" backwards until
limit switch (D3 flash button) is operated.
Then it moves forward 200 steps in double steps.
Its posn ... | nilq/small-lua-stack | null |
local NONE = newproxy(true)
return {
Dictionary = {
join = function(...)
local new = {}
for i = 1, select("#", ...) do
local t = select(i, ...)
for k, v in pairs(t) do
if v ~= NONE then
new[k] = v
... | nilq/small-lua-stack | null |
local State = require('vendor.state')
local Mapper = require('mapper')
local Controller = require('controller')
local Resource = require('resource')
local Config = require('config_store')
local Display = require('display')
local mapper
local controller
local user_config
local default_font = love.graphics.newFont(11... | nilq/small-lua-stack | null |
--Kaeza's Internationalization Library support
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
-- If you don't use insertions (@1, @2, etc) you can use this:
S = function(s) return s end
end
--Akai ki
--Miki
mi... | nilq/small-lua-stack | null |
chatCommands.lootbox = {
permissions = {'admin'},
event = function(player)
local x = random(0, 12000)
addLootDrop(x, 7200, 20)
for i, v in next, ROOM.playerList do
movePlayer(i, x, 7600, false)
end
end
} | nilq/small-lua-stack | null |
SERVER = {
GATE = 1,
DB = 2,
LOGIN = 3,
HALL = 4,
GAME = 5,
} | nilq/small-lua-stack | null |
object_tangible_loot_generic_usable_sphere_grenade_generic = object_tangible_loot_generic_usable_shared_sphere_grenade_generic:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_generic_usable_sphere_grenade_generic, "object/tangible/loot/generic/usable/sphere_grenade_generic.iff")
| nilq/small-lua-stack | null |
local sprite = app.open(app.params["filename"])
local startFrame = tonumber(app.params["startFrame"])
local endFrame = tonumber(app.params["endFrame"])
local scale = tonumber(app.params["scale"])
for _, layer in ipairs(sprite.layers) do
if layer.name == "HURTMASK" or layer.name == "HURTBOX" then
app.range... | nilq/small-lua-stack | null |
local _, private = ...
--[[ Lua Globals ]]
-- luacheck: globals
--[[ Core ]]
local F = _G.unpack(private.Aurora)
local Skin = private.Aurora.Skin
-- /run TradeFrame_OnEvent(TradeFrame, "TRADE_SHOW")
function private.FrameXML.TradeFrame()
local function SkinHighlightFrames(user)
local name = "TradeHighlig... | nilq/small-lua-stack | null |
-----------------------------------------
-- ID: 5492
-- Blue Mage Die
-- Teaches the job ability Magus's Roll
-----------------------------------------
function onItemCheck(target)
return target:canLearnAbility(tpz.jobAbility.MAGUSS_ROLL)
end
function onItemUse(target)
target:addLearnedAbility(tpz.jobAbility... | nilq/small-lua-stack | null |
-- dont unncessarily load
if PREFSMAN:GetPreference("EnableMinidumpUpload") then return Def.ActorFrame {} end
if not PREFSMAN:GetPreference("ShowMinidumpUploadDialogue") then return Def.ActorFrame {} end
local enabled = true
local textsize = 0.7
local boxw = SCREEN_WIDTH/1.5
local boxh = SCREEN_HEIGHT/3.3
local buffer... | nilq/small-lua-stack | null |
--
-- OSCInput
--
local OSCInput = sky.InputBase:extend()
OSCInput.OSC_EVENT = 'OSC'
local SingletonInput = nil
function OSCInput:new(props)
OSCInput.super.new(self, props)
-- overwrite global callback
osc.event = function(...) self:on_osc_in(...) end
end
function OSCInput:on_osc_in(path, args, from)
if self... | nilq/small-lua-stack | null |
local help_message = [[
This is a module file for the container quay.io/biocontainers/ecopy:0.1.2.2--py27h470a237_1, which exposes the
following programs:
- .dbus-post-link.sh
- assistant
- cygdb
- cython
- cythonize
- dbus-launch
- designer
- fixqt4headers.pl
- gst-device-monitor-1.0
- gst-discoverer-1.0
-... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2013 Aerys
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, merge, publish, distribute,
sublice... | nilq/small-lua-stack | null |
-- Fallback Font Library
-- Code written by Daniel Oaks, this file is released into the public domain.
local FbFonts = {}
FbFonts.__index = FbFonts
-- hack to let us relative import libs in current folder
-- from http://stackoverflow.com/questions/9145432/load-lua-files-by-relative-path
local folderOfThisFile = (...... | nilq/small-lua-stack | null |
return {
{
shipInfoScene = {
equip = {
{
number = 25,
check_type = {
2
},
check_indexList = {
3
},
label = {
"MG"
}
}
}
}
},
{
shipInfoScene = {
equip = {
{
number = 27.2,
check_type = {
2
},
check_indexList = {... | nilq/small-lua-stack | null |
local gauntlet_data = require "gauntlet_data"
local deepcopy = require "deepcopy"
local TimeHunter = {
NAME = "Time Hunter",
}
local CUST_BUFF_PER_FRAME = 0.1
local CUST_NERF_PER_FRAME = -0.05
function TimeHunter:activate(current_round)
gauntlet_data.custgauge_per_enemy_count[1] = gauntlet_data.custgauge_pe... | nilq/small-lua-stack | null |
--====================================================================--
-- dmc_navigator.lua
--
--
-- by David McCuskey
-- Documentation:
--====================================================================--
--[[
Copyright (C) 2013-2014 David McCuskey. All Rights Reserved.
Permission is hereby granted, free of c... | nilq/small-lua-stack | null |
-- contains budget logic
budget = {}
budget = {
name = "",
transactions = {}, -- list of all transactions in budget. subdivided by months
transaction_tags = { "new", "savings", "income" }, -- list of tags for transactions
fixed_expenses = {}, -- list of all fixed expenses. in the form o... | nilq/small-lua-stack | null |
local m = class({})
-- 在控制台区域输出
function m.say(msg) GameRules:SendCustomMessage(tostring(msg), 0, 0) end
-- 模仿官方的错误消息提示
-- 默认为红色,如果需要其他颜色,需要用字符串传递颜色代码
-- 默认为没有魔法的声音,如果需要其他报错声音,需要传递报错声音的字符串
function m.bottom(msg, id, color, sound)
if id == nil then
CustomGameEventManager:Send_ServerToAllClients(
... | nilq/small-lua-stack | null |
-- This software is licensed under the M.I.T. license.
-- The license text is found in "license.txt"
--
-- Token.lua
--
-- Tokens, which are unevaluated atoms, list delimiters or special
-- operators
--
Token = {}
function Token.newString(str)
return { .token="STR", .lexeme=str }
end
function Toke... | nilq/small-lua-stack | null |
--!A cross-platform 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 Apach... | nilq/small-lua-stack | null |
function min(x, y)
if x < y then
return x
else
return y
end
end
function max(x, y)
if x > y then
return x
else
return y
end
end
function clamp(val, min_val, max_val)
return max(min_val, min(val, max_val))
end | nilq/small-lua-stack | null |
--
-- (C) 2013 Kriss@XIXs.com
--
local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,str... | nilq/small-lua-stack | null |
function AdminLoungeTeleport(sourcePlayer)
if (exports.global:isPlayerAdmin(sourcePlayer)) then
setElementPosition ( sourcePlayer, 275.761475, -2052.245605, 3085.291962 )
end
end
addCommandHandler("adminlounge", AdminLoungeTeleport) | nilq/small-lua-stack | null |
function tLength(t)
local l = 0
for k,v in pairs(t)do
l = l + 1
end
return l
end
db = {}
RegisterServerEvent('db:updateUser')
AddEventHandler('db:updateUser', function(new)
identifier = GetPlayerIdentifier(source, 0)
db.updateUser(identifier, new)
end)
function db.updateUser(identifier, new, callback)
local... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Port Windurst
-- NPC: Mojo-Pojo
-- Type: Standard NPC
-- !pos -108.041 -4.25 109.545 240
-----------------------------------
require("scripts/globals/npc_util")
require("scripts/globals/settings")
require("scripts/globals/magic")
-----------------------------------
functi... | nilq/small-lua-stack | null |
--[=[
Torso resources for IK
@class TorsoIKBase
]=]
local require = require(script.Parent.loader).load(script)
local AccelTween = require("AccelTween")
local TorsoIKUtils = require("TorsoIKUtils")
local Signal = require("Signal")
local BaseObject = require("BaseObject")
local IKResource = require("IKResource")
loca... | nilq/small-lua-stack | null |
--
-- Generated from str.lt
--
local bit = require("bit")
local split = function(str, pattern, plain)
local arr = {}
if pattern and #pattern > 0 then
local pos = 1
for st, sp in function()
return string.find(str, pattern, pos, plain)
end do
table.insert(arr, strin... | nilq/small-lua-stack | null |
-- TODO: fix this
-- c.getSession().write(MaplePacketCreator.enableActions()); | nilq/small-lua-stack | null |
-- Copyright 2016 Mirantis, Inc.
--
-- 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 agreed to ... | nilq/small-lua-stack | null |
hs.hotkey.bind(hypershift, "l", function ()
hs.caffeinate.lockScreen()
end) | nilq/small-lua-stack | null |
--- CFrameOffsetInstance
--
local t = require(script.Parent.t)
local CFrameInstance = require(script.Parent.CFrameInstance)
local GetCFrameInstance = CFrameInstance.Get
local CFrameOffsetInstance = {}
CFrameOffsetInstance.IsInstanceData = t.union(
CFrameInstance.Check,
t.every(
t.instanceOf("Folder"),
t.childr... | nilq/small-lua-stack | null |
-- Global farming namespace
farming = {}
farming.path = minetest.get_modpath("farming")
-- Load files
dofile(farming.path .. "/api.lua")
dofile(farming.path .. "/nodes.lua")
dofile(farming.path .. "/hoes.lua")
-- WHEAT
farming.register_plant("farming:wheat", {
description = "Wheat seed",
paramtype2 = "meshoptions",... | nilq/small-lua-stack | null |
u_execScript("common.lua")
u_execScript("commonpatterns.lua")
u_execScript("utils.lua")
u_execScript("alternativepatterns.lua")
u_execScript("nextpatterns.lua")
u_execScript("evolutionpatterns.lua")
flip = 1
function rollingShutter(mSide, mCurve, mCurveAcc, mCurveMin, mCurveMax, mCurvePingPong, length)
for i = 0, le... | nilq/small-lua-stack | null |
local PLUGIN = PLUGIN
AddCSLuaFile()
ENT.Type = "anim"
ENT.PrintName = "Notice Board"
ENT.Category = "Helix"
ENT.Spawnable = true
ENT.AdminOnly = true
if (SERVER) then
function ENT:Initialize()
self:SetModel("models/hunter/plates/plate1x2.mdl")
self:SetSolid(SOLID_VPHYSICS)
self:PhysicsInit(SOLID_VPHYSICS)
s... | nilq/small-lua-stack | null |
local _0_0
do
local name_0_ = "conjure.net"
local module_0_
do
local x_0_ = package.loaded[name_0_]
if ("table" == type(x_0_)) then
module_0_ = x_0_
else
module_0_ = {}
end
end
module_0_["aniseed/module"] = name_0_
module_0_["aniseed/locals"] = ((module_0_)["aniseed/locals"] or {... | nilq/small-lua-stack | null |
--[[--------------------------------------------------------------------------
--
-- File: UACapture.Ui.RoundLoop.lua
-- Copyright (c) Ubisoft Entertainment. All rights reserved.
--
-- Project: Ubitoys.Tag
-- Date: November 25, 2010
--
---------------------------... | nilq/small-lua-stack | null |
------------------------------------------------------
-- Makes a single songbook from a directory of tunes. Tunes
-- are sorted in alphabetic order of title. Duplicate reference numbers are fixed
------------------------------------------------------
require "abclua"
require "lfs"
function dirtree(dir)
-- ... | nilq/small-lua-stack | null |
local _M = {}
local function _StrIsEmpty(s)
return s == nil or s == ''
end
local function _UploadUserId(req_id, post, carrier)
local GenericObjectPool = require "GenericObjectPool"
local UserServiceClient = require 'media_service_UserService'
local user_client = GenericObjectPool:connection(
UserServiceCl... | nilq/small-lua-stack | null |
return {
name = "openwhisk",
fields = {
{
config = {
type = "record",
fields = {
{ timeout = { type = "integer", default = 60000 } },
{ keepalive = { type = "integer", default = 60000 } },
{ service_token = { type = "string" } }... | nilq/small-lua-stack | null |
--[[
Copyright © 2020 Cloud Sixteen
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, merge, pu... | nilq/small-lua-stack | null |
-- preferences
function init_prefs()
local prefs = renoise.Document.create("ScriptingToolPreferences") {
-- default values
hostname = "192.168.3.24",
client_port_ctrl = 8004,
client_port_notes = 8005,
server_port_notes = 8006,
autostart = true
}
-- assig... | nilq/small-lua-stack | null |
---@class CS.UnityEngine.Grid : CS.UnityEngine.GridLayout
---@field public cellSize CS.UnityEngine.Vector3
---@field public cellGap CS.UnityEngine.Vector3
---@field public cellLayout number
---@field public cellSwizzle number
---@type CS.UnityEngine.Grid
CS.UnityEngine.Grid = { }
---@return CS.UnityEngine.Grid
functio... | nilq/small-lua-stack | null |
ITEM.name = "9x21mm"
ITEM.model = "models/Items/BoxSRounds.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.ammo = "9x21MM"
ITEM.description = "A Box that contains 9x21mm"
ITEM.category = "Ammunition"
ITEM.ammoAmount = 150
ITEM.isAmmo = true
ITEM.ammoPerBox = 50
ITEM.price = 175
ITEM.weight = 0.044 | nilq/small-lua-stack | null |
-- waf core lib
require "config"
-- Get the client IP
function get_client_ip()
local CLIENT_IP = ngx.req.get_headers(0)["X_real_ip"]
if CLIENT_IP == nil then
CLIENT_IP = ngx.req.get_headers(0)["X_Forwarded_For"]
end
if CLIENT_IP == nil then
CLIENT_IP = ngx.var.remote_addr
end
i... | nilq/small-lua-stack | null |
--lockpicks v0.8 by HeroOfTheWinds
--Adds a variety of lockpicks and redefines most locked objects to allow them to be 'picked' and unlocked.
local breakexp = .66 --exponent for tools to determine
--lockpick definitions
minetest.register_tool("lockpicks:lockpick_wood", {
description="Wooden Lockpick",
inventory_im... | nilq/small-lua-stack | null |
local t = {}
do_work(t)
if not t.x then
t.x = f()
end
| nilq/small-lua-stack | null |
require('Utilities')
function Client_PresentMenuUI(rootParent, setMaxSize, setScrollable, game, close)
if (not WL.IsVersionOrHigher or not WL.IsVersionOrHigher("5.17")) then
UI.Alert("You must update your app to the latest version to use the Build Fort mod");
return;
end
Game = game;
Close = close;
setMax... | nilq/small-lua-stack | null |
-- Import libraries
local GUI = require("GUI")
local system = require("System")
local paths = require("Paths")
local com = require("Component")
local event = require("event")
local fs = require("Filesystem")
local internet = require("Internet")
local wait = event.sleep
-- OCHammer2.app
-- Copyright (c) 2022-2022 ocb... | nilq/small-lua-stack | null |
local Players = game:GetService("Players")
local plr = Players.LocalPlayer
local pscripts = plr:WaitForChild("PlayerScripts")
local pgui = plr:WaitForChild("PlayerGui")
local ClientPack = script:WaitForChild("ClientPack")
ClientPack.GRPeeStarterPlayer.Disabled = false
if not pscripts:FindFirstChild("GRPeeStarterPlaye... | nilq/small-lua-stack | null |
cc.FileUtils:getInstance():setPopupNotify(false)
require "config"
require "cocos.init"
-- cclog
cclog = function(...)
print(string.format(...))
end
-- for CCLuaEngine traceback
function __G__TRACKBACK__(msg)
cclog("----------------------------------------")
cclog("LUA ERROR: " .. tostring(msg) .. "\n")
... | nilq/small-lua-stack | null |
local ws = require "websocket"
function run(id)
local err, conn = ws:open("ws://localhost:9100")()
assert(err == nil)
local err = conn:write("hello world") ()
assert(err == nil)
local err, message = conn:read()()
assert(err == nil)
print(message:string())
assert(message:string() == "y... | nilq/small-lua-stack | null |
local BestInSlot = LibStub("AceAddon-3.0"):GetAddon("BestInSlot")
local LegionLegendaries = BestInSlot:NewModule("LegionLegendaries")
function LegionLegendaries:InitializeZoneDetect(ZoneDetect) end --surpress error
local bonusIds = {
bonusids = {
[1] = {3571},
[2] = {3571},
[3] = {3571}
},
}
fun... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Port Windurst
-- NPC: Ohruru
-- Starts & Finishes Repeatable Quest: Catch me if you can
-- Involved in Quest: Wonder Wands
-- Note: Animation for his "Cure" is not functioning. Unable to capture option 1, so if the user says no, he heals them anyways.
-- !pos -108 -5 94 240... | nilq/small-lua-stack | null |
----------------------------------------------------------------------------------------------------
-- Simple example RPGMap.
--
----------------------------------------------------------------------------------------------------
-- module
local M = {}
-- import
local flower = require "flower"
local tiled = require ... | nilq/small-lua-stack | null |
--local res=httpevent.response
--local req=httpevent.request
--local route_data=httpevent.ROUTE
--local config_data = httpevent.CONFIG
--local form_tool= httpevent.form_tool
--local cookie_tool= httpevent.cookie_tool
--local session_tool = httpevent.session_tool
--local util_tool = httpevent.util_tool
xpcall(
functi... | nilq/small-lua-stack | null |
if InTeam(53) == true then goto label0 end;
do return end;
::label0::
if JudgeScenePic(-2, 2, 6298, 1, 0) then goto label1 end;
do return end;
::label1::
Talk(53, "兄弟,我决定要留下来陪神仙姊姊,服侍她.你自己走吧.", "talkname53", 1);
Talk(0, "段兄,这王姑娘不是你的神仙姊姊,更何况人家喜欢的是她表哥,别自作多情了.", "talkname0", 1);
Talk... | 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.