content
stringlengths
5
1.05M
-- programme pour faire des ping en permanence print("\n make_ping.lua zf181113.1947 \n") zLED=0 gpio.mode(zLED, gpio.OUTPUT) ztmr_LED = tmr.create() value = true dofile("ping.lua") tmr.alarm(ztmr_LED, 500, tmr.ALARM_AUTO, function () if value then gpio.write(zLED, gpio.HIGH) else gpio.write...
----------------------------------------- -- ID: 6060 -- Item: Animus Minuo Schema -- Teaches the white magic Animus Minuo ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(309) end function onItemUse(target) target:addSpell(309) end
--[[--------------------------------------------------------- Super Cooking Panic for Garry's Mod by Xperidia (2020) -----------------------------------------------------------]] AddCSLuaFile() -- Function to log important stuff function GM:Log(str) Msg("[" .. self.Name .. "] " .. (str or "This was a log messa...
-- table.FindNext could get removed so heres a similar thing local function tableFindNext( tbl, cValue ) local cInd = -1 if ( cValue ) then for k, v in ipairs( tbl ) do if ( v == cValue ) then if ( k == #tbl ) then cInd = 1 return tbl[cInd] else cInd = k + 1 retu...
local function VBarPaint(panel) local vbar = panel:GetVBar() vbar.Paint = function() end vbar.btnUp.Paint = function() end vbar.btnDown.Paint = function() end vbar.btnGrip.Paint = function(panel, w, h) if (panel.Depressed) then draw.RoundedBox(4, 2, 1, 6, h - 2, ColorAlpha(color_whi...
---@type discordia local discordia = require('discordia') local stringx = require('utils/stringx') local tablex = discordia.extensions.table --- Default command handler ---@param client SuperToastClient ---@param msg Message return function(client, msg) local pre = client.config.prefix if msg.author.bot then ...
-- Created By Bapes#1111 -- -- Please do not distrubute without consent -- ---@diagnostic disable: undefined-global, lowercase-global local Tinkr = ... local Routine = Tinkr.Routine local AceGUI = Tinkr.Util.AceGUI local Config = Tinkr.Util.Config local config = Config:New("demo") local HTTP = Tinkr.Util.HTTP local wo...
--- GENERATED CODE - DO NOT MODIFY -- AmazonMQ (mq-2017-11-27) local M = {} M.metadata = { api_version = "2017-11-27", json_version = "1.1", protocol = "rest-json", checksum_format = "", endpoint_prefix = "mq", service_abbreviation = "", service_full_name = "AmazonMQ", signature_version = "v4", target_prefix...
QznnbCcsView = class("QznnbCcsView") QznnbCcsView.onCreationComplete = function (slot0) ClassUtil.extends(slot0, BaseGameCcsView) BaseGameCcsView.onCreationComplete(slot0, true) slot0.model.roomKindChangedSignal:add(slot0.onRoomKindChanged, slot0) Hero.pNickNameChangedSignal:add(slot0.onNickNameChanged, slot0) sl...
function dprint(msg) if (enDebug) then print(msg) end end -- create Quaternion table -- function newQ(x,y,z,w) local q={} q.x=x q.y=y q.z=z q.w=w return q end -- create Eular table -- function newE(x,y,z) local e={} e.x=x e.y=y e.z=z re...
--data.lua require("prototypes.solar-construction-robot") require("prototypes.solar-logistic-robot")
local new_fifo = require "fifo" describe("Everything works.", function() it("doesn't let you set a field", function() local f = new_fifo() assert.errors(function() f.foo = "bar" end) end) it("peek works", function() local f = new_fifo() f:push("foo") assert.same("foo", (f:peek())) f:push("bar") assert...
--天种-虚种 local m=14090016 local cm=_G["c"..m] function cm.initial_effect(c) aux.EnableDualAttribute(c) --lvchange local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCategory(CATEGORY_LVCHANGE) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e...
--[[ Update job progress Input: KEYS[1] Job id key KEYS[2] event stream key ARGV[1] id ARGV[2] progress Event: progress(jobId, progress) ]] redis.call("HSET", KEYS[1], "progress", ARGV[2]) redis.call("XADD", KEYS[2], "*", "event", "progress", "jobId"...
local _, private = ... --[[ Lua Globals ]] -- luacheck: globals --[[ Core ]] local Aurora = private.Aurora local Skin = Aurora.Skin --do --[[ FrameXML\SocialToast.lua ]] --end do --[[ FrameXML\SocialToast.xml ]] function Skin.SocialToastTemplate(ContainedAlertFrame) end end --function private.FrameXML.Soci...
-- Copyright (C) 2020 Jacob Shtabnoy <shtabnoyjacob@scps.net> -- Licensed under the terms of the ISC License, see LICENSE -- Defines each as a global WebhookForm = require("lefthook.WebhookForm"); Webhook = require("lefthook.Webhook"); Embed = require("lefthook.Embed"); WebhookBatch = require("lefthook.WebhookBatch")...
DEFINE_BASECLASS( "base_gmodentity" ) ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.Author = "Radon" ENT.Contact = "" ENT.Purpose = "" ENT.Instructions = "" ENT.Spawnable = false ENT.AdminSpawnable = false function ENT:Error ( msg, traceback ) if type( m...
talked_to_captain = false music = "dockknocking.ogg" started = false first_added = false second_added = false fleer_gone = false faelon_gone = false rider_gone = false function end_captain_walk() captain_moved = true descriptifyPlayer() end function fan_out() -- hack setObjectDirection(0, DIRECTION_SOUTH) fir...
local ninja = require 'BUILD.lib.ninja_syntax' local asset_map = require 'resources.asset_map' local ignore = shallowcopy(ignore_patterns) setmetatable(ignore, wildcard_pattern.aggregate) ignore:extend("engine/DEBUG", "engine/BUILD", "*.md") local iswindows = love.system.getOS() == 'Windows' local default_rules = { ...
require "util" local Persistence = require "util.persistence" local Consts = require "consts" local TimeController = require "timecontroller" local MidiSignals = require "midisignals" local MidiInput = require "midiinput" local MidiState = require "midistate" -- user config local _userConfig -- local instances loca...
-- include useful files u_execScript("utils.lua") u_execScript("common.lua") u_execScript("commonpatterns.lua") u_execScript("nextpatterns.lua") u_execScript("evolutionpatterns.lua") u_execScript("ctpatterns.lua") math.random() -- this function adds a pattern to the timeline based on a key function addPattern(mKey) ...
require 'spec_helper' describe["_.range"] = function() describe["when only passing a length"] = function() it["should iterate from 1 to the length"] = function() result = _.range(3):to_array() expect(result).should_equal {1,2,3} end end describe["when only passing a start and end value"] = function() i...
--- --- Generated by MLN Team (http://www.immomo.com) --- Created by MLN Team. --- DateTime: 2019-09-05 12:05 --- local _class = { _name = "DiscoverCell", _version = "1.0" } ---@public function _class:new() local o = {} setmetatable(o, { __index = self }) return o end ---@public function _class:s...
local msg = "Hello, world!" return msg
local widget = require("widget") local json = require("json") local competitionHistory = {} local properties = {} local getCompetitionHistoryList, downloadPhotos, renderSlider, buttonTouchHandlers local showBlur, closeBlur, changeText, scrollView function competitionHistory:render(params) local background = display....
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). --]] local ITEM = Clockwork.item:New("weapon_base"); ITEM.name = "ItemMP7"; ITEM.cost = 200; ITEM.model = "models/weapons/w_smg1.mdl"; ITEM.weight = 2.5; ITEM.access = "V"; ITEM.classes = {CLASS_EMP,...
-- SpriteSheet constants SNAKE_HEAD_UP = 1 SNAKE_HEAD_RIGHT = 2 SNAKE_HEAD_DOWN = 3 SNAKE_HEAD_LEFT = 4 SNAKE_TAIL_DOWN = 5 SNAKE_TAIL_LEFT = 6 SNAKE_TAIL_UP = 7 SNAKE_TAIL_RIGHT = 8 SNAKE_TURN_1 = 11 SNAKE_TURN_2 = 12 SNAKE_TURN_3 = 9 SNAKE_TURN_4 = 10 SNAKE_BODY_VERTICAL = 13 SNAKE_BODY_HORIZONT...
local parent, ns = ... local Compat = ns.Compat local error = error local format = string.format local max = math.max local next = next local setmetatable = setmetatable local tinsert = table.insert local tremove = table.remove local type = type local C_Timer = {} local TickerPrototype = {} local TickerMetatable = {...
require('kanagawa').setup({ commentStyle = "NONE", keywordStyle = "bold", statementStyle = "bold", variablebuiltinStyle = "bold", specialReturn = false, specialException = false, }) vim.cmd [[colorscheme kanagawa]]
vehicleUpgrades = { names = { }, prices = { } } function loadItems( ) local file_root = xmlLoadFile( "moditems.xml" ) local sub_node = xmlFindChild( file_root, "item", 0 ) local i = 1 while sub_node do vehicleUpgrades.names[ i ] = xmlNodeGetAttribute( sub_node, "name" ) vehicleUpgrade...
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KS = KUI:GetModule("KuiSkins") local S = E:GetModule("Skins") -- Cache global variables -- Lua functions local _G = _G -- WoW API -- Global variables that we don't cache, list them here for the mikk's Find Globals script -- GLOBALS: local function styleInspect()...
---@class Equip_Equip local Equip_Equip = DClass("Equip_Equip", BaseComponent) _G.Equip_Equip = Equip_Equip function Equip_Equip:ctor() self.messager = Messager.new(self) end function Equip_Equip:addListener() self.messager:addListener(Msg.EQUIP_CHANGEPLACE_PLACE, self.onClickPlace) self.messager:addListe...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { group = "Infopanel Sections", id = "customShuttleHub", PlaceObj('XTemplateGroup', { '__context_of_kind', "ShuttleHub", }, { PlaceObj('XTemplateTemplate', { 'comment', "make shuttles", '__template', "InfopanelButton"...
-- Licensed to the public under the GNU General Public License v3. local m, s, o local shadowsocksr = "shadowsocksr" local uci = luci.model.uci.cursor() local server_count = 0 uci:foreach("shadowsocksr", "servers", function(s) server_count = server_count + 1 end) local fs = require "nixio.fs" local sys = require ...
local memory = require('memory') local bit = require('bit') local array = memory.entities local by_id do local bit_band = bit.band by_id = function(id, min, max) if bit_band(id, 0xFF000000) ~= 0 then local sub_mask = bit_band(id, 0x7FF) local index = sub_mask + (bit_band(id, 0...
object_tangible_loot_creature_loot_collections_aurebesh_tile_osk = object_tangible_loot_creature_loot_collections_shared_aurebesh_tile_osk:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_aurebesh_tile_osk, "object/tangible/loot/creature/loot/collections/aurebesh_tile_osk.iff")
local mod = DBM:NewMod(1737, "DBM-Nighthold", nil, 786) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17551 $"):sub(12, -3)) mod:SetCreatureID(104154)--The Demon Within (111022) mod:SetEncounterID(1866) mod:SetZone() mod:SetUsedIcons(1, 2, 3, 4, 5, 6) mod:SetHotfixNoticeRev(16172) mod.resp...
local levels = require "scenes.levellogic" local tutorial = {} function tutorial:draw() end function tutorial:keyreleased(key, code) -- if --player reaches endbox Gamestate.switch(levels) --end end return tutorial
local path = (...):sub(1, #(...) - #(".physics.PhysicsRig")) local Luaoop = require(path..".3p.Luaoop") local nvec = require(path..".3p.nvec") ---@type NVec ---@class L2DF.PhysicsRig ---@field public settings L2DF.PhysicsSubRig[] ---@field public inputs L2DF.PhysicsInput[] ---@field public outputs L2DF.PhysicsOutput[]...
---@class ServerOptions.StringServerOption : zombie.network.ServerOptions.StringServerOption ServerOptions_StringServerOption = {} ---@public ---@return String function ServerOptions_StringServerOption:getTooltip() end ---@public ---@return ConfigOption function ServerOptions_StringServerOption:asConfigOption() end
modifier_drow_ranger_frost_arrows_lua = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_drow_ranger_frost_arrows_lua:IsHidden() return false end function modifier_drow_ranger_frost_arrows_lua:IsDebuff() return true end function modifie...
require "lib.DotEnvHelper" local dotEnv = DotEnvHelper(config.laravel.SETTINGS_FILE) local function commmentDBLine(line) local key = getKey(line) if key == "DB_DATABASE" then line = commentLine(line) end return line end local function uncommentTargetDBLine(targetDB) --<<<<< TODO: Uniformizar...
local mod = get_mod("rwaon_talents") ------------------------------------------------------------------------------ -- ██╗ ██╗██╗ ████████╗██╗███╗ ███╗ █████╗ ████████╗███████╗███████╗ -- ██║ ██║██║ ╚══██╔══╝██║████╗ ████║██╔══██╗╚══██╔══╝██╔════╝██╔════╝ -- ██║ ██║██║ ██║ ██║██╔████╔██║███████║ █...
cc = cc or {} ---TableView object ---@class TableView : ScrollView local TableView = {} cc.TableView = TableView -------------------------------- ---Updates the content of the cell at a given index.<br> ---param idx index to find a cell ---@param idx int ---@return TableView function TableView:updateCellAtIndex(idx) e...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Network = require(ReplicatedStorage.Network) return Network.register({ testEvent = Network.Event, testFunction = Network.Function, })
--[[ MobHealth3: Blizzard Frames! "I don't need no flashy unit frame mods!" "Sage isn't flashy!" "Shhh, you!" By Neronix of Hellscream EU Some code by KamuiGT Based on code from MobHealth2 --]] if not MobHealth3 then error("<MH3 Blizzard Frames> MobHealth3 isn't loaded! Are you SURE y...
----------------------------------- -- Area: Metalworks -- NPC: Udine A.M.A.N -- Type: Mentor Recruiter ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) local var = 0 if (player:getMentor() == 0) then if (player:getMainLvl() >= 30 and player...
local classic = require 'classic' local ffi=require 'ffi' ffi.cdef([[ void* init(uint16_t); double pseudoCount(void*, void*); void finish(void*); ]]); local C = ffi.load(package.searchpath('libpseudocount', package.cpath)) local PseudoCount = classic.class('PseudoCount') function PseudoCount:_init(dim) self.tre...
local gtk = require('beautiful.gtk') local assets = require('beautiful.theme_assets') local dpi = require('beautiful.xresources').apply_dpi local gears = require('gears') local gfs = gears.filesystem local themes_path = gfs.get_themes_dir() local debug = gears.debu...
local mgn = mgn mgn.AlarmLocations = {} mgn.LightLocations = {} if LMVector == nil then return end local alarms = 0 local alarms_failed = {} local function AddAlarmLocation(data) alarms = alarms + 1 if not data.Position then table.insert(alarms_failed, alarms) return end data.Position = data.Position:pos(...
-- Incremental live completion vim.o.inccommand = "nosplit" -- Set completeopt to have a better completion experience vim.o.completeopt = "menuone,noselect" -- Enable highlight on search vim.o.hlsearch = true -- highlight match while typing search pattern vim.o.incsearch = true -- Make line numbers default vim.wo.nu...
local opts = { settings = { Lua = { diagnostics = { globals = { "vim", "nvim" }, }, workspace = { library = { [require("utils").join_paths(get_runtime_dir(), "nvim", "lua")] = true, [vim.fn.expand "$VIMRUNTIME/lua"] = true, [vim.fn.expand "$VIMRUNTIM...
-- Redis Cache module: Transparent subrequest-based caching layout for arbitrary nginx locations. -- Auth: huangjingkai#foxmail.com -- Date: 1398241561 -- [Configuration Start] g_cache = {} --[[ g_cache.err_return_page, There are several types of pages returned after failure: 1] connects to the redis server [error] ...
------------------- -- Warrior class -- ------------------- -- -- See https://github.com/Ombridride/minetest-minetestforfun-server/issues/113 -- pclasses.api.register_class("warrior", { on_assigned = function(pname, inform) if inform then minetest.sound_play("pclasses_full_warrior", {to_player=pname, gain=1}) ...
if GetLocale() ~= "deDE" then return end local _, addon = ... local L = addon.L
local partitionstatus = [[ { "id": "partyvoice23922.partitionStatus", "version": 1, "status": "proposed", "name": "Partition Status", "attributes": { "partStatus": { "schema": { "type": "object", "properties": { "value": { ...
-- MTE "CASTLE DEMO" ---------------------------------------------------------- display.setStatusBar( display.HiddenStatusBar ) local composer = require("composer") local myData = require("mydata") myData.prevMap = nil myData.nextMap = "map1" --SETUP D-PAD ------------------------------------------------------------...
--[--[--------------------]--]-- -- Project: Pong -- -- File: timer.lua -- -- -- -- Author: Gabyfle -- -- License: Apache 2.0 -- --]--]--------------------[--[-- local timer = { _timers = {} } --- Waits sec seconds -- took from Lua wiki http://l...
local tasks = require("tasks") print("Active Processes:") print("Uptime: " .. computer.uptime() .. " seconds") coroutine.yield() -- let time to update metrics local total = 0 for _, pid in pairs(tasks.getPIDs()) do local m = tasks.getProcessMetrics(pid) print("\t" .. m.name .. " - PID = " .. pid .. " - CPU time: ...
local main = require(game.Nanoblox) local UserStore = require(main.shared.Packages.UserStore) local PlayerStore = UserStore.new("Nanoblox 0001") return PlayerStore
-- Port of https://github.com/rhysbrettbowen/promise_impl/blob/master/promise.js -- and https://github.com/rhysbrettbowen/Aplus -- local pack = table.pack or _G.pack local queue = {} local State = { PENDING = 'pending', FULFILLED = 'fulfilled', REJECTED = 'rejected', } local passthrough = function(x) return...
-- local ObjcharacterReference = require "objects.ObjcharacterReference" -- local Objcharacter = require "objects.Objcharacter" local ObjWorldManager = Class.create("ObjWorldManager", Entity) local STI = require "libs.sti" function ObjWorldManager:create() Game.worldManager = self self.roomNodes = {} self.charac...
--[[-------------------------------------------------- GUI Editor client titlebar_button.lua adds titlebar buttons to gui windows (ie: hover buttons that sit within the title bar of a window, aligned to the left or right) --]]-------------------------------------------------- gWindowTitlebarButtons = { defaul...
if shared.DACon then shared.DACon:Disconnect() end if shared.OwnerShip then shared.OwnerShip:Disconnect() end local Players=game:service'Players' local RunService=game:service'RunService' local HB=RunService.Heartbeat local Stepped=RunService.Stepped local LocalPlayer=Players.LocalPlayer local Char=LocalPlayer...
local util = require 'xlua.util'--需要引用xlua的工具包,不可删除 ICardLogic = { --创建你的技能 这个不是技能名称 不能改动 myCardLogic, --你的技能逻辑本体 不能改动 --初始化事件,这个技能初始化时触发的逻辑 --参数:self 可用于获得技能逻辑本身 下同 Init = function(self) --todo end, --显示事件 鼠标悬浮在卡片上时,会调用该卡片身上所有技能的此事件 OnShowTips = function(self) --设置该技能的名字 ...
local _ = {name = "air", param1 = 0} local T = {name = "ethereal:banana_trunk", param1 = 255} local L = {name = "ethereal:bananaleaves", param1 = 255} local l = {name = "ethereal:bananaleaves", param1 = 180} local B = {name = "ethereal:banana", param1 = 255} local b = {name = "ethereal:banana", param1 = 070} ethereal...
require "lunit" module("tests.movement", package.seeall, lunit.testcase) function setup() eressea.free_game() eressea.settings.set("nmr.timeout", "0") eressea.settings.set("rules.ships.storms", "0") conf = [[{ "races": { "human" : { "speed" : 1, "wei...
-------------------------------------------------------------------------------- -- DS18B20 one wire module for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- @voborsky, @devsaurus, TerryE 26 Mar 2017 -------------------------------------------------------------------------------------------...
io.stdout:setvbuf("no") -- local Stage = Class:extend() function Stage:new(opts) --We need to access the object in the Stage class because it also acts as an interface. requireFiles(objectFiles) self.director = Director(self) --The "self." modifier is here so we can use the Stage class across multipla gemes/apps....
-- See LICENSE for terms local mod_EnableMod -- fired when settings are changed/init local function ModOptions() mod_EnableMod = CurrentModOptions:GetProperty("EnableMod") end -- load default/saved settings OnMsg.ModsReloaded = ModOptions -- fired when Mod Options>Apply button is clicked function OnMsg.ApplyModOpt...
local params = {...} local Dataseries = params[1] local argcheck = require "argcheck" local doc = require "argcheck.doc" doc[[ ## Single element functions Here are functions are mainly used for manipulating a single element. ]] -- TODO : Remove assert_is_index because it could slow down processing. -- its utilisa...
function cacheByTimeDelay (func, delay) func.lastTime = -(delay) * 2 return function (...) if (Global.time - func.lastTime) >= delay then func.lastCachedvalue = func(...) func.lastTime = Global.time end return func.lastCachedValue end end __entitiesStore = {} __entitiesStoreByClass = {} function getEnt...
local TEST_ENV = "test" local normalize_headers do local _obj_0 = require("lapis.spec.request") normalize_headers = _obj_0.normalize_headers end local ltn12 = require("ltn12") local json = require("cjson") local server_loaded = 0 local current_server = nil local load_test_server load_test_server = function() serv...
--=================================================== --= Niklas Frykholm -- basically if user tries to create global variable -- the system will not let them!! -- call GLOBAL_lock(_G) -- Downloaded from: http://lua-users.org/wiki/DetectingUndefinedVariables -- --=================================================== fu...
#!lua workspace "TauUtils" configurations { "Debug", "Release", } platforms { "Win64" } cdialect "C11" cppdialect "C++17" floatingpoint "Fast" floatingpointexceptions "off" rtti "off" clr "off" functionlevellinking "on" intrinsics "on" largeaddressaware ...
local image = require("Image") ------------------------------------------------------ local workspace, window, menu = select(1, ...), select(2, ...), select(3, ...) local tool = {} tool.shortcut = "Mov" tool.keyCode = 47 tool.about = "Move tool allows you to move image as you wish. But be careful: large images will...
--[[ TheNexusAvenger Tests the UserdataSerializier class. --]] local NexusUnitTesting = require("NexusUnitTesting") local NexusGit = require(game:GetService("ServerStorage"):WaitForChild("NexusGit")) local UserdataSerializier = NexusGit:GetResource("Serialization.UserdataSerializier") --[[ Tests the Serialize met...
local Log = require "log.logger" local Env = require "env" local server_mgr = require "server.server_mgr" local cerberus = require "cerberus" require "gate_svr.net_event_handler" require "gate_svr.msg_handler" require "gate_svr.rpc_handler" cerberus.start(function() Log.info("gate_svr main_entry") server_mgr:creat...
return { -- Nomes e Descrições --heist_crojob2 = "The Bomb: Forest",--The Bomb: Forest --heist_crojob3_hl = "The Bomb: Forest",--The Bomb: Forest heist_crojob2_crimenet = "Uma quantidade considerável de explosivos termobáricos serão levados para um trem seguro, e depois a uma planta onde será desativado. Eu vou pre...
#!/usr/bin/env luajit local L = require 'linenoise' local function completion (c, s) if s:sub(1, 1) == 'h' then L.addcompletion(c, 'hello') L.addcompletion(c, 'hello there') end end L.setcompletion(completion) local history = 'history.txt' L.historyload(history) for line in L.lines( 'hello>...
local Action = require(script.Parent.Action) return Action("StampObjectOrientationSet", function(guid, custom) return { guid = guid, custom = custom } end)
artifact_time_anomaly = class({}) function artifact_time_anomaly:OnCreated( data ) -- ### VALUES START ### -- self.cooldown_reduction = 30 self.mana_cost_reduction = 40 self.cast_time_reduction = 20 self.spell_damage = 30 self.duration = 4 sel...
-- bar indicator options local Grid2Options = Grid2Options local L = Grid2Options.L Grid2Options:RegisterIndicatorOptions("multibar", true, function(self, indicator) local layout, bars = {}, {} self:MakeIndicatorTypeLevelOptions(indicator,layout) self:MakeIndicatorLocationOptions(indicator,layout) self:MakeIndic...
local pmtable=require("puremake.table") for n,v in pairs(pmtable) do table[n]=v end
local json = require("dkjson") math = require("math") pipeline_depth = 16 math.randomseed(os.time()) request = function() local r = {} wrk.scheme = "http" wrk.headers["Accept"] = "*/*" wrk.headers["User-Agent"] = "HTTPie/0.8.0" wrk.method = "GET" for i=1,pipeline_depth do r[i] = wrk....
local local0 = 0.5 local local1 = 1 function OnIf_262030(arg0, arg1, arg2) if arg2 == 0 then Crowd_Wheelchair_FlameThrower262030_ActAfter_RealTime(arg0, arg1) end return end local0 = local1 function Crowd_Wheelchair_FlameThrower262030Battle_Activate(arg0, arg1) local local0 = {} local loca...
if SERVER then AddCSLuaFile() end SWEP.PrintName = "Welding Torch" SWEP.Author = "Ultra" SWEP.Instructions = "Aim at a car and hold left click to repair it." SWEP.Base = "weapon_sck_base" SWEP.ViewModel = "models/weapons/v_pistol.mdl" SWEP.WorldModel = "models/weapons/w_pistol.mdl" SWEP.ViewModelFOV = 70 SWE...
local tablex = require "pl.tablex" ------------------------------------------------------------------------------------- local State = {} State.__index = State State.__type = "class" State.__class = "State" State.__is_state_class = true --------------------------------------------------------------------------------...
-- This file is under copyright, and is bound to the agreement stated in the EULA. -- Any 3rd party content has been used as either public domain or with permission. -- © Copyright 2016-2017 Aritz Beobide-Cardinal All rights reserved. local APP = ARCPhone.NewServerAppObject() APP.Number = "0000000001" -- Boring, I ...
local id = require "util.id"; local http_formdecode = require "net.http".formdecode; local usermanager = require "core.usermanager"; local nodeprep = require "util.encodings".stringprep.nodeprep; local st = require "util.stanza"; local url_escape = require "util.http".urlencode; local render_html_template = require"uti...
-- Copyright (c) 2021 Kirazy -- Part of Artisanal Reskins: Bob's Mods -- -- See LICENSE in the project directory for license information. -- Core functions require("prototypes.functions.functions") require("prototypes.functions.circuit-sprites") ---------------------------------------------------------------...
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNil", targetAniEffect = "", arg_list = { weapon_id = 64421 } }, { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetHarmRandomByWeight", targe...
skynet = require "skynet" skynet.register_protocol { --注册system消息 name = "system", id = skynet.PTYPE_SYSTEM, --pack = skynet.pack, --unpack = skynet.unpack } skynet.start(function() local othermsg = skynet.localname(".othermsg") local r = skynet.unpack(skynet.rawcall(othermsg, "system"...
local M = {} --- generate highlights table -- @param colors color (theme) color table created by require("leaf.colors").setup() -- @param config config options (optional) function M.setup(colors, config) config = vim.tbl_extend("force", require("leaf").config, config or {}) local hlgroups = { Comment ...
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- local code = "Autobusy" local districtsBus local districtsBus = { {-1727.62,935.07,24.15}, {-1711.17,951.17,24.14}, {-1711.03,976.94,28.69}, {-1710.86,1006.16,40.56}, {-1...
ITEM.name = "Superglue" ITEM.description = "A small plastic container with glue." ITEM.longdesc = "" ITEM.model = "models/lostsignalproject/items/repair/glue_e.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.price = 180 ITEM.flatweight = 0.003 ITEM.exRender = true ITEM.iconCam = { pos = Vector(-200, 0, 3), ang = Angle(0...
local issue local area local rev_tk_content = jwt.decode(param.get("rev_tk")) local desc_tk_content = jwt.decode(param.get("desc_tk")) local issue_id = param.get("issue_id", atom.integer) if issue_id then issue = Issue:new_selector():add_where{"id=?",issue_id}:for_share():single_object_mode():exec() if issue.close...
local local_require = require('util').get_local_require("wubi98") local basic = local_require('lib/basic') local map = basic.map local index = basic.index local utf8chars = basic.utf8chars local matchstr = basic.matchstr local function commit_text_processor(key, env) local engine = env.engine local context...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") local spd, ent function ENT:Initialize() self:SetModel("models/Items/AR2_Grenade.mdl") self:PhysicsInit(SOLID_NONE) self:SetMoveType(MOVETYPE_NONE) self:SetSolid(SOLID_NONE) self:SetCollisionGroup(COLLISION_GROUP_NONE) timer.Simple(...
lang.en = { police = 'Cop', sale = 'For sale', close = 'Close', soon = 'Soon!', house = 'House', yes = 'Yes', no = 'No', thief = 'Thief', House1 = 'Classic House', House2 = 'Family House', House3 = 'Haunted House', goTo = 'Enter\n', fisher = 'Fisher', furniture = 'Furniture', hospital = 'Hospital', open...