content
stringlengths
5
1.05M
local get_req_ssl, get_req_ssl_ctx local get_socket_ssl, get_socket_ssl_ctx local pok, nginx_c = pcall(require, "resty.openssl.auxiliary.nginx_c") if pok and not os.getenv("CI_SKIP_NGINX_C") then get_req_ssl = nginx_c.get_req_ssl get_req_ssl_ctx = nginx_c.get_req_ssl get_socket_ssl = nginx_c.get_socket_ssl ge...
#!/bin/env lua local commander = require "commander" commander.add_description = "Add numbers a and b and print the output" commander.add_usage = "a b [--subtract, -s]" function commander:add(a, b) if self.subtract or self.s then print(a - b) return end print(a + b) end commander:run()
local ltask = require "ltask" local S = {} local lables = {} local command = {} local tasks = {} local function querylabel(id) if not id then return "unknown" end if id == 0 then return "system" end if lables[id] then return lables[id] end return "unknown" end local function service(id) return ("(%s:%d...
function requestHttp( url) http = Http(); http:get(url, function ( response ) local str = tostring( response:data() ); local f = loadstring(str, url); f(); end) end requestHttp("http://g.tbcdn.cn/ju/lua-ppt/1.0.12/test.js");
return ARGV[1]
local teleportToCreature = TalkAction("/goto") function teleportToCreature.onSay(player, words, param) if not player:getGroup():getAccess() or player:getAccountType() < ACCOUNT_TYPE_GOD then return true end if param == "" then player:sendCancelMessage("Command param required.") return false end local targ...
-- x64 syscall numbers local nr = { SYS = { read = 0, write = 1, open = 2, close = 3, stat = 4, fstat = 5, lstat = 6, poll = 7, lseek = 8, mmap = 9, mprotect = 10, munmap = 11, brk = 12, rt_sigaction = 13, rt_sigprocmask = 14, rt_sigreturn = 1...
-- Word Buster Delete Word command file (v1.0) -- Copyright (c) 2022, Jericho Crosby <jericho.crosby227@gmail.com> local Command = { name = 'wb_del_word', description = 'Delete a word from lang file', admin_level = 4, help = 'Syntax: /$cmd (word) (lang)', no_perm = 'You need to be level $lvl or hig...
local make_router = require "make_router" local gateway_config = require "gateway" local router = make_router(gateway_config) local ENV = os.getenv("SPACER_ENV") local INTERNAL_TOKEN = require "internal_token" local temp = {} local run = function (func_path, params) temp.func_path = func_path end router.handle...
local o = WardrobeHelper if o.customCategories == nil then o.customCategories = {} end local c = o.customCategories --------------------------------------------------------------- -- Tier 15 - Normal --------------------------------------------------------------- c["Tier 15"] = {} c["Tier 15"]["#allSources"] = true ...
ESOPIE_ICON_LIBRARY = { "/esoui/art/icons/crafting_dwemer_shiny_cog.dds", "/esoui/art/battlegrounds/battlegrounds_tabicon_battlegrounds_up.dds", "/esoui/art/battlegrounds/battlegrounds_scoreicon_capturepoint_neutral.dds", "/esoui/art/battlegrounds/battlegrounds_scoreicon_capturepoint_green.dds", "/e...
require("tk.lsp.handlers").setup() require("tk.lsp.servers")
local Cube local particle function DestroyJetpack() if Cube then if Cube:IsValid() then Cube:Destroy() end Cube = nil end particle = nil end Input.Bind("Jump", InputEvent.Pressed, function() --print("Jump") local ply = Client.GetLocalPlayer() if ply then ...
ammo = class("ammo") ammos = {} local ammoImage = love.graphics.newImage("assets/gfx/sprites/ammo.png") local ammoSpawnTimer = 0 function ammo:initialize() self.x = math.random(765, 2330) self.y = math.random(830, 2030) self.width = 20 self.height = 28 self.type = "ammo" self.id = #ammos + 1 collisionWo...
local process = require "nvim-lsp-installer.core.process" local path = require "nvim-lsp-installer.core.path" local spawn = require "nvim-lsp-installer.core.spawn" local a = require "nvim-lsp-installer.core.async" local Optional = require "nvim-lsp-installer.core.optional" local installer = require "nvim-lsp-installer....
local ROUND_BASED_LIBRARY_STARS = {} local ENTITIES = require "defs.entity_defs" local ENTITY_KIND = require "defs.entity_kind_defs" local CHIP_DATA = require "defs.chip_data_defs" local CHIP = require "defs.chip_defs" local randomchoice_key = require "randomchoice_key" local gauntlet_data = require "gauntlet_data" ...
-- Date: 2021-09-08 22:34:29 -- LastEditTime: 2021-09-08 22:45:49 -- Description: 自动切换输入法 -- local Chinese = function() hs.keycodes.currentSourceID('com.sogou.inputmethod.sogou.pinyin') end local English = function() hs.keycodes .currentSourceID('com.apple.keylayout.ABC') end local ImeConfig = { {'/Applic...
-- -- hud_fs: Render formspecs into HUDs -- -- This is the fallback parser for ColorStrings when modlib isn't installed. -- -- From https://www.w3.org/TR/css-color-3/#svg-color local lookup_table = { aliceblue = 0xf0f8ff, antiquewhite = 0xfaebd7, aqua = 0x00ffff, aqua...
Script.ReloadScript("Scripts/Entities/AI/Shared/BasicAITable.lua"); Script.ReloadScript("Scripts/Entities/AI/Shared/BasicAIEvent.lua"); Script.ReloadScript("Scripts/Entities/AI/AITerritory.lua"); Script.ReloadScript("Scripts/AI/Anchor.lua"); BasicAI = { ai = 1, IsAIControlled = function() return true end, pri...
local E, C, L = select(2, ...):unpack() if C.tooltip.enable ~= true or C.tooltip.talents ~= true then return end ---------------------------------------------------------------------------------------- -- Target Talents(TipTacTalents by Aezay) -------------------------------------------------------------------------...
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- Ruby LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'ruby'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments. local line_com...
do --region Initialization local common = PLSL.common local Class = PLSL.Class local Interface = PLSL.Interface local Method = Interface.Method local CB = {} --endregion CB.Callable = Interface('Callable', true, {__call = Method('self, ...', true)}) CB.SupportsLessThan = Interface('SupportsLessThan...
--New object_static_worldbuilding_decal_shared_mun_decal_blast_lg = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/worldbuilding/decal/shared_mun_decal_blast_lg.iff" } ObjectTemplates:addClientTemplate(object_static_worldbuilding_decal_shared_mun_decal_blast_lg, "object/static/worldbuilding/d...
local _USAGE = { 'KEYS[1] - index sorted set key', 'KEYS[2] - index hash key', 'ARGV[1] - command. Can be:', ' create - create an index with ARGV[2] as dimension and ARGV[3] as precision', ' drop - drops an index', ' index - index an element ARGV[2] with ARGV[3]..ARGV[3+dimension]...
local ls = require("luasnip") -- some shorthands... local s = ls.snippet local sn = ls.snippet_node local t = ls.text_node local i = ls.insert_node local f = ls.function_node local c = ls.choice_node local d = ls.dynamic_node local l = require("luasnip.extras").lambda local r = require("luasnip.util.functions").rep loc...
echo("\n") lotj.galaxyMap.log("Error gathering galaxy map data. Please fix the problem and try again.") disableTrigger("galaxy-map-refresh")
-- -- Tool for identifying elements in an application that might be of interest... -- -- example use -- install this file in your ~/.hammerspoon directorym then, in the -- Hammerspoon console type: dofile("axtypeMarker.lua").markApplication("Finder", "AXButton") -- -- The finder will be brought forward and a few second...
NDefines.NCharacter.MAX_CHILD_BIRTH_AGE = 2000 -- Handle menopause manually with a trait, so different races have different ages NDefines.NCharacter.FEMALE_ATTRACTION_CUTOFF = 2000 NDefines.NCharacter.MALE_ATTRACTION_CUTOFF = 2000
--!A cross-platform build utility based on Lua -- -- 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...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") ENT.BogeyDistance = 650 -- Needed for gm trainspawner -------------------------------------------------------------------------------- function ENT:Initialize() -- Defined train information self.SubwayTrain = { Type = "81", ...
tzofs = 3600 * 0; -- DISTANCE FROM PST. EST = 3 timeto = 1293416391; require "x_functions"; if not x_requires then -- Sanity check. If they require a newer version, let them know. timer = 1; while (true) do timer = timer + 1; for i = 0, 32 do gui.drawbox( 6, 28 + i, 250, 92 - i, "#000000"); end; gui.tex...
local propLimitConfig = nil; local Type = { Hero_Level = 1, Weapon_Level = 2, Weapon_Star = 3, Equip_Level = 4, Equip_Adv = 5, Inscription = 6, } local function LoadLevelupConfig(type) if propLimitConfig == nil then propLimitConfig = {}; DATABASE.ForEach("propertyLimit", function(row) if propLimit...
-- ---------------------------------------------------------------------------- -- FORMATTERS -- ---------------------------------------------------------------------------- -- https://github.com/Koihik/LuaFormatter local luaFormat = { formatStdin = true, formatCommand = "lua-format --config=$DOTFILES/Formatter...
---@class LibStub LibStub = {} --- @param major string @ the major version of the library --- @param minor string|number @ the minor version of the library --- @return nil|table, string major, oldMinor @ if a newer or same version of the lib is already present and library object or old library object if upgrade is nee...
display.setStatusBar( display.HiddenStatusBar ) -- standard tvshader setup stuff local TVShader = require("TVShader") local contentGroup = display.newGroup() local effectGroup = display.newGroup() local tvshader = TVShader({ contentGroup=contentGroup, effectGroup=effectGroup }) -- debug stuff -- keep thi...
chatCommands.update = { permissions = {'admin'}, event = function(player, args) if not syncData.connected then return chatMessage('<fc>[•] Failed to update. Reason: Data not synced.', player) end local msg = args[1] and table_concat(args, ' ') or '' syncData.updating.updateMessage = msg saveGameData('Sharpieb...
-- Bicycle profile api_version = 4 Set = require('lib/set') Sequence = require('lib/sequence') Handlers = require("lib/way_handlers") find_access_tag = require("lib/access").find_access_tag limit = require("lib/maxspeed").limit Measure = require("lib/measure") function setup() local default_speed = 15 local walk...
local doorIds = {} for index, value in ipairs(CustomDoorTable) do if not table.contains(doorIds, value.openDoor) then table.insert(doorIds, value.openDoor) end if not table.contains(doorIds, value.closedDoor) then table.insert(doorIds, value.closedDoor) end end local customDoor = Action() function customDoor...
return { 'cd.lua', 'config.lua', 'copy.lua', 'forget.lua', 'open.lua', 'term.lua', 'signal.lua', 'view.lua', 'repeat.lua', 'env.lua', 'trigger.lua', -- 'views/wrap.lua' }
local E = require 'ta.loot' function ta_loot_gen(self) E.Run(self) end
-- Calls the Redis command: ZRANGEBYSCORE key min max -- for each {key, min, max} given in the input arguments. Returns -- the set intersection of the results local function intersect_range_index_sets(set, tuples) for _, redis_key in ipairs(tuples) do local key, min, max = unpack(redis_key) local ids = redis....
-- -- Created by IntelliJ IDEA. -- User: vimfung -- Date: 2017/7/5 -- Time: 下午4:38 -- To change this template use File | Settings | File Templates. -- function Resume(func) coroutine.resume(func) end function Test() logic = coroutine.create(function() while true do local value = GetValue...
object_building_kashyyyk_decd_wroshyr_root_s01 = object_building_kashyyyk_shared_decd_wroshyr_root_s01:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_decd_wroshyr_root_s01, "object/building/kashyyyk/decd_wroshyr_root_s01.iff")
function split( str, delimiter ) local t = {}; string.gsub( str, delimiter .. "([_a-zA-Z0-9]+)", function( s ) table.insert( t, s ); end); return t; end function getXTableElement( filename, key ) local tName = dofile( filename ); local ret; local keyArray = split( key, "/" ); ...
-- Only load the FFI library once! (otherwise creates weird segfaults) ffi = require 'ffi'
-- Pawn by Vger-Azjol-Nerub -- www.vgermods.com -- © 2006-2018 Green Eclipse. This mod is released under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 license. -- See Readme.htm for more information. -- -- Spanish (European and Latin American) resources -- See special cases at the end of the file! ---...
PLUGIN.name = "ServerGuard Support" PLUGIN.author = "Sample Name" PLUGIN.desc = "Proper ServerGuard support" -- We don't want the code below to run when ServerGuard isn't installed if (!serverguard) then return end -- ServerGuard's restrictions plugin was created to limit toolgun possibilies, but using it with NutScr...
--------------------------------------------------------------------------------------------------- ---capture_rate ---author: Karl ---date created: 2021.8.9 ---desc: Manages recording capture rates for all the attacks; implements some interfaces for attack --- card capture rate read/increment; here capture rate refer...
if need_table(in_domain({'domain_switch'}), nil, false) then need_domain_name(in_domain({'domain_switch', 'target_domain'})) need_number(in_domain({'domain_switch', 'switch_after_offline_mins'})) need_number(in_domain({'domain_switch', 'switch_time'})) need_string_array_match(in_domain({'domain_switch', 'connection...
------------------------ -- Color class. -- For bringing color to your life. -- -- Derived from @{Object}. -- @cl Color local Color = class('Color') function Color:initialize( r, g, b, a ) self.r = r or 255 self.g = g or 255 self.b = b or 255 self.a = a or 255 end function Color:copy() return Color( self.r, se...
local Files = require('orgmode.parser.files') local Help = require('orgmode.objects.help') local config = require('orgmode.config') local utils = require('orgmode.utils') local EditSpecial = { context_var = '__org_edit_special_ctx', aborted_var = '__org_edit_special_aborted', block_types = { SRC = require('o...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "Bootleg Beer"; ITEM.model = "models/props_junk/garbage_glassbottle003a.mdl"; ITEM.width = 1; ITEM.height = 2; ITEM.description = "It's grimy, bitter and flat. It's also beer, alcoholic and cheap."; ITEM.pe...
-------------------------------------------------------------------------------- -- Copyright (c) 2015 , 蒙占志(topameng) topameng@gmail.com -- All rights reserved. -- Use, modification and distribution are subject to the "MIT License" ------------------------------------------------------------------------...
local fireball = {} fireball.name = "fireBall" fireball.depth = 0 fireball.nodeLineRenderType = "line" fireball.texture = "objects/fireball/fireball01" fireball.nodeLimits = {0, -1} fireball.placements = { name = "fireball", data = { amount = 3, offset = 0, speed = 1, notCoreMod...
local Throttle = { counters = {} } local RequestCounter = {} RequestCounter.__index = RequestCounter function RequestCounter.new() local self = { counter = {} } return setmetatable(self, RequestCounter) end function RequestCounter:Get(player) local counter = self.counter local playerQueue = counter[player.Us...
local Token = require 'utils.token' local Global = require 'utils.global' local Event = require 'utils.event' local Game = require 'utils.game' local Timestamp = require 'utils.timestamp' local Print = require('utils.print_override') local serialize = serpent.serialize local concat = table.concat local remove = table....
-- https://github.com/ImagicTheCat/vRP -- MIT license (see LICENSE or vrp/vRPShared.lua) local Luang = module("vrp", "lib/Luang") local vRPShared = module("vrp", "vRPShared") -- Server vRP local vRP = class("vRP", vRPShared) -- SUBCLASSES vRP.DBDriver = class("vRP.DBDriver") -- called when the driver is initialize...
TCG = {} TCG.Items = { ["tcgbinder"] = { price = 250, }, ["tcgpack_ogs"] = { price = 50, }, } TCG.Cards = { ["playboicarti"] = { name = "Playboi Carti", description = "She my best friend yeah we not a couple", image = "https://i.imgur.com/8YJz7yA.png", }...
markerFile="NONE" if false then Start( "../Resource/jae/human/humanHanyang_T.wrl", -- 종아리 짧음 --"../Resource/jae/human/humanHanyang_T_male.mesh.wrl", "../Resource/jae/human/humanHanyang_T_humanHanyang.dof", --"../Resource/jae/human/humanHanyang_T.dof", 0.0 ) else Start( --"../Resourc...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local LocalPlayer = game:GetService("Players").LocalPlayer local lib = ReplicatedStorage:WaitForChild("lib") local common = ReplicatedStorage:WaitForChild("common") local Roact = require(lib:WaitForChild("Roact")) local RoactRodux = require(lib:WaitForChi...
-- plugins.lua vim.cmd [[packadd packer.nvim]] return require('packer').startup(function() use 'wbthomason/packer.nvim' -- clolortheme use 'shaeinst/roshnivim-cs' use 'folke/tokyonight.nvim' -- use 'norcalli/nvim-colorizer.lua' -- dashboard use { 'kyazdani42/nvim-tree.lua', requires = { ...
generic_opts_any = require('keymappings.common').generic_opts_any vim.api.nvim_set_keymap('n', '<C-n>', ':NvimTreeToggle<CR>', generic_opts_any)
-- if using zsh, always output newline for ac local h = require("cphelper.helpers") local M = {} -- Run a test case --- @param case number #Case no. --- @param cmd string #Command for running the test --- @return table, number #The result to display and whether or not the test passed function M.run_test(case, cmd) ...
--[[ BEGIN_SCRIPT_CLASS(super, CSuper) DEFINE_CLASS_FUNCTION(getMsg, std::string, ()) { if(!obj) { return 0; } r = obj->m_strSupMsg; std::cout<< "super::getMsg\n"; return 1; } DEFINE_CLASS_FUNCTION(superFunc, int, ()) { if(!obj) { return 0; } std::cout<< "super::super...
----------------------------------- -- Area: Davoi -- NPC: Hide Flap -- Involved in Quest: The Doorman, The First Meeting -- !pos 293 3 -213 149 (WAR)(K-9) -- !pos -124 3 -43 149 (MNK)(F-7) ----------------------------------- local ID = require("scripts/zones/Davoi/IDs") require("scripts/globals/keyitems") require("sc...
return { name = "luvit/secure-socket", version = "1.2.1", homepage = "https://github.com/luvit/luvit/blob/master/deps/secure-socket", description = "Wrapper for luv streams to apply ssl/tls", dependencies = { "luvit/resource@2.1.0" }, tags = {"ssl", "socket","tls"}, license = "Apache 2", author = ...
----------------------------------- -- Area: Windurst Woods -- NPC: Hayah Dahbalesahma -- Type: Standard NPC -- !pos -50.363 -1.292 -147.883 241 ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) player:startEvent(263) end function onEventUpdate(player,csid...
local helpers = require "spec.helpers" local cjson = require "cjson" local function createConsumer(name, apikey) local consumer = assert(helpers.dao.consumers:insert { custom_id = name }) assert(helpers.dao.keyauth_credentials:insert { key = apikey, consumer_id = consumer.id }) return { cons...
local product = arg[1] or 'wow' local dbtoexport = arg[2] local handle, version = (function() local casc = require('casc') local url = 'http://us.patch.battle.net:1119/' .. product local bkey, cdn, ckey, version = casc.cdnbuild(url, 'us') assert(bkey) print('loading ' .. version) local handle = casc.open({...
ACF.RegisterWeaponClass("FGL", { Name = "Flare Launcher", Description = "Flare Launchers can fire flares much more rapidly than other launchers, but can't load any other ammo types.", MuzzleFlash = "gl_muzzleflash_noscale", ROFMod = 0.6, Spread = 1.5, Sound = "acf_missiles/missiles/flare_l...
function changeLine(x) if ((x % 2) == 1) then turtle.turnLeft(); forwardTurtle() turtle.turnLeft(); else turtle.turnRight(); forwardTurtle() turtle.turnRight(); end end function returnToStartPoint(width, height) if (width % 2) == 1 then turtle.turnLeft(); turtle.turnLeft(); ...
require("isolater/common/commonController"); require("hall/groupGame/data/groupGameInterface"); GroupGameController = class(CommonController) GroupGameController.s_cmds = { Back = 1, }; GroupGameController.s_ActivityListTimeOut = 1; GroupGameController.s_timeOutTime = 6000; GroupGameController.ctor =...
local PANEL = {} function PANEL:Init() self.model = vgui.Create("DModelPanel", self) self.model:SetPaintBackground(false) self:SetMouseInputEnabled(true) self:SetTall(74) self:SetCursor("hand") end function PANEL:SetItem(item, sellData) self.Item = item self.SellData = sellData local panel = self self.mod...
--[[ License : GLPv3, see LICENCE in root of repository Authors : Nikolay Fiykov, v1 --]] local nodemcu = require("nodemcu-module") local inspect = require("inspect") local contains = require("contains") local pinState = require("gpio_pin_state") gpio = {} gpio.__index = gpio gpio.INT = 1 gpio.INPUT = 2 gpio.OUTPUT ...
--[[ ------------------------------------ Description: HPC BeaverCreek Messages, Phasor V2+ Copyright (c) 2016-2018 * Author: Jericho Crosby * IGN: Chalwk * Written and Created by Jericho Crosby ----------------------------------- ]]-- -- Settings local message1 = "On this map you start wihout a weapon." local message...
require('utils') require('plugins')
local M = {} function M.refactor_perform(command, ctx) local client = vim.lsp.get_client_by_id(ctx.client_id) local prompt local default local kind = command.arguments[1] if kind == "EXTRACT_METHOD" then prompt = "Enter a name for the method: " default = "newMethod" elseif kind == "EXTRACT_WIDGET"...
local S = SERVICE_MODULE("mark") S:require_sound_bank('mark') S:require_sound_bank('sewer') S:set_idle_tick_during(PHONE_STATE_IDLE, PHONE_STATE_DIAL_TONE) -- TODO: Implement "slow idle" mode for services -- S:use_slow_idle() local talked_during_call = false -- args.path: path to this script file function S.load(arg...
return { request = { {'username', 'string'}, {'superpassword', 'string'}, {'password', 'string'}, {'ip', 'string'}, {'email', 'string'}, }, response = { {'username', 'string'}, {'result', 'uint8'}, }, id = 0xf1, }
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937" -- Example custom radios supersede_radio "RADIO_02_POP" { url = "https://revolutionradio.ru:8443/live.ogg", volume = 0.2 } supersede_radio "RADIO_03_HIPHOP_NEW" { url = "http://stream.radioreklama.bg/nrj.ogg", volume = 0.2 } files { "index.html" } ui_...
local map = vim.api.nvim_set_keymap local function silent_map(mode, shortcut, command) map(mode, shortcut, command, { noremap = true, silent = true }) end local function fast_map(mode, shortcut, command) map(mode, shortcut, command, { noremap = true, silent = true, nowait = true }) end -- WORKAROUND: remove in n...
local Plugin = script.Parent.Parent.Parent.Parent.Parent.Parent local Libs = Plugin.Libs local Roact = require(Libs.Roact) local Constants = require(Plugin.Core.Util.Constants) local ContextGetter = require(Plugin.Core.Util.ContextGetter) local ContextHelper = require(Plugin.Core.Util.ContextHelper) local getMainMan...
-- Spawns a new thread without waiting one step -- @author Databrain local FastSpawnerEvent = Instance.new("BindableEvent") FastSpawnerEvent.Event:Connect(function(callback, argsPointer) callback(argsPointer()) end) local function FastSpawn(callback, ...) local n = select("#", ...) local args = { ... } FastSpawn...
local SakuraEmpireUI = {}; local firstPromotion: number = 0; local firstPromotMK1: number = 0; function OnGovernorPromoted(ePlayer, governorID, ePromotion) local governorDefinition = GameInfo.Governors[governorID]; -- Check if Governor is Akashi if (Players[ePlayer] and governorDefinition and governorDefinition.Gove...
PipeManager = { } function PipeManager:OnInit() Log("PipeManager: Creating goal pipes"); self:ReloadScripts(); self:CreateGoalPipes(); Log("PipeManager: Finished creating goal pipes!"); end function PipeManager:ReloadScripts() Script.LoadScript("Scripts/AI/GoalPipes/PipeManagerShared.lua", true, true); S...
-- Lua 5.2-compatible shim bit = {} bit._and = bit32.band bit._not = bit32.bnot bit._or = bit32.bor bit._xor = bit32.bxor bit._shl = bit32.lshift bit._shr = bit32.rshift
--[[ --MIT License -- --Copyright (c) 2019 manilarome --Copyright (c) 2020 Tom Meyers -- --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 ...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local components = require "moonpie.ui.components" local connect = require "moonpie.redux.connect" local empty_view = { id = "empty_view" } local game_view = components("game_view", func...
--[[ #example.lua --- The Lua interface for MidiMutt exposes the following global variables: 1. key 2. mouse 3. wait #key --- key.press(key) e.g. key.press("a"), key.press("PrintScreen") key.hold(key) e.g. key.hold("left") key.release(key) e.g. key.release("left")...
DxElement = {} -- ************************************************* function DxElement:new(...) return new(self, ...) end function DxElement:delete(...) for i=#self.children,1,-1 do self.children[i]:delete() end self.terminated = true self:setParent(false) if(self.destruct) then self:destruct() ...
local ffi = require 'ffiex.init' -- ffi.__DEBUG_CDEF__ = true local pt if ffi.os == 'OSX' then ffi.search("/Applications/Xcode.app/Contents/Developer/usr", "stdarg.h", true) pt = ffi.C elseif ffi.os == 'Linux' then pt = ffi.load('pthread') end ffi.cdef [[ #include <pthread.h> #include <memory.h> #include <stdlib.h...
--Lists the folders and files at the current directory. --The same of dir.lua if select(1,...) == "-?" then printUsage( "ls","Lists the files and folders in the current directory" ) return end local term = require("terminal") --Require the terminal api. local path = term.getpath() --Get the curre...
--require('components/startingitems/startingitems')
local format = { [font1] = {name="font1",describe="常用字体",value="黑体"}, [size1] = {name="size1",describe="基本字体小",value=25}, [size2] = {name="size2",describe="基本字体中",value=30}, [size3] = {name="size3",describe="基本字体大",value=35}, [white] = {name="white",describe="白",value="255;255;255"}, [black] = {name="black",describe="黑...
local meta = FindMetaTable("Player") function meta:AttachModel(ID,BoneID,offpos,offang,scale,Model) if (!self._AM) then self._AM = {} end if (self._AM[ID] and IsValid(self._AM[ID].CEnt)) then self._AM[ID].CEnt:Remove() end self._AM[ID] = {CEnt = ClientsideModel(Model), BID = BoneID,} self._AM[ID].CEnt:SetModelSc...
slot0 = class("AutoSubCommand", pm.SimpleCommand) slot0.execute = function (slot0, slot1) slot4 = slot1:getBody().toggle PlayerPrefs.SetInt("autoSubIsAcitve" .. slot0.GetAutoSubMark(slot5), (not slot1.getBody().isActiveSub and 1) or 0) end slot0.GetAutoSubMark = function (slot0) if slot0 == SYSTEM_WORLD then re...
place = { " Krugovi nemaju zajedničkih tačaka, ", " Krugovi se dodiruju spolja, ", " Krugovi se dodiruju iznutra, ", " Krugovi se seku, ", " Manji krug je ceo sadržan u većem, ", " Krugovi su koncentrični, " }
local unban = TalkAction("/unban") function unban.onSay(player, words, param) if not player:getGroup():getAccess() or player:getAccountType() < ACCOUNT_TYPE_GOD then return true end if param == "" then player:sendCancelMessage("Command param required.") return false end local resultId = db.storeQuery("SEL...
#!/usr/bin/lua --[[ Automated test suite for the fbclient Lua binding. Before reporting a bug, make sure this script doesn't break for you. Read README.TXT before running this script. ]] local config = require 'test_config' total_ok_num = 0 total_fail_num = 0 local function add(ok_num,fail_num) total_ok_num =...
----------------------------------- -- Area: Windurst Woods -- NPC: Hauh Colphioh -- Type: Guildworker's Union Representative -- !pos -38.173 -1.25 -113.679 241 ----------------------------------- local ID = require("scripts/zones/Windurst_Woods/IDs") require("scripts/globals/crafting") require("scripts/globals/keyite...