content
stringlengths
5
1.05M
LinkLuaModifier('modifier_is_in_offside', 'modifiers/modifier_offside.lua', LUA_MODIFIER_MOTION_NONE) LinkLuaModifier('modifier_offside', 'modifiers/modifier_offside.lua', LUA_MODIFIER_MOTION_NONE) LinkLuaModifier('modifier_onside_buff', 'modifiers/modifier_onside_buff.lua', LUA_MODIFIER_MOTION_NONE) modifier_is_in_of...
data:extend({ { type = "virtual-signal", name = "blue-0", icon = "__thecomb-computerSignals__/graphics/blue-0.png", icon_size = 128, subgroup = "blue-number", order = "a" }, { type = "virtual-signal", name = "blue-1", icon = "__thecomb-computerSignals__/graphics/blue-1.png", ...
-- changes the state of scanner 3 changeState(3)
local COMMAND = {} COMMAND.title = "Votemode" COMMAND.description = "Initializes a votemode to switch the server from build to war or vice versa." COMMAND.author = "Nub" COMMAND.timeCreated = "Saturday, March 22, 2020 @ 2:08 AM" COMMAND.category = "Voting" COMMAND.call = "votemode" nadmin:RegisterPerm({ t...
GM.BankMenu = nil PANEL = {} PANEL.BankInventoryPanel = nil PANEL.PlayerInventoryPanel = nil PANEL.ItemIconPadding = 1 PANEL.ItemIconSize = 39 PANEL.ItemRow = 7 function PANEL:Init() self.Frame = CreateGenericFrame("Bank Menu", false, true) self.Frame.CloseButton.DoClick = function() GAMEMODE.BankMenu.Frame:Close(...
include("shared.lua") AddCSLuaFile("shared.lua") AddCSLuaFile("cl_init.lua") function ENT:Initialize() self.Entity:SetModel( "models/hunter/misc/sphere1x1.mdl" ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:SetSolid( SOLID_VPHYSICS ) self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity...
# post.lua -- example HTTP POST script which demonstrates setting the -- HTTP method, body, and adding a header wrk.method = "POST" wrk.body = '{"items":[{"productId":"5678","qty":2,"price":200}]}' wrk.headers["Content-Type"] = "application/json"
function doChat(msg, t) if (t ~= 0) then return false end -- Check if event got cancelled if (wasEventCancelled()) then return false end -- Otherwise, all good. sendMessageToDiscord("https://discordapp.com/api/webhooks/396033709502889995/29WtsXU-mCcgpg0qY3eoCrn_OFL7Sq1PyLBuZPrHF3EPRuqP8GHEoS3AlEzbAp-27i9g", ...
print "INIT: Initializing network..." if Event then Event("wifi.disconnected", T) end local hostname = require("sys-config").Read("hostname.cfg") if not hostname then print "WiFi: No name config file" local chipid = node.chipid() hostname = string.format("ESP-%X", chipid) else hostname = hostname:match("%w+")...
require("debugging.nvim-dap-plugin") require("debugging.nvim-dap-virtualtext-plugin") require("debugging.telescope-dap-plugin") require("debugging.nvim-dap-ui-plugin") require("debugging.sniprun-plugin")
if not net then print("network support missing, abort") return end print("Waiting for connection on port 5050") local s,r,e --repeat s,r,e=net.accept(5050) --,nil,3*1000000); --if e==-1 then io.write(".") end --until e~=-1 or uart.getchar(0,uart.NO_TIMEOUT)~="" print(s,net.unpackip(r,"*s"),e) if s>=0 then pr...
-- match(echo) ------------------------------------------------------------------------------- -- Copyright (c) 2018 Marcus Geelnard -- -- This software is provided 'as-is', without any express or implied warranty. -- In no event will the authors be held liable for any damages arising from the -- use of this software....
--[[ ________ ___ ________ ___ ___ ___ ___ ___ ___ |\ __ \|\ \ |\ __ \ |\ \ / /|\ \ / /|\ \ / /| \ \ \|\ /\ \ \ \ \ \|\ \ \ \ \/ / | \ \/ / | \ \/ / / \ \ __ \ \ \ \ \ \\\ \ \ \ / / \ \ / / \ \ / / \ \ \|\ \ \ \____\ \ \\\ ...
--main.lua --author -- sandakelum priyamantha ------------------------------------- local composer = require("composer") composer.recycleOnSceneChange = true composer.gotoScene("scenes.menu")
npairs = require("nvim-autopairs") npairs.setup({ check_ts = true, map_cr = false, }) require("Comment").setup({ ignore = "$^" })
require("ItemTweaker_Copy_CC"); --CRASHEDCARSMOD --Mechanics TweakItem("Base.SmallTrunk0","DisplayCategory","Mechanics"); TweakItem("Base.NormalTrunk0","DisplayCategory","Mechanics"); TweakItem("Base.BigTrunk0","DisplayCategory","Mechanics"); TweakItem("Base.FrontCarDoor0","DisplayCategory","Mechanics"); TweakItem("Ba...
-- This file is part of SA MoonLoader package. -- Licensed under the MIT License. -- Copyright (c) 2017, BlastHack Team <blast.hk> -- For information about iconv and lua-iconv see the 'iconv' directory ------------------- --- USAGE GUIDE --- ------------------- --[[ -- initialization local encoding = requi...
require 'lux.object' scene = lux.object.new { } function scene:update(dt) end -- When changing to this scene function scene:focus() end -- When changing from this scene function scene:unfocus() end function scene:input_pressed(...) end function scene:input_released(...) end function scene:draw(graphics) end
local take = {lang={}, project={}} package.loaded.take = take take.md5 = require 'take.md5' take.os = require 'take.os' take.paths = require 'take.paths' take.table = require 'take.table' take.lang.c = require 'take.lang-c' take.lang.asm = require 'take.lang-s' take.link = require 'take.link' require 'take.utils' re...
Talk(112, "少侠多保重.", "talkname112", 0); do return end;
-- Copyright (c) 2010-present Bifrost Entertainment AS and Tommy Nguyen -- Distributed under the MIT License. -- (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) local Coroutine = require("Coroutine") local MAX_NUM_SPRITES = 256 local NUM_BATCHES = 256 local SAMPLE_SIZE = 60 local g_fram...
-- Use VSCode with lua-language-server extension -- to see each variable in details! -- https://code.visualstudio.com -- https://marketplace.visualstudio.com/items?itemName=sumneko.lua local Object = require("typedobject").config { production = false, extraTypes = { require "types.basic", -- Basic types: inte...
-- PMS5003 library -- -- The PMS5003 is a PM2.5 (with extrapolations) particle counter which spews -- out a 32 byte protocol over 3.3V UART. This library wraps that behaviour and -- makes it callback-driven from an application perspective. -- -- According to its datasheet, the PMS5003 needs 30 seconds of warmup after -...
local Sprite = Component:extend("Sprite") -- locals are a bit faster local cos, sin, atan2, min, max = math.cos, math.sin, math.atan2, math.min, math.max function Sprite:initialize(image, w, h) self.image = assert(image:typeOf("Drawable") and image, "first argument must be a drawable") self.width = w or sel...
appName="{appName}"
cmd_msg = { " right \n left" .. "\n\n down \n up" .. "\n\n s \n d" .. "\n\n e \n r" .. "\n\n t \n y" .. "\n\n f" .. "\n\n\n g" .. "\n\n\n h" .. "\n\n\n j" .. "\n\n\n k", " move X" .. "\n\n\n move Y" .. "\n\n\n move Z" .. "\n\n\n change angle of view" .. "\n\n\n zoom in and out" .. "\n\n\n set angle an...
-- For extracting colors from hlgroups local get_color = require("lualine.utils.utils").extract_highlight_colors -- Conditions local conditions = { buffer_not_empty = function() return vim.fn.empty(vim.fn.expand("%:t")) ~= 1 end, hide_in_width = function() return vim.fn.winwidth(0) > 60 ...
local text=Class { } text.__name='Text Message Object' text._type='TEXT' function text:__init(textString, connector) self._originalData=textString or "" self._columnSeparator=connector and connector._configTable.columnseparator or ',' self._rowSeparator =connector and connector._configTable.rowseparator o...
--[[ A filter to add references into multiple reference sections in a document. Adapted from https://github.com/pandoc/lua-filters/tree/master/multiple-bibliographies and https://github.com/databio/sciquill/tree/master/pandoc_filters/multi-refs To allow duplication of reference entries between...
return function(self) self.next_line_indent = self.next_line_indent - 1 end
class "sClaymores" function sClaymores:__init() self:initVars() Events:Subscribe("ModuleUnload", self, self.onModuleUnload) Network:Subscribe("01", self, self.addClaymore) Network:Subscribe("02", self, self.removeClaymore) end function sClaymores:initVars() self.objects = {} self.stream = 300 -- Distance in met...
-- debugging require("luacom") luacom.config.abort_on_API_error = true luacom.config.abort_on_error = false function GetNetworkInterface () print("GetNetworkInterface") local item,BpsSent,BpsRec,BpsTot,bpsBandwidth BpsSent,BpsRec,BpsTot,bpsBandwidth = 0,0,0,0 objNetworkRefresher:Refresh () NetworkEnum:Reset...
-- Set defaults require("defaults").setup() -- Set up plugins require("plugins").setup() -- Set configs require("settings").setup() -- LSP -- require('lang')
dofile( os.get() .. ".lua" ) function DefineRenderer( name, filetable ) project ( "Renderer-"..name ) files( filetable ) flags( { "Symbols" } ) kind( "StaticLib" ) configuration( "Release" ) targetname( "GWEN-Renderer-"..name ) configuration( "Debug" ) targetname( "GWEND-Renderer-"..name...
local backpack_qn_pin_map = require("qnFiles/qnPlist/hall/backpack_qn_pin"); local newObjectCaseSell= { name="newObjectCaseSell",type=0,typeName="View",time=0,x=0,y=0,width=1280,height=720,visible=1,nodeAlign=kAlignTopLeft,fillParentWidth=1,fillParentHeight=1,stageW=0, { name="Image_mask",type=0,typeName="Image",ti...
local M = {} function M.expose_one(test, bufnr, language, separator, name_factory) name_factory = name_factory or require("gettest.view.name_factory").new(bufnr, language, separator) return { name = name_factory:create(test), scope_node = test:scope_node(), is_leaf = test.is_leaf, } end function M.e...
SWEP.Base = "draconic_gun_base" SWEP.Gun = "drc_snow_ho_br85_thorn" if ( CLIENT ) then SWEP.WepSelectIcon = surface.GetTextureID( "vgui/entities/drchalo_br" ) end SWEP.HoldType = "ar2" SWEP.Category = "Draconic: Halo Extras" SWEP.PrintName = "M395-D33 THORN" SWEP.InfoName = "Battle Rifle" SWEP.Auhtor ...
local t = Def.ActorFrame{ Def.BPMDisplay { --File=FontPath("mentone","24px"); File=THEME:GetPathF("Common", "numbers"); Name="BPMDisplay"; InitCommand=cmd(y,-1;zoom,0.8;vertalign,bottom;NoStroke;shadowlength,1;maxwidth,SCREEN_CENTER_X*0.75); SetCommand=function(self) self:SetFromGameState(); end; Curr...
-- This screen file returns an ActorFrame with two actors. -- A screen file must return an ActorFrame. -- All actors on the screen must be inside this ActorFrame. return Def.ActorFrame{ -- An actor is added to a frame by calling a function that returns an actor. -- Most of the functions for creating actors are in th...
package("promise-cpp") set_homepage("https://github.com/xhawk18/promise-cpp") set_description("C++ promise/A+ library in Javascript style.") set_license("MIT") add_urls("https://github.com/xhawk18/promise-cpp/archive/refs/tags/$(version).tar.gz", "https://github.com/xhawk18/promise-cpp.git...
local pathfunctions = {} function pathfunctions.walk(path, time, speed) -- path is path in x1, y1, x2, y2, ... local posx, posy = path[1], path[2] local lastx, lasty = path[1], path[2] local len = 0 -- EINMALIG: Gesamtpfaglänge berechnen if not path.length then -- EINMALIG: Pfad schließen table.insert(pa...
if SERVER then return end if not TFAStarWars then return end TFAStarWars.Manuals = TFAStarWars.Manuals or { } TFAStarWars.Manuals.FAQ = TFAStarWars.Manuals.FAQ or { } local function AddQA(question, answer) table.insert(TFAStarWars.Manuals.FAQ, { Q = question, A = answer }) end AddQA("I don't have any spell. What's ...
--- --- Created by FyS. --- DateTime: 19/11/20 1:59 AM --- ----- Testing File spawningPoint_0 = { idSpawningPoint = 0, spawned = { [0] = { isAlive = false, -- MANDATORY PUBLIC shouldSpawn = function(this) return this.isAlive end, ...
WINDOW = { width, height } WINDOW.width, WINDOW.height = window.size() panels = { left = { width = 128, height = 768, center = { x = -WINDOW.width / 2, y = 0 } }, right = { width = 32, height = 768, center = { x = WINDOW.width / 2, y = 0 } } } cameraRatio = { current = 1, num = 2, target = 1 } aspectRatio = WINDOW.wi...
NAME = "English" LANGUAGE = { ["Stamina"] = "Stamina", ["Endurance"] = "Endurance", -- BAR LANGUAGES stm = "STAMINA", health = "HEALTH", armor = "ARMOR", hunger = "HUNGER", desc = "Physical Description", cookNever = "Uncooked", cookFailed = "Burnt", cookWell = "Good", cookDone = "Great", cookGood = "Perf...
local spec = require 'spec.spec' describe("404 alert", function() local cache before_each(function() cache = spec.middleware('cache-middleware/cache.lua') end) describe("when the method is not GET", function() it("does nothing", function() local request = spec.request({method = 'POST', ...
--[[ TheNexusAvenger Tests the ImageButton class. --]] local NexusUnitTesting = require("NexusUnitTesting") local NexusPluginComponents = require(game.ReplicatedStorage:WaitForChild("NexusPluginComponents")) local ImageButtonTest = NexusUnitTesting.UnitTest:Extend() --[[ Sets up the test. --]] function ImageButto...
function onUpdateDatabase() print("> Updating database to version 6 (market bug fix)") db.query("DELETE FROM `market_offers` WHERE `amount` = 0") return true end
-- Copyright 2021 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 ...
object_draft_schematic_dance_prop_prop_sparkler_r_s02 = object_draft_schematic_dance_prop_shared_prop_sparkler_r_s02:new { } ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_sparkler_r_s02, "object/draft_schematic/dance_prop/prop_sparkler_r_s02.iff")
----------------------------------- -- Ability: Steal -- Steal items from enemy. -- Obtained: Thief Level 5 -- Recast Time: 5:00 -- Duration: Instant ----------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/msg") -- these are the quadavs that th...
get_flowing_dir = function(pos) local param2 = minetest.get_node(pos).param2 for i,d in ipairs({-1, 1, -1, 1}) do if i<3 then pos.x = pos.x+d else pos.z = pos.z+d end local name = minetest.get_node(pos).name local par2 = minetest.get_node(pos).param2 if name:match(".*water_flowing") and par2 < pa...
local Tunnel = module("vrp","lib/Tunnel") local Proxy = module("vrp","lib/Proxy") local Tools = module("vrp","lib/Tools") vRP = Proxy.getInterface("vRP") vRPclient = Tunnel.getInterface("vRP") --[ CONEXÕES ]----------------------------------------------------------------------------------------------------------------...
-- $Id: re.lua,v 1.32 2008/10/09 20:25:06 roberto Exp $ local m = require"lpeg" local _G = _G local tonumber, type, print, error = tonumber, type, print, error local mt = getmetatable(m.P(0)) module "re" local any = m.P(1) -- Pre-defined names Predef = { nl = m.P"\n" } local I = m.P(function (s,i) print(i, s:sub(...
-- LOCAL local main = require(game.Nanoblox) local CommandController = {} -- START function CommandController.start() local clientCommandRequest = main.modules.Remote.new("clientCommandRequest") clientCommandRequest.onClientEvent:Connect(function() end) end return CommandController
return { { effect_list = { { type = "BattleSkillFireSupport", casterAniEffect = "", target_choise = "TargetNil", targetAniEffect = "", arg_list = { weapon_id = 64451, supportTarget = { targetChoice = { "TargetPlayerAidUnit", "TargetShipTag" }, arg_list...
-- -- Created by IntelliJ IDEA. -- User: lucien -- Date: 2016/12/8 -- Time: 10:26 -- To change this template use File | Settings | File Templates. -- local _M = {} local cjson = require "cjson" function _M.serialize(ngx, service_id) local authenticated_entity if ngx.ctx.authenticated_credential ~= nil then ...
message("test message") message("test message", 1) message("test\nmessage", 2) message("connection state is " .. tostring(isConnected()), 3) function script_path() local str = debug.getinfo(2, "S").source:sub(2) return str:match("(.*[/\\])") end libinit = package.loadlib(script_path() .. "QuikExt\\x64\\Debug\\Q...
---------------------------------------------------------------- -- Copyright (c) 2014 Klei Entertainment Inc. -- All Rights Reserved. -- SPY SOCIETY. ---------------------------------------------------------------- local _M = { INTRO_1 = "It was a clean insertion, but they'll figure out we are here soon enough.", ...
AddCSLuaFile() AddCSLuaFile("sh_sounds.lua") include("sh_sounds.lua") util.PrecacheModel("models/weapons/v_cwkk_hk416.mdl") util.PrecacheModel("models/weapons/w_cwkk_hk416.mdl") local Vec0 = Vector(0,0,0) local Vec1 = Vector(1,1,1) local Ang0 = Angle(0,0,0) if CLIENT then SWEP.PrintName = "HK416" SWEP.CSMuzzleFlas...
local _ts = game:GetService("TweenService") function Tween(instance : Instance, property : string, goal : any, tweenTime : number?, style : Enum.EasingStyle?, direction : Enum.EasingDirection?) : Tween local time, style, direction = tweenTime or 1, style or Enum.EasingStyle.Linear, direction or Enum.EasingDirection...
function sysCall_cleanup() -- Put some clean-up code here end
--------------------------------- -- Author: Andrei Thorp -- -- Copyright 2010 Andrei Thorp -- --------------------------------- -- Dependencies: setxkbmap (shell command) -- Ideas: -- * user specified rewrite table: convert us(dvorak) to "Dvorak" -- * use formatting system to allow people to format their text w...
local _M = {} _M.Sichuan = 1 _M.Shaanxi = 2 return _M
--- Operations on two-dimensional arrays. -- See @{02-arrays.md.Operations_on_two_dimensional_tables|The Guide} -- -- The size of the arrays is determined by using the length operator `#` hence -- the module is not `nil` safe, and the usual precautions apply. -- -- Note: all functions taking `i1,j1,i2,j2` as arguments ...
--[[ An adaptation of Wobbo's grep https://raw.githubusercontent.com/OpenPrograms/Wobbo-Programs/master/grep/grep.lua ]]-- -- POSIX grep for OpenComputers -- one difference is that this version uses Lua regex, not POSIX regex. local computer = require("shellex.computer") local fs = require("shellex.filesystem")...
-- Various utilities for Jumper top-level modules if (...) then -- Dependencies local _PATH = (...):gsub('%.utils$','') local Path = require (_PATH .. '.path') -- Local references local pairs = pairs local t_insert = table.insert -- Raw array items count local function arraySize(t) local count = 0 for _...
-- template script to parse a procedural node local io = require('io') local liluat = require('liluat') stderrString = "" stdoutString = "" -- redirect 'io.stderr:write' and 'io.stdout:write' to the 'stderrString' and 'stdoutString' variables local stderr = {} function stderr:write(...) local arg_strings = {} fo...
return { DATABASE_NAME = 'time_runner.db', ALL_SETTINGS_SCRIPT = 'SELECT * FROM settings', CREATE_SETTINGS_TABLE_SCRIPT = [[ CREATE TABLE IF NOT EXISTS settings (id INTEGER PRIMARY KEY, key, value INTEGER); ]], formatInitialSettingsScript = function(object) return [[ INSE...
--H·C ナックル・ナイフ -- --Script by Trishula9 function c101108015.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101108015,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,101108015) e1:SetCondition(...
require("prototypes/entity/mobile-factory.lua") require("prototypes/entity/factory-chest.lua") require("prototypes/entity/dimensional-lab.lua") require("prototypes/entity/dimensional-substation.lua") require("prototypes/entity/dimensional-furnace.lua") require("prototypes/entity/dimensional-accumulator.lua") requ...
require "Source.CircleCollider" UFO.speed = 100 -- px/sec UFO.img = nil function UFO:init() self.img = Images.ufoGreen -- get position that the UFO will fly to local r = self.img:getWidth()/2 local x,y = Random.pointOffScreen(w,h) local destX,destY = Random.pointOnScreen(-w,-h) -- init body CircleColl...
object_ship_ixiyen_s03_tier8 = object_ship_shared_ixiyen_s03_tier8:new { } ObjectTemplates:addTemplate(object_ship_ixiyen_s03_tier8, "object/ship/ixiyen_s03_tier8.iff")
local _, Addon = ... Addon.GuildLib = {} Addon.GuildLib.ClassNameToClassID = {} for _, vClassID in ipairs(CLASS_SORT_ORDER) do Addon.GuildLib.ClassNameToClassID[LOCALIZED_CLASS_NAMES_MALE[vClassID]] = vClassID Addon.GuildLib.ClassNameToClassID[LOCALIZED_CLASS_NAMES_FEMALE[vClassID]] = vClassID end fun...
----------------------------------------- -- ID: 4949 -- Scroll of Jubaku: Ichi -- Teaches the ninjutsu Jubaku: Ichi ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(341) end function onItemUse(target) target:addSpell(341) end
require "object" EventQueue = Class:newClass("EventQueue",Object) function EventQueue:new() local o = Object.new(self) o._time = 0 o._events = {} o._eventTimes = {} return o end function EventQueue:getTime() return self._time end function EventQueue:clear() self._events = {} self._eventTimes = {} return se...
local t = Def.ActorFrame{ Def.ActorFrame{ InitCommand=cmd(Center); LoadActor("50352933_p0-512.png")..{ InitCommand=cmd(polygonmode,"PolygonMode_Line"); }; }; }; return t;
local items = {} items["AK47"] = {"AK47","Russian hardware."} items["M4A1"] = {"M4A1","American freedom."} return items
-- This function retrieves the stamped transform for a specific object --function getTransformStamped(objHandle, name, relTo, relToName) -- -- robot_id = sim.getStringSignal("robot_id") -- -- t = sim.getSystemTime() -- p = sim.getObjectPosition(objHandle, relTo) -- o = sim.getObjectQuaternion(objHan...
-- This file can be loaded by calling `lua require("plugins")` from your init.vim -- Only required if you have packer configured as `opt` vim.cmd([[packadd packer.nvim]]) function get_config(name) return string.format('require("config/%s")', name) end function get_lsp_config(name) return string.format('require("co...
local Type, Version = "WeakAurasDisplayButton", 21 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end local L = WeakAuras.L; local name, realm = UnitName("player"), GetRealmName() local fullName = name--.."-"..realm --no need for re...
sabirak1 = math.random(80) + 10; sabirak2 = math.random(7) + 2; rezultat = sabirak1 + sabirak2;
return { SelectFirst1D = require(script.Parent.SelectFirst1D); SelectLast1D = require(script.Parent.SelectLast1D); FoldRight1D = require(script.Parent.FoldRight1D); FoldLeft1D = require(script.Parent.FoldLeft1D); Shuffle1D = require(script.Parent.Shuffle1D); Reverse1D = require(script.Parent.Rev...
--- -- Provide x509_attribute as lua object. -- Sometime when you make CSR,TS or X509, you maybe need to use this. -- -- @module x509.attr -- @usage -- attr = require('openssl').x509.attr -- do -- define module function --- Create x509_attribute object -- -- @tparam table attribute with object, type an...
--弧光天使-爱莎 function c60150814.initial_effect(c) c:SetUniqueOnField(1,1,60150814) --xyz summon aux.AddXyzProcedure(c,c60150814.mfilter,8,3) c:EnableReviveLimit() --spsummon limit local e111=Effect.CreateEffect(c) e111:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e111:SetType(EFFECT_TYPE_SINGLE) ...
local M = {} local opts_info = vim.api.nvim_get_all_options_info() M.opt = setmetatable({}, { __newindex = function(_, key, value) vim.o[key] = value local scope = opts_info[key].scope if scope == 'win' then vim.wo[key] = value elseif scope == 'buf' then vim...
return { init_effect = "", name = "铁底湾之夜", time = 0, picture = "", desc = "南达触发效果", stack = 1, id = 11011, icon = 11011, last_effect = "", effect_list = { { type = "BattleBuffCleanse", trigger = { "onAttach" }, arg_list = { buff_id_list = { 6751 } } }, { type = "Battle...
require("Timers") modifier_ability_poisonous_bite_stack = class({}) -- Classifications function modifier_ability_poisonous_bite_stack:IsHidden() return true end function modifier_ability_poisonous_bite_stack:IsPurgable() return true end function modifier_ability_poisonous_bite_stack:GetAttributes() return MODIFIER...
local args = {...} function file_exists(file) local f f = io.open(file, "rb") if f then f:close() end return f ~= nil end function is_in_list(list, elem) local i i = 1 while list and list[i] do if list[i] == elem then return true end i = i ...
-- just install a better name for the functions and tables ScriptArgs = _bam_scriptargs IsString = bam_isstring IsTable = bam_istable IsOutput = bam_isoutput Exist = bam_fileexist NodeExist = bam_nodeexist SetFilter = bam_set_filter AddOutput = bam_add_output SetPriority = bam_set_priority ModifyPriority = bam_modify_p...
-- load standard vis module, providing parts of the Lua API require('vis') vis.events.subscribe(vis.events.INIT, function() vis:command('set theme solarized') end)
--- Kaliel's Tracker --- Copyright (c) 2012-2020, Marouan Sabbagh <mar.sabbagh@gmail.com> --- All Rights Reserved. --- --- This file is part of addon Kaliel's Tracker. local addonName, KT = ... KT.title = GetAddOnMetadata(addonName, "Title") -- Lua API local floor = math.floor local fmod = math.fmod local format = st...
local item_ammo={} item_ammo[2]=util.table.deepcopy(data.raw["ammo"]["cannon-shell"]) item_ammo[2].name="autocannon-shell" item_ammo[2].ammo_type.category="autocannon-shell" item_ammo[2].ammo_type.action.action_delivery.projectile="autocannon-projectile" item_ammo[2].ammo_type.action.action_delivery.starting_speed=1.5...
local class = require('class') local Util = require('util') local TableDB = class() function TableDB:init(args) local defaults = { fileName = '', dirty = false, data = { }, } Util.merge(defaults, args) Util.merge(self, defaults) end function TableDB:load() local t = Util.readTable(self.fileName...
-- move.lua -- -- turn the robot left or right, move forward, back, up or down. local args = { ... } if (not args) then error("+++ No args!", 1) end local dir = args[1] if (not dir) then error("+++ No dir!", 2) end robot = require("robot") dir = string.gsub(dir, "^(%a)", "%1") if (dir == "L") then robot.tu...
local x1, x2 do local a2 = 2 * a local d = (b^2 - 4*a*c)^(1/2) x1 = (-b + d)/a2 x2 = (-b - d)/a2 end print(x1, x2)
Citizen.CreateThread(function() while true do Citizen.Wait(0) local countPlayer = MySQL.Sync.fetchScalar("SELECT COUNT(1) FROM players") -- get count from table in mysql local countPlayerText = 'YAHOU !! ligne en mysql = ' .. countPlayer -- friendly text print(countPlayerText) -- print in console ...
--[[------------------------------------------------------------------ SEGMENT BAR Iconic 10 segment bars ]]-------------------------------------------------------------------- if CLIENT then -- Parameters local SEGM_W, SEGM_H = 16, 4; local HIGHLIGHT_TEXTURE = Material("ds9hud/bar_red.png"); --[[ Dr...
require "classes.constants.screen" require "classes.list.View" require "classes.list.Model" require "classes.list.Controller" require "classes.info.SupportUs" require "classes.info.Info" require "classes.lib.FacebookMessenger" MainClass={} function MainClass:new() local this = display.newGroup() local public ...
--This shit is prolly wrong, but hey-ho. OCRP_Orgs = OCRP_Orgs or {} OCRP_OfflineChangedMembers = OCRP_OfflineChangedMembers or {} util.AddNetworkString("OCRP_CreateOrg") util.AddNetworkString("OCRP_QuitOrg") util.AddNetworkString("OCRP_UpdateOrgs") util.AddNetworkString("OCRP_UpdateSingleOrg") util.AddNetworkString("...