content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local Bird = require('./Bird')
local Vector = require('./vector')
local bird
local gravity
local flap
local titleFont
local playing
local Pipe = require('./Pipe')
local pipe1
local pipe2
local score
function love.load()
width = love.graphics.getWidth()
height = love.graphics.getHeight()
gravity = Vector.new(0, 1... | nilq/small-lua-stack | null |
-- FZF Settings
vim.g.fzf_history_dir = '~/.local/share/fzf-history'
| nilq/small-lua-stack | null |
--[[
TouchThumbstick
--]]
local Players = game:GetService("Players")
local GuiService = game:GetService("GuiService")
local UserInputService = game:GetService("UserInputService")
--[[ Constants ]]--
local ZERO_VECTOR3 = Vector3.new(0,0,0)
local TOUCH_CONTROL_SHEET = "rbxasset://textures/ui/TouchControlsSheet.png"
... | nilq/small-lua-stack | null |
local EventManager = require 'utils.EventManager';
local NetworkService = require "utils.NetworkService";
local guildTaskCfg = require "config.guildTaskConfig"
local guild_task_list = nil
local function SetGuild_task_list(_data,type)
if not guild_task_list then
guild_task_list = {}
end
if not guild_task_list[type... | nilq/small-lua-stack | null |
local m = string.match
local gsub = string.gsub
local capeLog = logger('capeLog.txt')
function getCapabilityStr(p)
local str = m(p, 'Capability%s*List[%s%c]*(.-)[%s%c]*Skill%s*List')
str = unhyphenate(str)
str = gsub(str, "[%c]+", " ")
capeLog:print(str)
capeLog:print("==========")
return str
end
function pars... | nilq/small-lua-stack | null |
local function ngrams(counts, doc)
local DEPTH = 5
local docLen = #doc
local min, concat = math.min, table.concat
for i = 1, docLen - 1 do
for j = i, min(i + DEPTH - 1, docLen) do
if not doc[j] then break end
local k = concat(doc, " ", i, j)
counts[k] = (counts[k] or 0) + 1
end
end
... | nilq/small-lua-stack | null |
package.path = './?.lua'
p = require('raw_parser')
dict = require('inorganic_tokens')
data = {}
files = {
'inorganic_stone_mineral.txt',
'inorganic_stone_gem.txt',
'inorganic_stone_layer.txt',
'inorganic_stone_soil.txt',
'inorganic_metal.txt',
'inorganic_other.txt',
}
for _, file in ipairs(files... | nilq/small-lua-stack | null |
tool = Instance.new("Tool")
tool.Parent = Game.Players.yfc.Backpack
tool.Name = "Gun"
han = Instance.new("Part")
han.BrickColor = BrickColor.new("Black")
han.Size = Vector3.new(1, 1, 1)
han.Name = "Handle"
han.Parent = tool
han.Locked = true
mesh = Instance.new("BlockMesh")
mesh.Parent = han
mesh.Scale = Vector3.n... | nilq/small-lua-stack | null |
local M = require('xe.node_def._checker')
local CalcParamNum = M.CalcParamNum
local CheckName = M.CheckName
local CheckVName = M.CheckVName
local CheckExpr = M.CheckExpr
local CheckPos = M.CheckPos
local CheckExprOmit = M.CheckExprOmit
local CheckCode = M.CheckCode
local CheckParam = M.CheckParam
local CheckNonBlank = ... | nilq/small-lua-stack | null |
fx_version 'cerulean'
game 'gta5'
description 'Async'
shared_script 'async.lua'
| nilq/small-lua-stack | null |
--- 模块功能:录音功能测试.
-- @author openLuat
-- @module record.testRecord
-- @license MIT
-- @copyright openLuat
-- @release 2018.03.27
module(...,package.seeall)
require"record"
require"audio"
local recordBuf = ""
--[[
函数名:rcdcb
功能 :录音结束后的回调函数
参数 :
result:录音结果,true表示成功,false或者nil表示失败
... | nilq/small-lua-stack | null |
--Copyright (c) 2013, Byrthnoth
--All rights reserved.
--Redistribution and use in source and binary forms, with or without
--modification, are permitted provided that the following conditions are met:
-- * Redistributions of source code must retain the above copyright
-- notice, this list of conditions and t... | nilq/small-lua-stack | null |
--new
function DIALOG()
-----------------------------------------------------------------
--resources officer
NODE(0)
SAY("May Crahn bless you, young monk. As I can see you have trained thoroughly... the order is ready to accept you into a higher circle. I believe the time has come to charge you with another ... | nilq/small-lua-stack | null |
local vim = vim
local _M = {}
_M.load = function (use)
use {
'liuchengxu/vista.vim',
}
end
_M.run = function ()
vim.g.vista_default_executive = "nvim_lsp"
vim.cmd [[
" map keybindings
nmap <leader>t :Vista!!<CR>
]]
end
return _M
| nilq/small-lua-stack | null |
SILE.hyphenator.languages["et"] = {}
SILE.hyphenator.languages["et"].patterns =
{
".aa4",
".aasta5",
".ahe4li",
".al4a",
".al4gas",
".antiik5",
".ap3l",
".ap3r",
".art5r",
".au3a",
".eba3",
".ee4",
".eela4",
".ek3l",
".ek5r",
".gu4a",
".hie5",
".idi4",
".inim5a",
".ise5e",
".is4o",
".ja4e",
".ja4t",
".ka4e",
".ka2o",
"... | nilq/small-lua-stack | null |
local get_us_time = minetest.get_us_time
local metric_callbacks = monitoring.gauge("globalstep_callback_count", "number of globalstep callbacks")
local metric = monitoring.counter("globalstep_count", "number of globalstep calls")
local metric_time = monitoring.counter("globalstep_time", "time usage in microseconds for ... | nilq/small-lua-stack | null |
-- Animation function that supports
-- animation speed, looping (or not looping),
-- stopping on a specific frame, flipping
-- horizontal and/or vertical, and playing
-- in reverse
-- Contributors: Scathe (@clowerweb)
function anim(a,anim,offx,offy)
if(anim.loop!=false) then
anim.loop=true
end
anim.step=anim.st... | nilq/small-lua-stack | null |
return {'edson','eds','edsons'} | nilq/small-lua-stack | null |
include("shared.lua")
hook.Add( "PhysgunPickup", "StormFox2.MapIce.DisallowPickup", function( ply, ent )
if ent:GetClass() == "stormfox_mapice" then return false end
end )
-- nature/dirtfloor005
-- wood/woodburnt001
local ice = Material("stormfox2/effects/ice_water")
local RenderSkyBoxIce = false
local function Bui... | nilq/small-lua-stack | null |
--[[
* KiwiItemInfo
*
* MIT License
*
* Copyright (c) 2017-2019 Cody Tilkins
*
* 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 th... | nilq/small-lua-stack | null |
local zmq = require "lzmq"
local zloop = require "lzmq.loop"
local zthreads = require "lzmq.threads"
local class = require '3rdparty.middleclass'
local Buffer = require "3rdparty.buffer"
require "bitbuffer"
local utils = require 'utils'
local mal = require 'libmal'
local dictionnary, counter = utils.dictionnary, uti... | nilq/small-lua-stack | null |
UMF_REQUIRE "util/meta.lua"
UMF_REQUIRE "quat.lua"
UMF_REQUIRE "transform.lua"
UMF_REQUIRE "vector.lua"
| nilq/small-lua-stack | null |
local wrap = require('action-frame').wrap
local JSON = require 'json'
local gateways = {}
local function new_gateway(gateway_id, read, write)
-- Consume the subscribe message
assert(JSON.parse(read().payload))
local receive, send = wrap(read, write)
gateways[gateway_id] = { receive, send }
return receiv... | nilq/small-lua-stack | null |
--[[
@Authors: Ben Dol (BeniS)
@Details: Pathing bot module logic and main body.
]]
PathsModule = {}
-- load module events
dofiles('events')
local Panel = {}
UI_Path = {}
local currIndexWaypoint = 0;
local lastPosWalk = nil
local currentIndexPath
local selectedPath
local refreshEvent
local loadListIndex
local ... | nilq/small-lua-stack | null |
local Classes = require "Classes"
local ITestPacket = require "ITestPacket"
local BaseType = require "BaseType"
local TestPacket = Classes.class(ITestPacket)
function TestPacket:init()
self.super:init(self)
end
function TestPacket:FromBinaryReader( reader )
self.Name.Value = reader:Read()
self.Password.Value = r... | nilq/small-lua-stack | null |
local t = LoadFallbackB();
t[#t+1] = LoadActor( THEME:GetPathB("_Arcade","decorations") );
return t | nilq/small-lua-stack | null |
local CorePackages = game:GetService("CorePackages")
local Roact = require(CorePackages.Roact)
local Constants = require(script.Parent.Parent.Parent.Constants)
local ENTRY_HEIGHT = Constants.NetworkFormatting.EntryFrameHeight
local LINE_WIDTH = Constants.GeneralFormatting.LineWidth
local LINE_COLOR = Constants.General... | nilq/small-lua-stack | null |
local def_global_privileges = nil
if factions_config.faction_user_priv == true then
def_global_privileges = {"faction_user"}
end
factions.register_command("name", {
faction_permissions = {"name"},
format = {"string"},
description = "Change the faction's name.",
description_arg = " <name>:",
global_privi... | nilq/small-lua-stack | null |
--[[
@author Ilias-Timon Poulakis (FeedTheCat)
@license MIT
@version 1.0.1
@changelog
- Fixed bug with empty takes
]] --
local prev_proj
local prev_time = 0
local prev_state
local prev_focused_hwnd
local prev_wnd_cnt
local prev_wnd_list
local prev_fx_wnd_cnt
local active_hwnd
local wnd_l
local wnd_t
loca... | nilq/small-lua-stack | null |
-- Converts file encoding to pure ASCii
-- Including Comments
-- For instance: "Atenção!" would be "Aten\xE7\xE3o!".
-- But actually will be "Aten\xE7""\xE3""o!" to properly encapsulate the hexadecinal representation
-- Solves the problem of some compilers when detecting the file encoding
-- Based on a contribution fo... | nilq/small-lua-stack | null |
function Messenger900000Battle_Activate(arg0, arg1)
if arg0:GetDist(TARGET_ENE_0) <= 3 then
arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3000, TARGET_ENE_0, AttDist, 0, 180)
else
arg1:AddSubGoal(GOAL_COMMON_Wait, 5, TARGET_NONE, 0, 0, 0)
end
return
end
function Messenger900000Bat... | nilq/small-lua-stack | null |
-- Controllers
local CameraController = require "controllers.CameraController"
local DataPersistence = require "controllers.DataPersistence"
-- Models
local LetterboardTimer = require "models.LetterboardTimer"
local World = require "models.business.World"
local Wall = require "models.business.Wall"
-- Game UI
local B... | nilq/small-lua-stack | null |
local lastDirectionHit = -1;
local psychicDanced = true;
animationList = {'singLEFT', 'singDOWN', 'singUP', 'singRIGHT'};
function opponentNoteHit(id, direction, noteType, isSustainNote)
if dadName == 'psychic' then
if not psychicDanced and lastDirectionHit == direction then
characterPlayAnim('dad', animationLis... | nilq/small-lua-stack | null |
return {
style = {
[32] = { -- Default
fore = "#000000",
back = "#FFFFFF"
},
[33] = { -- Line Number
fore = "#000000",
back = "#A0A0A0"
},
[34] = { -- Brace Highlight
fore = "#000000",
back = "#00FF00",
bold = true
},
[35] = { -- Unmatched Brace
... | nilq/small-lua-stack | null |
local Packages = script.Parent.Parent.Parent.Parent.Parent
local Roact = require(Packages.Roact)
local App = Packages.UIBlox.App
local SliderTextInput = require(App.Slider.SliderTextInput)
local Story = Roact.PureComponent:extend("Story")
function Story:init()
self:setState({
value = 10
})
end
function Story:re... | nilq/small-lua-stack | null |
local lpeg = require("lpeg");
| nilq/small-lua-stack | null |
data:extend(
{
{
type = "item-group",
name = "Nine-Worlds",
icon = "__nineworlds__/graphics/icon_itemgroup.png",
inventory_order = "y",
order = "z",
},
{
type = "item-subgroup",
name = "portals",
group = "Nine-Worlds",
order = "a",
},
{
type = "item-subgroup",
name ... | nilq/small-lua-stack | null |
require "system"
Cache = class {
__name = "Cache",
images = {},
fonts = {},
windowskins = {}
}
function Cache:__init()
error("Cache is non-instantiable")
end
function Cache:image(filename)
-- sanity checks
assert(type(filename) == "string" and #filename > 0, "invalid filename")... | nilq/small-lua-stack | null |
-----------------------------------------
-- INFORMATION
-----------------------------------------
--[[
All percent values are integers.
--]]
-----------------------------------------
-- LOCALIZED GLOBAL VARIABLES
-----------------------------------------
local ZGV = ZGV
if not ZGV then return end
local... | 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")
SwitchManualIntElse = class.class(KaitaiStruct)
function SwitchManualIntEls... | nilq/small-lua-stack | null |
local _2afile_2a = "fnl/aniseed/string.fnl"
local _2amodule_name_2a = "conjure.aniseed.string"
local _2amodule_2a
do
package.loaded[_2amodule_name_2a] = {}
_2amodule_2a = package.loaded[_2amodule_name_2a]
end
local _2amodule_locals_2a
do
_2amodule_2a["aniseed/locals"] = {}
_2amodule_locals_2a = (_2amodule_2a)["... | nilq/small-lua-stack | null |
local function nnoremap(mapping, action)
vim.api.nvim_set_keymap("n", mapping, action, { noremap = true })
end
local function xnoremap(mapping, action)
vim.api.nvim_set_keymap("x", mapping, action, { noremap = true })
end
local function vnoremap(mapping, action)
vim.api.nvim_set_keymap("x", mapping, action, { n... | nilq/small-lua-stack | null |
-- file created: 2010-03-16
local F = far.Flags
local sd = require "far2.simpledialog"
local M = require "lfh_message"
local function ConfigDialog (aData)
local offset = 5 + math.max(M.mBtnHighTextColor:len(), M.mBtnSelHighTextColor:len()) + 10
local swid = M.mTextSample:len()
local Items = {
guid = "05d16... | nilq/small-lua-stack | null |
--
-- syncmodule callback functions
--
--
local function write_script()
io.open(synchronizer.MODULE_PATCH..synchronizer.MODULE_SCP_SCRIPT, "w"):close()
os.remove(synchronizer.MODULE_PATCH..synchronizer.MODULE_SCP_SCRIPT)
io.open(synchronizer.MODULE_PATCH..synchronizer.MODULE_SCP_SCRIPT, "w"):close()
file = io.ope... | nilq/small-lua-stack | null |
--- @module OptionGui 房间设置的UI模块
--- @copyright Lilith Games, Avatar Team
--- @author An Dai
local OptionGui = ModuleUtil.New('OptionGui', ClientBase)
local self = OptionGui
local autoGame = false--加入游戏自动点选游戏进入选座位的通道
--- 初始化
function OptionGui:Init()
self:CreateGui()
end
function OptionGui:CreateGui()
self.optionGui... | nilq/small-lua-stack | null |
--
-- Menus
--
dofile("game/client/stack_menu.lua")
dofile("game/client/main_menu.lua")
dofile("game/client/play_game_menu.lua")
dofile("game/client/settings_menu.lua")
dofile("game/client/pause_menu.lua")
dofile("game/client/hud.lua")
local function onStartup()
game.gui.push("main_menu")
end
game.onClientSta... | nilq/small-lua-stack | null |
-- local _, EventHorizon = ...
-- EventHorizon:file_preload()
-- EventHorizon.colorize = method({
-- default_arguments = {r="00", g="00", b="00", a="FF"},
-- implementation = function(args, ...)
-- return format("|c%s%s%s%s%s|r", args.a, args.r, args.g, args.b, strjoin('', ...))
-- end
-- })
-- functio... | nilq/small-lua-stack | null |
--スカーレッド・スーパーノヴァ・ドラゴン
--Scripted by nekrozar
function c100259021.initial_effect(c)
--synchro summon
aux.AddSynchroMixProcedure(c,aux.Tuner(nil),aux.Tuner(nil),aux.Tuner(nil),aux.NonTuner(Card.IsSynchroType,TYPE_SYNCHRO),1,99)
c:EnableReviveLimit()
--special summon condition
local e1=Effect.CreateEffect(c)
e1:Set... | nilq/small-lua-stack | null |
local att = {}
att.name = "md_csgo_556"
att.displayName = "Sig 556 Sight"
att.displayNameShort = "556"
att.aimPos = {"CSGO556Pos", "CSGO556Ang"}
att.FOVModifier = 15
att.isSight = true
att.statModifiers = {OverallMouseSensMult = -0.1}
if CLIENT then
att.displayIcon = surface.GetTextureID("cw20_extras/icons/upgr_csgo... | nilq/small-lua-stack | null |
local get_lsp_client = function (msg)
msg = msg or 'No Active Lsp'
local buf_ft = vim.api.nvim_buf_get_option(0,'filetype')
local clients = vim.lsp.get_active_clients()
if next(clients) == nil then
return msg
end
for _,client in ipairs(clients) do
local filetypes = client.config.filetypes
if fi... | nilq/small-lua-stack | null |
local PreviewCache = {}
local InfoCache = {}
local VoteCache = {}
local ListCache = {}
function WorkshopFileBase( namespace, requiredtags )
local ret = {}
ret.HTML = nil
function ret:Fetch( type, offset, perpage, extratags )
if ( type == 'local' ) then
return self:FetchLocal( offset, perpage )
en... | nilq/small-lua-stack | null |
local FeatureLPPooling, parent =
torch.class('nn.FeatureLPPooling', 'nn.Module')
--[[
Possible inputs that we handle:
#### `batch_mode = false`
The dimensionality of the input chooses between the following modes:
```
[feature dim]
[feature dim][opt dim 1]
[feature dim][opt dim 1][opt dim 2]
... | nilq/small-lua-stack | null |
--region class_Tester.lua
--Author : jefflwq
--Date : 2016/03/02
--说明 : class 的测试程序
--endregion
if true then --false:启用测试, true:禁用测试(测试无问题后请设为true)
return
end
using "Joop"
namespace "Testers.Keyword.Class"
{
class "clsA"
{
public.const.const_name("const_name"),
st... | nilq/small-lua-stack | null |
object_tangible_component_clothing_fiberplast_panel_prison_guard = object_tangible_component_clothing_shared_fiberplast_panel_prison_guard:new {
}
ObjectTemplates:addTemplate(object_tangible_component_clothing_fiberplast_panel_prison_guard, "object/tangible/component/clothing/fiberplast_panel_prison_guard.iff")
| nilq/small-lua-stack | null |
-- Toggle between two buffers with a key shortcut.
local M = {}
-- ## Commands
-- Save the buffer index before switching.
events.connect(events.BUFFER_BEFORE_SWITCH, function()
for index, b in ipairs(_BUFFERS) do
if b == buffer then
last_buffer = b
break
end
end
end)
-- Switch t... | nilq/small-lua-stack | null |
local L = BigWigs:NewBossLocale("Yan-Zhu the Uncasked", "zhCN")
if not L then return end
if L then
L.summon_desc = "当炎诛召唤发酵酒灵时发出警报。他们会施放|cff71d5ff活力发酵|r治疗首领。"
end
| nilq/small-lua-stack | null |
local toArr
toArr = function(aTable)
local myArray = { }
for i, tbl in ipairs(aTable) do
local nbKeys = 0
for k, v in pairs(tbl) do
nbKeys = nbKeys + 1
myArray[#myArray + 1] = v
end
if (nbKeys == 0) then
myArray[#myArray + 1] = "_null_"
end
end
for i, v in ipairs(myArray) d... | nilq/small-lua-stack | null |
Debug = {
active = false
}
local imgui = nil
function Debug.init()
log.info("Debug is active")
imgui = require "imgui"
Debug.hook()
end
function Debug.hook()
love.textinput = lume.combine(love.textinput, function(t)
if not Debug.active then
return
end
imgui.TextInput(t)
end)
love.keypressed = lume... | nilq/small-lua-stack | null |
-- Common image types used by the vc_image library.
local ffi = require "ffi"
ffi.cdef[[
//enums of display input format
typedef enum
{
VCOS_DISPLAY_INPUT_FORMAT_INVALID = 0,
VCOS_DISPLAY_INPUT_FORMAT_RGB888,
VCOS_DISPLAY_INPUT_FORMAT_RGB565
} VCOS_DISPLAY_INPUT_FORMAT_T;
typedef VCOS_DISPLAY_INPUT_FORMAT_... | nilq/small-lua-stack | null |
local K, C, L = unpack(select(2, ...))
local Module = K:GetModule("Skins")
-- Credit: LeatrixPlus
L["EditBox Tip"] = "Press KEY ENTER when you finish typing"
L["InvalidName"] = "Invalid content input"
L["NoMatchReult"] = "No more matched results"
L["Tips"] = "Tips"
L["TradeSearchTip"] = "Search the recipe name you ne... | nilq/small-lua-stack | null |
object_draft_schematic_reverse_engineering_skill_attachment_2 = object_draft_schematic_reverse_engineering_shared_skill_attachment_2:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_reverse_engineering_skill_attachment_2, "object/draft_schematic/reverse_engineering/skill_attachment_2.iff")
| nilq/small-lua-stack | null |
--{{---| Dropbox |-------------------------------------------------------------------------------------------------------------
local awful = require("awful")
local wibox = require("wibox")
local gears = require("gears")
local naughty = require("naughty")
local string = require("string")
local watch = require(... | nilq/small-lua-stack | null |
local path = minetest.get_modpath("mobs")
-- Mob Api
dofile(path.."/api.lua")
-- Animals
dofile(path.."/chicken.lua") -- JKmurray
dofile(path.."/cow.lua") -- KrupnoPavel
dofile(path.."/rat.lua") -- PilzAdam
dofile(path.."/sheep.lua") -- PilzAdam
dofile(path.."/warthog.lua") -- KrupnoPavel
dofile(path.."/bee.lua") -... | nilq/small-lua-stack | null |
Config = {}
Config.NazwaJoba = 'biznes'
Config.TradeDystans = 10 -- dystans do zrobienia trade
Config.Ostrzezenie = true -- ostrzezenie w konsoli w razie cheatera (dystans) | nilq/small-lua-stack | null |
return {
VoiceManager = require('VoiceManager'),
Player = require('Player'),
Node = require('Node')
} | nilq/small-lua-stack | null |
local gui_tags_hack = require("gui-tags-hack")
local function build(parent, structure)
-- no more hacks, we got the real 1.1 !!!
-- -- gui_tags_hack.hook(parent) -- since this is in a lib anyway, this can be replaced by a more performant version
local elem = parent.add(structure)
-- -- gui tags hack hooking... | nilq/small-lua-stack | null |
--[[
PINAPL (pronounced "Pineapple") is the PIcaso Nano Application Platform in Lua
Presently PINAPL is a tiny application building platform for use with the gen4-uLCD-24PT
display made by 4D Systems. (Its main chip is called Picaso, hence the name.)
PINAPL depends on the 4D-Picaso.lua library by the same author to ... | nilq/small-lua-stack | null |
local function input(event)
if event.DeviceInput.button == "DeviceButton_left mouse button" and event.type == "InputEventType_Release" then
MESSAGEMAN:Broadcast("MouseLeftClick")
elseif event.DeviceInput.button == "DeviceButton_right mouse button" and event.type == "InputEventType_Release" then
MESSAGEMAN:Broadca... | nilq/small-lua-stack | null |
Object = require 'lib/classic/classic'
Input = require 'lib/boipushy/Input'
-- Timer = require 'lib/hump/Timer'
Timer = require 'lib/chrono/Timer'
M = require 'lib/Moses/moses_min'
utils = require 'lib/utils'
Camera = require 'lib/STALKER-X/Camera'
Draft = require 'lib/draft/draft'
Vector = require 'lib/hump/vector'
ut... | nilq/small-lua-stack | null |
-- Autogenerated with DRAKON Editor 1.32
require('strict').on()
local table = table
local string = string
local pairs = pairs
local ipairs = ipairs
local io = io
local pcall = pcall
local xpcall = xpcall
local debug = debug
local math = math
local tostring = tostring
local clock = require("clock")
local log = requir... | nilq/small-lua-stack | null |
mp = Map("familycloud")
mp.title = translate("天翼家庭云/天翼云盘提速")
mp.description = translate("天翼家庭云/天翼云盘提速 (最高可达500Mbps)")
mp:section(SimpleSection).template = "familycloud/familycloud_status"
s = mp:section(TypedSection, "familycloud")
s.anonymous = true
s.addremove = false
enabled = s:option(Flag, "enabled", translate(... | nilq/small-lua-stack | null |
workspace "lmc"
configurations { "debug", "release", "tracy" }
project "lmc"
kind "ConsoleApp"
toolset "clang"
language "C++"
cppdialect "C++17"
warnings "Extra"
links { "fmt" }
files { "src/**.hpp", "src/**.cpp" }
filter { "system:macosx" }
buildoptions { "`pkg-config fmt --cflags`" }
linkoptions { "`... | nilq/small-lua-stack | null |
#!src/lua
-- LLL - Lua Low Level
-- September, 2015
-- Author: Gabriel de Quadros Ligneul
-- Copyright Notice for LLL: see lllcore.h
--
-- test_unop.lua
local executetests = require 'tests/executetests'
local generateargs = require 'tests/generateargs'
local ops = {'-', '~', '#', 'not '}
local functions = {}
for _,... | nilq/small-lua-stack | null |
local m = require 'pegparser.parser'
local pretty = require 'pegparser.pretty'
local coder = require 'pegparser.coder'
local util = require'pegparser.util'
-- Removed label 'AssignAssign' in rule statement because the correct matching
-- of varlist depends on a semantic action in rule var
g = [[
program <- ... | nilq/small-lua-stack | null |
CaveFloorDirt = {
name='CaveFloorDirt',
quad=4,
color2={40, 27, 18, 255},
color3={68, 64, 61, 255}
}
CaveStairsUp = {
name='CaveStairsUp',
quad=2,
isStairs='up',
color1={173, 125, 90, 255},
color2={117, 80, 53, 255},
color3={148, 20, 84, 255},
color4={68, 64, 61, 255}
}
CaveStairsDown = {
name... | nilq/small-lua-stack | null |
function toBits(num,bits)
-- returns a table of bits, most significant first.
bits = bits or math.max(1, select(2, math.frexp(num)))
local t = {} -- will contain the bits
for b = bits, 1, -1 do
t[b] = math.fmod(num, 2)
num = math.floor((num - t[b]) / 2)
end
return table.concat(t,... | nilq/small-lua-stack | null |
-- doSomePhysics(100, {-1.0,0.0,1.0}, {10.0,0.0,5.0} )
mat = {{1.1,-0.1,0.1},{-0.2,2.2,0.2},{-0.3,0.3,3.3}}
for i=10,1,-1
do
doSomePhysics2( i, {-7.7,8.8,9.9}, mat )
end
| nilq/small-lua-stack | null |
function on_activate(parent, ability)
if game:num_effects_with_tag("trap") > 4 then
game:say_line("Maximum number of traps set.", parent)
return
end
local targets = parent:targets()
local radius = parent:stats().touch_distance
local targeter = parent:create_targeter(ability)
targeter:s... | nilq/small-lua-stack | null |
local util = require('util')
local handlePopup = require('handle_popup')
local isPages = util.isPages
local tblHasVal = util.tblHasVal
local getIconPos = util.getIconPos
-- local mySnapshot = util.mySnapshot
-- popup handler
local function verifyPopups(popups, destination, timeout, inter)
timeout, inte... | nilq/small-lua-stack | null |
-- import
local PhysicsShape = require 'candy.physics.2D.PhysicsShape'
local ComponentModule = require 'candy.Component'
---@class PhysicsShapeBox : PhysicsShape
local PhysicsShapeBox = CLASS: PhysicsShapeBox ( PhysicsShape )
:MODEL {
Field ( "w" ):set ( "setWidth" ),
Field ( "h" ):set ( "setHeight" ),
Field ( ... | nilq/small-lua-stack | null |
local strutil = require('acid.strutil')
local tableutil = require('acid.tableutil')
local acid_xml = require('acid.xml')
local _M = {}
local meta_prefix = 'x-amz-meta-'
local date_format = '!%a, %d %b %Y %T GMT'
local empty_schema = {
checker = {
},
}
local string_schema = {
checker = {
['type'] ... | nilq/small-lua-stack | null |
local assets =
{
Asset("ANIM", "anim/marsh_tile.zip"),
Asset("ANIM", "anim/splash.zip"),
}
local prefabs =
{
"marsh_plant",
"fish",
"frog",
"mosquito",
}
local function ReturnChildren(inst)
for k,child in pairs(inst.components.childspawner.childrenoutside) do
if child.components.homeseeker then
child.com... | nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_collections_col_imperial_rank_gen = object_tangible_loot_creature_loot_collections_shared_col_imperial_rank_gen:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_col_imperial_rank_gen, "object/tangible/loot/creature/loot/collections/col_imperial_rank... | nilq/small-lua-stack | null |
local mallcache = {
}
return mallcache
| nilq/small-lua-stack | null |
--[[-------------------------------------------------------------------------
Handles mapentities and entity functions
Get entities
StormFox.GetSkyPaint() returns env_skypaint
StormFox.GetSun() returns env_sun
Map Bloom
StormFox.SetMapBloom(n)
Shadow
StormFox.SetShadowColor(col)
StormFox.SetShadow... | nilq/small-lua-stack | null |
local luafsm = require("luafsm")
describe("classes", function()
it("prototype based state machine", function()
local my_fsm = {}
local prototype = {}
function my_fsm.new()
local t = {
counter = 42,
}
setmetatable(t, {__index = prototype})
t:startup()
return t
end
function prototype:on... | nilq/small-lua-stack | null |
shagbark_charge = class({})
LinkLuaModifier( "modifier_shagbark_charge", "modifiers/modifier_shagbark_charge", LUA_MODIFIER_MOTION_NONE )
--------------------------------------------------------------------------------
function shagbark_charge:OnAbilityPhaseStart()
if IsServer() then
self.nPreviewFX = ParticleMana... | nilq/small-lua-stack | null |
-- Create the Snake class
Snake = {}
function Snake:new(x, y)
local o = {}
setmetatable(o, self)
self.__index = self
self.x = x
self.y = y
self.dx = 0
self.dy = 0
self.body = {}
table.insert(self.body, { x = x, y = y })
return o
end
function Snake:move()
table.insert(snake.body, 1, { x = sna... | nilq/small-lua-stack | null |
h = Instance.new("HopperBin")
h.Parent = Game.Players.acb227.Backpack
h.Name = "Dance"
script.Parent = h
function dance()
local me = script.Parent.Parent.Character.Torso
local RightShoulder = me["Right Shoulder"]
local LeftShoulder = me["Left Shoulder"]
local RightHip = me["Right Hip"]
local LeftHip = me["Left Hip"... | nilq/small-lua-stack | null |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
local PLUGIN = PLUGIN;
-- Called when screen space effects should be rendered.
function PLUGIN:RenderScreenspaceEffects()
local nvActive = LocalPlayer():GetData("nvActive");
if (nvActive) then
local colorModify... | nilq/small-lua-stack | null |
local lua_maps = require 'lua_maps'
local rspamd_regexp = require 'rspamd_regexp'
local rspamd_util = require 'rspamd_util'
local ivm_sendgrid_ids = lua_maps.map_add_from_ucl(
'https://www.invaluement.com/spdata/sendgrid-id-dnsbl.txt',
'set',
'Invaluement Service Provider DNSBL: Sendgrid IDs'
)
local ivm_sendgr... | nilq/small-lua-stack | null |
-- cdata to lua conversion
--
-- Copyright (C) 2013,2014 Markus Klotzbuecher <markus.klotzbuecher@mech.kuleuven.be>
-- Copyright (C) 2014-2020 Markus Klotzbuecher <mk@mkio.de>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
local ffi = require("ffi")
local reflect = require("reflect")
local utils = require("utils")
loc... | nilq/small-lua-stack | null |
--[[
The MIT License
Copyright (C) 2021 Tony Wang
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish... | nilq/small-lua-stack | null |
--------STEP[1] Home👇--------
gg.setVisible(false)
gg.sleep(200)
gg.alert("⚡❌Sikk Tech - Free Online Game Hacks")
gg.sleep(200)
gg.alert("⚡ eNGINE Loadi️NG ✔️")
gg.toast("")
gg.sleep(300)
gg.toast("⚡❌Sikk Tech.com")
gg.sleep(300)
gg.toast("⚡❌ Sikk Tech")
gg.toast("■□□□□□□□□□10%")
gg.sleep(150)
gg.toast("■■□□□□□□□□20%... | nilq/small-lua-stack | null |
-- This is an information file. No code of this file is called in the game.
-- This is an information file. No code of this file is called in the game.
-- This is an information file. No code of this file is called in the game.
---- You can trigger this event when changing a number plate in another script to update th... | nilq/small-lua-stack | null |
--Here is the code to add a dropdown menu to the editor.
--NOTE : Needs creation of editor module !
--FLevelEditorModule& LevelEditorModule = FModuleManager::LoadModuleChecked<FLevelEditorModule>("LevelEditor");
--LevelEditorModule.GetMenuExtensibilityManager()->AddExtender( Extender );
--PUT CONFIG INSIDE Saved/Confi... | nilq/small-lua-stack | null |
-- See LICENSE for terms
local floatfloor = floatfloor
local GetDate = GetDate
local T = T
local clock = {302535920011360, "<hour>:<min>"}
local IsValidXWin = rawget(_G, "ChoGGi") and ChoGGi.ComFuncs.IsValidXWin
or function(win)
win = win and win.window_state
if win and win ~= "destroying" then
return true
... | nilq/small-lua-stack | null |
cConfig = {
apiToken = "";
channel = "";
}
local function isempty(s)
return s == nil or s == ''
end
function InitializeConfig()
local ini = cIniFile();
if (not(ini:ReadFile("SlackChat.ini"))) then
LOGINFO("SlackChat: Cannot read SlackChat.ini, all plugin configuration is set to defaults.");
end
cCon... | nilq/small-lua-stack | null |
pfUI:RegisterModule("feigndeath", function ()
local cache = { }
local healthscan = CreateFrame("GameTooltip", "pfHpScanner", UIParent, "GameTooltipTemplate")
healthscan:SetOwner(healthscan,"ANCHOR_NONE")
local healthbar = healthscan:GetChildren()
local cache_update = CreateFrame("Frame")
cache_update:Regis... | nilq/small-lua-stack | null |
---
--- import.lua
---
--- Copyright (C) 2018 Xrysnow. All rights reserved.
---
local MOD_PATH = MOD_PATH or ''
function ListFiles(rootpath, pathes)
pathes = pathes or {}
for entry in lfs.dir(rootpath) do
if entry ~= '.' and entry ~= '..' then
local path = rootpath .. '\\' .. entry
... | 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.