content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
function plugindef()
finaleplugin.RequireSelection = true
finaleplugin.Author = "Nick Mazuk"
finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/"
finaleplugin.Version = "1.0.1"
finaleplugin.Date = "March 30, 2021"
finaleplugin.CategoryTags = "Pitch"
finaleplugin.... | nilq/small-lua-stack | null |
object_tangible_container_loot_npe_loot_crate_high = object_tangible_container_loot_shared_npe_loot_crate_high:new {
}
ObjectTemplates:addTemplate(object_tangible_container_loot_npe_loot_crate_high, "object/tangible/container/loot/npe_loot_crate_high.iff")
| nilq/small-lua-stack | null |
------------------------------
-- Area: Carpenters Landing
-- NM: Mycophile
------------------------------
require("scripts/globals/hunts")
------------------------------
function onMobDeath(mob, player, isKiller)
tpz.hunts.checkHunt(mob, player, 166)
end
| nilq/small-lua-stack | null |
local status, config = pcall(require, "mods/i18n/config/i18nConfig")
if not status then
eprint("[ERROR][i18n]: Couldn't load config, using default settings")
config = { LogLevel = 1, SecondaryLanguages = { "en" } }
end
local LogLevel = { Error = 1, Warn = 2, Info = 3, Debug = 4 }
local logLevelLabel = { "ERROR... | nilq/small-lua-stack | null |
json=require("dkjson")
http = require("socket.http")
ltn12 = require("ltn12")
function removeFromPluginRepresentation()
end
function updatePluginRepresentation()
end
function createPalletPointsIfNeeded(objectHandle)
local data=readPartInfo(objectHandle)
if #data['palletPoints']==0 then
data['pallet... | nilq/small-lua-stack | null |
local wibox = require("wibox")
local beautiful = require("beautiful")
local clock = {}
function clock:init(config)
clock.widget = wibox.widget {
wibox.widget {
format = "<span font='Alarm Clock 14'>%H:%M</span>",
widget = wibox.widget.textclock,
forced_height = config.h... | nilq/small-lua-stack | null |
function HeapInit(pc)
pc.HeapMemory = {}
pc.HeapStackTop = 0
pc.StackFrame = 0
pc.TopStackFrameId = 0
end
function HeapCleanup(pc)
pc.HeapMemory = nil
collectgarbage()
end
function HeapAllocStack(pc)
local NewTop = pc.HeapStackTop + 1
local NewMem = {
StackId = NewTop
}
... | nilq/small-lua-stack | null |
local awful = require('awful')
local gears = require('gears')
require('awful.autofocus')
local modkey = require('configuration.keys.mod').modKey
local altkey = require('configuration.keys.mod').altKey
local dpi = require('beautiful').xresources.apply_dpi
local xrandr = require('module.xrandr')
local clientKeys =
a... | nilq/small-lua-stack | null |
local Players = game:GetService("Players")
local CorePackages = game:GetService("CorePackages")
local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies)
local Roact = InGameMenuDependencies.Roact
local t = InGameMenuDependencies.t
local InGameMenu = script.Parent.Parent
local PageNavigationWatcher... | nilq/small-lua-stack | null |
---=====================================
---luastg user global value
---=====================================
local LOG_MODULE_NAME="[lstg][debug]"
local SCALE=1
local REFRESH_INTERVAL=1
---@class lstg.debug
lstg.debug={}
----------------------------------------
---几大函数执行时间计时
---高精度计时器接口
lstg.debug.usTimer=lstg.Sto... | nilq/small-lua-stack | null |
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
this_is_a_map "yes"
data_file('DLC_ITYP_REQUEST')('stream/prison_props.ytyp')
| nilq/small-lua-stack | null |
local rpc = require 'rpc'
--- @param lsp LSP
--- @return boolean
return function (lsp)
if #lsp.workspaces > 0 then
for _, ws in ipairs(lsp.workspaces) do
-- 请求工作目录
local uri = ws.uri
-- 请求配置
rpc:request('workspace/configuration', {
items = {
... | nilq/small-lua-stack | null |
--- A bouncy box "DVD" screen saver demo
--
-- @author Calle Englund <git@notcalle.xyz>
-- @copyright © 2020 Calle Englund
-- @license
-- The MIT License (MIT)
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the
-- "So... | nilq/small-lua-stack | null |
-- Clear script environment
--[====[
devel/clear-script-env
======================
Clears the environment of the specified lua script(s).
]====]
local args = {...}
if #args < 1 then qerror("script name(s) required") end
for _, name in pairs(args) do
local file = dfhack.findScript(name)
if file then
lo... | nilq/small-lua-stack | null |
--[[
TheNexusAvenger
Class for a King Of The Hill round.
--]]
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local NexusReplication = require(ReplicatedStorage:WaitForChild("External"):WaitForChild("NexusReplication"))
local KingOfTheHill = require(ReplicatedStorage:WaitForChild("Round"):WaitForChil... | nilq/small-lua-stack | null |
local patch_id = "CONVO_OVERRIDE_HELPER"
if rawget(_G, patch_id) then
return
end
rawset(_G, patch_id, true)
print("Loaded patch:"..patch_id)
-- Get an existing state of the convo
function Convo:GetState(id)
self.default_state = self.states[id]
return self
end
-- Clear all functions under this convo
functi... | nilq/small-lua-stack | null |
-- Preprocessor definitions that carryover from lua54.lua
defines {
"GRIT_POWER_BLOB", -- Enable 'raw string' usage
--[[
Experimental Intrinsics
See: citizen-server-impl/include/state/ServerGameState.h
--]]
'GLM_FORCE_DEFAULT_ALIGNED_GENTYPES',
'GLM_FORCE_SSE2',
--'GLM_FORCE_SSE3',
}
if os.istarget('win... | nilq/small-lua-stack | null |
--[[
*************************************************************
* This script is developed by Scouser, it uses modules
* created by other developers but I have made minor / subtle
* changes to get the effects I required.
* Feel free to distribute and modify code,
* but keep reference to its creator
************... | nilq/small-lua-stack | null |
local a = require 'plenary.async'
local cli = require('neogit.lib.git.cli')
local input = require('neogit.lib.input')
local M = {}
local function parse_branches(branches)
local other_branches = {}
for _, b in ipairs(branches) do
local branch_name = b:match('^ (.+)')
if branch_name then
table.insert(... | nilq/small-lua-stack | null |
require "tundra.syntax.glob"
require "tundra.syntax.osx-bundle"
require "tundra.path"
require "tundra.util"
-----------------------------------------------------------------------------------------------------------------------
----------------------------------------------- EXTERNAL LIBS -----------------------------... | nilq/small-lua-stack | null |
object_mobile_lifeday_saun_dann = object_mobile_shared_lifeday_saun_dann:new {
}
ObjectTemplates:addTemplate(object_mobile_lifeday_saun_dann, "object/mobile/lifeday_saun_dann.iff")
| nilq/small-lua-stack | null |
object_tangible_door_exar_kun_door_s3 = object_tangible_door_shared_exar_kun_door_s3:new {
}
ObjectTemplates:addTemplate(object_tangible_door_exar_kun_door_s3, "object/tangible/door/exar_kun_door_s3.iff")
| nilq/small-lua-stack | null |
----------------------------------------------------------------------------------------------------
-- ElvUI module, to display datatex in ElvUI
--
--if ElvUI its not present, dont use this module
if not IsAddOnLoaded( "ElvUI" ) then return; end
--get the engine and create the module
local Engine = select(2,...);
l... | nilq/small-lua-stack | null |
--[[
-------------------------------------------------------------------------------
Menori
@author rozenmad
2021
-------------------------------------------------------------------------------
--]]
--[[--
Perspective camera class.
]]
-- @module menori.PerspectiveCamera
local modules = (...):match('(.*%menori.modu... | nilq/small-lua-stack | null |
term = {}
qA = {}
qB = {}
answA = {}
answB = {}
diffA = math.random(59) + 10;
term[2] = math.random(90 - diffA) + 10;
diffB = math.random(59) + 10 ;
term[4] = math.random(90 - diffB) + 10;
term[1] = diffA + term[2];
term[3] = diffB + term[4];
for i=1,4 do
term[i] = term[i];
end
diffA = diffA
diffB = diffB ... | nilq/small-lua-stack | null |
vim.g.everforest_background = 'hard'
vim.o.background = 'dark'
vim.cmd('colorscheme everforest')
| nilq/small-lua-stack | null |
if not modules then modules = { } end modules ['data-bin'] = {
version = 1.001,
comment = "companion to luat-lib.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
local resolvers = resol... | nilq/small-lua-stack | null |
Script.ReloadScript("scripts/Utils/EntityUtils.lua")
GeomEntity =
{
Client = {},
Server = {},
Editor={
Icon="physicsobject.bmp",
IconOnTop=1,
}
}
--------------------------------------------------------------------------
function GeomEntity.Server:OnInit()
self:SetFlags(ENTITY_FLAG_CLIENT_ONLY,0);
end
----... | nilq/small-lua-stack | null |
-- These commands will navigate through buffers in order regardless of which mode you are using
-- e.g. if you change the order of buffers :bnext and :bprevious will not respect the custom ordering
vim.api.nvim_set_keymap("n", "<tab>", "<cmd>BufferLineCycleNext<CR>", { noremap = true, silent = true })
vim.api.nvim_set_... | nilq/small-lua-stack | null |
ITEM.name = "Металлическая лопата"
ITEM.desc = "Старая металлическая лопата, используется в различных целей в Зоне. Может быть быстро заточека. \n\nХАРАКТЕРИСТИКИ: \n-повсеместное применение \n-используется для: установки палатки (многоразовый) \n-используется как: инструмент для разборки (многоразовый) \n-многоразовы... | nilq/small-lua-stack | null |
local mod = require 'mod'
-- def_ show(expr) print(_STR_(expr),expr)
assert(mod.one() == 42)
f = mod.Fred(22)
assert(f:get() == 22)
f:set2()
assert(f:get() == 0)
a = mod.Alice()
a:set2()
assert(a:get() == 1)
a:set(66)
assert(tostring(a) == "Alice 66")
| nilq/small-lua-stack | null |
local class = require 'middleclass'
local TankTurret = class('littletanks.TankTurret')
function TankTurret:initialize()
end
function TankTurret:destroy()
-- Nothing to do here (yet)
end
function TankTurret:update( timeDelta )
-- Nothing to do here (yet).
end
function TankTurret:draw()
error('Missing impleme... | nilq/small-lua-stack | null |
------------------------------------------------------------------
-- Configuration options for scripted systems in this pack
------------------------------------------------------------------
EXPERIMENTAL_ENABLE_DYNAMIC_REQUIREMENTS = false
| nilq/small-lua-stack | null |
local wk = require('which-key')
local lspinstaller = require('nvim-lsp-installer')
local lspconfig = require('lspconfig')
local illum = require('illuminate')
local aerial = require('aerial')
local lsp = vim.lsp
local diag = vim.diagnostic
wk.register(
{
l = {
name = 'LSP',
a = { '<Cmd>AerialToggle<Cr... | nilq/small-lua-stack | null |
local RunService = game:GetService("RunService")
local Loading = script.Parent
local App = Loading.Parent
local UIBlox = App.Parent
local Packages = UIBlox.Parent
local Roact = require(Packages.Roact)
local t = require(Packages.t)
local ExternalEventConnection = require(UIBlox.Utility.ExternalEventConnection)
local I... | nilq/small-lua-stack | null |
if not modules then modules = { } end modules ['font-prv'] = {
version = 1.001,
comment = "companion to font-ini.mkiv and hand-ini.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
local... | nilq/small-lua-stack | null |
local M = {}
M.home = os.getenv('HOME') or os.getenv('USERPROFILE')
function M.find_dotfiles(opts)
opts = opts or {}
opts.cwd = opts.cwd or vim.loop.cwd()
local Path = require('plenary.path')
opts.entry_maker = opts.entry_maker or function(entry)
local path = Path:new(Path:new(M.home .. entry):... | nilq/small-lua-stack | null |
data:extend({
{
type = "bool-setting",
name = "xtreme-fishing-enablepipes",
setting_type = "startup",
default_value = true,
order = "a[pipes]",
},
{
type = "int-setting",
name = "xtreme-fishing-ugpipestart",
setting_type = "startup",
default_value = 11,
minimum_value = 1,
... | nilq/small-lua-stack | null |
if nil ~= require then
require "fritomod/ListenerList";
end;
Callbacks = Callbacks or {};
local function ActivateKeyboard(frame)
local KEYBOARD_ENABLER = "__KeyboardEnabler";
if not frame[KEYBOARD_ENABLER] then
frame[KEYBOARD_ENABLER] = Functions.Install(function()
frame:EnableKeyboard(true);
return Functi... | nilq/small-lua-stack | null |
--- === cp.ui.Alert ===
---
--- Alert UI Module.
local require = require
local axutils = require "cp.ui.axutils"
local Sheet = require "cp.ui.Sheet"
local Alert = Sheet:subclass("cp.ui.Alert")
--- cp.ui.Alert:new(app) -> Alert
--- Constructor
--- Creates a new `Alert` ... | nilq/small-lua-stack | null |
defines {
"rsc_FullName=\"Yakuza Arcade Machines Player\"",
"rsc_MinorVersion=0",
"rsc_RevisionID=1",
"rsc_BuildID=1",
"rsc_Copyright=\"2021\"",
"rsc_UpdateURL=\"https://github.com/CookiePLMonster/YAMP/releases\""
} | nilq/small-lua-stack | null |
--
--
--
minetest.register_craftitem("yatm_dscs:item_drive_t1", {
basename = "yatm_dscs:item_drive",
base_description = "Item Drive",
description = "Item Drive [32 Cells]",
groups = {inventory_drive = 1, item_drive = 1},
inventory_image = "yatm_inventory_drives_item_tier1.png",
drive_capacity = 32,
s... | nilq/small-lua-stack | null |
function single() return "test"
end
function test ( param1,
param2 )
method()
return 1
end
local tbl = {}
function tbl:method()
self.value = 1
end
function tbl:method2() return 12345678 < 12345678 + 1 end
-- Result --
function single() return "test" end
function test(param1, param2)
met... | nilq/small-lua-stack | null |
local Consts = require "consts"
local NoteInfo = require "noteinfo"
local Envelope = require "envelope"
local Soundwave = require "soundwave"
local NoteWave = require "util.class" "NoteWave"
-- envelope is optional?
function NoteWave:__init(note, speed, startTime)
self._note = note
self._noteStart = startTime... | nilq/small-lua-stack | null |
-- Polished marble nodes
greek.marble_groups = {cracky = 2}
greek.marble_sounds = greek.default_sounds("node_sound_stone_defaults")
greek.register_node_and_stairs("greek:marble_polished", {
description = "Polished Marble",
tiles = {"greek_marble_polished.png"},
groups = greek.marble_groups,
sounds = g... | nilq/small-lua-stack | null |
port = {}
port.GPoint = gincu.GVector2
port.GSize = gincu.GSize
port.createPoint = function(x, y) local p = port.GPoint(); p.x = x; p.y = y; return p; end
port.createScale = function(x, y) local p = port.GPoint(); p.x = x; p.y = y; return p; end
port.createSize = function(w, h) local p = port.GSize(); p.width... | nilq/small-lua-stack | null |
SampleScript = {}
local Trans = nil;
local Speed = 2;
local InputLeft = 0;
local InputRight = 0;
local InputUp = 0;
local InputDown = 0;
local SwordTrans = nil;
local function ChangeFacing(facingDir)
Trans.Rotation.y = math.pi * facingDir;
end
function SampleScript:OnCreate()
--Maybe try Scene:GetEntity(self... | nilq/small-lua-stack | null |
return (function(self, event)
return api.RegisterEvent(self, event)
end)(...)
| nilq/small-lua-stack | null |
HYPEX.MapLoader.Print = function(msg,val)
val = val == 1 and "SUCCESS" || val == 2 and "FAIL" || val == 3 and "RUNNING" || "INFO"
print("[HYPEX] [MapLoader] [" .. val .. "] " .. msg)
end
local print, config = HYPEX.MapLoader.Print, HYPEX.MapLoader.Config
hook.Add("Initialize", "HYPEX.MAPLOADER.Execute", functio... | nilq/small-lua-stack | null |
--- @class DungeonPokemonPlayer : DungeonPokemon a class that represents a player into a Dungeon.
local DungeonPokemonPlayer = _C.DungeonPokemon:new_void()
DungeonPokemonPlayer.__index = DungeonPokemonPlayer
--- Creates a new DungeonPokemonPlayer.
--- @param number number the PokéDex number of the Pokémon.
--- @param ... | nilq/small-lua-stack | null |
function initEvents()
local m = Slipe.Shared.Elements.ElementManager.getInstance()
local _elementEvents = Slipe.Shared.Elements.Events
local _colShapeEvents = Slipe.Shared.CollisionShapes.Events
local _sharedPickupEvents = Slipe.Shared.Pickups.Events
local _markerEvents = Slipe.Shared.Markers.Events
local eve... | nilq/small-lua-stack | null |
---------------------------------------------------------------------
-- Project: irc
-- Author: MCvarial
-- Contact: mcvarial@gmail.com
-- Version: 1.0.3
-- Date: 31.10.2010
---------------------------------------------------------------------
local numberOfPlayers = 0
local players = {}
local eventsAdded = false
lo... | nilq/small-lua-stack | null |
-- Resizes windows
require("../common")
hs.window.animationDuration = 0
-- hs.loadSpoon("MiroWindowsManager")
-- spoon.MiroWindowsManager:bindHotkeys({
-- up = {hyper, "up"},
-- right = {hyper, "right"},
-- down = {hyper, "down"},
-- left = {hyper, "left"},
-- fullscreen = {hyper, "f"}
-- })
hs.hotkey.bind... | nilq/small-lua-stack | null |
local skynet = require 'skynet'
local dns = require 'skynet.dns'
skynet.start(function()
-- dns.server()
-- local ip, ips = dns.resolve('github.com')
-- skynet.error('ip = ', ip)
-- for _, v in pairs(ips) do
-- skynet.error('v = ', v)
-- end
local dnsservice = skynet.localname('.dns... | nilq/small-lua-stack | null |
" JAPANESE lol
inoremap <leader>ja <C-v>u3041
inoremap <leader>ji <C-v>u3043
inoremap <leader>ju <C-v>u3045
inoremap <leader>je <C-v>u3047
inoremap <leader>jo <C-v>u3049
inoremap <leader>jka <C-v>u304b
inoremap <leader>jki <C-v>u304d
inoremap <leader>jku <C-v>u304f
inoremap <leader>jke <C-v>u3051
inoremap <leader>j... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
-- vim: paste filetype=lua nospell ts=2 sw=2 sts=2 et :
---------- --------- --------- --------- --------- --
require "./lib"
rogues()
| nilq/small-lua-stack | null |
require "test-setup"
local lunit = require "lunit"
local Cairo = require "oocairo"
local assert_error = lunit.assert_error
local assert_true = lunit.assert_true
local assert_false = lunit.assert_false
local assert_equal = lunit.assert_equal
local assert_userdata = lunit.assert_userdata
local ass... | nilq/small-lua-stack | null |
local ADDON, Addon = ...
local Util = Addon.Util
-- `HereticRaidInfo` implements a cache for player infos in raids. It's main
-- use is to provide class coloring for the addon. The class uses a timer
-- to continously index the players in the raid, which gets initialized in
-- `RequestReindexing`. HereticRaidInfo:Upd... | nilq/small-lua-stack | null |
return function(newENV)
_ENV = newENV
----- DO NOT MODIFY ABOVE -----
-- A basic Enemy Entity script skeleton you can copy and modify for your own creations.
comments = { "Smells like the work of an enemy stand.", "Poseur is posing like his life depends on it.", "Poseur's limbs shouldn't be moving in this way." }
comm... | nilq/small-lua-stack | null |
return (function(self, scale)
if scale > 0 then
u(self).scale = scale
end
end)(...)
| nilq/small-lua-stack | null |
local helpers = {}
local util = require('lapis.util')
local lunamark = require('lunamark')
local md_opts = {}
local md_writer = lunamark.writer.html.new(md_opts)
local md_parse = lunamark.reader.markdown.new(md_writer, md_opts)
function helpers.is_same_user(session, username)
return session.current_user.usern... | nilq/small-lua-stack | null |
-----------------------------------------
-- INFORMATION
-- Guide events and actions (e.g. "goto")
-----------------------------------------
-----------------------------------------
-- LOCALIZED GLOBAL VARIABLES
-----------------------------------------
local ZGV = _G.ZGV
local GetCurrentMapIndex = _G.GetC... | nilq/small-lua-stack | null |
local queue = require("base.queue")
local M ={}
M.__index = M
function M.new( agent)
local o = {
previous = nil,
current = nil,
agent = agent,
states = queue.new(),
ispause = false
}
return setmetatable(o, M)
end
function M:setpause(pause)
self.ispause = p... | nilq/small-lua-stack | null |
local http = require("http")
local plugin = require("plugin")
local time = require("time")
local plugin_body = [[
local http = require("http")
local err = http.serve_static("./test/data", "127.0.0.1:2115")
if err then error(err) end
]]
local p = plugin.do_string(plugin_body)
p:run()
time.sleep(1)
if not p:is_running(... | nilq/small-lua-stack | null |
local Enabled = true
script.Parent.Touched:connect(function(hit)
if Enabled then
local human = hit.Parent:FindFirstChild("Humanoid")
if human then
local Player = game.Players:GetPlayerFromCharacter(human.Parent)
if Player ~= nil then
Enabled = false
script.Parent.Open:Play()
wait(0.3)
Instanc... | nilq/small-lua-stack | null |
-- startup (runs on boot)
-- load the APIs
os.loadAPI("/utils/TextUtils")
os.loadAPI("/utils/FileUtils")
-- variables
userServerID = 43
-- fin
-- clear the terminal
term.clear()
term.setCursorPos(1,1)
-- print the servers ID to allow it to be run on any server
print("Email Server (ID: "..os.getComputerID()..")")
--... | nilq/small-lua-stack | null |
local L = LibStub("AceLocale-3.0"):NewLocale("HandyNotes_DungeonLocations", "zhCN")
if not L then return end
L["Allow left click to open journal to dungeon or raid"] = "允许使用左键打开地下城或团队副本的冒险指南"
L["Allow right click to create waypoints with TomTom"] = "允许使用右键建立 TomTom 的引导箭头"
L["Continent Alpha"] = "世界地图图标透明度"
L["Continen... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0296-Update-video-streaming-capabilities-during-ignition-cycle.md
--
-- Description: Processing of OnSystemCapabilityUpdated notificatio... | nilq/small-lua-stack | null |
require "brains/bunnymanbrain"
require "stategraphs/SGbunnyman"
local assets =
{
Asset("ANIM", "anim/manrabbit_basic.zip"),
Asset("ANIM", "anim/manrabbit_actions.zip"),
Asset("ANIM", "anim/manrabbit_attacks.zip"),
Asset("ANIM", "anim/manrabbit_build.zip"),
Asset("ANIM", "anim/manrabbit_beard_build.zip"),
Asset... | nilq/small-lua-stack | null |
local class = require 'ext.class'
local ffi = require 'ffi'
local gl = require 'gl'
local Tex2D = require 'gl.tex2d'
local Tex3D = require 'gl.tex3d'
local glreport = require 'gl.report'
local fboErrors = {
'GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT',
'GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT',
'GL_FRAMEBUFFER_INCOM... | nilq/small-lua-stack | null |
-- TODO
--
local Runner = require "nvim-test.runner"
local cargotest = Runner:init({ command = "cargo test" }, {
rust = [[
(
(mod_item
name: (identifier) @module-name)
@scope-root)
(
(function_item
name: (identifier) @function-name)
@scope-root)
]],
})
... | nilq/small-lua-stack | null |
function DIALOG()
NODE(0)
--047
SAYSPEECH("Keine Zeit zum Plaudern. Sie sehen doch, dass ich beschaeftigt bin...",3047)
ENDDIALOG()
end
| nilq/small-lua-stack | null |
local ffi = require("ffi")
local bit = require("bit")
local lshift = bit.lshift;
local rshift = bit.rshift;
local bnot = bit.bnot;
local S = require("syscall")
local nr = require "syscall.linux.nr"
local _IO, _IOW = S.c.IOCTL._IO, S.c.IOCTL._IOW
local shared = require("shared")
-- The table which will hold anything w... | nilq/small-lua-stack | null |
local SheetInfo = {}
SheetInfo.sheet = {}
function SheetInfo:getSheet()
return self.sheet;
end
return SheetInfo
| nilq/small-lua-stack | null |
local playerPlayback = {}
playerPlayback.name = "playbackTutorial"
playerPlayback.depth = 0
playerPlayback.justification = {0.5, 1.0}
playerPlayback.texture = "characters/player/sitDown00"
playerPlayback.color = {0.8, 0.2, 0.2, 0.75}
playerPlayback.nodeLineRenderType = "line"
playerPlayback.nodeLimits = {0, 2}
playerP... | nilq/small-lua-stack | null |
SILE = require("core.sile")
local icu = require("justenoughicu")
describe("SILE.linebreak", function()
local chars = { 0x10000, 0x10001, 0x10002 }
local utf8string = ""
for i = 1,#chars do
utf8string = utf8string .. luautf8.char(chars[i])
end
it("should be the right length in UTF8", function()
asser... | nilq/small-lua-stack | null |
--variables DONT CHANGE THESE
MouseX = myPlayer.x
MouseY = myPlayer.y
direction = 1
local squareSize = 20
--making the camera cube in between the player and the mouse + settings giving it X and Y value at the start
camera = display.newRect(5, 5 , squareSize, squareSize)
camera.alpha = 0
camera.x = myPlaye... | nilq/small-lua-stack | null |
--[[
-- 作者:Steven
-- 日期:2017-02-26
-- 文件名:file_apis.lua
-- 版权说明:南京正溯网络科技有限公司.版权所有©copy right.
-- 文件上传下载的接口封装文件,用户文件管理方案的接口定义
--]]
--[[
-- 上传文件基础功能文件,用于其他需要上传系统的调用,调用完成之后,将文件存储到系统中,大文件通过hadoop存储,
-- 小文件通过Haystack系统存储
-- 上传之后需要计算md5和sha1编码,同时生成唯一文件编号,写入数据库和redis系统中,写数据库和redis注意分布式存储
-- 一切处理完成之后,系统将文件唯一编号返回给系统,失... | nilq/small-lua-stack | null |
-- Colorscheme name: nord.nvim
-- Description: Port of articicestudio's nord theme for neovim
-- Author: https://github.com/shaunsingh
local util = require('nord.util')
-- Load the theme
local set = function ()
util.load()
end
return { set = set }
| nilq/small-lua-stack | null |
local w = display.contentWidth
for i=0,w do
local sin = 400 - math.sin(math.rad(i)) * 100
local cos = 700 - math.cos(math.rad(i)) * 100
-- display.newCircle(i, sin, 2)
-- display.newCircle(i, cos, 2)
local line = display.newLine(i, sin, i, cos)
line:setStrokeColor(1-(i/w),i/w,0)
end
print(math.deg(math.p... | 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 |
-- # abcd.lua
--
-- ## Compute classifier performance measures
--
-- To use this code:
--
-- 1. Create an `ABCD` object.
-- 2. Run your classifier on a test suite. Take the `predicted` and
-- `actual` classification and throw it a `ABCD1`.
-- 3. After that, get a report using `ABCDReport`.
--
-- For example ... | nilq/small-lua-stack | null |
local VariableFactory = require 'factory'()
function VariableFactory:build(name, min, max, discrete_points)
self.name = name or ''
self.min = min or 0.0
self.max = max or 10.0
self.terms = {}
self.range = self.max - self.min
self.disc = discrete_points or self.range + 1
self.step = self.range / (self.di... | nilq/small-lua-stack | null |
local a=module('_core','libs/Tunnel')local b=module('_core','libs/Proxy')APICKF=b.getInterface('API')cAPI=a.getInterface('cAPI')hpp={}a.bindInterface("hpp_contraband",hpp)Citizen.CreateThread(function()while true do Citizen.Wait(5*60*1000)collectgarbage("count")collectgarbage("collect")end end)function hpp.tryBuyItem(c... | nilq/small-lua-stack | null |
-- ===========================================================================
-- Base File
-- ===========================================================================
include("DiplomacyRibbon");
include("DiplomacyRibbon_CQUI.lua"); | nilq/small-lua-stack | null |
--[[
frame.lua
A specialized version of the bagnon frame for void storage
--]]
local MODULE = ...
local ADDON, Addon = MODULE:match('[^_]+'), _G[MODULE:match('[^_]+')]
local Frame = Addon:NewClass('VaultFrame', 'Frame', Addon.Frame)
Frame.Title = LibStub('AceLocale-3.0'):GetLocale(ADDON).TitleVault
Frame.ItemFram... | nilq/small-lua-stack | null |
--- moneybox.lua ---
-- This is an example how to create an importable archetype,
-- that any DSB dungeon can then load via dsb_import_arch(file, root_name).
-- All you have to distribute is this single Lua file, and any
-- bitmaps that the new object needs.
--
-- The names used by the data structures created her... | nilq/small-lua-stack | null |
local _module_0 = { }
local find, sub, match = string.find, string.sub, string.match
local sanitize
sanitize = function(input)
if "string" == type(input) then
return input:gsub("[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%0")
else
return input
end
end
local trim
trim = function(input)
do
local n = find(input, "%S")
if... | nilq/small-lua-stack | null |
function string.trim(s)
return string.gsub(s, "^%s*(.-)%s*$", "%1")
end
function string.split(inputstr, sep)
if string.len(inputstr) == 0 then
return {}
end
sep = sep or "%s"
local t = {}
for field, s in string.gmatch(inputstr, "([^" .. sep .. "]*)(" .. sep .. "?)") do
table.ins... | nilq/small-lua-stack | null |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('FriendInfo_pb', package.seeall)
local FRIENDINFO = protobuf.Descriptor();
FRIENDINFO.name = "FriendInfo"
FRIENDINFO.full_name = ".com.xinqihd.sns.gameserver.proto.FriendInfo"
FRIENDINFO.nested_types = {}
FRIENDINFO.enum_types = {}... | nilq/small-lua-stack | null |
--[[
This module holds all complex mathematical
formulas used to work out game values
--]]
local f = {}
--[[--------------------------------------
Stats
--]]--------------------------------------
f.stats = {}
f.stats[1] = {}
f.stats[3] = {}
-- Returns the HP value in gen I
f.stats[1].hp = functi... | nilq/small-lua-stack | null |
local prometheus = require "kong.plugins.prometheus.exporter"
local kong = kong
prometheus.init()
local PrometheusHandler = {
PRIORITY = 13,
VERSION = "1.2.1",
}
function PrometheusHandler.init_worker()
prometheus.init_worker()
end
function PrometheusHandler.log(self, conf)
local message = kong.log.seri... | nilq/small-lua-stack | null |
local isBleeding = 0
local bleedTickTimer, advanceBleedTimer = 0, 0
local fadeOutTimer, blackoutTimer = 0, 0
local onPainKiller = 0
local wasOnPainKillers = false
local onDrugs = 0
local wasOnDrugs = false
local legCount = 0
local armcount = 0
local headCount = 0
local playerHealth = nil
local playerArmour = nil
l... | nilq/small-lua-stack | null |
local tag = "theater"
local reload = theater and theater.Screen
theater = { Screen = reload }
theater.Locations = {
gm_bluehills_test3 = {
offset = Vector(0, 0, 0),
angle = Angle(-90, 90, 0),
height = 352,
width = 704,
mins = Vector(353, 81, -35),
maxs = Vector(1184, 1184, 434),
mpos = Vector(... | nilq/small-lua-stack | null |
-- 12Gauge_Nick
-- 12/10/2021
--[[
In the values below this script you need to enter your ClientId, ClientSecret, and YOUR account username! This API WILL LOGIN into your account!
- DO NOT GIVE OUT YOUR CLIENT SECRET KEY!
]]
local module = {}
local OAuthCode = require(script.GetOAuth)()
local... | nilq/small-lua-stack | null |
return {'bsc'} | nilq/small-lua-stack | null |
MpR = {}
MpR["max_h"] = 32*5
MpR["max_w"] = 0
local function get_start_load_size()
local from_x = math.floor((Tiles.x)/ Tiles.tile_size.w)
local from_y = math.floor((Tiles.y)/ (Tiles.tile_size.h/2) +1)
return from_x,from_y
end
local function get_end_load_size()
local machine = get_game_machine()
loc... | nilq/small-lua-stack | null |
DEBUG_PROTOTYPES = false
require("lualib.functions")
require("config")
require("prototypes.categories.fuel-category")
require("prototypes.items.item-groups")
require("prototypes.items.items")
require("prototypes.recipes.processing")
require("prototypes.recipes.fuel-cell")
require("prototypes.recipes.nuclear-fuel"... | nilq/small-lua-stack | null |
GUIEditor = {
gridlist = {},
tab = {},
tabpanel = {},
label = {}
}
GUIEditor.tabpanel[1] = guiCreateTabPanel(5, 5, 715, 414, false)
GUIEditor.tab[1] = guiCreateTab("Your team", GUIEditor.tabpanel[1])
GUIEditor.label[1] = guiCreateLabel(46, 22, 634, 55, "Create your own team! You will be able to set a... | nilq/small-lua-stack | null |
local packer_load = nil
local cmd = vim.api.nvim_command
local fmt = string.format
local function verify_conditions(conds, name)
if conds == nil then
return true
end
for _, cond in ipairs(conds) do
local success, result
if type(cond) == 'boolean' then
success, result = true, cond
elseif typ... | 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.