content
stringlengths
5
1.05M
--[[ -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or -- its licensors. -- -- For complete copyright and license terms please see the LICENSE at the root of this -- distribution (the "License"). All use of this software is governed by the License, -- or, if provided, by the license be...
----------------------------------------------------------------------------------------------- -- Client Lua Script for MarketplaceAuctionEnhanced -- Copyright (c) NCsoft. All rights reserved ----------------------------------------------------------------------------------------------- require "Window" require "Gam...
--[[ As we saw, if a function calls lua_yield (the version with no continuation), control returns to the function that called it when the thread resumes again. What values does the calling function receive as results from that call? ]] yieldtest = require 'yieldtest' co = coroutine.create(yieldtest.yield) print(coro...
local _, Engine = ... local Module = Engine:NewModule("DurabilityFrame") Module.OnInit = function(self) local content = DurabilityFrame if not content then return end local config = self:GetStaticConfig("Blizzard").durability local point, anchor, rpoint, x, y = unpack(config.position) if anchor =...
--[[ -- Author: passion -- Date: 2019-09-20 12:00:54 -- LastEditors: passion -- LastEditTime: 2019-09-26 13:38:32 -- Description: 大厅网络连接器,socket长连接 --]] local HallConnector = BaseClass("HallConnector", Singleton) local MsgIDMap = require("Net/Config/MsgIDMap"); local pb = require("pb"); local LoginHandler = require("N...
function onEvent(name, value1, value2) makeAnimatedLuaSprite( value2, value1, 0, 0); addLuaSprite(value2, false); end
local name = "tektoncd-cli" local version = "0.22.0" local release = "v" .. version local org = "tektoncd" local repo = "cli" local url = "https://github.com/" .. org .. "/" .. repo local bin = "tkn" food = { name = name, description = "The Tekton Pipelines CLI project provides a command-line interface (CLI) f...
function init(args) entity.setInteractive(true) end function onInteraction(args) if storage.state == nil then storage.state = false end storage.state = not storage.state local sourceId = args["sourceId"] local queryOptions = { ["callScript"]="setInteractId", ["callScriptArgs"]=vlist({sourceId}) } loc...
return PlaceObj("ModDef", { "title", "Fix RC Commander Drone Freeze", "version_major", 0, "version_minor", 1, "saved", 0, "image", "Preview.png", "id", "ChoGGi_FixRCCommanderDroneFreeze", "steam_id", "1719919254", "pops_any_uuid", "a3338c37-0ad4-4beb-a102-f6b095f59a8f", "author", "ChoGGi", "lua_revision", 249...
target("RocketRenderCommon") set_kind("static") add_files( "RayTrace/*.cpp", "Render/*.cpp" ) add_packages("eigen", "spdlog", {public = true}) add_options("console_log") add_options("memory_check") add_deps( "RocketEngineLog", "RocketEngineMemory", {p...
return { formatting = true, diagnostics = false, }
local cog = require 'cog' cog.init() snd = cog.snd.add("media/testsnd.wav") cog.snd.play(snd) while not cog.hasquit() do cog.loopstep() end cog.quit()
PhysicalEntity = class("PhysicalEntity", Entity) function PhysicalEntity:__index(key) local result = Entity.__index(self, key) if result then return result elseif rawget(self, "_body") and self._body[key] then PhysicalEntity[key] = function(s, ...) return s._body[key](s._body, ...) end return Phys...
-- Voice to MP3 to MIDI to ToneJS JSON to ROBLOX script. (basically lego vc) -- Put in StarterCharacterScripts along with 1000hz tone called "forAThousand" (no quotes ofc) -- Created by Sparksammy local HttpService = game:GetService("HttpService") local baseurl = "http://based.sparksammy.com/vc" -- change me to your ...
--[[ # Element: Castbar Handles the visibility and updating of spell castbars. ## Widget Castbar - A `StatusBar` to represent spell cast/channel progress. ## Sub-Widgets .Icon - A `Texture` to represent spell icon. .SafeZone - A `Texture` to represent latency. .Spark - A `Texture` to represent the castbar's...
local Plugin = Plugin TGNS.HookNetworkMessage(Shine.Plugins.autoexec.COMMAND, function(message) Shared.ConsoleCommand(message.c) end) function Plugin:Initialise() self.Enabled = true return true end function Plugin:Cleanup() --Cleanup your extra stuff like timers, data etc. self.BaseClass.Cleanup( self...
-- mod-version:2 -- lite-xl 2.0 local core = require "core" local config = require "core.config" local command = require "core.command" local keymap = require "core.keymap" -- This plugin open the PDF file corresponding to the current tex file in a PDF viewer -- either specified in the lite-xl configuration or using t...
local MAP_CONSTANTS = require('map.constants') local N, S, E, W, NEC, SEC, SWC, NWC = unpack(MAP_CONSTANTS.DIRECTIONS) local bitmask = { [0] = 'tile_342', [N] = 'tile_286', [E] = 'tile_313', [S] = 'tile_312', [W] = 'tile_285', [N + E] = 'tile_307', [N + W] = 'tile_308', [N + S] = 'tile_309', [S + E] ...
---------------------------------------------------------------------------------------------------- -- -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or -- its licensors. -- -- For complete copyright and license terms please see the LICENSE at the root of this -- distribution (the "Li...
-- Copyright (c) 2020, The Pallene Developers -- Pallene is licensed under the MIT license. -- Please refer to the LICENSE and AUTHORS files for details -- SPDX-License-Identifier: MIT local typedecl = require "pallene.typedecl" local types = {} local function declare_type(type_name, cons) typedecl.declare(types...
function love.conf(t) t.identity = "MP" t.version = "0.10.2" t.console = false t.window.title = "MP" t.window.icon = nil t.window.width = 360 t.window.height = 600 t.window.borderless = false t.window.resizable = false t.window.minwidth = 1 t.window.minheight = 1 t.windo...
-- Thank you from TR1NITY and Haeiven for the contribution! local LANG = {} LANG.code = "fr" LANG.Name = "Français" LANG.NameEnglish = "French" LANG.Author = "TR1NITY, Haeiven" -- Only accept STRINGS. -- Can Accept: String, and Table. LANG.AuthorURL = { "https://steamcommunity.com/profiles/76561198260731850",...
--- -- Overrides and extensions to Lua's `io` library. --- local path = require('path') --- -- Replacement `io.open()` which creates any missing subdirectories if the -- the file path being opened is set to writeable. --- function io.open(filename, mode) if mode and (string.contains(mode, 'w') or string.contains(m...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local CAMPTASKINFO2DB_PB = require("CampTaskInfo2DB_pb") module('CampRoleRecord_pb') CAMPROLERECORD = protobuf.Descriptor(); local CAMPROLERECORD_LASTCAMPID_FIELD = protobuf.FieldDescriptor(); local CAMPROLERECORD_TASKINFO_FIELD =...
--try to register the first entity mila:add_entity("mila:evil_knight", { damage = 9, collisionbox = {-0.4,-2.55,-0.4, 0.4, 1.6, 0.4}, status = "hostile", visual_size = {x=5, y=5}, mesh = "armour.b3d", drops = "default:steel_ingot 8", textures = {"armour.png"}, sounds = "mila_growl", makes_footstep_sound = tr...
local state = {} state._NAME = ... local Body = require'Body' require'vcm' local t_entry, t_update, t_exit local min_pan, max_pan, mid_pan, mag_sweep local t_sweep, ph, forward local min, max = math.min, math.max -- Sync mesh parameters local function update_pan_params() -- Necessary variables mag_sweep, t_sweep = u...
local new_quad = love.graphics.newQuad ---This library has a tools for convenient working with image-atlases, ---It makes possible to create a grid on the image and take quads from it. --- ---As pixel-art editor I recommend [libresprite](https://libresprite.github.io). ---You can very easy pick grid coordinates from i...
require('plugins.lsp.bash-language-server') require('plugins.lsp.clangd') -- require('plugins.lsp.haskell-language-server') require('plugins.lsp.lua-language-server') require('plugins.lsp.pyright') require('plugins.lsp.texlab') -- auto show diagnostic hover vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp...
--[[ Lua implementation of shell sort Author: Micael Machado Gomes (micaellgoms@gmail.com) --]] -- @param unordered array function shellSort(array) print("Shell Sort:") h = 1 while h < #array do h = (3*h)+1 end repeat h = math.floor(h/3) for i = 1, #array do ...
local regionPrototype = {} ToshUnitFrames.regionPrototypes["_region"] = regionPrototype function regionPrototype:Remove() if self.parent == nil then ToshUnitFrames.regions:Remove(self.id) else self.parent:RemoveChild(self) end end function regionPrototype:Name() if self.name and self.n...
DEFINE_BASECLASS("ma2_proj_ppc_lvl1") AddCSLuaFile() ENT.Base = "ma2_proj_ppc_lvl1" ENT.Damage = 420 ENT.ParticleAttach = "gm_MA2_PPC_lvl2" ENT.FireSound = Sound("MA2_Weapon.PPC2") PrecacheParticleSystem("gm_MA2_PPC_lvl2")
local Timer = require 'framework.timer' -- print("Timer1 Start", os.clock()) -- Timer:new(1, 1, function() -- print("Timer1 End", os.clock()) -- end):start() -- print("Timer2 Start", os.clock()) -- Timer:new(5, 3, function() -- print("Timer2 End", os.clock()) -- end):start() print("Timer3 Start", os.clock())...
-- Scripts à charger après le boot pour démarrer le core system print("\n boot.lua zf200101.1235 \n") function boot() gpio.trig(zswitch, "none") hvbouton=nil zswitch=nil reset_reason=nil f= "telnet_srv2.lua" if file.exists(f) then dofile(f) end f= "web_srv2.lua" if file.exists(f) then dofile(f) ...
#!/usr/bin/env lua5.1 -- $Id: teststruct.lua,v 1.2 2008/04/18 20:06:01 roberto Exp $ -- load library local lib = require"struct" --assert(_G.struct == lib) -- -- auxiliar function to print an hexadecimal `dump' of a given string -- (not used by the test) -- local function bp (s) s = string.gsub(s, "(.)", function...
-- original script: -- https://gist.github.com/selsta/ce3fb37e775dbd15c698 -- -- subliminal: -- https://github.com/Diaoul/subliminal ------------------------------------------------------ -- Seeks subtitles with subliminal at different servers separately and downloads all available. -- -- keybinding: shift+v - for curr...
--[[ Chapter 1 Scene ]] local scene = Scene("Chapter 1") local data = { } scene.on('init', function() print("Chapter 1 Initialized") end) scene.on('update', function() -- update the scene end) scene.on('draw', function() -- draw the scene end) return { handle=scene, data=data }
DOORS = DOORS or {} DOORS[5001] = { ["active"] = true, ["model"] = 741314661, ["coords"] = vector3(1844.62, 2605.21, 45.58), ["lock"] = 1, ["automatic"] = {}, ["access"] = { ["job"] = { "is_police" }, }, ["keyFob"] = true, } DOORS[5002] = { ["active"] = true, ["model"] ...
return function(cmdContext, player, reason) player:Kick(reason) end
GameListFilterCategories.NameFilter = {} GameListFilterCategories.NameFilter["A - F"] = {} GameListFilterCategories.NameFilter["A - F"]["A"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "A") end GameListFilterCategories.NameFilter["A - F"]["B"] = function(Content) return (string.upper(...
--[[ Cloud Manager API This API allows access to Cloud Manager programs, pipelines, and environments by an authorized technical account created through the Adobe I/O Console. The base url for this API is https://cloudmanager.adobe.io, e.g. to get the list of programs for an organization, you would make a GET requ...
--[[ MIT License Copyright (c) 2019 stujones11, Stuart Jones 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 use, copy, modify, me...
--[[ LUA TUTORIAL --]] --[[ CHAPTER 8: DECISION MAKING --]] --[ local variable definition --] a = 10 --[ check the boolean condition using if statement --] if (a < 20) then --[ if condition is true then print the following --] print("a is less than 20") end print("Value of a is: ", a) --[ local variable defi...
ESX = nil aldi = false TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterServerEvent("rpv_prisonnpc:BuyItem") AddEventHandler("rpv_prisonnpc:BuyItem", function(amountToBuy,totalBuyPrice,itemName) local xPlayer = ESX.GetPlayerFromId(source) local itemLabel = ESX.GetItemLabel(itemName) if xPlay...
simplecrafting_lib = {} simplecrafting_lib.type = {} local modpath = minetest.get_modpath(minetest.get_current_modname()) dofile(modpath .. "/util.lua") dofile(modpath .. "/register.lua") dofile(modpath .. "/craft.lua") dofile(modpath .. "/inventory.lua") dofile(modpath .. "/legacy.lua") dofile(modpath .. "/postproce...
local Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPA...
return { corthud = { acceleration = 0.113, brakerate = 0.675, buildcostenergy = 1106, buildcostmetal = 140, builder = false, buildpic = "corthud.dds", buildtime = 1900, canattack = true, canguard = true, canmove = true, canpatrol = true, canstop = 1, category = "ALL MOBILE SMALL SURFACE UNDER...
----------------------------------- -- Area: Windurst Waters -- NPC: Fomina -- Only sells when Windurst controlls Elshimo Lowlands -- Confirmed shop stock, August 2013 ----------------------------------- local ID = require("scripts/zones/Windurst_Waters/IDs") require("scripts/globals/conquest") require("scripts/global...
local skynet = require "skynet" require "skynet.manager" require "functions" local skynet_util = require "skynet_util" local logger = require "logger" local futil = require "futil" local query_sharedata = require "query_sharedata" local json = require "json" local cache_util = require "cache_util" local sqlutil = requi...
--[[ MTA Role Play (mta-rp.pl) Autorzy poniższego kodu: - Patryk Adamowicz <patrykadam.dev@gmail.com> Discord: PatrykAdam#1293 Link do githuba: https://github.com/PatrykAdam/mtarp --]] local door = {} door.active = false function door.hide() removeEventHandler( "onClientGUIClick", door.button[...
-- import local TaskModule = require 'candy.task.Task' local Task = TaskModule.Task -- module local AsyncDataTaskModule = {} ---@class AsyncDataLoadTask : Task local AsyncDataLoadTask = CLASS:AsyncDataLoadTask ( Task ) :MODEL {} function AsyncDataLoadTask:__init ( filename ) self.filename = filename end function ...
--[[ Shotgun Written by Atenfyr Licensed under the MIT License ]] -- send a DM to me on Discord if you want me to add your mod repository as a source or add a mod to the default repository: Atenfyr#9927 local sources = {'https://raw.githubusercontent.com/atenfyr/shotgun_mods/master/shotgun_repository'} lo...
function ChangePlayerWeather(weather, blend) setWeather ( tonumber(weather) ) if(blend ~= nil) then setWeatherBlended ( tonumber( blend )) end end addEvent( "onClientWeatherChange", true ) addEventHandler( "onClientWeatherChange", getRootElement(), ChangePlayerWeather )
require 'torch' require 'nn' require 'nngraph' require 'optim' torch.setdefaulttensortype('torch.FloatTensor') local model_utils=require 'model_utils' require 'cunn' require 'cudnn' -- get training dataset print('loading training image ...') img_tr = torch.load('./data/panoContext_img_train.t7') print('loading traini...
local filters = { ShowRunHistoryScreen = { -- run history overlay background { Hook = "SetScale", Filter = function(params) return Hephaistos.MatchAll(params, { Fraction = 10 }) end, Action = Hephaistos.Rescale, }, }, ShowRunHistory = { -- run history pact of punish...
local Object = require "kong.vendor.classic" local BasePlugin = Object:extend() local ngx_log = ngx.log local DEBUG = ngx.DEBUG function BasePlugin:new(name) self._name = name end function BasePlugin:init_worker() ngx_log(DEBUG, "executing plugin \"", self._name, "\": init_worker") end function BasePlugin:certi...
--[[ Mock network implementation that returns values in the expected formats, or returns promise rejections if specified ]] local CorePackages = game:GetService("CorePackages") local Promise = require(CorePackages.AppTempCommon.LuaApp.Promise) local MOCK_ASSET_DATA = { [1] = { id = 100425207, name = "Reinforced ...
-------------------------------- -- Author: Gregor Best -- -- Copyright 2009 Gregor Best -- -------------------------------- local tonumber = tonumber local tostring = tostring local setmetatable = setmetatable local io = { popen = io.popen } local os = { execute = os.execute } local capi = { widget...
if script.Parent.className ~= "HopperBin" then bin = Instance.new("HopperBin") bin.Name = "Gun" bin.Parent = game.Players.acb227.Backpack script.Parent = bin local han = Instance.new("Part") han.Parent = char han.BrickColor = BrickColor.new("Mid grey") han.Name = "Handle" han:BreakJoints() han.Transparency =...
--ZFUNC-sinh-v1 local function sinh( x ) --> res return ( math.exp( x ) - math.exp( -x ) ) / 2 end return sinh
---@class CS.FairyEditor.AtlasSettings ---@field public name string ---@field public compression boolean ---@field public extractAlpha boolean ---@field public packSettings CS.FairyEditor.PackSettings ---@type CS.FairyEditor.AtlasSettings CS.FairyEditor.AtlasSettings = { } ---@return CS.FairyEditor.AtlasSettings funct...
local makeContextualMenu = require(script.Parent.makeContextualMenu) local OverlayBaseMenu = require(script.Parent.OverlayBaseMenu) return makeContextualMenu(OverlayBaseMenu, "BackgroundUIContrast")
-- const BluebirdPromise = require('bluebird'); -- const { utils, consts } = require('../lora-lib'); local consts = require("../../lora-lib/constants/constants.lua") local DLCHANNELANS_PARAM = consts.DLCHANNELANS return function(devAddr, status) p( { label = "MAC Command Ans", message = { DlC...
local wibox = require("wibox") local awful = require("awful") local beautiful = require("beautiful") local naughty = require("naughty") local gears = require("gears") local module_path = (...):match ("(.+/)[^/]+$") or "" local theme = beautiful.get() local internet = {} local function worker(args) local args = args...
local sayer = {} function sayer.say_each(n, word) for i = 1, n do sayer.say(word) end end function sayer.say(word) print(word) end return sayer
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA function EFFECT:Init(data) self.Pos = data:GetOrigin() if cvars.Bool("doom3_firelight") then local dynlight = DynamicLight(0) dynlight.Pos = self.Pos dynlight.Size = 1024 ...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
ITEM.name = "Empire Helmet (Uncommon)" ITEM.model = "models/Gibs/HGIBS.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.category = "Armour" ITEM.ability = { } ITEM.traits = { hp = 250, hpregen = 5, armorrating = 50, shield = 175, shieldregen = 5, damage = 0, attribReq = { str = 0, con = 0 }, speed = 0 } ITEM.le...
InputConfig({ name = "Default", author = "tommitytom" }) -- Keyboard keys mapped to gameboy buttons KeyMap({ [Key.UpArrow] = Button.Up, [Key.LeftArrow] = Button.Left, [Key.DownArrow] = Button.Down, [Key.RightArrow] = Button.Right, [Key.Ctrl] = Button.Select, [Key.Enter] = Button.Start, [Key.W] = Button.B, ...
--[[rooms.lua Handles the rooms sub-system in a module. Rooms are basically the Area functionality you may already be familiar with. ------------------ Registered Events: ------------------ rooms_reload Called when all rooms are read and done initializing. Rooms can theoretically be reloaded, which means the event may...
workspace "PML" configurations { "Debug", "Release" } platforms { "Win64", "Linux" } filter { "platforms:Win64" } system "Windows" architecture "x64" project "PML" kind "ConsoleApp" language "C++" targetdir "bin/%{cfg.buildcfg}" files { "src/**.h", "src/**.cpp" } filter { "platfo...
local skynet = require "skynet" local CMD = {} local SOCKET = {} local gate local agent = {} -- require("LuaKit._load"); local coroutine = require "skynet.coroutine" function cancelable_timeout(ti, func) local function cb() if func then func() end end local function cancel()...
local M = {} -- Convert UTF-8 hex code to character function M.u(code) if type(code) == 'string' then code = tonumber('0x' .. code) end local c = string.char if code <= 0x7f then return c(code) end local t = {} if code <= 0x07ff then t[1] = c(bit.bor(0xc0, bit.rshift(code, 6))) t[2]...
local skynet = require "skynet" require "skynet.manager" local netpack = require "netpack" local datacenter = require "datacenter" --local CMD = setmetatable({}, { __gc = function() netpack.clear(queue) end }) local CMD = {} local max_room_player = 4 local players = {} local rooms = {}--{agent, pids={}} key=roomid loca...
function getTime() if lastUpdate >= 900 then conn=net.createConnection(net.TCP, 0) conn:on("connection",function(conn, payload) conn:send("HEAD / HTTP/1.1\r\n".. "Host: google.com\r\n".. "Accept: */*\r\n".. "User-Agent: ...
-- Global Vars local io = require "io" local utils = require "utils" local classEnv = require "class" local class = classEnv.class local inputPath = "input/day003/input.txt" -- local module = { active = {} } --[[ --- Day 3: No Matter How You Slice It --- The Elves managed to locate the chimney-s...
sim.include('/lua/b0RemoteApiServer.lua')
-- Techs that are used in the main file to be ignored -- techname|level (level must be 1-9 a 0 means ignore all -- these local variables can be overiden in the country specific files -- use as the first tech name the word "all" and it will cause the AI to ignore all the techs -- Index IDs for the main Res...
-- stacking if mods["DeadlockStacking"] then -- AAI if data.raw["item"]["wooden-gear-wheel"] then deadlock_stacking.create("wooden-gear-wheel", "__morebobs_bobsStackCrate__/graphics/icons/stacking/gearbearing/wooden-gear-wheel.png", "deadlock-stacking-1", 32) end if data.raw["item"]["stone-tablet"] then ...
import "./ref1.lua" print("ref2fingerprint")
--- Allows for the creation of persistent menu messages similar in style to CS:GO's menu notifications -- @module MenuMessage file.CreateDir("impulse/menumsgs") impulse.MenuMessage = impulse.MenuMessage or {} impulse.MenuMessage.Data = impulse.MenuMessage.Data or {} --- Creates a new MenuMessage and displays it -- @...
--[[ ModuleName : Path : lualib/agent/character.lua Author : jinlei CreateTime : 2020-10-11 15:48:05 Description : --]] local sproto_helper = require "common.utils.sproto_helper" Character = Object:inherit() function save_account() skynet.call(database, "lua", "update_by_id", "account", accountid, account_data) end ...
-- premake5.lua require("../source/build/overrides") require("../source/build/buildops") require("../source/build/workspace") require("../source/build/staticlib") require("../source/build/application") require("../source/build/fltk") -- override functions utOverridePremakeFunctions() -- workspace utGenerateWorkspace(...
RegisterCommand('discord', function)() TriggerEvent('chat:addMessage', { color - {0,0,255} multiline = true, args = {'Discord', 'discord.gg/changeme'} }) TriggerServerEvent('discord:discord') end) -- /discord RegisterNetEvent('discord:sendMess...
local api, s = ... local util = require('wowless.util') for _, line in ipairs({ util.strsplit('\n', s) }) do api.SendEvent('EXECUTE_CHAT_LINE', line) end
local baseHTTP = require("baseHTTP") --- Класс роутинга DELETE запроса local delete = { entry = baseHTTP.const.entrys.delete, --- Функция вызываемая из базового класса -- Поведение при вызове метода DELETE -- DELETE kv/{id} - удалить данные по ключу -- DELETE возвращает 404 если такого ключа нет ...
--[[ Custom Drug Script (Weed) V1.0 Credits - Dynamic_eG#0001 Discord: https://discord.gg/mw4uMJp /////License///// Do not reupload/re release any part of this script without my permission ]] vRP = Proxy.getInterface("vRP") x, y, z = 2210.900390625,5577.88671875,52.898094177246 --...
---[[-----------------]]--- -- WhichKey binds -- ---]]-----------------[[--- local mappings = require("doom.utils.mappings") local config = require("doom.core.config").config local is_plugin_disabled = require("doom.utils").is_plugin_disabled -- Additional options for mappings local opts = { silent = true } -...
slot0 = class("NewYearSnackPage", import("...base.BaseActivityPage")) slot0.OnInit = function (slot0) slot0.progressTpl = slot0:findTF("ProgressTpl") slot0.progressTplContainer = slot0:findTF("ProgressList") slot0.progressUIItemList = UIItemList.New(slot0.progressTplContainer, slot0.progressTpl) slot0.helpBtn = sl...
--- <b>TablesModel</b> for use when modelling objects based on database table rows. -- <br /> -- -- @class module --[[ module 'model/_tables' --]] local BaseModel = require( 'model/base' ) local TablesModel = class( 'TablesModel', BaseModel ) TablesModel.static.connectionSettings = {} --- Derived classes provide t...
local lgi = require 'lgi' local cairo = lgi.cairo local GLib = lgi.GLib local Gtk = lgi.Gtk math.randomseed(os.time()) local canvas = Gtk.DrawingArea { expand = true } local window = Gtk.Window { width_request = 500, height_request = 400, title = 'gradient', resizable = false, canvas } local c1,c2,c3 = ...
map = { { 0, 0, 0, 0, 0, 1, 0, 0, 0, 3, }, { 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, }, { 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, }, { 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, }, { 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, }, { 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, }, { 2, 1, 0, 1, 0, 1, 0, 0, 1, 0, }, { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, }, { 0, 1, 0, 1, 0, 0, 0,...
class "List" function List:__init(p_Size) self.m_Data = {} if p_Size ~= nil then -- TODO end end function List:__index(p_Index) return self.m_Data[p_Index] end -- Causes crash -- function List:__newindex(p_Index, p_Value) -- self.m_Data[p_Index] = p_Value -- end function List:__tostring() return to...
---------FOR THIRST CHANGE HUNGER TO "Thirst"!!!---------- getglobal game getfield -1 Players getfield -1 LocalPlayer getfield -1 playerstats getfield -1 Hunger pushnumber 1000 setfield -2 Value
--[[ Draconic Control v1.3 for OpenComputers by XyFreak Website: http://tenyx.de/draconic_control/ --]] local draconic_control = require("draconic_control"); local event = require("event"); local shell = require("shell"); local args = shell.parse(...); if #args == 0 then io.write("Usage: draconic_control ...
----------------------------------- -- Area: Davoi -- Mob: Davoi Mush -- Note: PH for Blubbery Bulge ----------------------------------- local ID = require("scripts/zones/Davoi/IDs"); require("scripts/globals/mobs"); function onMobDeath(mob, player, isKiller) end; function onMobDespawn(mob) tpz.mob.phOnDespawn(m...
-- API function adv_core.check_pouch(name) local pouch = minetest.deserialize(adv_core.mod_storage:get_string(tostring(name) .. "pouch")) if pouch == nil then return false else return true end end function adv_core.load_pouch(name) local pouch = minetest.deserialize(adv_core.mod_storage:get_string(tostring(n...
function on_force_banter_line(name, params) if name == "NpcBanter1" then return on_npc_banter1() elseif name == "NpcBanter2" then return on_npc_banter2() elseif name == "NpcBanter3" then return on_npc_banter3() end return true end function on_npc_banter1() quest_state...
local ok, tree = pcall(require, 'nvim-tree') if not ok then return end local M = {} local config = { disable_netrw = true, hijack_netrw = true, open_on_setup = false, ignore_buffer_on_setup = false, ignore_ft_on_setup = {}, auto_reload_on_write = true, open_on_tab = false, hijack_cursor = false, u...
local Event = require('events.Event') local CompositeEvent = require('events.CompositeEvent') local EventManager = require('events.EventManager') local Process = require('processes.Process') local ProcessManager = require('processes.ProcessManager') local OpenMainMenuEvent = require('game.even...
-- Copyright 2016 Hannu Nyman -- Copyright 2017 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 local sys = require("luci.sys") local util = require("luci.util") local data = util.ubus("service", "get_data", "name", "adblock") or { } local dnsFile1 = sys.exec("fi...