content
stringlengths
5
1.05M
local Class = require "Utils/Class" local UGaeaEventFunctionLibrary = _G.UGaeaEventFunctionLibrary local Logger = require "Logger/Logger" local EventHelper = require "Event/EventHelper" local function EventParamToTable(EventParam) if not EventParam then return nil end local EventParamTable = {}...
local dht = require 'dht' local socket = require 'socket' local sock = socket.udp() sock:setsockname('*', 6881) local node = dht.node_create(nil, function(data, ip, port) sock:sendto(data, ip, port) end) node:set_bootstrap_callback(function(ready) node:get_peers('4E64AAAF48D922DBD93F8B9E4ACAA78C99BC1F40', func...
-- @module lib.attacks.common local bytes = require('lib.bytes') local sorting = require('lib.sorting') local toolbox = require('lib.toolbox') local common = {} function common.break_one_char_encryption(seq) --[[ Given a byte sequence that is a result of a single character encryption -- of plaintext English, ret...
#!/usr/bin/env lua5.3 local cqueues = require "cqueues" local lredis = require "lredis.cqueues" local resolver = require 'cqueues.dns.resolver' local http_server = require "http.server" local http_headers = require "http.headers" local cjson = require "cjson.safe" local cipher = require "openssl.cipher" local rand = r...
-- Déconnecte le WIFI print("\n wifi_off.lua zf180822.0959 \n") wifi.setmode(wifi.NULLMODE) --[[ print(wifi.NULLMODE, wifi.STATION, wifi.SOFTAP, wifi.STATIONAP) print(wifi.getmode()) ]]
local function noremap(mode, lhs, rhs) vim.api.nvim_set_keymap(mode, lhs, rhs, { noremap = true, silent = true }) end local function nnoremap(lhs, rhs) noremap("n", lhs, rhs) end -- Files nnoremap("<Leader>ff", "<Cmd>Telescope find_files<CR>") nnoremap("<Leader>fg", "<Cmd>Telescope live_grep<CR>") -- Git nnorema...
--[[ actionObject.lua Copyright (C) 2016 Kano Computing Ltd. License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2 ]]-- local Utils = require 'system.utils' local Easing = require 'libs.easing.easing' local love = love local g = love.graphics local ActionObject = {} ActionObject.__index = ActionObject -- c...
local resolve_relative_path = require "core.configmanager".resolve_relative_path; local logger = require "util.logger".init; local it = require "util.iterators"; local definitions = module:shared("definitions"); local active_definitions = {}; local default_chains = { preroute = { type = "event"; priority = 0.1;...
local path = (...):sub(1, #(...) - #(".physics.PhysicsJson")) local JSON = require(path..".3p.JSON").new() -- new instance local Luaoop = require(path..".3p.Luaoop") local nvec = require(path..".3p.nvec") ---@type NVec ---@class L2DF.PhysicsJson local PhysicsJson = Luaoop.class("L2DF.PhysicsJson") -- JSON keys local ...
local json = require("json") local zip = require("plugin.zip") local buyProductPage = {} local properties = {} function buyProductPage:render(param) print("parent mci page") print(appConfig:getTypeOperator()) ------------------------------------------------------------------------------ -- Declarations ----...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). --]] local ITEM = Clockwork.item:New(); ITEM.name = "ItemParacetamol"; ITEM.uniqueID = "paracetamol"; ITEM.cost = 10; ITEM.model = "models/props_junk/garbage_metalcan002a.mdl"; ITEM.weight = 0.2; ITE...
disPlayerNames = 5 --distance you see IDs at keyToToggleIDs = 19 --left alt by default playerDistances = {} showIDsAboveHead = false Citizen.CreateThread(function() while true do if IsControlJustPressed(0, keyToToggleIDs) then showIDsAboveHead = not showIDsAboveHead print("changed") Wait(50) end Wait(0) end end) Cit...
--[[ 索引监听器 --]] local IndexListener = class("IndexListener") -- 回调:索引加载 function IndexListener:onIndexesLoaded(ipath, ivalue) end -- 回调:索引移除(可能非清空) function IndexListener:onIndexesRemoved() end return IndexListener
local luaunit = require("luaunit") local Replacer = require("collectd/monitor/config-replacer") local options = { Services = { collectd = { CommandPath = "collectd", ConfigPath = "collectd.conf", PIDPath = "collectd.pid", }, }, } TestReplacer = {} function TestReplacer:te...
OBJECT.Name = "Gadget" OBJECT.Creator = "Robin Wellner" OBJECT.Version = 0.0 OBJECT.Resources = { texture = "snakeface/block" } OBJECT.TextureScale = { x = 1 } OBJECT.Static = false OBJECT.Polygon = { {-.4, -.4, -.4, .4, .4, .4, .4, -.4} } function OBJECT:collision(a) end
local bu = require "spec.fixtures.balancer_utils" local helpers = require "spec.helpers" for _, strategy in helpers.each_strategy() do for mode, localhost in pairs(bu.localhosts) do describe("Balancing with consistent hashing #" .. mode, function() local bp describe("over multiple targets", functio...
if not modules then modules = { } end modules ['sort-ini'] = { version = 1.001, comment = "companion to sort-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- It took a while to g...
dofile("../framework/framework.lua") SetupSolution("Test") SetupProject("Test", "test.cpp")
local PLUGIN = PLUGIN PLUGIN.name = "Suits" PLUGIN.author = "Subleader and Alexgrist and verne (Outfit base used)" PLUGIN.desc = "Compatible with bad air and localized damage, plus it adds damage resistance" ix.util.Include("cl_plugin.lua") ix.config.Add("disablePVP", true, "If true, disables player versus player dam...
local addonName = ... Speedy = LibStub("AceAddon-3.0"):NewAddon(addonName, "AceConsole-3.0", "AceEvent-3.0") Speedy.DatabaseName = "SpeedyDB" local LibDeflate = LibStub("LibDeflate") local AceGUI = LibStub("AceGUI-3.0") -- database version local DB_VERSION = 2 -- color of console output local CHAT_COLOR = "ff82bf4c" -...
-- file to test relative t.require function -- return { content = "I live 'a/b.lua'" }
local Prop = {} Prop.Name = "Suburbs House 3" Prop.Cat = "House" Prop.Price = 2000 Prop.Doors = { Vector( -11929, 2308, 190 ), Vector( -11852, 2531, 190 ), Vector( -11852, 2771, 190 ), Vector( -12116, 2771, 350 ), Vector( -12116, 2325, 350 ), Vector( -12214, 2808, 212 ), } GM.Property:Register( Prop )
--esmobs v1.3 --maikerumine --made for Extreme Survival game --License for code WTFPL -- nametag minetest.register_craftitem("esmobs:nametag", { description = "Nametag", inventory_image = "mobs_nametag.png", }) core.register_craft({ type = "shapeless", output = "esmobs:nametag", recipe = {"default:paper", "dye:...
local card_reward_hooks = require "hook_card_rewards" local character_unlock_hooks = require "hook_character_unlock" -- TODO: clear deck, clear card pack/stash -- TODO: clear chars -- TODO: randomize pack of N cards -- TODO: randomly unlock N chars with their full forms, 3 limit, 200 (?) exp local max_card_id = 125 lo...
local event = require("event") local sides = require("sides") local component = require("component") local glasses = component.glasses local nav = require("navigation") local map = require("map") local utils = require("utils") local vec3 = require("vec3") local locTracker = require("locationtracker") local ScanBatch =...
local discordia = require("discordia") local client = discordia.Client() client:on("ready", function() -- bot is ready print("Logged in as " .. client.user.username) end) client:on("messageCreate", function(message) local content = message.content if content == "!ping" then message:reply("Pong!") elseif conte...
-- -- uPnPclient - Simple client to support uPnP packets to devices on the network -- -- Author: Karl Bunch <karlbunch@karlbunch.com> -- -- Created: Fri Mar 18 05:22:03 EDT 2016 -- local socket = require('socket') local http = require('httpclient').new() local urlparser = require('httpclient.neturl') local inspect = re...
package("libxt") set_homepage("https://gitlab.freedesktop.org/xorg/lib/libxt") set_description("X.Org: X Toolkit Intrinsics library") add_urls("https://www.x.org/archive/individual/lib/libXt-$(version).tar.gz") add_versions("1.2.1", "6da1bfa9dd0ed87430a5ce95b129485086394df308998ebe34d98e378e3dfb33") ...
local _M = {} local function configure_origin(ngx, conf) if conf.origin == nil then ngx.header["Access-Control-Allow-Origin"] = "*" else ngx.header["Access-Control-Allow-Origin"] = conf.origin ngx.header["Vary"] = "Origin" end end local function configure_credentials(ngx, conf) if (conf.credential...
DECK = { vanilla = { -- 108 cartas -- 2 cópias de 1 a 9 de cada cor -- 2 cópias de draw2 de cada cor -- 2 cópias de skip de cada cor -- 2 cópias de reverse de cada cor -- 1 cópia de 0 de cada cor -- 4 cópias de wild -- 4 cópias de draw4 {"red","n0"}, {"red","n1"},{"red","n2"},{"red","n3"},{"red","n...
local allowCountdown = false local inSelection = true local ofsx = -210 local ofsy = 0 local mult = 1.25 characterNames = {'bf', 'pico-player', 'dad', 'spooky', 'mom', 'monster', 'senpai', 'spirit', 'angryplankton-player-old', 'diego-player', 'foxa'} --character json name characterDisplays = {'boyfriend', 'pico', 'dad'...
vim.api.nvim_set_keymap('n', '<Leader>tt', ':NERDTreeToggle<CR>', {noremap = true}) vim.api.nvim_set_keymap('n', '<Leader>tr', ':NERDTreeRefreshRoot<CR>', {noremap = true}) -- vim.api.nvim_set_keymap('n', '<Leader>tf', ':NERDTreeFocus<CR>', {noremap = true}) vim.g.NERDTreeWinPos = "right" vim.api.nvim_command([[ augr...
local M = { } local TK = require("PackageToolkit") local prepend = (TK.module.import(..., "_prepend")).prepend local tail = (TK.module.import(..., "_tail")).tail M.reverse = function(list) local aux aux = function(list, accum) if #list == 0 then return accum else return aux((tail(list)), (prepen...
local math = require('math') local os = require('os') local string = require('string') local helper = require('../helper') local fixtures = require('/tests/fixtures').checks local WindowsChecks = require('/check/windows').checks local exports = {} exports['test_windowsperfos_check'] = function(test, asserts) local ...
#!/usr/bin/env lua -- MoonAssimp example: inspect3d.lua - 3D Model Inspector -- -- For usage help, type at the shell prompt: -- $ ./inspect3d.lua --help ai = require("moonassimp") -- Set to false or comment out if you don't want verbose logging: ai.enable_verbose_logging(true) -- Uncomment/comment items if you wan...
return {'kummel','kumquat','kumtich','kumar','kummeling','kumquats'}
--[[ Provides a player's thumbnail to other components. Usage: Roact.createElement(Thumbnail, { userId = "-1", -- Must be a string render = function(thumbnail) return Roact.createElement("ImageLabel", { Image = thumbnail.image }) end }) --]...
--------------------------------------------------------------------------------------------------- -- func: capallskills -- desc: Caps all the players skills. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters = "" } fun...
-- Copyright 2016 krunkathos -- -- 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 t...
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KQ = KUI:NewModule("KuiQuest", "AceEvent-3.0") KQ.modName = L["Quest"] -- Cache global variables local _G = _G local select, type, tostring, tonumber = select, type, tostring, tonumber local find, gsub = string.find, gsub -- WoW API / Variables local QuestFlagsPV...
require 'ex' scriptPath = ((debug.getinfo(1, "S").source:match("@(.+)[\\/]") or '.') .. '\\'):gsub('\\', '/'):lower() function test(a, b) if a ~= b then print('Actual:', a) print('Expected:', b) assert() end end test(os.path.add_extension('', 'ext'), '.ext') test(os.path.add_extension(' ', ' ext...
RatingsFetcher = {} function RatingsFetcher.requestAll() dbQuery(function(qh) local res = dbPoll(qh, 0) if res then AllMapsRatings.receiveRatingsFromDatabase(res) end end, Database.getConnection(), 'SELECT `mapresourcename`, sum(case when `rating`= 1 then 1 else 0 end) AS li...
-- Autogenerated from KST: please remove this line if doing any edits by hand! local luaunit = require("luaunit") require("valid_fail_contents") TestValidFailContents = {} function TestValidFailContents:test_valid_fail_contents() luaunit.assertErrorMsgMatches(".+: not equal, expected .*, but got .*", ValidFailC...
local service = require "../src/service" describe("The check module", function() it("falls back to a display", function() local expected = "DISPLAY=:0" local actual = service.get_display() assert.are.equal(expected, actual) end) it("constructs key/values for the service file optio...
-------------------------------- -- @module DrawNode -- @extend Node -- @parent_module cc -------------------------------- -- @function [parent=#DrawNode] drawQuadraticBezier -- @param self -- @param #vec2_table vec2 -- @param #vec2_table vec2 -- @param #vec2_table vec2 -- @param #unsigned int int -- @param #color4f...
RPGM.RegisteredFonts = RPGM.RegisteredFonts or {} local registeredFonts = RPGM.RegisteredFonts do RPGM.SharedFonts = RPGM.SharedFonts or {} local sharedFonts = RPGM.SharedFonts function RPGM.RegisterFontUnscaled(name, font, size, weight) weight = weight or 500 local identifier = font .. ...
-- * Metronome IM * -- -- This file is part of the Metronome XMPP server and is released under the -- ISC License, please see the LICENSE file in this source package for more -- information about copyright and licensing. -- -- As per the sublicensing clause, this file is also MIT/X11 Licensed. -- ** Copyright (c) 2009-...
data:extend({ { type = "recipe", name = "replication-lab", enabled = "true", ingredients = { {'rare-earth-magnet', 5}, {'copper-plate', 10} }, result = "replication-lab" }, { type = "item", name = "replication-lab", icon = "__replicators__/graphics/i...
bracketl = "{" bracketr = "}" compare = {">", "<", "≥", "≤"} operation = {"+", "-"} stampa = 3 ind = math.random(2) sign = operation[ind] ind2 = math.random(2) sign2 = operation[ind2] index = math.random(4) relat1 = compare[index] if (ind == 1) then relat2 = compare[index] else if (index < 3) then ...
-- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
-- Editors: -- Earth Salamander #42 if Mutation == nil then Mutation = class({}) IMBA_MUTATION = {} IMBA_MUTATION["positive"] = "" IMBA_MUTATION["negative"] = "" IMBA_MUTATION["terrain"] = "" end POSITIVE_MUTATION_LIST = {} -- VANILLA POSITIVE_MUTATION_LIST["killstreak_power"] = false -- POSITIVE_MUTATION_L...
camp_waypoint_datapad = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/loot/quest/force_sensitive/camp_waypoint_datapad.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } addLootItemTemplate("camp_waypoint_datapad", camp_...
---@class ModelInfo C_ModelInfo = {} --- This function does nothing in public clients ---@param modelSceneFrame table ---@param modelSceneID number function C_ModelInfo.AddActiveModelScene(modelSceneFrame, modelSceneID) end --- This function does nothing in public clients ---@param modelSceneFrameActor table ---@p...
--[[------------------------------------------------------------------------- Copyright 2017 - 2021 viral32111 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-...
object_tangible_collection_publish_gift_comlink_component_01 = object_tangible_collection_shared_publish_gift_comlink_component_01:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_publish_gift_comlink_component_01, "object/tangible/collection/publish_gift_comlink_component_01.iff")
local util = require 'util' local lovetoys = require 'lovetoys.lovetoys' local Light = lovetoys.Component.create('Light') function Light:initialize() self:clear() self:reset() end function Light:reset() self.map = {} self:flush() end function Light:flush() util.fill(self.dirty) end function L...
-------------------------------- -- @module SpriteDisplayData -- @extend DisplayData -- @parent_module ccs ---@class ccs.SpriteDisplayData:ccs.DisplayData local SpriteDisplayData = {} ccs.SpriteDisplayData = SpriteDisplayData -------------------------------- --- ---@param displayData ccs.DisplayData ---@return ccs....
if SERVER then AddCSLuaFile() end -- CREATE CONVARS local maxhealth = CreateConVar("ttt2_zomb_maxhealth_new_zomb", 100, {FCVAR_ARCHIVE, FCVAR_NOTIFY}) local walkspeed = CreateConVar("ttt2_zomb_walkspeed", 0.5, {FCVAR_ARCHIVE, FCVAR_NOTIFY}) -- SYNC CONVARS <> GLOBAL VARS if SERVER then hook.Add("TTT2SyncGlobals", "...
local shuffle = require "libs.shuffle" local function table_copy(t) local t2 = {} for k,v in pairs(t) do t2[k] = v end return t2 end -- SEQ実行 local function SEQ(talk) local function task(args) local talk_type = type(talk) -- 文字列:そのまま1回返す if talk_type == "string" t...
local sync = require("util.sync") local Server = require('utilityNoobhub') local Message = require('messageTemplates') local restAPI = require("api.rest") local isDebug = true local print = isDebug and Runtime._G.print or function() end local socket = {} local _props = {} local connection = { sessionId=nil, us...
print("Project15: Blynk accelerometer from phone") vw_cb = function(cmd) pin = tonumber(cmd[2]) -- ALL vpin "vw" messages arrive here. What vpin is this packet? if pin == 13 then -- v13 = accel xx=tonumber(cmd[3]) yy=tonumber(cmd[4]) zz=tonumber(cmd[5]) print("pitch", axl.pi...
project "SharpLang.Compiler" kind "ConsoleApp" language "C#" flags { "Unsafe"} SetupManagedProject() files { "**.cs" } excludes { "obj/**" } dependson { "SharpLang.Runtime" } links { "System", "System.Core", "SharpLLVM", "Mono.Cecil", "Mono.Cecil.Pdb", "Mono.Cecil.Rocks", ...
local Tract = {} Tract.fixed = {} Tract.fixed.L = {} Tract.fixed.L[1] = 18 Tract.fixed.L[2] = 18 Tract.AreaNose = {} Tract.AreaNose[1] = 1.5714285714285714 Tract.AreaNose[2] = 2.1036641929499069 Tract.AreaNose[3] = 2.8453153988868278 Tract.AreaNose[4] = 3.5904452690166977 Tract.AreaNose[5] = 4.25 Tract.AreaNose[6] = 4....
--- === hs.doc === --- --- Create documentation objects for interactive help within Hammerspoon --- --- e.g. `doc = hs.doc.fromJSONFile('path-to-docs.json')` --- --- You can use the `hs.docstrings_json_file` constant, e.g. `doc = hs.doc.fromJSONFile(hs.docstrings_json_file)` --- --- Debugging modes: --- Mostly only hav...
-- Source Component -- local Base = require 'modern' local Source = Base:extend() -- New -- function Source:new(host, data) self.host = host -- -- properties self._src = data.src or host end -- Get/set `source` value -- function Source:source(value) if value == nil then return self._src end self._src = ...
local sprite = BaseSprite:extend({ type = 'goomba', enemy = true, collision = 'slide' }) function sprite:constructor (x, y) self.destroyed = false self.frozen = false self.x = x self.y = y self.dx = 0 self.dy = 0 self.behavior = Behavior { default = { { duration = 0, after = 'walk' }, }, ...
--[[ /******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause ************************************************...
function update(x) local forceX, forceY; local gLeft, gRight; local animeState; if x == 0 then forceX == forceY = 0.0 animeState = "idle" gLeft == gRight = false end elseif x == 1 then forceX = -0.01 forceY = 0.0 animeState = "moveleft" gLeft = true gRight = false end elseif x == 2 then fo...
-------------------------------------------------------------------------------- --- Head: Require -- local awful = require("awful") require("awful.autofocus") -- -- Tail: Require -------------------------------------------------------------------------------- ------------------------------------------------------...
local ObjectManager = require("managers.object.object_manager") local shuttleanimationHelper = ScreenPlay:new { numberOfActs = 1, questString = "shuttleanimationHelper", states = {}, planetName = "talus", mobileName = "lambda_shuttle", x = 0, z = 200, y = 0, direction = 0, scriptName = "shuttleanimationHelpe...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
--[[ TheNexusAvenger Mirrors the API of Roblox's Plugin class. --]] local CLASS_NAME = "NexusPlugin" local NexusPluginFramework = require(script.Parent.Parent:WaitForChild("NexusPluginFrameworkProject")):GetContext(script) local NexusContainer = NexusPluginFramework:GetResource("Base.NexusContainer") local NexusSt...
Log = {} function Log.debug(message) if Config.DebugLog then Wrapper.print(message) end end
--下面基础组件间的require有依赖顺序相关,闲着没事也别换顺序,要加新的往文件尾加就好 Mathf = require "Common.UnityEngine.Mathf" Vector2 = require "Common.UnityEngine.Vector2" Vector3 = require "Common.UnityEngine.Vector3" Vector4 = require "Common.UnityEngine.Vector4" Quaternion = require "Common.UnityEngine.Quaternion" Color = require "Common.UnityE...
workspace "Transcendent-Engine" architecture "x86_64" startproject "Editor" configurations { "Debug", "Release", "Distrib" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" IncludeDir = {} IncludeDir["GLFW"] = "Transcendent-Engine/vendor/glfw/includ...
local expirationd = require("expirationd") local t = require("luatest") local g = t.group("process_while") local helpers = require("test.helper") g.before_all(function() helpers.init_spaces(g) end) g.after_each(function() helpers.truncate_spaces(g) end) function g.test_passing() local task = expirationd...
local button = script.parent local TYPE = script:GetCustomProperty("TYPE") while not _G["LoadoutState"] do Task.Wait() end local HOVER_SOUND = script:GetCustomProperty("HOVER_SOUND") button.pressedEvent:Connect(function() if(TYPE) == "Perks" or (TYPE) == "Equipment" then Events.Broadcast("SpawnLoadoutIcon...
project "App_TinyAudioExample" language "C++" kind "ConsoleApp" includedirs { ".", "../../src", } defines {"B3_USE_STANDALONE_EXAMPLE", "__STK_REALTIME__"} files { "**.cpp", "**.h", "../StandaloneMain/main_console_single_example.cpp", "....
KuiNameplatesCoreSaved = { ["216_HEALTH_TRANSITION"] = true, ["2162_PERSONAL_FRAME_SIZE_TRANSITION"] = true, ["profiles"] = { ["RealUI"] = { ["glow_as_shadow"] = false, ["frame_height"] = 18, ["target_arrows_size"] = 38, ["font_size_normal"] = 14, ["bar_texture"] = "Plain", ["level_text"] = true...
local awful = require("awful") local gears = require("gears") local wibox = require("wibox") local beautiful = require("beautiful") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local bling = require("module.bling") local helpers = require("helpers") -- Helpers ------------- loc...
-- RAM and swap usage widget type for FreeBSD -- Copyright (C) 2017-2019 mutlusun <mutlusun@github.com> -- Copyright (C) 2018 Andreas Geisenhainer <psycorama@datenhalde.de> -- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com> -- -- This file is part of Vicious. -- -- Vicious is free software: you can redist...
local plyMeta = FindMetaTable("Player") DarkRP.addPhrase("en", "zombie_approaching", "WARNING: Zombies are approaching!") DarkRP.addPhrase("en", "zombie_leaving", "Zombies are leaving.") DarkRP.addPhrase("en", "zombie_spawn_not_exist", "Zombie Spawn %s does not exist.") DarkRP.addPhrase("en", "zombie_spawn_removed", "...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/star wars the force unleashed/thermal_detonator.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) Glow = ents.Create("env_sprite...
os = require('os') vshard = require('vshard') local IDX_KEY = 1 local IDX_VALUE = 2 local cfg = { memtx_memory = 100 * 1024 * 1024, bucket_count = 120, rebalancer_disbalance_threshold = 10, rebalancer_max_receiving = 1000, sharding = { ['7432f072-c00b-4498-b1a6-6d9547a8a150'] = { -- repli...
local objects = { --Maxime createObject ( 14393, 1154.90002, -801.40002, 2100.2981, 0, 0, 270 , 77), createObject ( 1569, 1150.59998, -807.32001, 2098.09009, 0, 0, 270 , 77), createObject ( 14391, 1142.59998, -808.60699, 2099 , 0, 0, 0, 77), createObject ( 14392, 1141.80005, -807.70001, 2099.3999 , 0, 0, 0, 77), ...
local http = require "resty.http" local server = require "spec.support.server" describe("option generate_certs", function() before_each(server.stop) after_each(server.stop) it("generate_certs disables generation of new SSL certs", function() server.start({ auto_ssl_http_config = [[ server { ...
local EventManager = require 'utils.EventManager'; local NetworkService = require "utils.NetworkService"; local rewardCfg = LoadDatabaseWithKey("rank_rewards", "rankid", "type"); local function GetActivityReward(rankid) return rewardCfg[rankid]; end local function GetNowPeriod() local cfg = GetActivityReward(2)...
-- Все возможные точки спавна лута local vehicleSpawnpoints = {} local EDITOR_MODE = false local vehicleModels = { [400] = { 400, 500, 579, 489 }, [426] = { 426, 445, 507, 585, 466, 492, 546, 551, 516, 467, 547, 405, 580, 550, 566 }, [461] = { 461, 521, 463, 468 }, ...
-- Adopted from shell/sysinfo.lua -- Todo: -- With NodeMCU "built 2017-12-25 17:45 Lua 5.1.4 on SDK 2.1.0(116b762)" it has a memory leak (seems unrelated to httpd/simple.lua) return function(conn,req,gv) dofile("httpd/header.lua")(conn,200,"text/plain") local kv = function(k,v,u) local s = k..': '.. (u...
--- Guild member class -- @classmod discord.guildMember local discord = ... --Passed as an argument. local class = discord.class --Middleclass. local guildMember = class("discord.structures.GuildMember") --A function for verifying the arguments types of a method local function Verify(value, name, ...) local vt, ...
Talk(11, "祝少侠此后平步青云.", "talkname11", 0); do return end;
PLUGIN.Title = "CustomChatCommands" PLUGIN.Author = "#Domestos" PLUGIN.Version = "1.1" PLUGIN.Description = "Set completely custom chat commands" PLUGIN.ResourceId = "559" PLUGIN.ConfigFile = "customchatcommands" -- Debug mode local debug = false -- ---------------- function PLUGIN:Init() self:LoadConfig() fo...
-- -- AMQP/RabbitMQ Bindings for LuaJIT -- Requires at least librrabbitmq.so.1.0 (https://github.com/alanxz/rabbitmq-c) -- -- The contents of this file has been -- derived (by hand) from rabbitmq-c's amqp.h and amqp-framing.h -- local ffi = require("ffi") ffi.cdef[[ static const int AMQP_PROTOCOL_VERSION_MAJOR = ...
local function create_initial_build_orders(self) local order = BuildOrder.from_generator(self.min, self.max, 'astral_plane') BuildOrder.register(order) self:add_order(order) end return { create_initial_build_orders = create_initial_build_orders }
local rhs_opts = {} function rhs_opts:new(cmd) local instance = { cmd = cmd, options = { noremap = false, silent = false, expr = false, nowait = false } } setmetatable(instance, self) self.__index = self return instance end fu...
----------------------------------- -- Ability: Tenuto -- If the next song you cast affects yourself, it will not subsequently be overwritten by other songs. -- Obtained: Bard Level 83 -- Recast Time: 0:15 -- Duration: 1:00, or until next song is cast. ----------------------------------- require("scripts/globals/sett...
LANG = { ["Intro"] = function () print "-------------------------------" print "Чудище-умножатель и храбрый богатырь" print "v 1.0.0 by HerrOfTheLand" print "-------------------------------" print "Чудище-умножатель украл царевну тридесятого царства!" print "Помоги богатырю победить его." ...
-- src/opcodes/configure.ac:/for arch in/ return { aarch64={'aarch64-asm.c', 'aarch64-dis.c', 'aarch64-opc.c', 'aarch64-asm-2.c', 'aarch64-dis-2.c', 'aarch64-opc-2.c'}, alpha={'alpha-dis.c', 'alpha-opc.c'}, arc={'arc-dis.c', 'arc-opc.c', 'arc-ext.c'}, arm={'arm-dis.c'}, avr={'avr-dis.c'}, bfin={'bfin-dis.c'}, cr...
require "busted.runner"() local Helper = require "spec/scripts/devtools/menu/option/helper" describe("CheckboxOption", function() -- before_each initialization local options local ChoicesOption, choicesoption before_each(function() -- initialization options = { choices = {...
--vim: ts=2 sw=2 sts=2 expandtab:cindent: --------- --------- --------- --------- --------- --------- local Thing = require("thing") local div = require("divs") local Some = {klass="Some"} function Some.new(t) i = Thing.new(t) i.me = Some i.has = {} i.divs = nil i.most = t.most or THE.some.most ...