content
stringlengths
5
1.05M
-------------------------------- -- @module ImPlot -- @parent_module implot implot = implot or {} -------------------------------- --- ---@param x number ---@param y number ---@param pix_offset ImVec2 ---@param color ImVec4 ---@param fmt string ---@overload fun(x:number, y:number, pix_offset:ImVec2, fmt:string) func...
function sign(n) return n > 0 and 1 or n < 0 and -1 or 0 end
local RaidItemsTab = {} _G["RaidItemsTab"] = RaidItemsTab local AceGUI = LibStub("AceGUI-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("PowerRaid") local ordered_table = LibStub("ordered_table") RaidItemsTab.raidItems = ordered_table.create() RaidItemsTab.raidItems["22754"] = { ["itemIds"] = {"22754", "173...
local variables = require("__debugadapter__/variables.lua") -- Set up a hook on remote.call to pass stepping state ahead of and back from -- a remote.call into another mod. This also sets up a (nearly) transparent -- proxy for the whole `remote` object, and demonstrates custom debug views -- using the `__debuglin...
local cjson = require "cjson" local jsonpack = {} function jsonpack.pack(session, v) return string.format("%d+%s", session, cjson.encode(v)) end function jsonpack.response(session, v) return string.format("%d-%s",session, cjson.encode(v)) end function jsonpack.unpack(msg) local session,t,str = string.match(msg, ...
ESX = nil local PlayerData = {} Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end end) RegisterNetEvent('esx:playerLoaded') AddEventHandler('esx:playerLoaded', function(xPlayer) PlayerData = ...
-- Diff return { name = "Diff", lexer = 16, extensions = "diff,patch", style = { [0] = { name = "Default", fore = "#000000", back = "#FFFFFF", eolfilled = true }, [1] = { name = "Comment", fore = "#FFFFFF", back = "#3333EE", eolfilled = true }, ...
---@class mx.symbol.linalg:mx.symbol.gen_linalg local M = {} return M
------------------- ----- sandbox ----- ------------------- local sandbox = {} sandbox.allowed_require_names = {} -- 6.4 String Manipulation -- http://www.lua.org/manual/5.2/manual.html#6.4 local _string = { byte = string.byte, char = string.char, find = string.find, format = string.format, -- gmatch = strin...
-- Copyright 2014 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: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
function advancedores_add_ore(ore) --Create items minetest.register_node("advancedores_" .. ore.name .. ":stone_with_" .. ore.name .. "_ore", { description = ore.name .. "ore", tiles = {"default_stone.png^" .. ore.resources .. "/ore.png"}, is_ground_content = true, groups = {cracky=2}, drop = 'advancedore...
local cjson = require "cjson" local helpers = require "spec.helpers" describe("URI encoding", function() local client setup(function() assert(helpers.dao.apis:insert { name = "api-1", hosts = { "httpbin.com" }, upstream_url = "http://httpbin.org", }) assert(helpers.dao.apis:insert {...
require "tests/lua/support/minctest" local FOV = Elona.require("FOV") local Chara = Elona.require("Chara") local Enums = Elona.require("Enums") local Map = Elona.require("Map") lrun("test FOV.refresh", function() Testing.start_in_debug_map() local pos = Chara.player().position local other = ...
GravityValve = { Properties = { bActive = 1, Strength = 10, Radius = 10, bSpline = 0, }, Server = {}, Client = {}, _PhysTableCyl = { Area={}, }, _PhysTableSph = { Area={}, }, _PhysTableSpl = { Area={points={},}, }, _Points = {}, _Caps = {}, Editor={ --Model="Editor/Objects/T.cgf", --Model="Edi...
local TestLayer = require("graphic.test.TestLayer") local TestBehaviourTouchLayer = class("TestBehaviourTouchLayer", TestLayer) function TestBehaviourTouchLayer:ctor() TestLayer.ctor(self) end function TestBehaviourTouchLayer:init() TestLayer.init(self) self:customLayout() CS.Game.CTouch.Add(self...
ResFontTxt = ClassUtil.class("ResFontTxt") ResFontTxt.ctor = function (slot0, slot1, slot2, slot3, slot4, slot5) assert(slot1 ~= nil, "resFontKey must not be nil !!") slot0.resFontKey = slot1 slot0.alignMode = slot2 or 1 slot0.hGap = slot3 or 3 slot0.fScale = slot4 or 1 slot0.opacity = slot5 or 255 slot0.isVis...
local BP5 = {} BP5.__index = BP5 BP5.b = 0.03 BP5.V0 = 1.0e-6 BP5.f0 = 0.6 BP5.Vp = 1e-9 BP5.Vzero = 1e-20 BP5.a0 = 0.004 BP5.amax = 0.04 BP5.h_s = 2.0 BP5.h_t = 2.0 BP5.H = 12.0 BP5.w = 12.0 BP5.l = 60 BP5.rho0 = 2.670 BP5.cs = 3.464 BP5.nu = 0.25 function BP5.new(params) local self = setmetatable({}, BP5) ...
Lucene.utilities = {} Lucene.utilities.getKeys = function(incTable) local keyTable = {} for k, _ in pairs(incTable) do table.insert(keyTable, k) end return keyTable end
local _, Addon = ... local L = LibStub("AceLocale-3.0"):GetLocale("OmniCC", true) local LSM = LibStub("LibSharedMedia-3.0") local OmniCC = _G.OmniCC local function getEffectValues() local items = {} for id, effect in OmniCC.FX:All() do items[id] = effect.name or id end return items end local...
local DateTime = require("util/datetime") --[=[ @within Group @prop Id number @readonly The GroupId of the group. ]=] --[=[ @within Group @prop Client Client @readonly A reference back to the client that owns this object. ]=] --[=[ @within Group @prop Name string @readonly ...
Sprites = {} function LoadSprites() textures = { ['grass'] = love.graphics.newImage('assets/grass.png'), ['sidewalk'] = love.graphics.newImage('assets/roads.png'), } tiles = { ['grass'] = ExtractSprites(textures['grass'],64,64), ['swCorners'] = ExtractSidewalkCorners(textur...
--[[ logToggle.lua A guild log toggle widget --]] local L = LibStub('AceLocale-3.0'):GetLocale('Bagnon-GuildBank') local LogToggle = Bagnon:NewClass('LogToggle', 'CheckButton') LogToggle.Icons = { [[Interface\Icons\INV_Crate_03]], [[Interface\Icons\INV_Misc_Coin_01]], [[Interface\Icons\INV_Letter_20]] } --[[ C...
----------------------------------------------------------------------------------- -- Yet Another Class Implementation (version 1.2) -- -- Julien Patte [julien.patte AT gmail DOT com] - 25 Feb 2007 -- -- Inspired from code written by Kevin Baca, Sam Lie, Christian Lindig and others -- Thanks to Damian Stewart and Fred...
local RBT = LibStub("AceAddon-3.0"):GetAddon("ReturnBuffTracker") local L = LibStub("AceLocale-3.0"):GetLocale("ReturnBuffTracker") local WARRIOR, MAGE, ROGUE, DRUID, HUNTER = "WARRIOR", "MAGE", "ROGUE", "DRUID", "HUNTER" local SHAMAN, PRIEST, WARLOCK, ...
local testSettings = { description = "ATF test script", severity = "Major", restrictions = { sdlBuildOptions = {} -- no restrictions on SDL configuration }, defaultTimeout = 10000, isSelfIncluded = true } return testSettings
AuctionatorTabDisplayModes = { Auctionator = { "AuctionatorConfigFrame" }, ShoppingLists = { "AuctionatorShoppingListFrame" }, Selling ={ "AuctionatorSellingFrame" }, Cancelling = { "AuctionatorCancellingFrame" } }
--[[ Minetest Mod - Simple Shooter [shooter] 0.5.3 ======================================= License Source Code: 2013 Stuart Jones - LGPL v2.1 License Textures: Stuart Jones - WTFPL Licence Models: Stuart Jones - CC-BY-SA 3.0 License Sounds: freesound.org --]] minetest.register_alias("crossbow", "castle_weapons:cro...
base_research = nil base_research = {} local temp_res_1 = { Name = "RepairAbility", RequiredResearch = "", RequiredSubSystems = "Research | AdvancedResearch", Cost = 350, Time = 25, DisplayedName = "$7511", DisplayPriority = 26, Description = "$7512", UpgradeType = Ability, TargetType ...
pg = pg or {} pg.enemy_data_statistics_162 = { [11302050] = { cannon = 125, antiaircraft_growth = 0, hit_growth = 210, speed_growth = 0, pilot_ai_template_id = 10001, air = 0, luck = 5, dodge = 11, cannon_growth = 0, rarity = 2, reload = 150, reload_growth = 0, dodge_growth = 132, id = 1130...
--[[ Autoinstall plugin Licensed by Creative Commons Attribution-ShareAlike 4.0 http://creativecommons.org/licenses/by-sa/4.0/ Dev: TheHeroeGAC Designed By Gdljjrod & DevDavisNunez. Collaborators: BaltazaR4 & Wzjk. ]] function searchPlugByPath(p, sect, path) --print(string.format("SPP [%s]: %s|%d", (sect or...
#!/usr/bin/env lua -- Alt. main for Hello World application, where the script agent is -- passed as a string containing the script code. local moonagents = require("moonagents") moonagents.log_open("example.log") moonagents.trace_enable(true) local script = [[ moonagents.global_functions() -- Just to make things a ...
--D-HERO ダッシュガイ function c818666730.initial_effect(c) --atkup local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(818666730,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCost(c818666730.atkcost) e1:SetOperation(c81866673...
-- Applovin plugin local Library = require "CoronaLibrary" -- Create library local lib = Library:new{ name="plugin.hyperbid", publisherId="com.cabagomez", version=3 } ------------------------------------------------------------------------------- -- BEGIN -------------------------------------------------------------...
-- Code created by Kwik - Copyright: kwiksher.com {{year}} -- Version: {{vers}} -- Project: {{ProjName}} -- local _M = {} -- {{#ultimate}} local imageWidth = {{elW}}/4 local imageHeight = {{elH}}/4 local mX, mY = _K.ultimatePosition({{mX}}, {{mY}}, "{{align}}") {{#randX}} local randXStart = _K.ultimatePosition({{randXS...
pont= 0.000 pofft= 0.000 ont = 0.000 offt= 0.000 ons = 0.000 offs= 0.000 offh = 0 onh = 0 epont=0.000 epofft= 0.000 eont = 0.000 eofft= 0.000 eons = 0.000 eoffs= 0.000 eoffh = 0 eonh = 0 testvar = 0 function Abar_chat(msg) msg = strlower(msg) if msg == "fix" then Abar_reset() elseif msg=="lock" then Abar_Fram...
function OnIf_550100(arg0, arg1, arg2) if arg2 == 0 then LesserDemon_LHead550100_ActAfter_RealTime(arg0, arg1) end return end function LesserDemon_LHead550100Battle_Activate(arg0, arg1) local local0 = {} local local1 = {} local local2 = {} Common_Clear_Param(local0, local1, local2)...
-- Start screen require("plugins.dashboard") -- lualine configuration require("plugins.statusline") -- require("plugins.gline") -- nvim-bufferline.lua configuration require("plugins.bufferline") -- fuzzy finder configuration require("plugins.telescope") -- Git changes(showing in line number) configuration require("plug...
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. -- Imports local l = require "lpeg" l.locale(l) local tonumber = tonumber local M = {} setfenv(1, M) -- Remove exter...
local AllForOne = Shape:extend() local dirR function AllForOne:new(position, num, len, radian, colorFill, colorLine, colorMesh) AllForOne.super.new(self, position, colorFill, colorLine, colorMesh) self.num = num self.len = len self.radian = Base.ternary(radian ~= nil, radian, 0) dirR = 0 end ...
local value = Instance.new("NumberValue") remodel.setRawProperty(value, "Value", "Float64", 32) local value = remodel.getRawProperty(value, "Value") assert(value == 32)
function GM:PlayerCanHearPlayersVoice(Listener, Speaker) if not IsValid(Speaker) or not IsValid(Listener) then return false end --InValid local ChatDistance = 1000 if Speaker:GetNWBool("SquadChat") or Listener:GetNWBool("SquadChat") then if Listener:IsInSquad(Speaker) or Speaker:IsInSquad(Listener) then ChatDis...
#! /usr/bin/lua -- Warning! this script should be executed on root to lookup vendor md5. package.path = './vendor/lualibs/md5/?.lua;' .. package.path -- our vendor scripts -- -- Based on awk version from valgrind docs: https://wiki.wxwidgets.org/Valgrind_Suppression_File_Howto -- This script does the same as its awk ...
Tile = class{} function Tile:init(x, y, id, topper, tileset, topperset) self.x = x self.y = y self.width = TILE_SIZE self.height = TILE_SIZE self.id = id self.tileset = tileset self.topper = topper self.topperset = topperset end function Tile:collidable(target) fo...
local AvatarPlate = stateMainForm:GetChildChecked("Plates", false):GetChildChecked("Avatar", false) local TargetPlate = stateMainForm:GetChildChecked("Plates", false):GetChildChecked("Target", false) local TargetsTargetPlate = stateMainForm:GetChildChecked("Plates", false):GetChildChecked("TargetsTarget", false) local ...
function init(virtual) if not virtual then entity.setInteractive(true) if storage.timer == nil then storage.timer = 0 end self.cooldown = 5 if storage.triggered == nil then storage.triggered = false end if not storage.triggered then storage.isOrigin = false end ...
-- Blank onset server, written by Kaperstone -- Onset Forums: https://forum.playonset.com/forum/onset/scripting/releases/274-base-script -- GitHub Profile: https://github.com/kaperstone -- GitHub Repository: https://github.com/kaperstone/blank-onset-server -- -- Initilizing global arrays config = { -- The SteamI...
local composer = require "composer" local scene = composer.newScene() -- ----------------------------------------------------------------------------------------------------------------- -- All code outside of the listener functions will only be executed ONCE unless "composer.removeScene()" is called. -- ------------...
----------------------------------------- -- ID: 4612 -- Scroll of Cure IV -- Teaches the white magic Cure IV ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(4) end function onItemUse(target) target:addSpell(4) end
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- fairy_queen_fairie...
-- Optiks.lua function Optiks_Error(...) io.stderr:write("\nError: ") for _,v in ipairs{...} do io.stderr:write(v) end io.stderr:write("\n") os.exit(1) end function Optiks_Exit(v) os.exit(v) end require("strict") require("BeautifulTbl") require("Optiks_Option") local BeautifulTbl = Beautiful...
--[[ Variables ]] local BlipHandlers = {} --[[ Functions ]] function CreateBlipHandler(pServerId, pJob, pCallSign) local serverId = pServerId local callsign = pCallSign local job = pJob local settings = GetBlipSettings(job, callsign) local handler = EntityBlip:new("player", serverId, settings) h...
-- -- @@LIB_NAME@@, Version: @@Version@@ -- -- This file is a part of @@LIB_NAME@@. -- -- Author: -- Xiaofeng Yang 2015 -- -- local M = {} M.get = (function () local id = 0 return function () id = id + 1 return id end end)() return M
--[[ Runs all the scripts in this directory used for training a RNN network. ]] --[[ Load network trainer script ]]-- local train_net = paths.dofile('train_rnn_network.lua') --[[ Load train configurations ]]-- local configs = paths.dofile('train_configs.lua') --[[ Networks ]]-- local networks_configs = { -- mo...
-------------------------------------------------------------------------------- -- Handler.......... : onSubmitOrCreate -- Author........... : -- Description...... : -------------------------------------------------------------------------------- ------------------------------------------------------------------...
help([[Bison is a general-purpose parser generator that converts an annotated context-free grammar into a deterministic LR or generalized LR (GLR) parser employing LALR(1) parser tables. - Homepage: http://www.gnu.org/software/bison]]) whatis([[Description: Bison is a general-purpose parser generator that converts an...
--[[ GD50 Pokemon Author: Colton Ogden cogden@cs50.harvard.edu ]] BattleMenuState = Class{__includes = BaseState} function BattleMenuState:init(battleState) self.battleState = battleState self.battleMenu = Menu { x = VIRTUAL_WIDTH - 64, y = VIRTUAL_HEIGHT - 64, wi...
local F, C = unpack(select(2, ...)) tinsert(C.themes["FreeUI"], function() ScriptErrorsFrame:SetScale(UIParent:GetScale()) ScriptErrorsFrame:SetSize(386, 274) ScriptErrorsFrame:DisableDrawLayer("OVERLAY") ScriptErrorsFrameTitleBG:Hide() ScriptErrorsFrameDialogBG:Hide() F.CreateBD(ScriptErrorsFrame) F.CreateSD(S...
ITEM.name = "Mosin-Nagant" ITEM.description = "An old rifle from the Great Patriotic War. Uses 7.62x54mmR." ITEM.model = "models/weapons/w_ins2_mosin_nagant.mdl" ITEM.class = "tfa_ins2_mosin_nagant" ITEM.weaponCategory = "primary" ITEM.width = 3 ITEM.height = 2 ITEM.chance = 3 ITEM.rare = true
--[[ --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 ...
object_mobile_imp_security_01 = object_mobile_shared_imp_security_01:new { } ObjectTemplates:addTemplate(object_mobile_imp_security_01, "object/mobile/imp_security_01.iff")
-- Copyright (c) 2021 Florian Fischer. All rights reserved. -- Use of this source code is governed by a MIT license found in the LICENSE file. local source_str = debug.getinfo(1, 'S').source:sub(2) local script_path = source_str:match('(.*/)') return dofile(script_path .. 'spellcheck.lua')
----------------------------------- -- Area: The Shrine of Ru'Avitau -- Mob: Olla Media ----------------------------------- local ID = require("scripts/zones/The_Shrine_of_RuAvitau/IDs") require("scripts/globals/msg") require("scripts/globals/settings") require("scripts/globals/status") -------------------------------...
------------------------------------------------------------------- --// PROJECT: Union of Clarity and Diversity --// RESOURCE: UCDcore --// DEVELOPER(S): Lewis Watson (Noki) --// DATE: 17.05.2014 --// PURPOSE: A core resource. --// FILE: \UCDcore\core.lua [server] -----------------------------------------------------...
local classes = require "klib.classes" local Dialog = require("klib.gui.dialog").Dialog local Button = require("klib.gui.button").Button local ListBox = require("klib.gui.listbox").ListBox local TextField = require("klib.gui.textfield").TextField local Compound = require("klib.gui.compound").Compound local math_max,...
HashMap = require("com.blacksheepherd.util.HashMap") return { { "object", "Part", nil, nil, HashMap({ BrickColor = "51, 153, 102", Size = "Vector3.new(63, 0, 15)", BottomSurface = "Studs" }), {} }, { "object", "Part", nil, nil, HashMap({ BrickColor = "1001", Size = "43", Po...
--[[ Name: "sh_large_soda.lua". Product: "HL2 RP". --]] local ITEM = {}; -- Set some information. ITEM.name = "Large Soda"; ITEM.cost = 15; ITEM.model = "models/props_junk/garbage_plasticbottle003a.mdl"; ITEM.weight = 1.5; ITEM.access = "v"; ITEM.useText = "Drink"; ITEM.category = "Consumables" ITEM.business = true; ...
-- I like most of the defaults for Telescope hence not much to configure here local telescope = require "telescope" telescope.setup { defaults = { prompt_prefix = " ", selection_caret = " ", } } ---- Command Reference ---- -- <leader>f for find_files -- <leader>g for live_grep -- <leader>b f...
-- package.path = "../?.lua;" .. package.path require 'busted.runner'() require 'init' -- describe('String Functions', function() describe('_:camelCase(str)', function() it('should convert `str` to camel case', function() assert.are.equals(_:camelCase('Foo Bar'), 'fooBar') assert.ar...
-- BlockDstClipboard.lua -- Implements the cClipboardBlockTypeSource class that allows doing actions using the player's clipboard -- If used in for example //set you'll see the clipboard in a repeating pattern. cClipboardBlockTypeSource = {} function cClipboardBlockTypeSource:new(a_Player) local State = Ge...
require 'android.import' local utils = require 'android.utils' local N = luajava.package 'java.net' return function (thrd,arg) local addr = arg:get 'addr' local port = arg:get 'port' local server = addr=='*' local client, reader, line if not server then if type(addr) == 'userdata'...
-- Ask people who are using a guest nickname to pick one pestered = {} function suggestNick(line) local user = NewUser(line.Source) if user.Nick:match("pony_(.+)") then if pestered[user.Nick:lower()] == nil then bot.Notice(user.Nick, "Hi there " .. user.Nick .. "! You seem to be using a guest nickname....
local function update_timer (pos) local t = minetest.get_node_timer(pos) if not t:is_started() then t:start(1.0) end end local function create_item_entity(istack, cast, tpos) local vpos = vector.add(tpos, {x=0,y=0.5,z=0}) local e = minetest.add_entity(vpos, "multifurnace:table_item") e:set_rotation({x = 1.570...
function init(env) env = add_decl(env, mk_var_decl("A", Prop)) env = add_decl(env, mk_var_decl("And", mk_arrow(Prop, mk_arrow(Prop, Prop)))) env = add_decl(env, mk_axiom("p", Const("A"))) env = add_decl(env, mk_axiom("q", Const("A"))) return env end local And = Const("And") local p = Const("p") local q...
function mix1(n) if ROUND.gameMode.hell and ROUND.accumulated then ROUND.accumulated = nil addBlockPoint(ROUND.chair[n].owner) end local arrow = {LEFT = "RIGHT", RIGHT = "LEFT"} ROUND.flow = arrow[ROUND.flow] updateFlow(nil, ROUND.flowLight) for i=0, 800, 20 do tfm.exec.displayParticle(3, i, 177, 0, 0, 0, 0...
local Base = cc.import(".Base") local Mission = cc.class("Mission", Base) local dbConfig = cc.import("#dbConfig") local Table = cc.import("#Table", ...) function Mission:ctor() Mission.super.ctor(self, Table.Mission) end function Mission:getConfig() if not self._Config or not self:equalCID(self._Config.id) t...
----------------------------------------------------------------------- -- -- MTA Database Library -- Version: 2.0 -- ----------------------------------------------------------------------- -- Syntax structure: -- -- returnValueType | function:Name ( argumentType argumentName, ... ) -- MDO MDO = {} -- libraryHan...
-- player.lua Player = Object:extend() function Player:new(x, y) -- shield self.shield = Shield(x, y) -- inputs self.inputs = {} self.inputs.up = "w" self.inputs.down = "s" self.inputs.left = "a" self.inputs.right = "d" -- transform self.transform = Transform(x, y, 32, 32) self.direction =...
--[[ LICENSE HEADER MIT License Copyright © 2017 Jordan Irwin 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 us...
-- Memory Address Table -- 0024 - Fireball 1 Flag / Explosion Delay (00-01 / 80-86) -- 0025 - Fireball 2 Flag / Explosion Delay (00-01 / 80-86) -- 0030 - Point display 3 timeout -- 0031 - Point display 2 timeout -- 0032 - Point display 1 timeout -- 0057 - Player X Delta (Signed) -- 008D ...
--ガーデン・ローズ・フローラ --Scripted by mallu11 function c101104036.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) c:EnableReviveLimit() --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101104036,0)) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_...
package.path="?/init.lua;"..package.path require("multi") multi:newAlarm(5):OnRing(function() os.exit(10) end) multi:mainloop()
-- Copyright (c) 2021 Kirazy -- Part of Artisanal Reskins: Bob's Mods -- -- See LICENSE in the project directory for license information. -- Check to see if reskinning needs to be done. if not (reskins.bobs and reskins.bobs.triggers.vehicle_equipment.equipment) then return end local inputs = { type = "roboport-eq...
function sayHello(name) -- name is a parameter print('Hello, ' .. name) end sayHello('Artemisia') -- 'Artemisia' is an argument sayHello('Elisabetta') -- 'Elisabetta' is an argument
secret = octet.new() secret:string([[ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in volupta...
local string = require"luv.string" local io = io local type, tonumber, tostring, table, ipairs = type, tonumber, tostring, table, ipairs local json = require"luv.utils.json" local Object = require"luv.oop".Object module(...) local property = Object.property local Validator = Object:extend{ __tag = .....".Validator"...
---@class CS.UnityEngine.ScalableBufferManager ---@field public widthScaleFactor number ---@field public heightScaleFactor number ---@type CS.UnityEngine.ScalableBufferManager CS.UnityEngine.ScalableBufferManager = { } ---@param widthScale number ---@param heightScale number function CS.UnityEngine.ScalableBufferManag...
blending_default = { draw_sprite = draw_sprite, rotated_rect = rotated_rect, aligned_rect = aligned_rect } blending_alpha = { draw_sprite = draw_sprite_alpha, rotated_rect = rotated_rect_alpha, aligned_rect = aligned_rect_alpha } blending_additive = { draw_sprite = draw_sprite_additive, rotated_rect =...
----------------------------------------- -- ID: 18162 -- Item: East Wind -- Additional Effect: Removes Byakko's Light Damage ----------------------------------------- require("scripts/globals/status") ----------------------------------- function onAdditionalEffect(player, target, damage) if (target:getFamily() ==...
-- /////////////// ACHIEVEMENT ID 3 - The Wheelman /////////////////// function giveAchievementOnVehicleEnter(thePlayer) if (not doesPlayerHaveAchievement(thePlayer, 3)) then outputChatBox("Vehicle Controls:", thePlayer, 255, 194, 14) outputChatBox("Engine: Press J", thePlayer, 255, 194, 14) outputChatBox("...
--[[ desc: Invincibility, A buff of invincibility. author: Musoucrow since: 2018-8-8 ]]-- local _Stroke = require("actor.buff.stroke") ---@class Actor.Buff.Invincibility : Actor.Buff.Stroke local _Invincibility = require("core.class")(_Stroke) ---@param entity Actor.Entity function _Invincibility:Ctor(entity, dat...
local jump = ECS.Component(function(e, jumpHeight) e.zVel = 0 e.jumpHeight = jumpHeight end) return jump
local g_Root = getRootElement() local g_ResRoot = getResourceRootElement(getThisResource()) local debug = false local mapName local topTimeInterims --topTimeInterims[checkpointNum] = time local topTimeRankPlayer = {10} --topTimeRankPlayer[1] = rank, topTimeRankPlayer[2] = playername local lastPlayer = {} --lastP...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- fairy_queen_enchan...
-- See LICENSE for terms -- add a new tech function OnMsg.ClassesPostprocess() if TechDef.ChoGGi_ExampleTech then return end PlaceObj("TechPreset", { -- where in the list to add it (for new games) SortKey = 1, description = "stuff happens", display_name = "Example tech", group = "Engineering", icon =...
-- Code created by Kwik - Copyright: kwiksher.com {{year}} -- Version: {{vers}} -- Project: {{ProjName}} -- local _M = {} --------------------- local _K = require "Application" --------------------- {{#ultimate}} local bs = {{bs}}/4 {{/ultimate}} {{^ultimate}} {{/autoSave}} local bs = {{bs}} {{/ultimate}} -- local canv...
-- tolua: operator class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancement...
module 'mock' -------------------------------------------------------------------- CLASS: UIEvent () :MODEL{} function UIEvent:__init( type, data ) self.type = assert( type, 'nil event type' ) self.data = data self.accepted = false end function UIEvent:accept() self.accepted = true end function UIEvent:ignore(...
require "ratchet" function ctx1() ratchet.thread.alarm(0.0, function () ran_alarm_function = true end) ratchet.thread.timer(1.0) end function ctx2() ratchet.thread.alarm(0.0, function () local err = ratchet.error.new("Test cleanup error", "CLEANUP") error(err) end) rat...
require 'torch' require 'nn' require 'rnn' san = require 'misc/san' cjson = require 'cjson' opt = { -- data img_train_h5 = 'data/img_train.h5', img_test_h5 = 'data/img_test.h5', qa_h5 = 'data/qa.h5', params_json = 'data/params.json', -- model model_path = 'checkpoints/model.t7', -- mi...
local vs={} local lt=tonumber(ARGV[3]) for i,k in ipairs(KEYS) do local tp=redis.call('TYPE',k)['ok'] local st=1 local ms=false local ttl=false if tp == 'string' or tp == 'none' then st=0 if ARGV[3] == 'EX' then ttl=redis.call('TTL',k) else ttl=redis.call('PTTL',k) end if lt ==...