content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
VBLANG.Language.French = {
["grocery_stop_being_cook"] = "Stop Being A Cook",
["grocery_become_cook"] = "Become a Cook",
["grocery_hello"] = "Hello!",
["grocery_buy_ingredients"] = "Buy ingredients",
["grocery_quit"] = "Leave",
["pol_wep_arm_... | nilq/small-lua-stack | null |
-- Autogenerated from KST: please remove this line if doing any edits by hand!
local luaunit = require("luaunit")
require("expr_io_pos")
TestExprIoPos = {}
function TestExprIoPos:test_expr_io_pos()
local r = ExprIoPos:from_file("src/expr_io_pos.bin")
luaunit.assertEquals(r.substream1.my_str, "CURIOSITY")
... | nilq/small-lua-stack | null |
local m = string.match
local gsub = string.gsub
local f = string.find
--[[
MOVE LISTS ORDER
1. Level Up
2. TM/HM
3. Egg
4. Tutor
5.Mega/Forme/Nonsense (NOT MOVE LIVES BUT NEED FILTERING)
]]
local movesLog = logger('movesLog.txt')
local total, numTutor = 0, 0
local noTutor = {}
-- 3-byte sequence used to d... | nilq/small-lua-stack | null |
help(
[[
This module loads Udunits 2.2.17
The UDUNITS package supports units of physical quantities. Its C library
provides for arithmetic manipulation of units and for conversion of numeric
values between compatible units.
]])
whatis("Loads Udunits binaries and libraries")
local version = "2.2.17"
local base = "/cv... | nilq/small-lua-stack | null |
local KeyConfigScene = Scene:extend()
KeyConfigScene.title = "Key Config"
require 'load.save'
local configurable_inputs = {
"menu_decide",
"menu_back",
"left",
"right",
"up",
"down",
"rotate_left",
"rotate_left2",
"rotate_right",
"rotate_right2",
"rotate_180",
"hold",
"retry",
"pause",
}
local functio... | nilq/small-lua-stack | null |
local M = {}
M.__index = M
--- Build components dynamically.
--- @param create_component function: |stlparts.nvim-types-component|
--- @return table: |stlparts.nvim-types-component|
function M.new(create_component)
local tbl = {
_create_component = create_component,
}
return setmetatable(tbl, M)
end
local g... | nilq/small-lua-stack | null |
class("AboutSidebar").extends(Sidebar)
function AboutSidebar:init()
AboutSidebar.super.init(self)
end
function AboutSidebar:enter(context, selected)
local config = {
menuItems = {
{
text = "Show info",
exec = function()
closeSidebar()
end
}
}
}
AboutSidebar.super.enter(self, context, c... | nilq/small-lua-stack | null |
data:extend({
{
type = "item",
name = "long-range-radar",
icon = "__Long_Range_Radar__/graphics/item_icon_advanced_radar.png",
icon_size = 64, icon_mipmaps = 4,
subgroup = "defensive-structure",
order = "z[radar]-a[radar]",
place_result = "long-range-radar",
stack_size = 10
}
}) | nilq/small-lua-stack | null |
resource_manifest_version '05cfa83c-a124-4cfa-a768-c24a5811d8f9'
client_scripts {
"@es_extended/locale.lua",
"clienten.lua",
'@mysql-async/lib/MySQL.lua'
}
server_scripts {
"server.lua",
'@es_extended/locale.lua',
'@mysql-async/lib/MySQL.lua'
} | nilq/small-lua-stack | null |
-- If you're not sure your plugin is executing, uncomment the line below and restart Kong
-- then it will throw an error which indicates the plugin is being loaded at least.
--assert(ngx.get_phase() == "timer", "The world is coming to an end!")
-- Grab pluginname from module name
local plugin_name = ({...})[1]:match... | nilq/small-lua-stack | null |
require("gameBase/gameSocket");
require("hall/onlineSocket/globalSocketCmd");
require("hall/php/phpSocketCmd");
require("hall/php/phpManager");
require("hall/onlineSocket/socketReconnectLogic");
require("common/socketHandlersStack");
OnlineSocketManager = class(GameSocket);
SocketStatus = {
None = 0;... | nilq/small-lua-stack | null |
local console_monitor = core.monitor(core.LOG, core.INFO, core.FMT_TEXT)
console_monitor:name("console.monitor")
console_monitor:tail(1024)
local console_dispatcher = core.dispatcher(core.EVENTQ)
console_dispatcher:name("console.dispatcher")
console_dispatcher:attach(console_monitor, "eventrec")
console_dispatcher:run... | nilq/small-lua-stack | null |
--# Monster converted using Devm monster converter #--
local mType = Game.createMonsterType("Behemoth")
local monster = {}
monster.description = "a behemoth"
monster.experience = 2500
monster.outfit = {
lookType = 55,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monst... | nilq/small-lua-stack | null |
--[[
desc: Drawable, a Renderer's practice. Be used for drawing some resource.
author: Musoucrow
since: 2018-4-26
alter: 2019-9-17
]]--
local _Renderer = require("graphics.renderer.init")
---@class Graphics.Drawable
---@field protected _upperEvent event
---@field protected _event event
---@field protected _render... | nilq/small-lua-stack | null |
function onCreate()
makeLuaSprite("beatbox bg","beatbox bg",-500,-100)
addLuaSprite("beatbox bg",false)
setLuaSpriteScrollFactor("beatbox bg",0.6,0.6)
setProperty('gfGroup.visible', false)
end | nilq/small-lua-stack | null |
local servers = {
"angularls",
"bashls",
"clangd",
"clojure_lsp",
"cmake",
"cssls",
"dockerls",
"elixirls",
"elmls",
"emmet_ls",
"fsautocomplete",
"hls",
"html",
"jsonls",
"kotlin_language_server",
"omnisharp",
"purescriptls",
"pyright",
"rust_... | nilq/small-lua-stack | null |
local random = require 'lqc.random'
local char = require 'lqc.generators.char'
local r = require 'lqc.report'
local property = require 'lqc.property'
local lqc = require 'lqc.quickcheck'
local lowest_ascii_value = 32
local highest_ascii_value = 126
local lowest_ascii_char = string.char(lowest_ascii_value)
local funct... | nilq/small-lua-stack | null |
print("I'm inside a module!")
| nilq/small-lua-stack | null |
/*---------------------------------------------------------------------------
Expression Advanced: Editor.
Purpose: Make the fancy EA editor.
Author: Oskar
---------------------------------------------------------------------------*/
local EA = LEMON
EA.Editor = {}
local Editor = EA.Editor
require( "vector2" )
/*... | nilq/small-lua-stack | null |
-- The engine Visual Studio project
project "Foundation"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime "on"
-- Binaries and Intermediate folders
targetdir ("%{wks.location}/Binaries/" .. outputdir .. "/%{prj.name}")
objdir ("%{wks.location}/Intermediate/" .. outputdir .. "/%{prj.name}")
-- ... | nilq/small-lua-stack | null |
local meta = FindMetaTable("Player")
if not meta then return end
function meta:EndState(nocallended)
if self == MySelf then
self:SetState(STATE_NONE, nil, nil, nocallended)
end
end
| nilq/small-lua-stack | null |
local mod = DBM:NewMod(1433, "DBM-HellfireCitadel", nil, 669)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 14938 $"):sub(12, -3))
mod:SetCreatureID(90316)
mod:SetEncounterID(1788)
mod:DisableESCombatDetection()--Remove if blizz fixes trash firing ENCOUNTER_START
mod:SetMinSyncRevision(13887... | nilq/small-lua-stack | null |
-- Documentation: http://nodemcu.readthedocs.io/en/master/
-- Tutorial: https://github.com/hackhitchin/esp8266-co-uk/blob/master/tutorials/introduction-to-gpio-api.md
-- Most of this will be like arduino
-- I will coment when something is different
pinLed1 = 3
pinButton1 = 1
-- GPIO stands for General Purpose Input/O... | nilq/small-lua-stack | null |
local _, ns = ...
local select = select
local tostring = tostring
local concat = table.concat
local f
-- [[ The Copy Window ]] --
local function CreateCopyFrame()
f = CreateFrame('Frame', "AbuCopyChatFrame", UIParent)
f:SetHeight(220)
f:SetBackdropColor(0, 0, 0, 1)
f:SetPoint('BOTTOMLEFT', ChatFram... | nilq/small-lua-stack | null |
ValueSquare = Object:extend()
function ValueSquare:new()
self.valueVertices = {}
for _ = 1, 4 do
self:addVertex(0, 0, 0)
end
end
function ValueSquare:addVertex(value, x, y)
local valueVertex = {
value = value,
x = x,
y = y
}
table.insert(self.valueVertices, valueVertex)
end
function ValueSquare:replace... | nilq/small-lua-stack | null |
Inherit = 'PageView'
OnNext = function(self)
for k, v in pairs(self.Bedrock.SettingsValues) do
self.Bedrock.Settings[k] = v
end
System.AnimateShutdown(true, true)
end | nilq/small-lua-stack | null |
local AddonName, Addon = ...
local string = string
local strsplit = strsplit
local tonumber = tonumber
local UnitGUID = UnitGUID
local GetItemInfo = GetItemInfo
Addon.Frames = {}
Addon.Functions = {}
Addon.Util = {}
Addon.Events = CreateFrame("Frame")
Addon.Events:SetScript("OnEvent", function(self, event, ...)
if ... | nilq/small-lua-stack | null |
--- libdas: DENG asset management library
--- licence: Apache, see LICENCE file
--- file: libdas.lua - libdas library build configuration
--- author: Karl-Mihkel Ott
local Libdas = {}
function Libdas.build()
project "das"
kind "SharedLib"
language "C++"
cppdialect "C++17"
... | nilq/small-lua-stack | null |
local config = dofile 'ffvii-config.lua'
dofile 'ffvii-util.lua'
local MATERIA_REVIVE = 0x37
local function getCharacterWithRevive(game_context)
for party_index = 0,2 do
local character_index = game_context.party[party_index].id
for materia_index = 0,15 do
if mainmemory.read_u8(0x09C738 + (character_i... | nilq/small-lua-stack | null |
local app = app
local libcore = require "core.libcore"
local Env = require "Env"
local Class = require "Base.Class"
local ViewControl = require "Unit.ViewControl"
local Scales = require "core.Quantizer.Scales"
local ply = app.SECTION_PLY
local PitchCircle = Class {}
PitchCircle:include(ViewControl)
functio... | nilq/small-lua-stack | null |
local taskContinueTip = require(ViewPath.."hall/task/taskContinueTip");
require("hall/recharge/data/rechargeDataInterface");
TaskContinueTip = class(CommonGameLayer,false);
TaskContinueTip.s_controls=
{
root = 0;
subView = 1;
bg = 2;
numText = 3;
nameText = 4;
rewardImage = 5;
okBtn = 6;
closeBt... | nilq/small-lua-stack | null |
-- Minetest 0.4 mod: vessels
-- See README.txt for licensing and other information.
minetest.register_node("vessels:glass_bottle", {
description = "Glass Bottle (empty)",
drawtype = "plantlike",
tiles = {"vessels_glass_bottle.png"},
inventory_image = "vessels_glass_bottle_inv.png",
wield_image = "vessels_glass_bo... | 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 |
function normal(shader, t_base, t_second, t_detail)
shader:begin ("combine_1", "combine_volumetric")
: fog (false)
: zb (false, false)
: blend (true, blend.one, blend.one)
-- : aref (true, 0) -- enable to save bandwith?
: sorting (2, false)
shader:sampler ("s_vollight") :texture("$user$volumetric")
s... | nilq/small-lua-stack | null |
require "/lib/stardust/sync.lua"
function init()
sync.poll("getInfo", onRecvInfo)
widget.focus("filter")
end
function update()
sync.runQueue()
end
function onRecvInfo(rpc)
if rpc:succeeded() then
local res = rpc:result()
widget.setText("filter", res.filter)
widget.setText("priority", res.priority... | nilq/small-lua-stack | null |
-- AutoTouchPlus installation script, simply run to install AutoTouchPlus!
-- TODO: Download from releases instead of from GitHub raw content
-- You can change the version below to download another version if you want.
-----------------------------------------
-- AUTOTOUCHPLUS_VERSION = '0.4.0'
-----------------------... | nilq/small-lua-stack | null |
local M = {}
local filter = require "make4ht-filter"
local mkutils = require "mkutils"
local log = logging.new "staticsite"
-- get the published file name
local function get_slug(settings)
local published_name = mkutils.remove_extension(settings.tex_file) .. ".published"
local config = get_filter_settings "statics... | nilq/small-lua-stack | null |
local BaseGroup = {}
-- BaseGroup.metatable = {__index = BaseGroup}
function BaseGroup:new(player)
local group =
{
player = player,
surface = true,
group_members = {},
group_position = {x = 0, y = 0},
created_tick = game.tick,
last_update_tick = 0... | nilq/small-lua-stack | null |
-- tools tab
setDefaultTab("bot")
-- Locals
local boosterId = 17012
-- allows to test/edit bot lua scripts ingame, you can have multiple scripts like this, just change storage.ingame_lua
UI.Separator()
UI.Button("Ingame macro editor", function(newText)
UI.MultilineEditorWindow(storage.ingame_macros_bot or "", {tit... | nilq/small-lua-stack | null |
object_tangible_food_generic_drink_gralinyn_juice = object_tangible_food_generic_shared_drink_gralinyn_juice:new {
}
ObjectTemplates:addTemplate(object_tangible_food_generic_drink_gralinyn_juice, "object/tangible/food/generic/drink_gralinyn_juice.iff")
| nilq/small-lua-stack | null |
object_mobile_boba_fett_eow = object_mobile_shared_boba_fett_eow:new {
}
ObjectTemplates:addTemplate(object_mobile_boba_fett_eow, "object/mobile/boba_fett_eow.iff")
| nilq/small-lua-stack | null |
--Some SE functions (Also keep track of AE ADDITION s)
local function twistdirection(gravitydir, dir) --mario.lua
if not gravitydir or (gravitydir > math.pi/4*1 and gravitydir <= math.pi/4*3) then
if dir == "floor" then
return "floor"
elseif dir == "left" then
return "left"
elseif dir == "ceil" then
ret... | nilq/small-lua-stack | null |
lines = {}
for line in io.lines() do
table.insert(lines, line) -- add the line to the list of lines
end
| nilq/small-lua-stack | null |
function createIndexIfNil(t, i, v)
if not (type(i)=="nil") then
if (type(t[i])=="nil") then
t[i] = v or {}
end
end
end | nilq/small-lua-stack | null |
addEvent("race_loadVehicleData", true)
addEvent("race_saveVehicleData", true)
addEvent("race_removeVehicleData", true)
addEvent("onClientMapStopping")
local g_Stack = {}
local function loadVehData(remove)
--outputDebugString("loadVehData "..tostring(remove).." "..#g_Stack, 3)
local veh = source
local ... | nilq/small-lua-stack | null |
--[[
TheNexusAvenger
Runs the game.
--]]
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptServiceProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ServerScriptService"))
--Create the folders.
local GameState = Insta... | nilq/small-lua-stack | null |
function get_value(e, p, data,
default)
if data == nil then
return default or 0
elseif type(data) == "function" then
return data(e, p)
elseif type(data) == "number" then
return data
elseif data.x != nil then
return data:copy()
elseif type(data.min) == "number" then
return rnd_float(
... | nilq/small-lua-stack | null |
-- Tests for 'directory' option.
-- - ".", in same dir as file
-- - "./dir", in directory relative to file
-- - "dir", in directory relative to current dir
local helpers = require('test.functional.helpers')(after_each)
local lfs = require('lfs')
local insert, eq = helpers.insert, helpers.eq... | nilq/small-lua-stack | null |
-- {{{ Tags
--
-- Only 12 keys will be used for tags (keyboard order). Tags are
-- indexed in top-row natural keyboard order [1,2,3,...,0,'-',=']. This
-- indexing corresponds to the alt+-prefixed keybindings they receive
-- elsewhere and gives a pretty good reasonable total of 12 tags per
-- screen. That extends t... | nilq/small-lua-stack | null |
local Bezier = require(script.Parent.Bezier)
local function RevBack(T)
T = 1 - T
return 1 - (math.sin(T * 1.5707963267949) + (math.sin(T * 3.1415926535898) * (math.cos(T * 3.1415926535898) + 1) / 2))
end
local function Linear(T)
return T
end
-- @specs https://material.io/guidelines/motion/duration-easing.html#dur... | nilq/small-lua-stack | null |
--[[
字体管理器
--]]
local THIS_MODULE = ...
-- 模块名
local C_MODULE_NAME = "__Font__"
-- 注册模块元数据配置
metaMgr:registerModule(C_MODULE_NAME, "src/fonts/", "res/fonts/")
local FontManager = class("FontManager")
-- 获得单例对象
local instance = nil
function FontManager:getInstance()
if instance == nil then
instance = FontManager... | nilq/small-lua-stack | null |
local utils = require 'utils'
local nmap = utils.nmap
local nmap_silent = utils.nmap_silent
local fs = {}
function fs.plugins(use)
-- use 'junegunn/fzf'
-- use 'junegunn/fzf.vim'
use 'djoshea/vim-autoread'
use { 'kyazdani42/nvim-tree.lua', commit = '71122d798482e30c599d78aa7ae4a756c6e81a79' }
use {
'nvi... | nilq/small-lua-stack | null |
return function(a, GenerateFluff, useTD)
GenerateFluff = GenerateFluff or function() return "" end
local a2 = ""
math.randomseed(os and os.time() or tick())
local __X = math.random()
a2 = [[ math.randomseed(]] .. __X .. [[)
local ____
____ = { function(...) local t = { ...} return ____[8](t) end, pr... | nilq/small-lua-stack | null |
--
-- Created by IntelliJ IDEA.
-- User: apatterson
-- Date: 6/28/18
-- Time: 7:44 PM
-- To change this template use File | Settings | File Templates.
--
local keyStroke = hs.eventtap.keyStroke
function logDefault()
print('default')
end
function pressReturn()
keyStroke({}, "return")
end
function pressShiftR... | nilq/small-lua-stack | null |
class "sTuner"
function sTuner:__init()
Events:Subscribe( "PlayerJoin", self, self.PlayerJoin )
for p in Server:GetPlayers() do
if p:GetValue( "NeonColor" ) then
if p:GetValue( "NeonColor" ) == p:GetColor() then
p:SetNetworkValue( "NeonColor", p:GetColor() )
end
end
end
Network:Subscri... | nilq/small-lua-stack | null |
local load_module = require('utils.helpers').load_module
local trouble = load_module 'trouble'
if trouble == nil then
return false
end
local nvim = require 'neovim'
local get_icon = require('utils.helpers').get_icon
local has_devicon = pcall(require, 'nvim-web-devicons')
trouble.setup {
position = 'bottom',
... | nilq/small-lua-stack | null |
-- https://github.com/itinero/routing/blob/develop/samples/Sample.Shape/car.lua
-- car globals
name = "nwb.car"
-- whitelists for profile and meta
-- "BST_CODE", "BAANSUBSRT", "RIJRICHTNG", "WEGBEHSRT", "HECTO_LTTR"
profile_whitelist = {
"BST_CODE",
"BAANSUBSRT",
"RIJRICHTNG",
"WEGBEHSRT",
"HECTO_LTTR"
... | nilq/small-lua-stack | null |
---@class CS.FairyGUI.PixelHitTestData
---@field public pixelWidth number
---@field public scale number
---@field public pixels Byte[]
---@field public pixelsLength number
---@field public pixelsOffset number
---@type CS.FairyGUI.PixelHitTestData
CS.FairyGUI.PixelHitTestData = { }
---@return CS.FairyGUI.PixelHitTestDa... | nilq/small-lua-stack | null |
if tweak_data and tweak_data.SCSuiteConfiguration.toggle_equipment_enabled then
if not _PlayerStandard__check_use_item then _PlayerStandard__check_use_item = PlayerStandard._check_use_item end
function PlayerStandard:_check_use_item( t, input )
if input.btn_use_item_press and self:is_deploying() then
... | nilq/small-lua-stack | null |
ICDP_DISCS = ICDP_DISCS or {}
ICDP_DISCS[5] = {
disc_name = "ICDPCDDisc5",
artist_name = "Metallica",
album_title = "Metallica",
album_cover = "Metallica-Metallica-1993";
content_disc = "Trash-Metal",
track_names = {
[1] = "01. Enter Sandman",
[2] = "02. Sad But True",
[3] = "03. Holier Than Thou",
[4] = "04. The Un... | nilq/small-lua-stack | null |
local parent, ns = ...
local Compat = ns.Compat
local unitExists = Compat.Private.UnitExists
local QuickDispatch = Compat.Private.QuickDispatch
local format = string.format
local strmatch = string.match
local select = select
local GetNumPartyMembers = GetNumPartyMembers
local GetNumRaidMembers = GetNumRaidMembers
lo... | nilq/small-lua-stack | null |
package.path = "../?.lua;" .. package.path
local EventDataSerializer = {}
function EventDataSerializer:new ()
-- "Object Oriented" Lua examples: https://habr.com/post/259265/
local public = {}
-- return event_key, event_data
function EventDataSerializer:OnClose ()
return nil, nil
end
functio... | nilq/small-lua-stack | null |
object_building_player_sandcrawler_house = object_building_player_shared_sandcrawler_house:new {
}
ObjectTemplates:addTemplate(object_building_player_sandcrawler_house, "object/building/player/sandcrawler_house.iff")
| nilq/small-lua-stack | null |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BceChangeSeat_pb', package.seeall)
local BCECHANGESEAT = protobuf.Descriptor();
BCECHANGESEAT.name = "BceChangeSeat"
BCECHANGESEAT.full_name = ".com.xinqihd.sns.gameserver.proto.BceChangeSeat"
BCECHANGESEAT.nested_types = {}
BCECH... | nilq/small-lua-stack | null |
local w,h = ScrW(),ScrH()
hook.Add("HUDPaint","DrawAmmo",function()
local lp = LocalPlayer()
local wep = lp:GetActiveWeapon()
if (!IsValid(wep)) then return end
local Ammo = lp:GetAmmoCount(wep:GetPrimaryAmmoType())
local Clip = wep:Clip1()
if (Clip > -1) then
DrawTextShadow(Clip,"MZS_Font80",w-210,h-11... | nilq/small-lua-stack | null |
-- @okarosa
local characterNameCache = {}
local characterIDCache = {}
local searched = {}
local refreshCacheRate = 10 --Minutes
function getCharacterNameFromID( id )
if not id or not tonumber(id) then
return false
else
id = tonumber(id)
end
if characterNameCache[id] then
return characterNameCache[id]
end
... | nilq/small-lua-stack | null |
-- sci component
-- electronics sci
local refsubgroup = data.raw["item-subgroup"][data.raw.item["iron-stick"].subgroup]
data:extend({
{
type = "item-subgroup",
name = "momo-science-materials",
group = refsubgroup.group,
order = refsubgroup.order .. "1"
}
})
local subgroup = "momo-science-materials"
local ICO... | nilq/small-lua-stack | null |
local http = require("http");
local data = require("data");
local auth = string.format('Basic %s', data.tobase64(string.format("%s:%s", settings.login, settings.password)));
--@help set_label
set_label = function(state)
layout.current_state.text = string.format("Current state: %s", state.id);
layout.current_... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: La Theine Plateau
-- Mob: Nihniknoovi
-----------------------------------
require("scripts/globals/status");
require("scripts/quests/tutorial")
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(tpz.mobMod.IDLE_DESPAWN, 600);
end;
function... | nilq/small-lua-stack | null |
require('config.keymaps')
require('config.options')
require('config.autogroups')
| nilq/small-lua-stack | null |
local announcementStopServerLayout=
{
name="announcementStopServerLayout",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft,
{
name="shadeBg",type=1,typeName="Image",time=31057625,report=0,x=0,y=0,width=1280,height=720,visible... | nilq/small-lua-stack | null |
--- Provides utility methods for MarketplaceService
-- @module MarketplaceUtil
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local MarketplaceService = game:GetService("MarketplaceService")
local Promise = require("Promise")
local MarketplaceUtil = {}
function MarketplaceU... | nilq/small-lua-stack | null |
local updated = 0
local respawnHospital = false
RegisterNetEvent('five_roleplay_core:setHealth')
AddEventHandler('five_roleplay_core:setHealth', function(result)
Citizen.Wait(3000)
SetEntityHealth(PlayerPedId(),result)
end)
AddEventHandler("playerSpawned", function()
TriggerServerEvent('five_roleplay_core... | nilq/small-lua-stack | null |
slot0 = class("SVSalvageResult", import("view.base.BaseSubView"))
slot0.HideView = "SVSalvageResult.HideView"
slot0.getUIName = function (slot0)
return "SVSalvageResult"
end
slot0.OnLoaded = function (slot0)
return
end
slot0.OnInit = function (slot0)
slot0.rtPanel = slot0._tf:Find("window/display_panel")
setTex... | nilq/small-lua-stack | null |
addEventHandler('onClientResourceStart', resourceRoot,
function()
triggerServerEvent('nickProtectionLoaded', getLocalPlayer())
end
)
| nilq/small-lua-stack | null |
local PANEL_Browser = {}
PANEL_Browser.Base = "DFrame"
function PANEL_Browser:Init()
self.HTML = vgui.Create( "HTML", self )
if ( !self.HTML ) then
print( "SteamOverlayReplace: Failed to create HTML element" )
self:Remove()
return
end
self.HTML:Dock( FILL )
self.HTML:SetOpenLinksExternally( true )
se... | nilq/small-lua-stack | null |
-- Test .event
io.write 'cord.event'
require 'site'
local Nylon = require 'nylon.core'()
Nylon.cord( 'failsafe', function(cord) cord:sleep(1.5); os.exit(99); end )
local okay = false
local c1 = Nylon.cord( 'c1',
function(cord)
cord.event.red() -- events can be posted though the handler hasn't bee... | nilq/small-lua-stack | null |
--for command bar thing
local targetModel = workspace.LowerBody
local modelDescendants = targetModel:GetDescendants()
local folder = Instance.new("Folder")
folder.Parent = targetModel
folder.Name = "Motor6DValues"
for i, descendant in pairs(modelDescendants) do
if descendant:IsA("Motor6D") then
local ob... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Beaucedine Glacier
-- NM: Calcabrina
-----------------------------------
require("scripts/globals/mobs")
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(tpz.mobMod.ADD_EFFECT, 1);
end;
function onAdditionalEffect(mob, target, damage)
... | nilq/small-lua-stack | null |
function momoIRTweak.finalFixes.Electronics()
--using
local eles = momoIRTweak.electronics
local ITEM = momoIRTweak.FastItem
local AddIng = momoIRTweak.recipe.AddIngredient
---------------------------------------------------------------------------------------------------
--------------------------------------... | nilq/small-lua-stack | null |
object_static_item_eqp_camping_tent_s3 = object_static_item_shared_eqp_camping_tent_s3:new {
}
ObjectTemplates:addTemplate(object_static_item_eqp_camping_tent_s3, "object/static/item/eqp_camping_tent_s3.iff")
| nilq/small-lua-stack | null |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
__is_kind_of = "XContentTemplate",
group = "PreGame",
id = "PGMissionSubtitle",
PlaceObj('XTemplateWindow', {
'__class', "XContentTemplate",
'Dock', "top",
'RespawnOnContext', false,
}, {
PlaceObj('XTemplateMode', {
... | nilq/small-lua-stack | null |
---@class IsoRegionsLogger.IsoRegionLog : zombie.iso.areas.isoregion.IsoRegionsLogger.IsoRegionLog
---@field private str String
---@field private type IsoRegionLogType
---@field private col Color
IsoRegionsLogger_IsoRegionLog = {}
---@public
---@return IsoRegionLogType
function IsoRegionsLogger_IsoRegionLog:getType() ... | nilq/small-lua-stack | null |
-- BELOVE IS YOUR SETTINGS, CHANGE THEM TO WHATEVER YOU'D LIKE & MORE SETTINGS WILL COME IN THE FUTURE! --
local useBilling = true -- OPTIONS: (true/false)
local useCameraSound = true -- OPTIONS: (true/false)
local useFlashingScreen = true -- OPTIONS: (true/false)
local useBlips = true -- OPTIONS: (true/false)
local al... | nilq/small-lua-stack | null |
TransportRouteInteractionHandler = {}
function TransportRouteInteractionHandler:NewRoute()
return {from = false, to = false, obj_at_source = false}
end
function TransportRouteInteractionHandler:UpdateCursorText(dialog)
local res_dlg = GetDialog("ResourceItems")
local choosing_res = res_dlg and res_dlg.context and Is... | nilq/small-lua-stack | null |
--[[
Copyright 2016-2020 The Node.lua Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... | nilq/small-lua-stack | null |
--Senya bt
local m=37564331
local cm=_G["c"..m]
if not pcall(function() require("expansions/script/c37564765") end) then require("script/c37564765") end
function cm.initial_effect(c)
c:EnableReviveLimit()
aux.AddFusionProcCode2(c,37564813,37564043,true,true)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Str... | nilq/small-lua-stack | null |
local PLUGIN = PLUGIN or {};
function PLUGIN:LoadData()
for k, v in pairs(nut.util.ReadTable("vendors")) do
local position = v.pos
local angles = v.angles
local data = v.data
local factionData = v.factionData
local classData = v.classData
local vendorAction = v.vendorAction
local buyadjustment =... | nilq/small-lua-stack | null |
local color = {}
local current = {}
current.fg = {}
current.bg = {}
local target = {}
target.fg = {}
target.bg = {}
local speed = {}
speed.fg = {}
speed.bg = {}
color.setColor = function(fg, bg)
current.fg = {unpack(fg)}
current.bg = {unpack(bg)}
target.fg = {unpack(fg)}
target.bg = {unpack(bg)}
... | nilq/small-lua-stack | null |
vim.opt.completeopt = { "menu", "menuone", "noselect" }
-- Don't show the dumb matching stuff.
-- vim.opt.shortmess:append "c"
local lspkind = require "lspkind"
lspkind.init()
local cmp = require "cmp"
cmp.setup {
mapping = {
["<C-d>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),... | nilq/small-lua-stack | null |
--[[----------------------------------------------------------------
| ▄▀▄▄▄▄ ▄▀▀▄ ▄▀▄ ▄▀▀█▄▄ ▄▀▀▄ ▄▀▄ |
| █ █ ▌ █ █ ▀ █ █ ▄▀ █ █ █ █ |
| ▐ █ ▐ █ █ ▐ █ █ ▐ ▀▄▀ |
| █ █ █ █ █ ... | nilq/small-lua-stack | null |
module("luci.controller.tencentddns",package.seeall)
function index()
local page = entry({"admin", "tencentcloud"}, firstchild(), "腾讯云设置")
page.order = 30
page.dependent = false
page.acl_depends = { "luci-app-tencentddns" }
entry({"admin", "tencentcloud", "tencentddns"},cbi("tencentddns"),_("Tencent... | nilq/small-lua-stack | null |
require 'caffe'
prototxt_name = '/opt/caffe/models/bvlc_reference_caffenet/deploy.prototxt'
binary_name = '/opt/caffe/models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel'
net = caffe.Net(prototxt_name, binary_name, 'test')
input = torch.randn(10,3,227,227):float()
output = net:forward(input)
gradInput =... | nilq/small-lua-stack | null |
--ULX/ULib hooks
if SERVER then
local Commands = {
NameChange = { --A user changed their name.
Enabled = true,
Color = '5EFF00',
Webhook = {'default'},
Title = 'Name Change',
Hook = 'ULibPlayerNameChanged',
Hookname = 'LcastLogsULXNameChangeLog'
},
ULXCommandCalled = { --A user execu... | nilq/small-lua-stack | null |
--[[
@author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com>
@copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com>
@license MIT
]]--
createBlip(-2283.61,-146.74,35.32, 27,2,0,0,0,0,0,275)
local stanowiskaSwiatla = {
stanowiskoDoherty={
mpos={-2277.28, -130.55, 35.32}, -- marker
cpos={-2278.258789062... | nilq/small-lua-stack | null |
local a = true
local b = false
local function fun(a, b)
if a and b then
return "both true"
elseif a then
return "b false"
elseif b then
return "a false"
else
return "both false"
end
end
print(fun(true, true) == "both true")
print(fun(true, false) == "b false")
print(fun(false, true) == "a false")
prin... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- Module declaration
--
local mod, CL = BigWigs:NewBoss("Gal'darah", 604, 596)
if not mod then return end
mod:RegisterEnableMob(29306)
mod.engageId = 1981
mod.respawnTime = 30
-----------------------------------------------------------... | nilq/small-lua-stack | null |
--[[
Main entry point for plugin.
]]
require 'strict'
local LrDialogs = import( 'LrDialogs' )
local LrApplication = import( 'LrApplication' )
local LrDate = import( 'LrDate' )
JSON=require 'JSON'
require 'Dialogs'
require 'Post'
require 'Process'
require 'Logger'
local publishServiceProvider = {}
publishService... | nilq/small-lua-stack | null |
dofile "utils.lua"
local luv = require "luv"
local argc = select("#", ...)-2
local format = szfmt..string.rep("z", argc)
local message = {nil, string.pack(format, argc-1, select(3, ...))}
message[1] = string.pack(szfmt, #message[2])
local function readsize(chunk)
local size, index = string.unpack(szfmt, chunk)
chu... | nilq/small-lua-stack | null |
--[[
AI核心代码,估值100亿美金
--]]
while (true) do
local str = io.read()
str = string.gsub(str, "吗", '')
str = string.gsub(str, "?", '!')
str = string.gsub(str, "?", '!')
print(string.format('冰冰:%s', str))
end | 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.