content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
--
-- 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 License, Version 2.0
-- (the "License"); you may ... | nilq/small-lua-stack | null |
-- Galexy
StormFox.SetNetworkData("GalaxyAngle",math.random(90))
hook.Add("StormFox - Sunset","StormFox.SetGalaxyAngle",function()
StormFox.SetNetworkData("GalaxyAngle",math.random(360))
end) | nilq/small-lua-stack | null |
--下面基础组件间的require有依赖顺序相关,闲着没事也别换顺序,要加新的往文件尾加就好
Util = CS.XLuaFramework.Util
AppConfig = CS.XLuaFramework.AppConfig
ResMgr = CS.XLuaFramework.ResourceManager.GetInstance()
NetMgr = CS.XLuaFramework.NetworkManager.GetInstance()
UIHelper = CS.XLuaFramework.UIHelper
cookiesManager = CS.XLuaFramework.CookiesManager.GetInsta... | nilq/small-lua-stack | null |
local string = require "luv.string"
local io, type, require, math, tostring = io, type, require, math, tostring
local ipairs = ipairs
local tr = tr
local models, fields, references, forms, crypt, widgets = require "luv.db.models", require "luv.fields", require "luv.fields.references", require "luv.forms", require "luv.... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- pk-core.lua: dsl-fsm exports profile
-- This file is a part of le-dsl-fsm project
-- Copyright (c) LogicEditor <info@logiceditor.com>
-- Copyright (c) le-dsl-fsm authors
-- See file `COPYRIGHT` for the license.
-------------------------... | nilq/small-lua-stack | null |
local T, C, L, G = unpack(select(2, ...))
if not (C.plugins.enable and C.plugins.raidcd) then return end
------------------------------------------------------------
-- Raid Cooldown
-- Author: Allez
------------------------------------------------------------
local raidcd = {
["max"] = 10, -- max number of display... | nilq/small-lua-stack | null |
-- Autogenerated from KST: please remove this line if doing any edits by hand!
local luaunit = require("luaunit")
require("switch_integers")
TestSwitchIntegers = {}
function TestSwitchIntegers:test_switch_integers()
local r = SwitchIntegers:from_file("src/switch_integers.bin")
luaunit.assertEquals(#r.opcod... | nilq/small-lua-stack | null |
assert(GENE.ADENINE == 0)
assert(GENE.CYTOSINE == 1)
assert(GENE.GUANINE == 2)
assert(GENE.THYMINE == 3)
assert(ATOM.ELECTRON == 0)
assert(ATOM.PROTON == 1)
assert(ATOM.NEUTRON == 2)
assert(FRUIT.APPLE == 0)
assert(FRUIT.BANANA == 1)
assert(FRUIT.PEACH == 2)
assert(FRUIT.PLUM == 3)
assert(_G["`poncho`"]["`glucho`"] ... | nilq/small-lua-stack | null |
return function ()
local Brightness = Import("ga.corebyte.Sugar.Helpers.Brightness")
RemoteCommand:Register("brightness", function (Parameters)
Brightness.Set(Parameters.Amount)
end)
end | nilq/small-lua-stack | null |
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('Hekili') then return end
function AS:Hekili()
for Display, _ in ipairs( Hekili.DB.profile.displays ) do
for Buttons = 1, Hekili.DB.profile.displays[Display].numIcons do
local Button = _G['Hekili_D'..Display..'_B'..Buttons]
AS:CreateBackdrop(Button)
AS:Sk... | nilq/small-lua-stack | null |
local cjson_decode = require("cjson").decode
local cjson_encode = require("cjson").encode
local _M = {}
local function json_decode(json)
if json then
local status, res = pcall(cjson_decode, json)
if status then
return res
end
end
end
local function json_encode(table)
i... | nilq/small-lua-stack | null |
--
-- 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 License, Version 2.0
-- (the "License"); you may ... | nilq/small-lua-stack | null |
--Function to get nuget
fs.makeDir("lib")
if fs.exists("lib/genlib") == false then
shell.run("wget","https://raw.githubusercontent.com/augustclear/ComputerCraft/main/Utilities/genlib.lua","lib/genlib")
end
local gl = require("lib.genlib")
--Calls to get files
gl.nuget("https://raw.githubusercontent.com/augustcl... | nilq/small-lua-stack | null |
local vim = vim
local common = require('galaxyline.common')
local colors = require('galaxyline.colors')
local uv = vim.loop
local M = {}
M.section = {}
M.section.left = {}
M.section.right = {}
M.section.short_line_left = {}
M.section.short_line_right = {}
M.short_line_list = {}
local provider_group = {}
local async_l... | nilq/small-lua-stack | null |
function description()
return "Find text in the current webview"
end
function run()
if #arguments > 0 then
local windex = focused_window_index()
local query = table.concat(arguments, " ")
find(windex, focused_webview_index(windex), query)
end
return false -- continue to display command
end
| nilq/small-lua-stack | null |
local Buffer
local function reload_buffer()
package.loaded["spec.03-plugins.09-galileo.ngx"] = nil
package.loaded["kong.plugins.galileo.buffer"] = nil
_G.ngx = require "spec.03-plugins.09-galileo.ngx"
Buffer = require "kong.plugins.galileo.buffer"
end
describe("ALF Buffer", function()
local conf, _ngx
be... | nilq/small-lua-stack | null |
return {'meranti','merbau','mercantiel','mercantilisme','mercantilistisch','mercator','mercatorprojectie','merceriseren','merchandise','merchandiser','merchandising','merci','mercurochroom','merel','meren','merendeel','merendeels','merengebied','merengue','merg','mergbeen','mergel','mergelaarde','mergelachtig','mergele... | nilq/small-lua-stack | null |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
-- #######################################
-- ## Project: iL... | nilq/small-lua-stack | null |
local newdecoder = require 'lunajson.decoder'
local newencoder = require 'lunajson.encoder'
local sax = require 'lunajson.sax'
-- If you need multiple contexts of decoder and/or encoder,
-- you can require lunajson.decoder and/or lunajson.encoder directly.
return {
decode = newdecoder(),
encode = newencoder(),
newpa... | nilq/small-lua-stack | null |
Global( "PlayerBuffs", {} )
function PlayerBuffs:Init(anID)
self.playerID = anID
self.unitParams = {}
self.ignoreRaidBuffsID = {}
self.ignoreTargeterBuffsID = {}
self.ignorePlateBuffsID = {}
self.updateCnt = 0
self.readAllBuffPlatesEventFunc = self:GetReadAllBuffPlatesEventFunc()
self.readAllRaidEventFunc =... | nilq/small-lua-stack | null |
-- Copyright 2019 Xingwang Liao <kuoruan@gmail.com>
-- Licensed to the public under the MIT License.
local dsp = require "luci.dispatcher"
local m, s, o
m = Map("frpc", "%s - %s" % { translate("Frpc"), translate("Proxy Rules") })
s = m:section(TypedSection, "rule")
s.anonymous = true
s.addremove = true
s.sortable =... | nilq/small-lua-stack | null |
-- Heist Carrier: 3082.3117 -4717.1191 15.2622
exports('GetHeistCarrierObject', function()
return HeistCarrier
end)
HeistCarrier = {
ipl = {
"hei_carrier",
"hei_carrier_int1",
"hei_carrier_int1_lod",
"hei_carrier_int2",
"hei_carrier_int2_lod",
"hei_carrier_int3",
"hei_carrier_int3_lod",
"hei_carrie... | nilq/small-lua-stack | null |
vim.cmd([[
try
"themes: catppuccin, nightfox, gruvbox, github_*, kanagawa, tokyonight, dracula, onedarkpro
colorscheme tokyonight
catch /^Vim\%((\a\+)\)\=:E185/
colorscheme default
set background=dark
endtry
]])
| nilq/small-lua-stack | null |
require 'nn'
require 'graph-criterion'
local GraphCriterionTest = torch.TestSuite()
local tester = torch.Tester()
local c = nn.GraphCriterion({
nn.ClassNLLCriterion(),
nn.ClassNLLCriterion(),
})
function GraphCriterionTest:with_incorrect_num_outputs()
local f = function()
local output = {torch.rand(2), tor... | nilq/small-lua-stack | null |
local creator = cc.import("creator.init")
local CannonBall01AI = cc.import(".CannonBall01AI")
local ShipAI = cc.class("ShipAI", creator.ComponentBase)
function ShipAI:onLoad(target)
self._lastFire = math.random(0, 20) / 10
self._fireInterval = math.random(8, 25) / 10
self._speed = math.random(50, 300) /... | nilq/small-lua-stack | null |
-- This is a standalone description.
local Policy = require('apicast.policy')
local PolicyChain = require('apicast.policy_chain')
local Upstream = require('apicast.upstream')
local load_balancer = require('apicast.balancer')
local Configuration = require('apicast.policy.standalone.configuration')
local resty_env = req... | nilq/small-lua-stack | null |
-- vim:foldmethod=marker
local repl = require 'repl'
pcall(require, 'luarocks.loader')
require 'Test.More'
plan(8)
do -- getprompt tests {{{
is(repl:getprompt(1), '>')
is(repl:getprompt(2), '>>')
end -- }}}
do -- prompt abstract tests {{{
error_like(function()
repl:prompt(1)
end, 'You must implement the ... | nilq/small-lua-stack | null |
Railbeam = {
MULTIHIT_SCORE = 200,
beamTrail = nil,
impactSparks = nil,
health = 1,
maxHealth = 1
}
function Railbeam:new(X, Y)
s = Projectile:new(X,Y)
setmetatable(s, self)
setmetatable(self, Projectile)
self.__index = self
s.health = 2
s.maxHealth = 2
return s
end
function Railbeam:setAnimations()
... | nilq/small-lua-stack | null |
OCRP_CRAFTINGMENU = nil
function OpenCraftingMenu()
local frame = vgui.Create("OCRP_BaseMenu")
frame:SetSize(585, 400)
frame:Center()
frame:SetOCRPTitle("Crafting")
frame:MakePopup()
OCRP_CRAFTINGMENU = frame
local itemList = vgui.Create("DPanelList", frame)
itemList:EnableVe... | nilq/small-lua-stack | null |
local function setup ()
local annotation = require('neogen')
vim.keymap.set('n', '<leader>cn', annotation.generate, {desc = 'Generate annotation for current node'})
vim.keymap.set('n', '<leader>cnf', function () annotation.generate({type = 'func'}) end, {desc = 'Generate annotation for current function'})
... | nilq/small-lua-stack | null |
-- example HTTP POST script which demonstrates setting the
-- HTTP method, body, and adding a header
wrk.method = "POST"
wrk.body = "grant_type=&username=one&password=two&scope=&client_id=&client_secret="
wrk.headers["accept"] = "application/json"
wrk.headers["Content-Type"] = "application/x-www-form-urlencoded"
| nilq/small-lua-stack | null |
obstacle = {}
local angle
angleSpeed = 1.0
local canGetPoint
function obstacle:getAngle()
return angle
end
function obstacle:getCanGetPoint()
return canGetPoint
end
function obstacle:setCanGetPoint(val)
canGetPoint = val
end
function obstacle:resetAngle()
angle = 0
end
function obstacle:load()
obstacle:... | nilq/small-lua-stack | null |
return function()
local PureCollection = require(script.Parent.PureCollection)
local SinglePureCollection = require(script.Parent.SinglePureCollection)
local Registry = require(script.Parent.Registry)
local t = require(script.Parent.Parent.t)
local function makeEntities(registry)
for i = 1, 100 do
local enti... | nilq/small-lua-stack | null |
--[[
Copyright 2015 Rackspace
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 in writing, software
dis... | nilq/small-lua-stack | null |
-----------------------------------------
-- ID: 5610
-- Item: hellsteak_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health 22
-- Strength 7
-- Intelligence -3
-- Health Regen While Healing 2
-- hMP +1
-- Attack % 20 (cap 150)
-- Ranged ATT % 20 (cap 150)
-- Dragon Killer 5
-------... | nilq/small-lua-stack | null |
local class = require 'pl.class'
local krpc = require 'krpc.init'
local platform = require 'krpc.platform'
ServerTest = class()
function ServerTest:setUp()
self.conn = self.connect()
end
function ServerTest:tearDown()
self.conn:close()
end
function ServerTest:get_rpc_port()
local port = os.getenv('RPC_PORT')
... | nilq/small-lua-stack | null |
require 'Items/ProceduralDistributions'
-- DoomsdayPreppers1
table.insert(ProceduralDistributions.list["BookstoreBooks"].items, "KCMweapons.DoomsdayPreppers1");
table.insert(ProceduralDistributions.list["BookstoreBooks"].items, 2);
table.insert(ProceduralDistributions.list["BookstoreMisc"].items, "KCMweapons.Doomsda... | nilq/small-lua-stack | null |
local m = {}
screalms = m
local storage = minetest.get_mod_storage()
local realm_store = storage:get("realms") and minetest.deserialize(storage:get("realms")) or {}
local areastore = AreaStore()
-- Save modified realm_store back to storage.
local function save()
storage:set_string("realms", minetest.serialize(realm_... | nilq/small-lua-stack | null |
-- -*- coding: utf-8 -*-
-- Documentation
--- \fn table.toLuaCode(inTable, indent, resultHandler)
--- \brief Преобразует объект типа таблица в строку лунового кода, создающего такую таблицу
--- \param[in] inTable таблица для обработки
--- \param[in] indent отступ от начала строки для элементов таблицы
--- \pa... | nilq/small-lua-stack | null |
browserList = {}
browserList_mt = { __index = browserList }
local activatedBrowsers = {}
local ROW_HEIGHT = 14
local keyUp,keyDown,ignore
--NOTE: All functions lack necessary checks to verify valid args, its intended for internal use only
-------
local function browserListGridlistClick( button,state,x,y )
if state == ... | nilq/small-lua-stack | null |
--[[
Whiteout
by alfunx (Alphonse Mariya)
based on Blackout
--]]
local gears = require("gears")
local t_util = require("config.util_theme")
local os, math, string = os, math, string
local colors = { }
colors.black_1 = "#fbf1c7"
colors.black_2 = "#928374"
colo... | nilq/small-lua-stack | null |
local invoke = require('invoke')
local tool = {}
function tool.getExternalStorageDirectory()
return invoke('com.shininggames.tool.Tool', 'getExternalStorageDirectory','not')
end
return tool
| nilq/small-lua-stack | null |
help([[
For detailed instructions, go to:
https://...
]])
whatis("Version: 3.18.2")
whatis("Keywords: System, Utility")
whatis("URL: https://cmake.org/download/")
whatis("Description: Compilation tool")
setenv("DDTPATH", "/opt/sw/cmake-3.18.2/bin")
prepend_path("PATH", "/opt/sw/cmake-3.18.2/bin")
prepend_path("LD_... | nilq/small-lua-stack | null |
return {
tllirritator = {
acceleration = 0.12,
activatewhenbuilt = true,
brakerate = 2.97,
buildcostenergy = 395433,
buildcostmetal = 24947,
builder = false,
buildpic = "tllirritator.dds",
buildtime = 330000,
canattack = true,
canguard = true,
canmove = true,
canpatrol = true,
c... | nilq/small-lua-stack | null |
--- This callback is required for the movelistener to know who
-- detected the adventurer when it arrived.
-- @classmod MoveListenerPostAbilityCallbackEvent
-- region imports
local class = require('classes/class')
local prototype = require('prototypes/prototype')
require('prototypes/event')
require('prototypes/serial... | nilq/small-lua-stack | null |
-- ----------------------------------------------------
-- kvalue_manipulate.lua
--
-- Sep/16/2010
-- ----------------------------------------------------
require('Memcached')
-- ----------------------------------------------------
function disp_proc (redis,key)
result = redis:get (key)
if (result ~= null) then
... | nilq/small-lua-stack | null |
-- Small set of functions that provide random jittering
-- of different kinds (rotation, shift, brightness) that
-- can be applied to input images used the 'jitter' function
tnt = require 'torchnet'
function rotate(img)
mask = torch.DoubleTensor(img:size()):fill(1.0)
theta = torch.uniform(-0.2, 0.2)
img_r... | nilq/small-lua-stack | null |
--[[
$Id$
Copyright © 2012, 2017, 2021 VideoLAN and AUTHORS
Authors: Ludovic Fauvet <etix@videolan.org>
Pierre Ynard
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2... | nilq/small-lua-stack | null |
RegisterNetEvent("npc-jobmanager:playerBecameJob")
AddEventHandler("npc-jobmanager:playerBecameJob", function(job, name, notify)
if isMedic and job ~= "ems" then isMedic = false isInService = false end
if isCop and job ~= "police" then isCop = false isInService = false end
if job == "police" then isCop = tr... | nilq/small-lua-stack | null |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
test_vector_target... | nilq/small-lua-stack | null |
-- VARIABLES ===================================================================
local owner_transform = nil
local owner_CircleParticle = nil
local timer = 0
RunTime = 0.1
--emitRate = 150
-- FUNCTIONS ===================================================================
function Constructor()
owner_CircleParticle = o... | nilq/small-lua-stack | null |
-- Copyright (C) Dejiang Zhu(doujiang24)
local response = require "resty.kafka.response"
local auth_utils = require "resty.kafka.auth.init"
local to_int32 = response.to_int32
local setmetatable = setmetatable
local tcp = ngx.socket.tcp
local ngx_log = ngx.log
local _M = {}
local mt = { __index = _M }
local funct... | nilq/small-lua-stack | null |
package.cpath = "../?.so"
package.path = "../?.lua";
function valid()
local encodings = require "util.encodings";
local utf8 = assert(encodings.utf8, "no encodings.utf8 module");
for line in io.lines("utf8_sequences.txt") do
local data = line:match(":%s*([^#]+)"):gsub("%s+", ""):gsub("..", function (c) return st... | nilq/small-lua-stack | null |
object_tangible_wearables_jacket_jacket_ace_imperial_craft = object_tangible_wearables_jacket_shared_jacket_ace_imperial_craft:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_jacket_jacket_ace_imperial_craft, "object/tangible/wearables/jacket/jacket_ace_imperial_craft.iff") | nilq/small-lua-stack | null |
local config = require 'goldsmith.config'
local log = require 'goldsmith.log'
local M = {}
-- 'current' is simply the most recent 'go' buffer to have been used
local current
local all = {}
local default_action_map = {
godef = { act = "<cmd>lua require'goldsmith.cmds.lsp'.goto_definition()<cr>", ft = { 'go' } },
... | nilq/small-lua-stack | null |
require('heine').load()
| nilq/small-lua-stack | null |
data:extend({
{
type = "mining-drill",
name = "hydraulic-mining-drill",
icon = "__Hydraulic_Mining_Drill__/graphics/icons/mining-drill/hydraulic-mining-drill.png",
flags = {"placeable-neutral", "player-creation"},
resource_categories = {"basic-solid"},
minable = {mining_time = 1, res... | nilq/small-lua-stack | null |
-- global stuff
require('console').init()
require('overrides').init()
-- ensure IPC is there
hs.ipc.cliInstall()
-- lower logging level for hotkeys
require('hs.hotkey').setLogLevel("warning")
-- global config
config = {
apps = {
terms = { 'kitty' },
browsers = { 'Google Chrome', 'Safar... | nilq/small-lua-stack | null |
local installer = require "nvim-lsp-installer.core.installer"
local std = require "nvim-lsp-installer.core.managers.std"
local client = require "nvim-lsp-installer.core.managers.github.client"
local platform = require "nvim-lsp-installer.platform"
local M = {}
---@param repo string
---@param asset_file string
---@par... | nilq/small-lua-stack | null |
local ELEVATOR_SYSTEM = script:GetCustomProperty("ElevatorSystem"):WaitForObject()
local ELEVATOR = script:GetCustomProperty("Elevator"):WaitForObject()
local AUTOACTIVE_TRIGGER = script:GetCustomProperty("AutoActiveTrigger"):WaitForObject() -- Keppu (Antti) Apr. 5 2021 New addition to make the elevator usage more stre... | nilq/small-lua-stack | null |
local WIRE_SCROLL_SPEED = 0.5
local WIRE_BLINKS_PER_SECOND = 2
local CurPathEnt = {}
local Wire_DisableWireRender = 0
WireLib.Wire_GrayOutWires = false
WIRE_CLIENT_INSTALLED = 1
--Msg("loading materials\n")
list.Add("WireMaterials", "cable/rope_icon")
list.Add("WireMaterials", "cable/cable2")
list.Add("WireMaterials",... | nilq/small-lua-stack | null |
local Window = require "Window"
local GameLib = require "GameLib"
local AccountItemLib = require "AccountItemLib"
local MatchMakingLib = require "MatchMakingLib"
local Apollo = require "Apollo"
local XmlDoc = require "XmlDoc"
local ApolloTimer = require "ApolloTimer"
local GroupLib = require "GroupLib"
local PublicEven... | nilq/small-lua-stack | null |
local SHADER_NAME = "WithoutShadow";
_G["Create"..SHADER_NAME.."Shader"] = function()
local vertexShader = [[
uniform mat4 cl_ModelViewProjectionMatrix;
attribute vec4 Position;
attribute vec2 TexCoord;
varying vec2 vTexCoords;
void main()
{
vTexCoords = TexCoord;
gl_Position = cl_ModelViewProj... | nilq/small-lua-stack | null |
-- Zytharian (roblox: Legend26)
-- Initialize all the classes
local projectRoot = game.ServerScriptService
-- Includes
local Util = require(projectRoot.Modules.Utilities)
-- Initialize StandardClasses and ClassSystem
require(projectRoot.Modules.ClassSystem)
require(projectRoot.Modules.StandardClasses)
-- Initializ... | nilq/small-lua-stack | null |
local awful = require('awful')
local beautiful = require('beautiful')
local gears = require('gears')
local wibox = require('wibox')
local display = require('sanity/util/display')
local FontIcon = require('sanity/util/fonticon')
local client_geos = {}
function client_or_tag_floating(c)
if c.maximize... | nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
------------
-- File Watcher.
-- Watcher for files, directories, objects and services.
-- ...
-- @module watcher
-- @author hernandez, raciel
-- @license MIT
-- @copyright Raciel Hernández 2019
------------
local strict = require('strict')
local fiber = require('fiber')
local fio = require('fi... | nilq/small-lua-stack | null |
#!/bin/env lua
--------------------------------------------------------------------------------
-- Main Unit Test Script
--------------------------------------------------------------------------------
package.path = "navbar/?.lua;" .. package.path
local lu = require('luaunit')
local gen = require('generic')
loca... | nilq/small-lua-stack | null |
function f(x, y)
return x*x + y*y*y;
end
| nilq/small-lua-stack | null |
local cVector = require 'libvctr'
local plpath = require 'pl.path'
local cVector = require 'libvctr'
local chunk_size = cVector.chunk_size()
local lVector = require 'Q/RUNTIME/VCTR/lua/lVector'
local Scalar = require 'libsclr'
local srcdir = "../gen_src/"
local incdir = "../gen_inc/"
if ( not plpath.isdir(srcdir) ) t... | nilq/small-lua-stack | null |
GeneralToolEditor = GeneralToolEditor or class(ToolEditor)
local difficulty_ids = {"normal", "hard", "overkill", "overkill_145", "easy_wish", "overkill_290", "sm_wish"}
local difficulty_loc = {
"menu_difficulty_normal",
"menu_difficulty_hard",
"menu_difficulty_very_hard",
"menu_difficulty_overkill",
"menu_difficu... | nilq/small-lua-stack | null |
local o = {
-- Automatically save to log, otherwise only saves when requested
-- you need to bind a save key if you disable it
auto_save = true,
save_bind = "",
-- Runs automatically when --idle
auto_run_idle = true,
-- Write watch later for current file when switching
write_watch_later ... | nilq/small-lua-stack | null |
package("libyaml")
set_homepage("http://pyyaml.org/wiki/LibYAML")
set_description("Canonical source repository for LibYAML.")
set_urls("https://github.com/yaml/libyaml/archive/$(version).tar.gz",
"https://github.com/yaml/libyaml.git")
add_versions("0.2.2", "46bca77dc8be954686cff21888d6ce1... | nilq/small-lua-stack | null |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... | nilq/small-lua-stack | null |
local solarized_low = require('solarized.solarized-low.highlights')
local lightColors = {
none = {'none', 'none'},
base2 = {'#073642',23},
red = {'#dc322f',203},
green = {'#859900',142},
yellow = {'#b58900',178},
blue = {'#268bd2',38},
magenta = {'#d33682',169},
cyan = {'#2aa198',37},
base02 = ... | nilq/small-lua-stack | null |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local str_decode = require("string_decode")
--
-- A bootloader for Android used on various devices powered by Qualcomm
... | nilq/small-lua-stack | null |
local Linq;
if (LibStub) then
Linq = LibStub("Linq");
else
Linq = require "linq";
end
--- @type Set|Enumerable
local Set = Linq.Set;
local assert, type, pairs, setmetatable = assert, type, pairs, setmetatable;
local tinsert = table.insert;
-- *****************************************************************... | nilq/small-lua-stack | null |
local Native = require('lib.stdlib.native')
local converter = require('lib.stdlib.enum.converter')
---@class DialogEvent
local DialogEvent = {
ButtonClick = 90, --EVENT_DIALOG_BUTTON_CLICK
Click = 91, --EVENT_DIALOG_CLICK
}
DialogEvent = converter(Native.ConvertDialogEvent, DialogEvent)
return DialogEvent
| nilq/small-lua-stack | null |
function onStartCountdown()
-- Block the first countdown and start a timer of 0.8 seconds to play the dialogue
if not allowCountdown and isStoryMode and not seenCutscene then
setProperty('inCutscene', true);
runTimer('startDialogue', 0.8);
allowCountdown = true;
return Function_Stop;
end
return Function_Con... | nilq/small-lua-stack | null |
---@class PetInfo
C_PetInfo = {}
---@param uiMapID number
---@return PetTamerMapInfo petTamers
function C_PetInfo.GetPetTamersForMap(uiMapID) end
---@class PetTamerMapInfo
---@field areaPoiID number
---@field position table
---@field name string
---@field atlasName string|nil
---@field textureIndex number|nil
l... | nilq/small-lua-stack | null |
return {
summary = 'A box Shape.',
description = 'A type of `Shape` that can be used for cubes or boxes.',
extends = 'Shape',
constructors = {
'lovr.physics.newBoxShape',
'World:newBoxCollider'
}
}
| nilq/small-lua-stack | null |
--[[
Handler for the big red X that shows up when you
hit the wrong sort of object with the wrong sort of tool.
Stop trying to pickaxe trees!
]]
local propUIContainer = script:GetCustomProperty("UIContainer"):WaitForObject()
local propGraphicPanel = script:GetCustomProperty("GraphicPanel"):WaitForObject()
propUICon... | nilq/small-lua-stack | null |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author (zacharyenriquee@gmail.com).
--]]
local PLUGIN = PLUGIN;
-- Called when a player's uniform status has been changed
function PLUGIN:AdjustPlayer(event, client)
local character = client:GetCharacter();
local cpData = ... | nilq/small-lua-stack | null |
--[[ Abstract Node class. ]]
local Node = torch.class('fg.Node')
--[[ Automatic identifier. ]]
function Node:register()
local tab = torch.getmetatable(torch.type(self))
tab.num_exist = (tab.num_exist or 0) + 1
end
function Node:get_global_count()
local tab = torch.getmetatable(torch.type(self))
return tab.num... | nilq/small-lua-stack | null |
-- license:BSD-3-Clause
-- copyright-holders:Miodrag Milanovic
local exports = {
name = "dummy",
version = "0.0.1",
description = "A dummy example",
license = "BSD-3-Clause",
author = { name = "Miodrag Milanovic" }}
local dummy = exports
function dummy.startplugin()
emu.register_start(function()
emu.print_ver... | nilq/small-lua-stack | null |
local PADDING = 10 -- tooltip border width
local MAX_WIDTH = 250
local MAX_HEIGHT = 500
local MOUSE_X_OFFSET = 15
local MOUSE_Y_OFFSET = 20
-- Helper Functions
local function ResizeToFit(self)
self.text:ClearAll()
local w = math.min(MAX_WIDTH, self.text:GetWidth())
self.text:SetWidth(w)
local h = math.min(MAX... | nilq/small-lua-stack | null |
object_tangible_food_generic_dish_havla = object_tangible_food_generic_shared_dish_havla:new {
}
ObjectTemplates:addTemplate(object_tangible_food_generic_dish_havla, "object/tangible/food/generic/dish_havla.iff")
| nilq/small-lua-stack | null |
IN_FILE_PATH = "../../SavedVariables/ArkadiusTradeToolsExports.lua"
dofile(IN_FILE_PATH)
local args = {
['--latest'] = 'useLatest',
['--members'] = 'useOnlyMembers'
}
-- Defining these as globals so setting them by name is easier
useLatest = false
useOnlyMembers = false
for idx, _arg in pairs(arg) do
if... | nilq/small-lua-stack | null |
PIOVER180 = 0.0174532925199
FUN_EPSILON = 0.0005
--Vector2D Class (table)
Vector2D = {X = 0,Y = 0,className = "Vector2D"}
--Vector2D Class Metatable
Vector2D.mt = {}
--Creation by Constructor simulation
Vector2D.mt.__call = function(caller,x,y)
x = x or 0 --set x to 0 if it is nil
y = y or 0 --set y to 0 if it is nil... | nilq/small-lua-stack | null |
function lambda_prompt_filter()
clink.prompt.value = string.gsub(clink.prompt.value, "{lamb}", "λ")
end
clink.prompt.register_filter(lambda_prompt_filter, 40) | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------------------------------------------------
-- RedFlat top widget --
--------------------------------------------------------------------------------... | nilq/small-lua-stack | null |
object_tangible_component_armor_shield_generator_personal_borvo = object_tangible_component_armor_shared_shield_generator_personal_borvo:new {
}
ObjectTemplates:addTemplate(object_tangible_component_armor_shield_generator_personal_borvo, "object/tangible/component/armor/shield_generator_personal_borvo.iff")
| nilq/small-lua-stack | null |
local TOCNAME,GBB=...
local function DetermineGameVersion()
local version, _, _, _ = GetBuildInfo()
if version:sub(1, 1) == "2" then
GBB.GameType = "TBC"
GBB.PANELOFFSET = 1
else
GBB.GameType = "VANILLA"
GBB.PANELOFFSET = 0
end
end
DetermineGameVersion()
function GBB.GetDungeonNames()
local DefaultEnGB... | nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_collections_meatlump_code_word_07 = object_tangible_loot_creature_loot_collections_shared_meatlump_code_word_07:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_meatlump_code_word_07, "object/tangible/loot/creature/loot/collections/meatlump_code_wor... | nilq/small-lua-stack | null |
local typedefs = require "kong.db.schema.typedefs"
local split = require("kong.tools.utils").split
local RateLimitModel = require "kong.plugins.header-based-rate-limiting.rate_limit_model"
local get_null_uuid = require "kong.plugins.header-based-rate-limiting.get_null_uuid"
local function is_null_or_exists(entity_db, ... | nilq/small-lua-stack | null |
gPlugin = nil;
gConfig = nil;
gCollectionClass = nil;
function Initialize(aPlugin)
aPlugin:SetName("TinyWoodCutter")
aPlugin:SetVersion(1)
gPlugin = aPlugin
LoadSettings()
math.randomseed(os.time())
cPluginManager:AddHook(cPluginManager.HOOK_PLAYER_BREAKING_BLOCK, OnPlayerBreakingBlock)
LO... | nilq/small-lua-stack | null |
----------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/3668
----------------------------------------------------------------------------------------------------
-- Description: Check SDL transfer erroneous respons... | nilq/small-lua-stack | null |
local box = require 'box'
local fiber = require 'fiber'
local assert = assert
local say_error = say_error
local pairs, type = pairs, type
local ev_now = os.ev_now
local tostring = tostring
local loops_stat = stat.new_with_graphite('loops')
-- exmaple
--
-- local box = require 'box'
-- local loop = require 'box.loop'
-... | nilq/small-lua-stack | null |
local sprites = {}
for i, mod in ipairs(script:GetChildren()) do
for k, v in pairs(require(mod)) do
sprites[k] = v
end
end
return sprites | nilq/small-lua-stack | null |
--[[
Singular BillboardGui that displays a user's ChatBubbles.
We also have BubbleChatBillboards (notice the plural), which handles
rendering each BubbleChatBillboard.
]]
local CorePackages = game:GetService("CorePackages")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")... | nilq/small-lua-stack | null |
function 手势滑动(dialog,id,yy)
velocityTracker = VelocityTracker.obtain();
id.onTouch=function(v,e)
a=e.getAction()&255
switch a
case MotionEvent.ACTION_DOWN
velocityTracker.addMovement(e)
downY=e.getY()
case MotionEvent.ACTION_MOVE
velocityTracker.addMovement(e)
... | 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.