content
stringlengths
5
1.05M
local ok, lsp_signature = pcall(require, 'lsp_signature') if not ok then return end local config = { bind = true, doc_lines = 2, floating_window = true, fix_pos = false, hint_enable = true, hint_prefix = "-> ", hint_scheme = "String", use_lspsaga = false, hi_parameter = "Search", max_height = 12,...
AuctionatorConfigLIFOFrameMixin = CreateFromMixins(AuctionatorPanelConfigMixin) function AuctionatorConfigLIFOFrameMixin:OnLoad() Auctionator.Debug.Message("AuctionatorConfigLIFOFrameMixin:OnLoad()") self.name = AUCTIONATOR_L_CONFIG_LIFO_CATEGORY self.parent = "Auctionator" self:SetupPanel() self.Commodit...
local Core = unpack(select(2, ...)) local CT = Core:GetModule("ChatTabs") local MC = Core:GetModule("MainContainer") local M = Core:GetModule("Mover") local SMF = Core:GetModule("SlidingMessageFrame") -- luacheck: push ignore 113 local BNToastFrame = BNToastFrame local ChatAlertFrame = ChatAlertFrame local ChatFrameCh...
local log = require "chestnut.skynet.log" local card = require "chestnut.mahjongroom.card" local assert = assert local kind = {} kind.NONE = 0 kind.SINGLE = 1 kind.COUPLE = 2 -- 顺子 kind.STRAIGHT = 3 -- 炸弹 kind.BOMB = 4 -- kind.COUPLE_STRAIGHT = 5 -- kind.IDENTICAL3 = 6 kind.IDENTICAL3_SINGLE = 7 kind.IDENTICAL3_C...
playerTeam = {} opponentTeam = {} user = {} target = {} function chooseMoveWildBattle() return 0 end
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local json = require("lib.json") local usage = require("program.snabbnfv.neutron2snabb.README_inc") local neutron2snabb_schema = require("program.snabbnfv.neutron2snabb.neutron2s...
local AddonName, AddonTable = ... AddonTable.cooking = { -- Meat 172053, -- Tenebrous Ribs 173034, -- Silvergill Pike -- Materials 172054, -- Seraphic Wing }
Player = Object:extend() function Player:new(camera) self.image = love.graphics.newImage("textures/player.png") self.camera = camera self.x = 200 self.y = 300 self.id = "player" self.speed = 300 self.rot = 0 self.ox = self.image:getWidth() / 2 self.oy = self.image:getHeight() / 2 self.scaleX = 0.5 self....
translations["ph"] = { LIVES_LEFT = "<ROSE>Mayroon kang <N>${lives} <ROSE>buhay na natitira. <VI>Respawning sa 3...", LOST_ALL = "<ROSE>Nawala lahat nang buhay mo!", SD = "<VP>Biglaang kamatayan! Lahat ay mayroong <N>1 <VP>buhay na natitira", WELCOME = "<VP>Maligayang pagdating sa pewpew, <N>bumaba <VP>o <N>spaceb...
local helper = {} function helper:generateQuads(sizeX, sizeY, image, spacing, margin) sizeX = sizeX or tileSize sizeY = sizeY or tileSize spacing = spacing or 0 margin = margin or 0 local quads = {} local w = math.floor(math.floor(image:getWidth() / sizeX) - margin*2) local h = math.floor(math.floor(image:get...
-- spaces spaces = require("hs._asm.undocumented.spaces") dofile(zwm.spoonPath.."utilities.lua") -- returns spaces in order, but its best to not move spaces around -- FIXME: This only addresses the primary screen (https://github.com/z3t0/zwm/issues/15) function get_spaces() local all_spaces = spaces.layout() ...
nut.faction = nut.faction or {} nut.faction.teams = nut.faction.teams or {} nut.faction.indices = nut.faction.indices or {} local CITIZEN_MODELS = { "models/humans/group01/male_01.mdl", "models/humans/group01/male_02.mdl", "models/humans/group01/male_04.mdl", "models/humans/group01/male_05.mdl", "models/humans/gr...
-- generate skyscene -- data = {.. -- view -- sun,sunact,cam,camact,l3dsky -- scene,scenes3d -- frame dofile("../Shared/htmllabels.lua") local data = {} do -- setup l3dset l3dset.get(0):layer(0) ------- -- view local view = UtilFunctions.simplerenderqueue() -- background does it for us view:filldrawlayers(f...
-- This script made by "INTJ Mastermind" (see here: http://forums.x-plane.org/index.php?showtopic=91838&p=977784 ) -- allows to set the autopilot in steps of 100 ft. -- When the assigned button (or key) is pressed shortly, you get a single 100 ft step. -- When holding down the button, the altitude starts to increase or...
if not _G.plugin_loaded("completion-nvim") then do return end end vim.g.completion_matching_strategy_list = {"exact", "substring", "fuzzy"}
--[[ © 2021 FedeIlLeone extract-models - Extracts the required models from development place This works with remodel (https://github.com/rojo-rbx/remodel) To run this script, execute `remodel run .\remodel\extract-models.server.lua` --]] local game = remodel.readPlaceFile("remodel/dev.rbxlx") local Replicat...
-- -- Created by IntelliJ IDEA. -- User: zhaojun -- Date: 17/1/12 -- Time: 下午2:29 -- To change this template use File | Settings | File Templates. -- local ERR = ngx.ERR --- ngx log level local logger = ngx.log --- ngx log print("开始初始化模块以及加载配置") _uuid = require 'resty.jit-uuid' --- 生成u...
ITEM.name = "Leupold Scope" ITEM.description = "The Leupold Scope is your generic go-to long range combat scope, seen on battlefields across the world and well known for its simple effectiveness." ITEM.category = "Optics" ITEM.model = "models/cw2/attachments/pso.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.slot = 1 ITEM.we...
data:extend({ { type = "string-setting", name = "MF-first-MF", setting_type = "startup", default_value = "player creation", allowed_values = {"player creation", "craft"}, order = "aga" -- general, at the top }, { type = "string-setting", name = "MF-lab-science-packs", setting_type = "startup", default_v...
-- Variables output = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- Workspace workspace "Dash" architecture "x64" startproject "Game" configurations { "Debug", "Release", "Dist" } -- Include directories relative to root IncludeDir = {} IncludeDir["GLFW"] = "Dash/deps/GLFW/include" IncludeDir["Gla...
local MAP_CONSTANTS = require('map.constants') local N, S, E, W, NEC, SEC, SWC, NWC = unpack(MAP_CONSTANTS.DIRECTIONS) return function(grid) local width, height = #grid[1], #grid for y=1,height do for x=1,width do if x + 1 >= 1 and x + 1 <= width and y + 1 >= 1 and y + 1 <= height and b...
modifier_furion_teleportation_lua = class({}) -------------------------------------------------------------------------------- function modifier_furion_teleportation_lua:IsPurgable() return false end -------------------------------------------------------------------------------- function modifier_furion_teleporta...
--[[ these are some routines that are useful when doing some simple parsing activities. They are typically used when parsing small numbers. NOTE: Wherever they are used could probably be replaced with Lua pattern matching. ]] local function isspace(c) return c == string.byte(' ') or c == string.byte('\t')...
local select, unpack, type, print = select, unpack, type, print local cowrap, yield = coroutine.wrap, coroutine.yield local U = require 'icu.ustring' local isustring, Uencode, Udecode = U.isustring, U.encode, U.decode local Ucodepoint, Uchar, Ufind, Uformat, Ugmatch, Ugsub, Ulen, Ulower, Umatch, Urep, Urev...
local globals = { modkey = "Mod4", terminal = "alacritty", editor = os.getenv("EDITOR") or "vim", filemgr = "nemo", } globals.terminal_cmd = globals.terminal .. " -e " globals.terminal_cmd_format = globals.terminal_cmd .. "%s" -- terminal_cmd_format = terminal_cmd .. "\"%s\"" return globals
--- === SwitchableHotkey === --- --- HotKeys to which you can switch by each application. --- --- Download: [https://github.com/doiken/Spoons/raw/master/Spoons/SwitchableHotkey.spoon.zip](https://github.com/doiken/Spoons/raw/master/Spoons/SwitchableHotkey.spoon.zip) local obj = {} -- Metadata obj.name = "SwitchableHo...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { group = "Infopanel Sections", id = "sectionConstructionSite", PlaceObj('XTemplateGroup', { '__context_of_kind', "ConstructionSite", }, { PlaceObj('XTemplateTemplate', { '__template', "InfopanelSection", 'RolloverTex...
prepend_path("RTM_LUA_PATH", "/unknown/apps/luaposix/luaposix/?.lua;/unknown/apps/luaposix/luaposix/?",";") prepend_path("RTM_LUA_CPATH", "/unknown/apps/luaposix/luaposix/?.so",";")
-------------------------------- -- @module EventAcceleration -- @extend Event return nil
local natpmp = require "natpmp" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" description = [[ Maps a WAN port on the router to a local port on the client using the NAT Port Mapping Protocol (NAT-PMP). It supports the following operatio...
-- Copyright 2022 SmartThings -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
local ASSET = {} function ASSET:HasTeam(ply, actor) if not actor.isBgnClass or not ply:IsPlayer() then return false end local team_id = ply:Team() for team_name, data in pairs(bgNPC.cfg.player.team_parents) do if actor:HasTeam(team_name) and table.HasValueBySeq(data, team_id) then return true end end local pl...
Player = Class{__includes = Entity} function Player:init(def) Entity.init(self, def) self.party = Party { pokemon = { Pokemon(Pokemon.getRandomDef(), 5) } } end
---@meta --=== adxl345 === ---@class adxl345 adxl345 = {} ---Samples the sensor and returns X,Y\ ---and Z data from the accelerometer. ---@return integer x @data ---@return integer y @data ---@return integer z @data function adxl345.read() end ---Initializes the module. ---@return nil function adxl345.setup() end
local flyWithLuaStub = require("xplane_fly_with_lua_stub") local eventBusStub = require("eventbus") TestInitialization = {} function TestInitialization:setUp() VHFHelperEventBus = nil TestHighLevel:createDatarefsAndBootstrapVatsimbriefHelper() end function TestInitialization:testLazyInitializationIsGivingUpE...
-- Copyright (c) 2021 StefanT <stt1@gmx.at> -- See LICENSE.md in the project directory for license information. require "script.constants" require "script.output" require "script.settings" require "script.utils" require "script.find" require "script.filter" require "script.train" require "script.dialog" require "scrip...
markerFile="NONE" local filename="../../taesoo_qp/Samples/sample_luatorch/models/cassie_final.wrl" local loader=MainLib.VRMLloader(filename) _createEmptyMotion(loader, 'empty.dof') Start(filename, 'empty.dof' , 0.0 , -- initial height 100 -- skin scale )
table.insert(data.raw.projectile["atomic-bomb-wave"].action, { type = "direct", action_delivery = { type = "instant", target_effects = { { type = "destroy-cliffs", radius = 3, explosion = "explosion" } } } }) if (data.raw.projectile["atomic-a...
--[[------------------------------------------------------ # default Poller Normally, end users do not interact directly with the poller. It is used internally by lens.Scheduler to wait on file descriptors and sleep. This poller uses fast poll API and nanosleep for precise operation. -- # Poller API -- TOD...
#include "datascripts/keybinds.lua" moddataPrefix = "savegame.mod.adjustablefire" function saveFileInit() saveVersion = GetInt(moddataPrefix .. "Version") fireSpread = GetInt(moddataPrefix .. "FireSpread") maxFires = GetFloat(moddataPrefix .. "MaxFires") showFireCount = GetBool(moddataPrefix .. "ShowFireCount")...
ITEM.name = "Hat" ITEM.desc = "hatDesc" ITEM.model = "models/sal/acc/fix/cheafhat.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.outfitCategory = "hat" ITEM.price = 150 function ITEM:onGetDropModel(item) return "models/props_junk/cardboard_box004a.mdl" end ITEM.iconCam = { ang = Angle(-0.053513813763857, 0.363893866539, 0),...
local sky_start = tonumber(minetest.settings:get("sky_start") or -100) local player_list = {} local timer = 0 local get_connected_players = minetest.get_connected_players if minetest.get_modpath("cloaking") then get_connected_players = cloaking.get_connected_players end local function node_ok(pos, fallback) fallb...
--[[ -- Copyright(c) 2019, 武汉舜立软件, All Rights Reserved -- Created: 2019/11/25 -- -- @file rtsp_sdp1.lua -- @brief RTSP server sdp协议解析 -- @author 李绍良 --]] local string = require("string") local table = require("table") local l_sys = require("l_sys") local rtsp_sdp1 = {} local server = 'LuaRtsp (v2019.11.25)' rts...
local skynet = require "skynet" local cmd = { ... } local function format_table(t) local index = {} for k in pairs(t) do table.insert(index, k) end table.sort(index) local result = {} for _,v in ipairs(index) do table.insert(result, string.format("%s:%s",v,tostring(t[v]))) end return table.c...
local strict = require(script.Parent:WaitForChild("strict")) local function new() local Signal = strict({ __connections = {}, __callbacks = {}, __waiters = {}, Fire = require(script.Parent:WaitForChild("Fire")), Wait = require(script.Parent:WaitForChild("Wait")), Connect = require(script.Parent:WaitForCh...
----------------------------------- -- -- ABILITIES -- ----------------------------------- require("scripts/globals/status") require("scripts/globals/msg") tpz = tpz or {} tpz.jobAbility = { MIGHTY_STRIKES = 0, HUNDRED_FISTS = 1, BENEDICTION = 2, MANAFONT = 3, CHAINSPELL ...
local audioSystem = {} ------------------------------------ require "love.system" require "modules.utils" require "modules.globals" local fmod local os = love.system.getOS( ) local sourceDirectory = love.filesystem.getSourceBaseDirectory() if os == "Windows" t...
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then return; end local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_generic" ) local utils = require(GetScriptDirectory() .. "/util") local mutil = req...
-- luahs, Lua bindings to hyperscan -- Copyright (C) 2016 Boris Nagaev -- See the LICENSE file for terms of use. local luahs = require 'luahs' describe("simplegrep.lua", function() it("look for expression in file", function() local expected = [[ Scanning 1475 bytes with Hyperscan Match for pattern "dis" ...
--Default Lua Script local entity = {} local phys = {} local cameraEntitiy = {} local speed = 10 local movementX = 0.0 local movementY = 0.0 local jumpTimer = 0.0 function OnInit() entity = LuaComponent:GetCurrentEntity() phys = entity:GetRigidBody3DComponent() children = entity:GetChildren() cameraEntity = children...
--真紅眼の黒刃竜 --Red-Eyes Slash Dragon --Scripted by Sahim function c211408720.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCodeFun(c,74677422,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),1,true) --Equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(211408720,0)) e1:...
--[[ -- example usage local c = cConfig:New() c:RegisterListener(function(n,v) print("SET CALLBACK",n,v) end) c:DeclareString("name", "normal", "playername", "he who enters the gate lalala....", "unknown", false) c:DeclareInteger("int1", "normal", "normal number1", "normal number....", 1, false) c:DeclareIn...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("game.app", function() local app = require "game.app" require "game.ui" it("can render components to moonpie", function() mock(moonpie) local s = { id = ...
local ffi = require("ffi") local engine = engine local PtrToNum = PtrToNum local table = table local type = type local print = print local error = error local pairs = pairs local string = string local bl2sdk = bl2sdk local pcall = pcall ffi.cdef[[ typedef bool (*tCallFunctionHook) (struct UObject*, struct FFrame&, voi...
cjson,test = require("cjson"),false local config = require("lua/config_main").visa_config uname_prod = config.username_prod..":"..config.password_prod url=''
-- Custom Effect Cinematics for the "Channel B" phase gate mode. -- Will probably rename these effects later local kPhaseGateEffects = { phase_gate_linked_channel = { pgLinkedEffectsA = { -- Play spin for spinning infantry portal {looping_cinematic = "cinematics/TwoChanne...
#!/usr/bin/env luajit local function printf(fmt, ...) io.write(string.format(fmt, ...)) end local runs=0 local function move(tower, from, to) if #tower[from]==0 or (#tower[to]>0 and tower[from][#tower[from]]>tower[to][#tower[to]]) then to,from=from,to end if #tower[from]>0 then tower[to][#tower[to]+1]=tower...
--*********************************************************** --** THE INDIE STONE ** --** Author: turbotutone ** --*********************************************************** require "ISUI/ISPanel" ---@class ValuePlotter : ISPanel ValuePlotter = ISPanel:derive("ValuePl...
require("scripts/globals/msg") tpz = tpz or {} local MaxAreas = { -- temenos {Max = 8, Zones = {37}}, -- apollyon {Max = 6, Zones = {38}}, -- dynamis {Max = 1, Zones = {39, 40, 41, 42, 134, 135, 185, 186, 187, 188, 29, 140}}, -- riverneb, ghelsba } function o...
slot0 = class("SandiegoReformPage", import("...base.BaseActivityPage")) slot0.OnInit = function (slot0) slot0.bg = slot0:findTF("AD") slot0.progress = slot0:findTF("progress/left", slot0.bg) slot0.gameBtn = slot0:findTF("start", slot0.bg) slot0.helpBtn = slot0:findTF("mic", slot0.bg) slot0.getSign = slot0:findTF(...
return { gok_pandora = { airsightdistance = 1400, acceleration = 0.12, activatewhenbuilt = true, brakerate = 2.97, buildcostenergy = 540039, buildcostmetal = 29463, builder = false, buildpic = "gok_pandora.dds", buildtime = 1250000, canattack = true, canguard = true, canmove = true...
local skynet = require "skynet" local redis = require "skynet.db.redis" local class = require "class" local Table = require "table_op" local Redis = class() function Redis:_init(conf) self._db_conf = conf self._db = redis.connect(conf) end function Red...
Main = Main or {} Main.event = GetCurrentResourceName()..":" function Export(context, name) exports(name, function(...) return context[name](context, ...) end) end
-- many2one lua program to combine many lua files (linked by require) to one lua file for easy distribution -- Written by Milind Gupta -- For usage and questions visit http://milindsweb.amved.com/Many2One.html -- The way it does is to read all files and convert them to strings and wraps the require function to check if...
local Server = require( 'lctags.Server' ) local DBCtrl = require( 'lctags.DBCtrl' ) local currentDir = Util:getcwd() DBCtrl:init( 'lctags.sqlite3', currentDir, '.', false, false, false ) local db = DBCtrl:open( 'lctags.sqlite3', false, currentDir ) print( 0, os.clock(), os.date() ) -- for index = 1, 10000 do -- d...
function compareTables(tblToCompare, tblToCompareTo) if (type(tblToCompareTo)=="table") and (type(tblToCompare)=="table") then for k, v in pairs(tblToCompareTo) do if not (type(tblToCompare[k])=="nil") then if (type(v)=="table") then if not (compareTables(tblT...
--[[ Name: "sh_coms.lua". Product: "nexus". --]] local COMMAND = {}; local cashName = nexus.schema.GetOption("name_cash"); COMMAND = {}; COMMAND.tip = "Kick a player from the server."; COMMAND.text = "<string Name> <reason>"; COMMAND.flags = CMD_DEFAULT; COMMAND.access = "o"; COMMAND.arguments = 2; --...
local t = require(script.Parent.Parent.t) local DevSettings = require(script.Parent.DevSettings) local strict = require(script.Parent.strict) local RbxId = t.string local ApiValue = t.interface({ Type = t.string, Value = t.optional(t.any), }) local ApiInstanceMetadata = t.interface({ ignoreUnknownInstances = t.o...
local WIDGET, VERSION = 'AutoHideController', 2 local GUI = LibStub('NetEaseGUI-2.0') local AutoHideController = GUI:NewClass('AutoHideController', 'Frame', VERSION) if not AutoHideController then return end LibStub('AceTimer-3.0'):Embed(AutoHideController) AutoHideController._Objects = AutoHideController._Obje...
-- include useful files u_execDependencyScript("ohvrvanilla", "base", "vittorio romeo", "utils.lua") u_execDependencyScript("ohvrvanilla", "base", "vittorio romeo", "common.lua") u_execDependencyScript("ohvrvanilla", "base", "vittorio romeo", "commonpatterns.lua") -- this function adds a pattern to the timeline based ...
--- --- Project: wiola --- User: Konstantin Burkalev --- Date: 06.04.17 --- local _M = {} --- --- Cleans up all wiola sessions data in redis store --- function _M.flushAll() ngx.log(ngx.DEBUG, "Cleaning up all wiola sessions...") local conf = require("wiola.config").config() local redis = require "redis"...
local M = {} local default_opts = { prefix = "set -euo pipefail;", } function M.raw(raw_script, opts) opts = opts or {} return function(server, callback) local jobstart_opts = { cwd = server._root_dir, on_exit = function(_, exit_code) if exit_code ~= 0 then ...
-- local appName = "2 Channel FlipFlop" -- Seriallized values - parameter local swItem={} -- 8 Input swItems local swLogic={} -- logic 1:only, 2:and, 3:or local swMode={} -- transition 1:level, 2:edge local fdName={} -- channel name long label local delTime={} -- delay time in 10ms local fdCtrId={} -- regist...
dirs = -- overridden { {name = "E", angle = math.pi * 2 * 0 / 16}, {name = "ENE", angle = math.pi * 2 * 1 / 16}, {name = "NE", angle = math.pi * 2 * 2 / 16}, {name = "NNE", angle = math.pi * 2 * 3 / 16}, {name = "N", angle = math.pi * 2 * 4 / 16}, {name = "NNW", angle = math.pi * 2 * 5 / 16}, {name = ...
TomTomDB = { ["profileKeys"] = { ["仔酷 - 森金"] = "Default", ["风雨思年华 - 森金"] = "Default", ["巨目巨目巨目 - 森金"] = "Default", ["午盾 - 森金"] = "Default", ["牛爹爹 - 屠魔山谷"] = "Default", ["雄奶奶 - 森金"] = "Default", ["独孤牛儿 - 森金"] = "Default", ["奶奶的大刀 - 森金"] = "Default", }, ["profiles"] = { ["Default"] = { ["general"...
-------------------------------------- -- Upgrader module for NODEMCU -- LICENCE: http://opensource.org/licenses/MIT -- cloudzhou<wuyunzhou@espressif.com> - Heavily modified by aschmois -------------------------------------- --[[ update('file.lua', 'http://IP.ADRESS/path/file.lua') ]]-- local header = '' local isTrun...
#!/usr/bin/env tarantool local backup_restore = {} local backup_restore_private = {} local fiber = require 'fiber' local logger = require 'logger' local dump = require 'dump' local config = require 'config' local system = require 'system' local fio = require 'fio' function backup_restore_private.time_backup() wh...
-- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header$ --- -- This class provides the interface between ...
--- Eva share module. This module require next dependencies (see dependencies.txt): --- defold-sharing --- defold-screenshot local log = require("eva.log") local logger = log.get_logger("eva.share") local M = {} --- Share screenshot of the game -- @function eva.share.screen -- @tparam string text The optional tex...
-- -- Created by IntelliJ IDEA. -- User: RJ -- Date: 06/02/14 -- Time: 10:22 -- To change this template use File | Settings | File Templates. -- ---@class ISTrapMenu ISTrapMenu = {}; ISTrapMenu.doTrapMenu = function(player, context, worldobjects, test) local placeTrap = false; local trapList = {}; local p...
ceres.suppressDefaultHandler() local pathSeparator = package.config:sub(1,1) print("\nStarting Build Process!") ------------------ -- Helper Funcs -- ------------------ local function getLowestLevelStart(s, delim) delim = delim or pathSeparator local i, j = 0, 0 local i2, j2 repeat i2, j2 = i, ...
do -- Ricochet/Penetration materials local Materials = {} local MatCache = {} local Lookup = {} local Count = 0 local function GetMaterial(Path) if not Path then return end if MatCache[Path] then return MatCache[Path] end local Object = Material(Path) MatCache[Path] = Object return Object end loca...
local lpeg = require 'lpeg' local P, S, R, V = lpeg.P, lpeg.S, lpeg.R, lpeg.V local C, Cp, Cs, Carg, Cc = lpeg.C, lpeg.Cp, lpeg.Cs, lpeg.Carg, lpeg.Cc local escape_patt = P'\\' * S'$`\\{}()' local int = R'19' * R'09' ^ 0 -- Nested balanced pattern local function inside(name, exclude) return (escape_patt + ...
require("lua.io") require("lua.config") projectPath = args[2] config = FastConfig.New(Path.combine(projectPath, "BuildEventsConfig.yml")) config.load() if config.has("Major") == false then config.set("Major", 1) end if config.has("Minor") == false then config.set("Minor", 0) end if config.has("Patch") == false th...
serials = { ["7784D1745F2D9DD06DD223333311BEB4"] = true, -- Noki ["BC75E981B2E6D61589F7F88BC6968282"] = true, -- Vladimir ["674F07092F0E31C8CE71B31AC7E69FA2"] = true, -- Luke ["C9FB384CCFFFAE0A04A8B6094CDDAB93"] = true, -- Surface Pro 4 ["1B5DE92E5B8B6E0FB512ADC1D6E3D692"] = true, -- Franklin --["80C55EE8C01CB210...
pathtest = string.match(test, "(.*/)") if pathtest then dofile(pathtest .. "common.lua") else require("common") end function thread_init() set_vars() if (((db_driver == "mysql") or (db_driver == "attachsql")) and mysql_table_engine == "myisam") then local i local tables = {} for i=1, ol...
--[[ AvorionControl - data/scripts/entity/avocontrol-shiptracker.lua --------------------------------------------------------------- Emit ship jump and deletion events to stdout for players and alliances License: BSD-3-Clause https://opensource.org/licenses/BSD-3-Clause ]] -- namespace AvorionControlShip...
function genPersonalRoboports(inputs) local item = "" local equipment = "" local recipe = "" local tech = "" -- Copy electric furnace if inputs.number == "01" then item = table.deepcopy(data.raw.item["personal-roboport-equipment"]) recipe = table.deepcopy(data.raw...
-------------------------------------------------------------------------------- --<[ Внутренние события ]>------------------------------------------------------ -------------------------------------------------------------------------------- addEvent( "Time.onSync", true ) -- Клиент запрашивает синхронизацию ( number ...
local key = KEYS[1] local weightKey = key .. ":weight" local timeKey = key .. ":time" local added = redis.call("ZADD", timeKey, ARGV[1], ARGV[2]) if added == 1 then redis.call("ZREM", timeKey, ARGV[2]) redis.call("ZREM", weightKey, ARGV[2]) end -- Extend the TTL local maxExpiration = redis.call("ZREVRANGE", t...
local NativeTestScene = game.createSceneClass("NativeTestScene") function NativeTestScene:ctor() self:prepare({ description = "Please check console output" }) local items = { "activityIndicator", "showAlert", "openWebBrowser", "callme", "sendEmail", ...
-- CAMERA if (sim_call_type==sim_childscriptcall_initialization) then -- objects (sensors) and names associated with this sensor unit objHandle=simGetObjectAssociatedWithScript(sim_handle_self) objName=simGetObjectName(objHandle) objChilds=simGetObjectsInTree(objHandle, sim_object_proximitysensor_type) ...
mullud_bombo_missions = { { missionType = "deliver", primarySpawns = { { npcTemplate = "sentellus_gavrel", npcName = "Sentellus Gavrel" } }, secondarySpawns = {}, itemSpawns = { { itemTemplate = "object/tangible/mission/quest_item/mullud_bombo_q1_needed.iff", itemName = "Some survey equ...
local PANEL = {} function PANEL:Init() self.Title = self:Add("MenuTitle") self.Title:Hide() --self.MenuOptions = self:Add("MenuOptions") self.Title:DockMargin(0, 20, 0, 23) self.Title:Dock(TOP) --self.MenuOptions:Dock(FILL) end function PANEL:SetEnlarged(state) self.enlarged = state ...
target("brotli") set_kind("static") add_files("brotli/c/common/**.c") add_files("brotli/c/dec/**.c") add_files("brotli/c/enc/**.c") add_includedirs("brotli/c/include", {public = true}) target("cJSON") set_kind("static") add_files("cJSON/**.c") add_includedirs("cJSON/**.h")
slot0 = { "pane/b73dt_GrxxZhaq_tb2.png", "pane/b72dt_GrxxZhaq_tb1.png" } AccountInfoCcsView = class("AccountInfoCcsView") AccountInfoCcsView.onCreationComplete = function (slot0) eventMgr:add(GameEvent.ON_BEGIN_GAME, slot0.onShow, slot0) Hero.cbGenderChangedSignal:add(slot0.updateMyHead, slot0) Hero.wFaceIDChange...
-- ================ LSP config for Idris2 ======================== local lspconfig = require('lspconfig') local configs = require('lspconfig/configs') local IdrResponseBufferName = "idris-response" function IdrInitBuf() if vim.fn.bufexists(IdrResponseBufferName) == 1 then return vim.fn.bufnr(IdrResponseBufferN...
return { --> identifying information <-- id = 184; --> generic information <-- name = "Worn Boots"; rarity = "Common"; image = "rbxassetid://3377146671"; description = "A pair of hand-me-down leather boots to help you run longer."; --> equipment information <-- isEquippable = true; equipmentSlot ...
require("UI") require("tsp") --[[ ios8.0-8.2 aso 评论脚本 据说是低版本的不删除 * * ┌─┐ ┌─┐ * ┌──┘ ┴───────┘ ┴──┐ * │ │ * │ ─── │ * │ ─┬┘ └┬─ │ * │ │ * │ ─┴─ │ * │ │ * └───┐ ...
--[[ spoonacular API The spoonacular Nutrition, Recipe, and Food API allows you to access over 380,000 recipes, thousands of ingredients, 800,000 food products, and 100,000 menu items. Our food ontology and semantic recipe search engine makes it possible to search for recipes using natural language queries, such ...