content
stringlengths
5
1.05M
function dxDrawImageOnElement(element, image, distance, height, size, r, g, b, a) local x, y, z = getElementPosition(element) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local width = width or 1 local checkBuildings = checkBuildin...
local L = BigWigs:NewBossLocale("Yan-Zhu the Uncasked", "ptBR") if not L then return end if L then L.summon_desc = "Avisa quando Yan-Zhu summona um Cervejante Maltado Leveduro. Ele pode lançar |cff71d5ffFerment|r para curar o chefe." end
-- ghostbin down lol -- for i=1,500 do -- change 500 with any value game.ReplicatedStorage.Events.OutfitChang:FireServer("Hat", "1513257578") wait(0.1) for i,v in pairs(game:GetService("Players").LocalPlayer.Character:GetDescendants()) do if v:IsA("Hat") or v:IsA("Accessory") then v.Handle.Mesh:Destroy() v.Parent = g...
-- "13662e2b83aaf678a0fd14ce3e6d5cba" -- "&groupId=13662e2b83aaf678a0fd14ce3e6d5cba" -- "&sobotFlag=3" -- "&groupId=13662e2b83aaf678a0fd14ce3e6d5cba&sobotFlag=3" function strOrNum(v) return tonumber(v) and v or "\""..v.."\"" end function printT( t, n ) n = n or 0 local space = string.rep("\t", n) pri...
Config = {} -- The currency prefix to be used Config.CurrencyPrefix = '$' -- Enables or disables ESX job restriction Config.RestrictToCertainESXJobs = true -- Determines which ESX jobs are able to use the meter (if RestrictToCertainESXJobs is true) Config.JobsThatCanUseMeter = {'taxi'} -- Enables or Disables the ve...
-------------------ModuleInfo------------------- --- Author : jxy --- Date : 2020/02/16 00:00 --- Description : 数组封装类 --- https://github.com/JomiXedYu/JxCode.LuaSharp ------------------------------------------------ ---@class SysLib.Collections.List : SysLib.Object local List, base = class.extends("SysLi...
print("graphics!") print(context) local texture = context:CreateResizableRenderTarget(EFormat.E_FORMAT_B8G8R8A8_UNORM, true, true) local val = context:CreateResizableRenderTarget(0, true, true) print(val) function SetupContext() end
--[[ Luci statistics - irq plugin diagram definition (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> 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...
vr_hugepage_config_table = {} vr_hugepage_config_table[1] = {} vr_hugepage_config_table[1].field_name = "vhp_op" vr_hugepage_config_table[1].ProtoField = ProtoField.int8 vr_hugepage_config_table[1].base = base.DEC vr_hugepage_config_table[1].append_value = { branch = { prepend =...
local Prop = {} Prop.Name = "Bank Of America" Prop.Government = true Prop.Doors = { Vector( 1940.9699707031, -51.5, 202 ), Vector( 1945.0300292969, -51.5, 202 ), Vector( 1783.5, 179.19999694824, 203 ), Vector( 1783.5, 84.800003051758, 203 ), Vector( 1365, 27, 194.25 ), } GM.Property:Register( Prop )
return { code = 101, key = "ROLE_CREATE_NAME_EMPTY", }
-- Colorspace conversions -- Assumptions: -- RGB is CIE RGB -- RGB is float and -- image is depth * width * height (e.g. 3*1920*1080 for FHD) -- Images are all colored (3 channels) -- For each colorspace, indices correspond to the letters -- (e.g. im[1] = R, im[2] = G, im[3] = B) local dlt = require('dlt._env') dlt...
----------------------------------- -- Area: Windurst Woods -- NPC: Retto-Marutto -- Guild Merchant NPC: Bonecrafting Guild -- !pos -6.142 -6.55 -132.639 241 ----------------------------------- local ID = require("scripts/zones/Windurst_Woods/IDs") require("scripts/globals/shop") require("scripts/globals/crafting") re...
class("MetaCharacterTacticsLevelUpCommand", pm.SimpleCommand).execute = function (slot0, slot1) print("63309 skill levelup", tostring(slot3), tostring(slot4)) pg.ConnectionMgr.GetInstance():Send(63309, { ship_id = slot1:getBody().shipID, skill_id = slot1.getBody().skillID }, 63310, function (slot0) if slot0.re...
local cachedGamemodeList local recacheInterval = 5000 --ms local lastRecacheTime = 0 function getCachedGamemodeList() if getTickCount() - lastRecacheTime > recacheInterval then cachedGamemodeList = getGamemodes() lastRecacheTime = getTickCount() end return cachedGamemodeList end
local print = print local tconcat = table.concat local tinsert = table.insert local srep = string.rep local type = type local pairs = pairs local tostring = tostring local next = next local Table = {} function Table.toString(root) local cache = { [root] = "." } local function _dump(t, space, name) ...
local GameAtmosphere = game:GetService("Atmosphere") local GameSky = game:GetService("Sky") local Players = game.Players Players.PlayerAdded:Connect(function() GameAtmosphere.SetAtmosphere(game.Settings:WaitForChild("AtmosphereConfig").Instance) GameSky.SetSky(game.Settings:WaitForChild("GameSky").Instance) ...
return { { desc = "对重樱群岛单位造成伤害提高5.0%", addition = { "5.0%(+2.2%)" } }, { desc = "对重樱群岛单位造成伤害提高7.2%", addition = { "7.2%(+2.2%)" } }, { desc = "对重樱群岛单位造成伤害提高9.4%", addition = { "9.4%(+2.2%)" } }, { desc = "对重樱群岛单位造成伤害提高11.6%", addition = { "11.6%(+2.2%)" } }, { desc = "对重樱群...
--[[ Filename: StatsButtonViewer.lua Written by: dbanks Description: Widget that displays one or more stats in closeup view: text and graphics. --]] --[[ Services ]]-- local CoreGuiService = game:GetService('CoreGui') --[[ Modules ]]-- local StatsUtils = require(CoreGuiService.RobloxGui.Modules.Stats.Stat...
----------------------------[GO TO PLAYER]--------------------------------------- function gotoPlayer(thePlayer, commandName, target) if exports.mrp_integration:isPlayerTrialAdmin(thePlayer) or exports.mrp_integration:isPlayerSupporter(thePlayer) or exports.mrp_integration:isPlayerScripter(thePlayer) or exports.mrp_...
local PANEL = {} function PANEL:Init() self:TDLib() :ClearPaint() local w,h = self:GetParent():GetParent():GetWide()-260, self:GetParent():GetParent():GetTall()-28 local amount = vgui.Create("DTextEntry", self) amount:SetSize(200,30) amount:SetFont("DustCode_Normal") amount:SetNumeric(true) //amount:SetText...
Pathfinding = {}; require('pathfinding/math'); require('pathfinding/point'); require('pathfinding/polygon'); require('pathfinding/polygrid');
-- package: example local gopkg = _G["github.com/edwingeng/go2lua/example"] do local g = _G local newEnv = setmetatable({}, { __index = function (t, k) local v = gopkg[k] if v == nil then return g[k] end return v end, __newindex = gopkg, }) _E...
---@class MapObjects : zombie.Lua.MapObjects ---@field private onNew HashMap|Unknown|Unknown ---@field private onLoad HashMap|Unknown|Unknown ---@field private tempObjects ArrayList|Unknown ---@field private params Object[] MapObjects = {} ---@public ---@return void function MapObjects:Reset() end ---@public ---@para...
-------------------------------- -- @module EventListenerPhysicsContactWithGroup -- @extend EventListenerPhysicsContact -- @parent_module cc -------------------------------- -- @function [parent=#EventListenerPhysicsContactWithGroup] hitTest -- @param self -- @param #cc.PhysicsShape physicsshape -- @param #cc.Physic...
local util = require "resty.requests.util" local pairs = pairs local concat = table.concat local setmetatable = setmetatable local strformat = string.format local _M = { _VERSION = "0.0.1"} local mt = { __index = _M , _ID = "FIELDS"} local function format_header_param_html5(name, value) -- todo _replace_multiple...
local Package = game:GetService("ReplicatedStorage").Fusion local Fusion = require(Package) return function() it("should load with the correct public APIs", function() expect(Fusion).to.be.a("table") local api = { New = "function", Children = "table", OnEvent = "function", OnChange = "function", ...
LANGUAGE = { globalMapDeleteLabelsConfirm = "Are you sure you want to remove all labels?", globalMapDeleteLabels = "Remove all labels", globalMapLabel = "Label", globalMapPlaceholderLabel = "Enter the label name", globalMapLabelName = "Label Name", globalMap = "Map", globalMapYOU = "YOU", globalMapCursor = "Pre...
-- REGISTER THE SKILLS skills.register_skill(SKILL_WOOD, { desc = 'Wood', max_level = 10, level_exp = 3 }) skills.register_skill(SKILL_STONE, { desc = 'Stone', max_level = 10, level_exp = 5 }) skills.register_skill(SKILL_METAL, { desc = 'Metals', max_level = 20, level_exp = 9 }) skills.register_skill(SKILL_CRYSTAL, { d...
endor_bloodseeker_mite_queen_lair_neutral_small = Lair:new { mobiles = {{"bloodseeker_mite_queen",1},{"bloodseeker_mite_guardian",2}}, spawnLimit = 15, buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_mound_small_evil_fire_green.iff"}, buildingsEasy = {"object/tangible/lair/base/poi_all_lair_mound_small...
local fn = vim.fn -- Automatically install packer local install_path = fn.stdpath("data") .. "/site/pack/packer/opt/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then packer_bootstrap = fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path, }) print(...
Locale = require("delayedLoad.dlua").new("localeCore.dlua"); function LANG(idTxt) return Locale.lang(idTxt); end function lang(idTxt) return Locale.lang(idTxt); end function tryLang(idTxt) return Locale.tryLang(idTxt); end function tryLANG(idTxt) return Locale.tryLang(idTxt); end return Loca...
-- Copyright (c) 2019 <dev@brigid.jp> -- This software is released under the MIT License. -- https://opensource.org/licenses/mit-license.php local mode, name = ... local data = io.read "*a" local size = #data if mode == "cxx" then io.write(("static const char %s_data[] = {"):format(name)) for i = 1, size do ...
loadstring(game:HttpGet("https://pastebin.com/raw/VwWEebSy", true))()
magis_bane_poet = { cast = function(player) local castable = {} local maxX = 8 local maxY = 7 if player.x < 8 then maxX = maxX + (8 - player.x) end if player.y < 8 then maxY = maxY + (8 - player.y) end if player.x > getMapXMax(player.m) - 8 then maxX = maxX + 9 - (getMapXMax(player.m) - pla...
DebuffMe = DebuffMe or {} local DebuffMe = DebuffMe local LAM2 = LibAddonMenu2 local DebuffToAdd = { name = "", abbreviation = "", } local DebuffSelected = "" local function GetFormattedAbilityNameWithID(id) --Fix to LUI extended conflict thank you Solinur and Wheels local name = DebuffMe.CustomAbilityNameW...
require('link_elements') require('list') require('time_util') --[[ Link ligts as follows: Unit 1: Hours 0-5 Unit 2: Hours 6-11 Unit 3: Minute 0-8 Unit 4: Minute 9-17 Unit 5: Minute 18-26 Unit 6: Minute 27-35 Unit 7: Minute 36-44 Unit 8: Minute 45-53 Unit 9: Minute 54-59 Link lights, in ascending order, starting at m...
{ {"pelvis", {"__userdata", "vector3", 0, 0.033013, -0.015986, }, }, {"lowerback", {"__userdata", "vector3", 2e-06, 0.087406, 0.003026, }, }, {"upperback", {"__userdata", "vector3", 0, 0.10988, 0, }, }, {"LowerNeck", {"__userdata", "vector3", -0.000452, 0.040902, -0.007897, }, }, {"Neck", {"__userdata", "vector3", 0,...
function riddim.plugins.commands(bot) local command_pattern = "^%"..(bot.config.command_prefix or "@").."([%a%-%_%d]+)(%s?)(.*)$"; local direct_address_pattern = false; if bot.config.nick then direct_address_pattern = "^"..bot.config.nick.."[,: ]+([%a%-%_%d]+)(%s?)(.*)"; end local function process_command(even...
local cjson = require "cjson" local helpers = require "spec.helpers" for _, strategy in helpers.each_strategy() do describe("Plugin: oauth2 (invalidations) [#" .. strategy .. "]", function() local admin_client local proxy_ssl_client local db local bp lazy_setup(function() bp, db = helpe...
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then return; end local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_shutnik" ) local utils = require(GetScriptDirectory() .. "/util") local mutil = requ...
local cv = require 'cv._env' local ffi = require 'ffi' ffi.cdef[[ struct TensorWrapper niBlackThreshold(struct TensorWrapper src, struct TensorWrapper dst, double maxValue, int type, int blockSize, double delta); ]] local C = ffi.load(cv.libPath('ximgproc')) function cv.niBlackThreshold(t) local argRules = { ...
while true do print("test service") os.sleep(3) end
local bfc = buildM.updater.bldg_from_components local skip = buildM.updater.skip_building skip("barreling-pump") --[[ bfc({bldg = "burner-ore-crusher", tier = 0, components = {"burner-unit", {"stone-wheel", 2}} }) bfc({bldg = "ore-crusher", components = {{"ore-crusher-a1", 1}, {"ore-crusher-c1", 1}} }) bfc({bldg = "o...
-- config.lua for project: Attack of the Cuteness Game -- For http://MasteringCoronaSDK.com -- Copyright 2013 J. A. Whye. All Rights Reserved. -- cpmgen config.lua application = { content = { width = 320, height = 480, scale = "letterbox", fps = 30, antialias = false, xalign = "center", yalign = "center...
local M = {} M.unpack = unpack and unpack or table.unpack M.ifirst = 1 function M.ilast(tbl) return #tbl end M.NIL = vim.NIL or {} function M.list(tbl) return tbl end function M.dict(tbl) return tbl end function M.append(tbl, val) tbl[#tbl + 1] = val end function M.buf_get_lines(bufnr) return vim.api....
-- Copyright 2021 SmartThings -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
local lu = require('luaunit') local File = require('lib.file') local Day07 = require('day07.day07') TestDay07 = {} function TestDay07:setUp() self.input_test = File:lines_from('day07/input-test.txt')[1] self.input = File:lines_from('day07/input.txt')[1] end function TestDay07:test_find_minimum_fuel_simple() ...
function onCreate() -- background shit makeLuaSprite('sweetstagebg', 'pompom/pompombg', -500, -300); setScrollFactor('sweetstagebg', 0.4, 0.4); makeAnimatedLuaSprite('sweetstagecity', 'pompom/pompomcity', -300, 260)addAnimationByPrefix('sweetstagecity', 'cityflash', 'pompom city', 24, true) objectPlayAnima...
--[[ -- DEV NOTES -- We can store each house's owner data, price etc as element data -- By storing it as ele. data, we can easily fetch it that way as opposed to querying each time someone opens the UI -- But we will have to update it every time someone buys a house, sets price etc --]] local sX, sY = guiGetScreenSi...
local _M = {} local ffi = require("ffi") ffi.cdef[[ char *synutil_get_unique_hexa_identifier(); void g_free(void *data); int link(const char *oldpath, const char *newpath); ]] local synutil = ffi.load("synutil") function _M.get_unique_hexa_identifier() if synutil == nil then return nil end local cre...
--[[ Treap with Lazy Propagation O(1) operations: -> Adds a constant value to all elements -> Computes the maximum value of the treap -> Computes the minimum value of the treap -> Computes the height of the treap ]] local function SumAll(node, value) if node then node.value = node.value + va...
TeamSelection = CreateModule("TeamSelection", GAME_PHASE_CONFIGURE_GAME ) function TeamSelection:Init () self.gameManager = GetGameManager() self.gameManager:RegisterVariable("TeamSelectTime", self.time) self.time = self:GetStartTime() self.timer = CreateInterval(partial(self.OnTimer, self), 1) self:ListenToUI...
---@diagnostic disable: unused-local local map = require("utils").map require("bufferline").setup({ options = { numbers = "buffer_id", close_command = "bdelete! %d", right_mouse_command = nil, left_mouse_command = "buffer %d", middle_mouse_command = nil, indicator_ico...
#!/usr/bin/env /content/torch/install/bin/luajit require 'image' require 'nn' require 'cutorch' require 'libadcensus' for _, dataset in ipairs({2012, 2015}) do print(('dataset %d'):format(dataset)) torch.manualSeed(42) if dataset == 2012 then n_tr = 194 n_te = 195 path = 'data.kitti' ...
local M = {} function M.setup() require("auto-session").setup { log_level = "info", auto_save_enabled = true, auto_restore_enabled = false, auto_session_enable_last_session = false, } require("session-lens").setup {} require("telescope").load_extension "session-lens" end return M
local lapis = require "lapis" local utils = require "kong.tools.utils" local singletons = require "kong.singletons" local api_helpers = require "kong.api.api_helpers" local ngx = ngx local pairs = pairs local app = lapis.Application() app.default_route = api_helpers.default_route app.handle_4...
-- Global game settings PLAYER_SPEED = 3 PLAYER_R = 2 PLAYER_SLOW_SPEED = PLAYER_SPEED / 2 PLAYER_MAX_HP = 100 PLAYER_BULLET_SPEED = 6 PLAYER_BULLET_R = 2 PLAYER_BULLET_DMG = 27 POWERUP_R = 16 POWERUP_SPEED = 1 POWERUP_VALUE = 3 POWERUP_SCORE_MULTIPLIER = 1000 BOSS_R = 64 BOSS_MAX_HP = 1000000 BOSS_SPEED = 0.125 E...
object_building_mustafar_items_must_jedi_relic_statue = object_building_mustafar_items_shared_must_jedi_relic_statue:new { } ObjectTemplates:addTemplate(object_building_mustafar_items_must_jedi_relic_statue, "object/building/mustafar/items/must_jedi_relic_statue.iff")
-- Copyright 2021 SmartThings -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
--[[ The purpose of this file is to enable the train.lua file to 'efficiently' create, load, and save the minibatches ]] local TableUtils = require "Util.TableUtils" local StringUtils = require "Util.StringUtils" local Preprocessor = require "Preprocessor" local Constants = require "Util.Constants" require 'lfs' local...
--[[ Title: Keepwork Base API Author(s): big Date: 2019.11.8 Place: Foshan use the lib: ------------------------------------------------------------ local KeepworkBaseApi = NPL.load("(gl)Mod/WorldShare/api/Keepwork/BaseApi.lua") ------------------------------------------------------------ ]] local Config = NPL.load(...
-- Mouse management function mousemovescreen(how) local screen = hs.mouse.getCurrentScreen() local nextScreen = screen:next() local rect = nextScreen:fullFrame() local center = hs.geometry.rectMidPoint(rect) -- hs.mouse.setRelativePosition(center, nextScreen) hs.mouse.setAbsolutePosition(cente...
Locales['tr'] = { ['cant_hack'] = '~r~bunu hackleyemezsin', ['press_stop'] = 'Durdurmak için [DEL] tuşuna basın', ['max_amount'] = '~r~Maksimum miktara ulaşıldı', ['min_police'] = 'Kasabada soymak için en az ~b~%s polis~s~ olmalı.', ['no_room'] = '~r~ganimeti tutamazsın', }
local out = {} for i=1, #KEYS do out[i] = KEYS[i] end for i=1, #ARGV do out[i+#KEYS] = ARGV[i] end return out
local ViewWorld = {} local Client = script.Parent local Common = game.ReplicatedStorage.Pioneers.Common local ViewTile = require(Client.ViewTile) local ViewUnit = require(Client.ViewUnit) local ClientUtil = require(Client.ClientUtil) local Replication = require(Client.Replication) local World ...
--[[ Buzzards will only eat food laying on the ground already. They will not harvest food. Buzzard spawner looks for food nearby and spawns buzzards on top of it. Buzzard spawners also randomly spawn/ call back buzzards so they have a presence in the world. When buzzards have food on the groun...
H.keymap('n', '<leader>todo', '<cmd>TodoTelescope<cr>')
if not _G.plugin_loaded("gitsigns.nvim") then do return end end require("gitsigns").setup()
local ok = prequire('substitute') if not ok then return end vim.keymap.set('n', 'S', function() require('substitute').operator() end) vim.keymap.set('x', 'S', function() require('substitute').visual() end) vim.keymap.set('n', 'X', function() require('substitute.exchange').operator() end) vim.keymap.set('x', 'X...
dev = {"трећине", "четвртине", "петине", "шестине", "седмине", "осмине"} compare = {"већи", "мањи"}
local Chara = require("api.Chara") local Rand = require("api.Rand") local Charagen = require("mod.elona.api.Charagen") local Text = require("mod.elona.api.Text") local Dialog = require("mod.elona_sys.dialog.api.Dialog") local DeferredEvent = require("mod.elona_sys.api.DeferredEvent") local global = require("mod.elona.i...
vim = vim local api = vim.api local fn = vim.fn path = require 'pandoc.path' local function pandoc(ofiletype) if ofiletype == nil then ofiletype = 'html' end local ifilename = vim.fn.expand('%:p') local outputfolder = path.join(vim.fn.getcwd(0, 0), "build") if vim.fn.isdirectory(outputfolde...
-- -- Created by IntelliJ IDEA. -- User: bking -- Date: 2/21/17 -- Time: 10:02 AM -- To change this template use File | Settings | File Templates. -- cjson = require 'cjson' function sample(encoder, decoder, enc_state, sequence, max_samples, probs) local lsm = nn.LogSoftMax():cuda() if max_samples == nil then...
local week_ts = 604800; local interest = 3.4; local interest_rate = .05; local upper_limit = 1500000; local time_to_get_credit = 10 -- days local limit_base = 50000; local limit_rate = 100; function setCreditData (player, credit, key, data) local credit = tostring (credit); if not exports.mtatr_accounts:is...
local F, C = unpack(select(2, ...)) C.themes["Blizzard_Contribution"] = function() local frame = ContributionCollectionFrame F.SetBD(frame) F.ReskinClose(frame.CloseButton) frame.CloseButton.CloseButtonBackground:Hide() frame.Background:Hide() hooksecurefunc(ContributionMixin, "Update", function(self) if not ...
local a=module('_core','libs/Tunnel')local b=module('_core','libs/Proxy')API=b.getInterface('API')cAPI=a.getInterface('cAPI')src={}a.bindInterface("gcphone",src)vRPclient=a.getInterface("vRP","gcphone")local c=module("_core","libs/Tools")local d=c.newIDGenerator()local e=""function src.checkItemPhone()local _source=sou...
local debug = debug local print = print local ipairs = ipairs local pairs = pairs local string = string local rawget = rawget local info = { file = {} } local trace = {} trace.print = print local function setname(level) info.filename = debug.getinfo(level + 1,"S").short_src if info.file[info.fi...
Lang['ru'] = { ['OpenShop'] = 'Нажмите [~e~ SPACE ~q~], чтобы открыть меню магазина', ['MenuTitle'] = 'Универсальный магазин', ['Category'] = 'Категория', ['Buy'] = 'Купить предметы', ['Sell'] = 'Продавать предметы', ['Food'] = 'Еда', ['Meds'] = 'Медицинский', ['Misc'] = 'Разное', ['FoodMenu'] = 'Меню...
object_tangible_furniture_all_frn_all_tiki_torch_s1 = object_tangible_furniture_all_shared_frn_all_tiki_torch_s1:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_tiki_torch_s1, "object/tangible/furniture/all/frn_all_tiki_torch_s1.iff")
--[[ Licensed according to the included 'LICENSE' document Author: Thomas Harning Jr <harningt@gmail.com> ]] local tostring = tostring local assert = assert local jsonutil = require("json.util") local type = type local _ENV = nil -- Shortcut that works local encodeBoolean = tostring local defaultOptions = { allo...
require "Polycode/Resource" class "Shader" (Resource) FIXED_SHADER = 0 MODULE_SHADER = 1 function Shader:__index__(name) if name == "numSpotLights" then return Polycore.Shader_get_numSpotLights(self.__ptr) elseif name == "numAreaLights" then return Polycore.Shader_get_numAreaLights(self.__ptr) end end func...
local skynet = require "skynet" local clusterd local cluster = {} function cluster.call(node, address, ...) -- skynet.pack(...) will free by cluster.core.packrequest return skynet.call(clusterd, "lua", "req", node, address, skynet.pack(...)) end function cluster.open(port) if type(port) == "string" then skynet....
local ztask = require "ztask" local debugchannel = require "ztask.debugchannel" local CMD = {} local channel function CMD.start(address, fd) assert(channel == nil, "start more than once") ztask.error(string.format("Attach to :%08x", address)) local handle channel, handle = debugchannel.create() local ok, err = ...
#!/usr/bin/env bl --[[ BonaLuna executable generator Copyright (C) 2010-2020 Christophe Delord http://cdelord.fr/bl/bonaluna.html BonaLuna is based on Lua 5.3 Copyright (C) 1994-2017 Lua.org, PUC-Rio Freely available under the terms of the MIT license. --]] do local START_SIG = string.unpack("<I4", "GLUE...
local device = require("device") local update = require("update_init") local repo = "konnected-io/konnected-security" print("Heap: ", node.heap(), "Updater: Checking version") local download_new_manifest = function(tag_name) http.get( "https://github.com/" .. repo .. "/raw/" .. tag_name .. "/src/manifest.json", ...
return {'jiddisch','jiddische','jid','jiddisj','jidden','jiddisje'}
--[[ https://github.com/mattkrins/surfaceGetURL MIT License Copyright (c) 2016 Matt Krins 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 ri...
--[[ Project: SA-MP API Author: LUCHARE All structures are taken from mod_s0beit_sa. Copyright: BlastHack mod_sa is available from https://github.com/BlastHackNet/mod_s0beit_sa/ ]] local sys = require 'SA-MP API.kernel' sys.safely_include 'SA-MP API.samp.0_3_7-R1.stPlayerPool' sys.safely_inclu...
object_building_general_mobile_starport = object_building_general_shared_mobile_starport:new { gameObjectType = 521, planetMapCategory = "starport", childObjects = { {templateFile = "object/tangible/terminal/terminal_travel.iff", x = 28, z = 3, y = 0, ox = 0, oy = -0.70711, oz = 0, ow = 0.70711, cellid = -1, cont...
local CF=CreateFrame("Frame") CF:RegisterEvent("PLAYER_LOGIN") CF:SetScript("OnEvent", function(self, event) local t = { Blizzard_CompactRaidFrames = true, Blizzard_CUFProfiles = true, } -- Thou shalt not hard disable the Raid Frames hooksecurefunc("DisableAddOn", function(addon) if t[addon] then EnableAddOn(ad...
------------------------ ----- Hunger Games ----- ------------------------ local Hideaway = Class(function(self, inst) self.inst = inst end) function Hideaway:Hide(inst) if inst and inst:HasTag('player') and inst.components.hunger then -- TODO kontinuierlich inst.components.sanity:DoDelta(-5) end end return H...
local profile = {}; gcdisplay = gFunc.LoadFile('common\\gcdisplay.lua'); gcinclude = gFunc.LoadFile('common\\gcinclude.lua'); sets = T{ Idle = { Ammo = { Name = 'Coiste Bodhar', AugPath='A' }, Head = 'Nyame Helm', Neck = 'Loricate Torque +1', Ear1 = 'Telos Earring', Ear2 = '...
------------------------------------------------ ----[ VOTEKICK ]-------------------------- ------------------------------------------------ local VoteKick = SS.Commands:New("VoteKick") // Config VoteKick.Limit = 60 // Seconds before can votekick again // Variables VoteKick.Check = {} // Leave this VoteKick.Play...
module(..., lunit.testcase, package.seeall) local common = dofile("common.lua") local http = require("luanode.http") -- Verify that the HTTP server implementation handles multiple instances -- of the same header as per RFC2616: joining the handful of fields by ', ' -- that support it, and dropping duplicates for othe...
--[[ This file is an example scenario showing a number of ways to make use of the containers.lua library. It works based on the "playground" map provided with barebones. This code creates several containers: 1) A backpack container for every hero in the game. This container has an item within their normal ...
-- license:BSD-3-Clause -- copyright-holders:MAMEdev Team --------------------------------------------------------------------------- -- -- frontend.lua -- -- Rules for building frontend -- --------------------------------------------------------------------------- project ("frontend") uuid ("e98e14c4-82a4-4988-b...
--lune/base/Ast.lns local _moduleObj = {} local __mod__ = '@lune.@base.@Ast' local _lune = {} if _lune6 then _lune = _lune6 end function _lune.newAlge( kind, vals ) local memInfoList = kind[ 2 ] if not memInfoList then return kind end return { kind[ 1 ], vals } end function _lune._fromList( obj, l...
local module = {} local CollectionService = game:GetService("CollectionService") local network local statusEffectsV3 = require(game.ServerStorage.statusEffectsV3) local firepits = CollectionService:GetTagged("firepit") local isPlayerNearFirepit = {} local DISTANCE_TO_BE_CLOSE = 15 local buff_data = { icon = "rbx...
isMenuOpened = false local christmasMainMenu = RageUI.CreateMenu(" ", ChristmasConfig.messages["submenu_title"], nil, nil, "noel_banniere","banniere") local christmasMenu = RageUI.CreateSubMenu(christmasMainMenu, " ", ChristmasConfig.messages["christmas_menu_subtitle"], nil, nil, "noel_banniere","banniere") local chris...