content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
--- This module provides some utilities to wipe arrays.
--
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, mo... | nilq/small-lua-stack | null |
local core = require "core"
local command = require "core.command"
local keymap = require "core.keymap"
command.add(nil, {
["save-all-unsaved-changes"] = function()
core.log("Saving all unsaved changes...")
for _, doc in ipairs(core.docs) do
if doc:is_dirty() then
if doc.filename the... | nilq/small-lua-stack | null |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local BitBuffer = require(ReplicatedStorage.BitBuffer)
local CommonSpec = ReplicatedStorage.BitBuffer.CommonSpec
local RobloxSpec = ReplicatedStorage.BitBuffer.RobloxSpec
local commonSpecModuleNames = require(CommonSpec)
local robloxSpecModuleNames = requ... | nilq/small-lua-stack | null |
data:extend(
{
{
type = "technology",
name = "gem-processing",
icon = "__Engineersvsenvironmentalist__/graphics/icons/ore/gem-ore.png",
prerequisites = {"steel-processing","silicon-processing"},
effects =
{
{
type = "unlock-recipe",
recipe = "sort-gem-ore"
},
{
... | nilq/small-lua-stack | null |
-- Standard awesome library
require("awful")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
-- The default is a dark theme
theme_path = "/home/zhou/.config/awesome/themes/default/theme.lua"
... | nilq/small-lua-stack | null |
local class = require 'class'
local Timer = class 'Timer'
function Timer:initialize(duration, func)
-- Overall timer duration
self.duration = duration
-- elapsed time
self.currentTicker = 0
-- is timer active? Can be paused/resumed
self.active= false
-- On finish function (optional)... | nilq/small-lua-stack | null |
AI = baseCharacter:new()
function AI:load()
baseCharacter:load({
scale = 0.035 * utils.vh, -- 0.25
xCenter = love.graphics.getWidth() / 2,
yCenter = love.graphics.getHeight() / 2,
})
self.ySpeed = 7 * utils.vh
self.timer = 0
self.rotation = 0
end
function AI:update(dt)
... | nilq/small-lua-stack | null |
function onMailReceive(cid, target, item, openBox)
if(openBox) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "New mail has arrived.")
end
return true
end
| nilq/small-lua-stack | null |
local argparse = require "3rdparty.argparse.argparse"
return argparse | nilq/small-lua-stack | null |
local CCBLoader = {}
local function fillCallbacks(proxy, owner, names, nodes, events)
if not owner then return end
--Callbacks
for i = 1, #names do
local callbackName = names[i]
local callbackNode = tolua.cast(nodes[i],"cc.Node")
proxy:setCallback(callbackNode, function(sender, ev... | nilq/small-lua-stack | null |
freeze = {
cast = function(player, target)
local duration = 60000
local magicCost = 800
local damage = 112
if (not player:canCast(1, 1, 0)) then
return
end
if (player.magic < magicCost) then
player:sendMinitext("Your will is too weak.")
return
end
if (target.blType == BL_PC and not player:c... | nilq/small-lua-stack | null |
local util = {}
-- font handling
local fonts = {}
function util.getFont(size)
assert(type(size) == "number")
fonts[size] = fonts[size] or love.graphics.newFont("resources/AlegreyaSans-Regular.ttf", size)
return fonts[size]
end
function util.radToDeg(rad)
return rad * (180 / math.pi)
end
function util.degToRa... | nilq/small-lua-stack | null |
--------------
-- Includes --
--------------
#include 'include/internal_events.lua'
---------------
-- Variables --
---------------
local g_Effects = {}
local g_Enabled = {}
local g_LowFpsSeconds = 0
-------------------
-- Custom events --
-------------------
addEvent('onRafalhAddEffect')
addEve... | nilq/small-lua-stack | null |
local command = {}
command.name = "command"
command.commands = {}
command.prefix = "+"
_G.PREFIX = command.prefix
function command.SetPrefix(cmd)
command.prefix = cmd or "+"
end
function command.GetPrefix()
return command.prefix
end
function command.Register(label, desc, category, func)
if not label then
print... | nilq/small-lua-stack | null |
require "catui"
local love = love
local redis = require 'redis'
local settings = require 'settings'
local redisConfig = settings.redisConfig
local redisClient
local function connectRedis()
redisClient = redis.connect(redisConfig)
redisClient:select(redisConfig.db)
end
-- REDIS KEY类型
local REDIS_KEY_TYPE = {... | nilq/small-lua-stack | null |
-- colorscheme
vim.g.vscode_style = "dark"
vim.g.vscode_transparent = 1
vim.cmd[[colorscheme vscode]]
-- statusbar
require'lualine'.setup()
| nilq/small-lua-stack | null |
Config = {}
Config.Times = { 10, 22 } --Hours, in server time, that the degradation will occur | nilq/small-lua-stack | null |
local status_ok, filetype = pcall(require, "filetype")
if not status_ok then
return
end
filetype.setup{}
| nilq/small-lua-stack | null |
--------------------------------
-- @module Effect3D
-- @extend Ref
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Effect3D] draw
-- @param self
-- @param #mat4_table transform
--------------------------------
--
-- @function [parent=#Effect3D] setTarget
-- @param self
-- ... | nilq/small-lua-stack | null |
vim.cmd([[source ~/.config/nvim/vim/coc.vim]])
| nilq/small-lua-stack | null |
local ok = prequire('project_nvim')
if not ok then
return
end
require('project_nvim').setup {
manual_mode = true,
ignore_lsp = { 'null-ls' },
}
require('telescope').load_extension('projects')
vim.keymap.set('n', '<LocalLeader>fp', '<Cmd>Telescope projects<CR>')
local group = vim.api.nvim_create_augroup('Project... | nilq/small-lua-stack | null |
NoRun = {}
function mycheck(sender)
local id = getProcessIDFromProcessName("RobloxPlayer.exe");
for i,v in pairs(NoRun) do
if v==id or not id then
return
end
end
table.insert(NoRun, id);
openProcess(id);
autoAssemble([[
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(loop1)
l... | nilq/small-lua-stack | null |
-- namesizer
-- a name synthesizer
-- K2 to create nonsense name
-- K3 to synthesize a name
local NameSizer = include("lib/namesizer")
local name = ""
local shiftDown = false
function init()
name = NameSizer.rnd()
redraw()
end
function key(n, z)
if n == 1 then
shiftDown = z == 1
elseif shi... | nilq/small-lua-stack | null |
-- eLua build system
module( ..., package.seeall )
local lfs = require "lfs"
local sf = string.format
utils = require "utils.utils"
-------------------------------------------------------------------------------
-- Various helpers
-- Return the time of the last modification of the file
local function get_ftime( pat... | nilq/small-lua-stack | null |
--new
function DIALOG()
--Trigger
--Triggernumber,Type,Person
--0,D,Zakashi
--1,D,Kev
--2,D,Benjamin
--3,D,Tangent
--Startnode, Person
--0
--50, Zakashi
--100, Kev Critter
--150, Benjamin Kain
--200, Tangent Employee
--Items -> none
-----------------------------------------------------
--Human Resou... | nilq/small-lua-stack | null |
module(..., package.seeall)
local db = BAMBOO_DB
--- create a list
--
function save( key, tbl )
-- if exist, remove it first
if db:exists(key) then
db:del(key)
end
-- push all elements in tbl to redis hash
for k, v in pairs(tbl) do
db:hset(key, k, tostring(v))
end
end
--- update a list
--
function update... | nilq/small-lua-stack | null |
mapEffects = require "lib/mapEffects"
target.avatar_oriented_effect(mapEffects.getAvatarOrientedEffect("userTalk")) | nilq/small-lua-stack | null |
-- @is_minor boolean
function TrackList:adjust_windows(is_minor)
return r.TrackList_AdjustWindows(is_minor)
end
function TrackList:update_all_external_surfaces()
return r.TrackList_UpdateAllExternalSurfaces()
end
| nilq/small-lua-stack | null |
-- makes any arrow markers move up and down like in single player
local streamedMarkers = {} -- { marker = { (baseX, baseY, baseZ | offsetX, offsetY, offsetZ, attachedTo = elem), anim = anim } }
local sin = math.sin
local function setMarkerZ(marker, angle)
local info = streamedMarkers[marker]
if not info th... | nilq/small-lua-stack | null |
require "import"
import "mlua.muk"
import "com.michael.NoScrollListView"
import "com.michael.NoScrollGridView"
local debug_time_create_n=os.clock()
if not 文件是否存在(MUKAPP文件()) then
创建文件夹(MUKAPP文件())
end
if not 文件是否存在(MUKAPP文件("Download")) then
创建文件夹(MUKAPP文件("Download"))
end
if not 文件是否存在(内置存储文件()) then
创建文件夹(内置存储文... | nilq/small-lua-stack | null |
require "libs.utils"
require "libs.taskmgr"
require "libs.sysTime"
require "libs.datastructs"
require "libs.fileActions"
require "libs.folderActions"
require "libs.logging"
require "kernel.settingsmgr"
require "kernel.displaymgr"
require "kernel.eventmgr"
require "kernel.networkmgr"
--PANDORA Meaning
--P lanetary
... | nilq/small-lua-stack | null |
-- Created by @project-author@ character is Bearesquishy - dalaran please credit whenever.
-- Source on GitHub: https://n6rej.github.io
local addonName, addonTable, addon = ...
-- Get reference to AdiBags addon
local AdiBags = LibStub("AceAddon-3.0"):GetAddon("AdiBags")
local db = addonTable.db
local MatchI... | nilq/small-lua-stack | null |
object_tangible_item_entertainer_console_stage_fog_machine = object_tangible_item_entertainer_console_shared_stage_fog_machine:new {
}
ObjectTemplates:addTemplate(object_tangible_item_entertainer_console_stage_fog_machine, "object/tangible/item/entertainer_console/stage_fog_machine.iff")
| nilq/small-lua-stack | null |
-- A Multibow keyboard layout for the Kdenlive (https://kdenlive.org/) open
-- source non-linear video editor.
--[[
Copyright 2019 Harald Albrecht
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software ... | nilq/small-lua-stack | null |
if CLIENT then
local lip_error, eye_error = nil, nil
local _, convarValues = vrmod.AddCallbackedConvar("vrmod_use_sranipal", nil, "0", nil, nil, nil, nil, tobool)
local origMouthMove = nil
local flexSetups = {}
net.Receive( "vrmod_flexsetup", function( len, ply )
local ply = net.ReadEntity()
if ... | nilq/small-lua-stack | null |
O = {
auto_close_tree = 0,
auto_complete = true,
colorscheme = 'iceberg',
hidden_files = true,
wrap_lines = false,
number = true,
relative_number = true,
shell = 'bash',
-- @usage pass a table with your desired languages
treesitter = {
ensure_installed = "all",
i... | nilq/small-lua-stack | null |
-- Based on tilecoding Version3 from https://webdocs.cs.ualberta.ca/~sutton/tiles/tiles3.html
local function tilecoding(opt)
-- Set a random seed for consistent hashing
math.randomseed(65597)
local numTilings = opt.numTilings
local scaleFactor = opt.scaleFactor
local memorySize = opt.memorySize
local ... | nilq/small-lua-stack | null |
vim.g.calendar_google_calendar = 1
vim.g.calendar_google_task = 1
vim.g.calendar_first_day = "monday"
vim.g.calendar_task = 1
vim.g.calendar_event_start_time = 1
| nilq/small-lua-stack | null |
local packer = nil
local function init()
if not packer then
vim.api.nvim_command('packadd packer.nvim')
packer = require('packer')
packer.init({
disable_commands = true,
auto_clean = true,
compile_on_sync = true,
})
end
local use = packer.use
packer.reset()
use 'nathom/fil... | nilq/small-lua-stack | null |
LGlobal_BGMmusid = 0;
LGlobal_BGMStream = NULL;
LGlobal_BGMChannel = NULL;
LGlobal_SEInfos = {};
function LGlobal_LoadBGM(musid, bForce)
if bForce == nil then
bForce = false;
end
if LGlobal_BGMmusid == musid and not bForce then
return;
end
if LGlobal_BGMChannel ~= NULL then
if LG... | nilq/small-lua-stack | null |
-- NetHack 3.6 medusa.des $NHDT-Date: 1432512783 2015/05/25 00:13:03 $ $NHDT-Branch: master $:$NHDT-Revision: 1.10 $
-- Copyright (c) 1989 by Jean-Christophe Collet
-- Copyright (c) 1990, 1991 by M. Stephenson
-- NetHack may be freely redistributed. See license for details.
--
des.level_init({ style = "solidfill", fg... | nilq/small-lua-stack | null |
local awful = require("awful")
local gears = require("gears")
local wibox = require("wibox")
local beautiful = require("beautiful")
local naughty = require("naughty")
local lain = require("lain")
local http = require("socket.http")
local json = require("JSON")
local ltn12 = require("ltn12")
local secrets = require("sec... | nilq/small-lua-stack | null |
-- type = helm -- DO NOT REMOVE THIS LINE!
local name = "helm"
local version = "3.8.2"
local org = ""
local repo = name
food = {
name = name,
description = "The Kubernetes Package Manager",
license = "Apache-2.0",
homepage = "https://github.com/helm/helm",
version = version,
packages = {
... | nilq/small-lua-stack | null |
MODULE_HELP_START = 'Commands'
MODULE_HELP_CONTENTS = [[<font face="mono" size="15"><a href="event:Commands">Commands</a></font>
]]
MODULE_HELP = {
['Commands'] = [[<font face="mono" size="15">!help
!init
!s <command>
!ui [!]me|all|<name>...
!r
!reset
tfm.exec.newGame(curMap)
!m [<map>... | nilq/small-lua-stack | null |
local TXT = Localize{
[0] = " ",
[1] = "Crate",
[2] = "Barrel",
[3] = "Well",
[4] = "Drink from the Well",
[5] = "Fountain",
[6] = "Drink from the Fountain",
[7] = "House",
[8] = "Trash Heap",
[9] = "Keg",
[10] = "Cart",
[11] = "Refreshing!",
[12] = "Boat",
[13] = "Dock",
[14] = "Anvil",
[15] = "Button"... | nilq/small-lua-stack | null |
for index, force in pairs(game.forces) do
if force.technologies["X100_assembler"].researched then
force.recipes["X100_assembler"].enabled = true
force.recipes["processing_cable_X100"].enabled = true
force.recipes["processing_gear_X100"].enabled = true
force.recipes["processing_unit_X... | nilq/small-lua-stack | null |
return {
install_script = function()
if require("installer/utils/os").is_windows then
return [[
if (Test-Path PowerShellEditorServices) {
Remove-Item -Force -Recurse PowerShellEditorServices
}
Invoke-WebRequest -UseBasicParsing https://github.com/PowerShell/PowerShellEditor... | nilq/small-lua-stack | null |
local Dialogue = {}
utf8 = require"utf8"
function utf8.sub(str, i, j)
if i == 0 and j == 0 then
return nil
end
local ii = i
local jj = j
if ii < 0 then ii = utf8.len(str)-math.abs(ii) + 1 end
if jj < 0 then jj = utf8.len(str)-math.abs(jj) + 1 end
local r = ""
local s = utf8.offset(str... | nilq/small-lua-stack | null |
local old_ptd002_init = PlayerTweakData.init
function PlayerTweakData:init(tweak_data)
old_ptd002_init(self, tweak_data)
self.damage.DOWNED_TIME = 60
end | nilq/small-lua-stack | null |
modifier_flying_for_pathing = class( {} )
function modifier_flying_for_pathing:CheckState()
local state = {
[MODIFIER_STATE_FLYING_FOR_PATHING_PURPOSES_ONLY] = true
}
return state
end
function modifier_flying_for_pathing:IsHidden()
return true
end
function modifier_flying_for_pathing:IsPurgable()
return f... | nilq/small-lua-stack | null |
local platform = ...
loadfile(RootDirectory .. "ProjectGen\\Middlewares\\assimp.lua")(platform)
loadfile(RootDirectory .. "ProjectGen\\Middlewares\\rapidjson.lua")(platform) | nilq/small-lua-stack | null |
local mongo = require('mongo');
local inspect = require('inspect');
function db (config)
local db = mongo.Connection.New();
db:connect(config.db.host);
function getIncomingExtensions ()
local query = db:query("viola.incoming");
local exts = {};
for result in query... | nilq/small-lua-stack | null |
character = {
[104001] = { name = 30001, description = 35001, itemtype = 1, vocation = 1, camp = 1, quality = 4, maxquality = 4, skill1 = { {1, 511}, }, skill2 = { {21, 521}, }, attribute1 = { {1, 115}, {3, 23}, {4, 19}, {5, 35}, {16, 1000}, {8, 1000}, {25, 2}, {13, 80}, }, gender = 1, handbookhero_id = { 1, }, },
[107... | nilq/small-lua-stack | null |
local ui = script.Parent.Parent
local Roact = require(game.ReplicatedStorage.Roact)
local Common = game.ReplicatedStorage.Pioneers.Common
local Client = ui.Parent
local RunService = game:GetService("RunService")
local ViewWorld = require(Client.ViewWorld)
local TileMarker = Roact.Co... | nilq/small-lua-stack | null |
--[[
This module provides additional randomness-related functions, e.g. enerating continuous noise.
]]
--luacheck: no max line length
local random = {}
function random.new_rng()
local rng = {}
-- initialize the seedbox to random values
function rng:seed()
local seedbox = {}
for i=0, 255 do
seedbox[i] = mat... | nilq/small-lua-stack | null |
local data = require("internal.data")
local i18n = require("internal.i18n.init")
local Chara = require("api.Chara")
local Rand = require("api.Rand")
local I18N = require("api.I18N")
local WeightedSampler = require("mod.tools.api.WeightedSampler")
local Log = require("api.Log")
local Talk = {}
Talk.DEFAULT_RANDOM_WEIG... | nilq/small-lua-stack | null |
-- Chatpic lets us print out obnoxious pictures using raid icons.
--
-- Specifically, it provides a place for pictures and sets. Pictures
-- are tables of strings that describe an image. The symbols that the
-- picture uses are interpreted by the set. For example:
--
-- Chatpic.set.banner={
-- ["_"]="{square}",
-- ... | nilq/small-lua-stack | null |
local PlayerGuiUtil = {}
local Player = game:GetService("Players").LocalPlayer
function PlayerGuiUtil.GetPlayerGui()
local PlayerGui = Player:WaitForChild("PlayerGui") -- it should return at some point
return PlayerGui
end
return PlayerGuiUtil | nilq/small-lua-stack | null |
--
-- Copyright 2019 The FATE 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 require... | nilq/small-lua-stack | null |
{
scoreMode = "SHIELD",
useTraffic = false,
puzzleGrid = false,
jumpMode = Diff.JumpModes.NONE,
maxAccel = 18,
factAccel = 0.6,
minAccel = 0,
maxDoubleSpan = 1.5,
minDoubleSpan = 0.5,
maxCrosshandSpan = 1.0
}
| nilq/small-lua-stack | null |
local Class = require("lib.middleclass")
local Image = require 'image'
local Map = require("src.map")
local Pellet = Class("Pellet")
local Quad = require 'image.quad'
local Util = require("src.util")
local Vector = require("lib.vector")
function Pellet:initialize(x, y, frequency)
self.position = Vector(x, y)
self.f... | nilq/small-lua-stack | null |
require "lib.classes.class"
--------------------------------------------------------------------------------------------------------
-- class: BasicCutscene
-- param: scenes:BasicScene -> the scenes of the cutscene
-- A cutscene class with scenes
local BasicCutscene = class(function(self, scenes)
self.scenes = sce... | nilq/small-lua-stack | null |
Locales['fr'] = {
['shop'] = 'magasin',
['shops'] = 'magasins',
['press_menu'] = 'appuyez sur ~INPUT_CONTEXT~ pour accéder au magasin.',
['bought'] = 'vous avez acheté ~b~1x ',
['not_enough'] = 'vous n\'avez ~r~pas assez~s~ d\'argent.',
}
| nilq/small-lua-stack | null |
-- Item data (c) Grinding Gear Games
return {
-- Helmet
[[
Armour/Evasion Helmet
Penitent Mask
Crafted: true
Prefix: LocalBaseArmourAndEvasionRating3
Prefix: LocalIncreasedArmourAndEvasion5
Prefix: IncreasedLife7
]],[[
Evasion/Energy Shield Helmet
Blizzard Crown
Crafted: true
Prefix: LocalBaseEvasionRatingAndEnergyShi... | nilq/small-lua-stack | null |
local Paddle = {}
Paddle.__index = Paddle
function Paddle.new()
local self = setmetatable({}, Paddle)
self.x = 375
self.y = 550
self.height = 15
self.color = {171, 173, 156}
self.ballSpeedUp = 1
self:resetPaddle()
return self
end
function Paddle:resetPaddle()
self.width = 50
self.speed = 350
en... | nilq/small-lua-stack | null |
-- Copyright (c) 2021 EngineerSmith
-- Under the MIT license, see license suppiled with this file
local util = {}
util.getImageDimensions = function(image)
if image:typeOf("Texture") then
return image:getPixelDimensions()
else
return image:getDimensions()
end
end
-- TODO: Remove closure usage
local fi... | nilq/small-lua-stack | null |
local busyKey = KEYS[1]
local chgKey = KEYS[2]
local chgId = ARGV[1]
local expiresTimeMillis = ARGV[2]
local isBusy = redis.call('ZRANK', busyKey, chgId)
if isBusy then
error("CHG was already busy")
end
redis.call('ZADD', busyKey, expiresTimeMillis, chgId)
local queueCount = redis.call('HGET', chgKey, "qc")
retu... | nilq/small-lua-stack | null |
return LoadActor("_name entry") .. {
InitCommand = function(self)
self:stretchto(SCREEN_LEFT, SCREEN_TOP, SCREEN_RIGHT, SCREEN_BOTTOM)
end
}
| nilq/small-lua-stack | null |
--- MeshDataBuilder
--- Builder Pattern constructor for a MeshData
local MeshData = require(script.Parent.MeshData)
local root = script.Parent.Parent
local Builder = require(root.Builder)
local util = root.Util
local t = require(util.t)
local MeshDataBuilder = {
ClassName = "MeshDataBuilder";
}
MeshDataBuilder._... | nilq/small-lua-stack | null |
word = "test"
for i = 1, string.len(word), 1 do
print(string.sub(word,i,i)..string.sub(word,i+1,i+1)..string.sub(word,i+2,i+2)..string.sub(word,i+3,i+3))
print(string.sub(word,i,i)..string.sub(word,i+1,i+1)..string.sub(word,i+3,i+3)..string.sub(word,i+2,i+2))
print(string.sub(word,i,i)..string.sub(word,i+2,i+2)... | nilq/small-lua-stack | null |
object_building_general_valley_root_05 = object_building_general_shared_valley_root_05:new {
}
ObjectTemplates:addTemplate(object_building_general_valley_root_05, "object/building/general/valley_root_05.iff")
| nilq/small-lua-stack | null |
local HERO_KIT = script:GetCustomProperty("HeroKit"):WaitForObject()
local HERO_KIT_GEAR = script:GetCustomProperty("HeroKitEquipment"):WaitForObject()
EQUIPPED_GEAR = {}
function OnEquipped(_, player)
local gearToEquip = HERO_KIT_GEAR:GetChildren()
for _, gear in ipairs(gearToEquip) do
if (Object.Is... | nilq/small-lua-stack | null |
settings = { -- Set default display units here
["distance"] = 1,
["speed"] = 2,
["angle"] = 1
}
units = {
["distance"] = { -- Do not change these
{" м", 1}, -- 1
{" футов", 3.281} -- 2
},
["speed"] = { -- Do not change these
{" м/с", 0.278}, -- 1
{" км/ч", 1}, -- 2
{" миль/ч", 0.621}, -- ... | nilq/small-lua-stack | null |
AddCSLuaFile()
DEFINE_BASECLASS( "base_anim" )
ENT.PrintName = "Pickup"
ENT.Author = "Jen Walter"
ENT.Information = "Item drop from CRAFTWORLD3."
ENT.Category = "CRAFTWORLD3"
ENT.Editable = false
ENT.Spawnable = true
ENT.AdminOnly = true
ENT.RenderGroup = RENDERGROUP_TRANSLUCENT
list.Se... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2015 深圳市辉游科技有限公司.
--]]
local HelpLayer = class('HelpLayer')
local utils = require('utils.utils')
local AccountInfo = require('AccountInfo')
local showMessageBox = require('UICommon.MsgBox').showMessageBox
local showToastBox = require('UICommon.ToastBox2').showToastBox
local hideToastBox = require('U... | nilq/small-lua-stack | null |
local t = require( "taptest" )
local digitsum = require( "digitsum" )
t( digitsum( 1234 ), 10 )
t()
| nilq/small-lua-stack | null |
require("base.flang_import")
-- load our file
filename = "samples/1.flang"
local f = assert(io.open(filename, "r"))
local t = f:read("*all")
f:close()
print(t)
-- give it to the scanner
scanner = Flang.Scanner:new({sourceText = t})
while true do
char = scanner:get()
print(tostring(char))
if (char.cargo == Fl... | nilq/small-lua-stack | null |
-- last changes by: Tinsus at: 2016-07-02T09:27:42Z project-version: v1.9beta1 hash: eafe20edfe4fe4e78f770c249436eecdac101094
local LI = _G.LI
-- missing -> bossindent, posting dkps
--> reduce LI_DKP_own on bid and read it later...
LI.CurrentItems = {}
LI.CurrentDice = {}
LI.SendCache = {}
LI.NeedAss... | nilq/small-lua-stack | null |
util.AddNetworkString("OpenRPNameMenu")
hook.Add("PlayerInitialSpawn", "RPNameSelectInitial", function(ply)
if (file.Exists("rpname/"..string.Replace(ply:SteamID(), ":", "_")..".txt", "DATA")) then
DarkRP.notify(ply, 0, 10, "Welcome Back to the Server!")
else
net.Start("OpenRPNameMenu")
net.WriteT... | nilq/small-lua-stack | null |
local COMMAND = {}
COMMAND.title = "MOTD"
COMMAND.description = "Open the Message Of The Day Popup."
COMMAND.author = "Nub"
COMMAND.timeCreated = "Tuesday, September 1st, 2020 @ 12:10 PM"
COMMAND.category = "Menu"
COMMAND.call = "motd"
COMMAND.server = function(caller, args)
if not caller:Nadmin_OpenMOTD(... | nilq/small-lua-stack | null |
---
-- @author Alf21
-- @module ShopEditor
ShopEditor = ShopEditor or {}
ShopEditor.savingKeys = {
credits = {typ = "number", bits = 8, default = 1}, -- from 0 to 255 (2^8 - 1)
minPlayers = {typ = "number", bits = 6}, -- from 0 to 63 (2^6 - 1)
globalLimited = {typ = "bool"}, -- 0 and 1
limited = {typ = "bool"}, --... | nilq/small-lua-stack | null |
do local _={cmd_login_0={regex2=0,regex3=0,value="登陆成功",regex7=0,regex=0,key="cmd_login_0",regex1=0,regex6=0,regex5=0,showtype=2,regex4=0}};return _;end | nilq/small-lua-stack | null |
local _,_,_,tab,_ = unpack(require(arc_path .. 'code'))
local draw = require(arc_path .. 'draw')
-- shortcuts
local lg = love.graphics
local lk = love.keyboard
-- key class
local _key = {}
_key.__index = _key
function _key:new(btn)
local o = {}
setmetatable(o,_key)
o.btn = btn
o.t = 0
o.pos = 0
... | nilq/small-lua-stack | null |
--============ Copyright © 2020, Planimeter, All rights reserved. ============--
--
-- Purpose: API Documentation interface
--
--============================================================================--
local debug = debug
local error = error
local gui = gui
local ipairs = ipairs
local love ... | nilq/small-lua-stack | null |
---@class UnityEngine.MeshRenderer : UnityEngine.Renderer
---@field additionalVertexStreams UnityEngine.Mesh
---@field subMeshStartIndex int
local m = {}
UnityEngine = {}
UnityEngine.MeshRenderer = m
return m | nilq/small-lua-stack | null |
local _, CLM = ...
-- Upvalues
local LOG = CLM.LOG
local MODULES = CLM.MODULES
local UTILS = CLM.UTILS
-- local CONSTANTS = CLM.CONSTANTS
-- local ACL_LEVEL = CONSTANTS.ACL.LEVEL
-- local keys = UTILS.keys
local typeof = UTILS.typeof
local empty = UTILS.empty
local capitalize = UTILS.capitalize
local getGuidFromIntege... | nilq/small-lua-stack | null |
local QDEF
QDEF = EscapeTheBogUtil.AddBogLocationQuest(
{
no_spawn_by_default = true,
entry_encounter = {
ETB_STARTING_OUT = 1,
},
repeat_encounter = EscapeTheBogUtil.GenericSafeRepeatEncounterTable,
sleep_encounter = EscapeTheBogUtil.GenericSleepEncounterTable,
... | nilq/small-lua-stack | null |
local _, CLM = ...
local Profile = {}
function Profile:New(name, class, spec, main)
local o = {}
setmetatable(o, self)
self.__index = self
o._GUID = ""
o.name = (name ~= nil) and tostring(name) or ""
o.class = (class ~= nil) and tostring(class) or ""
o.spec = (spec ~= nil) and tostring... | nilq/small-lua-stack | null |
SCONFIG = L2TConfig.GetConfig();
moveDistance = 30;
ShowToClient("Q4", "Quest Going into a Real War, Let's Go to the Underground Traning Field! - Started");
LearnAllSkills();
MoveTo(-110755, 253477, -1739, moveDistance);
TargetNpc("Evain", 33464);
Talk();
ClickAndWait("talk_select", "Quest");
ClickAndWait("menu_select?... | nilq/small-lua-stack | null |
-- A cheating AI file, which draws additional cards and recovers LP each turn
-- Configure these to your liking
require("ai.ai")
EXTRA_SUMMON = 1
EXTRA_DRAW = 1
LP_RECOVER = 1000
GlobalCheating = true
math.randomseed( require("os").time() )
function OnStartOfDuel()
AI.Chat("AI script version "..Version)
AI.C... | nilq/small-lua-stack | null |
--[[--------------------------------------------------------------------
Gazelle: a system for building fast, reusable parsers
intfa_combine.lua
Once the lookahead has been calculated, we know what terminal(s)
each RTN/GLA state is expecting to see. We use this information to
build IntFAs that recognize a... | nilq/small-lua-stack | null |
-- local dbg = require("debugger")
-- dbg.auto_where = 2
local stub_vim = require'spec.helpers.stub_vim'.stub_vim
local complete = require'cccomplete'.complete
local api = require'nvimapi'
local r = require'spec.helpers.random'
insulate("default completion", function()
stub_vim{lines = {"", "# a comment", ""}, curso... | nilq/small-lua-stack | null |
local l = exec.cmd("l")
l()
fmt.print("first l() ok\n")
fmt.print("next l() will fail\n")
l.error = "custom error"
l.errexit = true
l()
| nilq/small-lua-stack | null |
function onDrop(x, y, draginfo)
return PartySheetManager.onDrop(x, y, draginfo);
end | nilq/small-lua-stack | null |
--魚雷魚
function c90337190.initial_effect(c)
aux.AddCodeList(c,22702055)
--immune spell
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c90337190.econ)
e1:SetValue(c90337190.efilte... | nilq/small-lua-stack | null |
sceneManager = {}
function sceneManager:load()
self.currentScene = 1
self.sceneToLoad = nil
base:loading()
end
function sceneManager:init(scene)
self.sceneToLoad = require (scene)
local loadState = self.sceneToLoad:load()
base.outsideLoaded = loadState
end
function sceneManager:openScene(scen... | nilq/small-lua-stack | null |
group("third_party")
project("vulkan-loader")
uuid("07d77359-1618-43e6-8a4a-0ee9ddc5fa6a")
kind("StaticLib")
language("C")
defines({
"_LIB",
"API_NAME=\"vulkan\"",
})
removedefines({
"_UNICODE",
"UNICODE",
})
includedirs({
".",
})
recursive_platform_files()
-- Included elsewh... | nilq/small-lua-stack | null |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Lua functions
local _G = _G
--WoW API / Variables
--Just some test code
--[[local talkingHeadTextureKitRegionFormatStrings = {
["TextBackground"] = "%s-TextBackground",
["Portrait... | nilq/small-lua-stack | null |
local computer = require("computer")
io.write(computer.address(),"\n")
| nilq/small-lua-stack | null |
--[[
-- Avoid tail calls like hell.
--]]
--[[
Copyright (C) 2013 simplex
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
of the License, or (at your option) any later version.
Thi... | 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.