content
stringlengths
5
1.05M
ENT.Type = "anim" ENT.PrintName = "SpawnPoint" ENT.Author = "SHOOP DA WHOOP" ENT.Contact = "warspigot.com" ENT.Purpose = "To Spawn People" ENT.Instructions = "You shouldn't be using it yourself"
require('constants') local key_gen_key = "praetor_footman_key_generated" local key_gen = get_creature_additional_property(PLAYER_ID, key_gen_key) if string.len(key_gen) == 0 then clear_and_add_message("PRAETOR_FOOTMAN_PROVIDE_KEY_SID") add_object_to_player_tile("carcassia_footman_key") set_creature_ad...
object_tangible_deed_player_house_deed_diner_house_deed = object_tangible_deed_player_house_deed_shared_diner_house_deed:new { } ObjectTemplates:addTemplate(object_tangible_deed_player_house_deed_diner_house_deed, "object/tangible/deed/player/house/deed/diner_house_deed.iff")
local clock = require('clock') local creds = require("creds") function setupWiFi() print("setting up WiFi") wifi.eventmon.register(wifi.eventmon.STA_CONNECTED, function(t) print("wifi connected") clock.enableNetwork() end) wifi.eventmon.register(wifi.eventmon.STA_DISCONNECTED, function...
-- Title: SaveLoad -- Author: Kalvin Lyle -- Version: 1.0 -- Description: Defold module for performing saves and loads local M = {} local savefile = {} function M.save_to_file(folder, filename, table) assert(type(folder) == "string", "You must provide `folder` of type `string` to perform `load_data()`") assert(typ...
local search = {} search.getDescendantCount = function(obj) if not obj then return end local count = 0 for _, part in pairs(obj:GetDescendants()) do if part:IsA('BasePart') then count += 1 end end return count end search.getDescendantParts = function(obj) if not obj then return end local p...
---------------------------------------------------------------------------- -- LuaJIT MIPSEL disassembler wrapper module. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h --------------------------------------------------------------...
local templateXcent = [[ HEADLEN0<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>application-identifier</key> <string>ARG0</string> <key>get-task-allow</key> <ALLOW/> </dict> </plist> ]] ...
--[[ ############################################################################## Inked Shadow Vaults By: keivamp ############################################################################## ########################################################## LOCALIZED LUA FUNCTIONS ########################################...
local _={} _[54]={} _[53]={} _[52]={} _[51]={} _[50]={} _[49]={} _[48]={} _[47]={} _[46]={} _[45]={} _[44]={} _[43]={} _[42]={} _[41]={} _[40]={} _[39]={} _[38]={} _[37]={text="[1, [99, 12], 3, 4]",tags=_[54]} _[36]={text="l: ",tags=_[53]} _[35]={text="AFTER ERROR",tags=_[52]} _[34]={text="CHECK 2",tags=_[51]} _[33]={t...
while true do io.write("Say something: ") local line = io.read() if line == "quit" then break else print(line) end end
-- Copyright 2022 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 ...
--=========== Copyright © 2018, Planimeter, All rights reserved. ===========-- -- -- Purpose: Pathfinding interface -- --==========================================================================-- local color = color local convar = convar local game = game local math = math local region = region local ...
require 'iupx' require 'iupluacontrols' require 'lfs' local append = table.insert function get_dir (path) local files = {} local dirs = {} for f in lfs.dir(path) do if f ~= '.' and f ~= '..' then if lfs.attributes(path..'/'..f,'mode') == 'file' then append(files,f) ...
local Service = require 'apicast.configuration.service' describe('Service object', function() describe(':credentials', function() describe('backend_version=1', function() it('returns only GET parameters', function() local service = Service.new({ backend_version = 1, credentials...
return { "icons/eq_belt_01_leather050-005", "icons/eq_belt_01_leather050-007", "icons/eq_belt_01_mail050-005", "icons/eq_belt_01_mail050-007", "icons/eq_belt_01_plate050-005", "icons/eq_belt_01_plate050-007", "icons/eq_belt_01_robe050-005", "icons/eq_belt_01_robe050-007", "icons/eq_waist-cloth010-001", "icons/eq_waist-...
----------------------------------------- -- ID: 5759 -- Item: red_curry_bun -- Food Effect: 30 Min, All Races ----------------------------------------- -- TODO: Group effects -- Health 25 -- Strength 7 -- Agility 1 -- Intelligence -2 -- Attack % 23 (cap 150) -- Ranged Atk % 23 (cap 150) -- Demon Killer 4 -- Resist Sle...
-- 自动创建的 data:extend( { { type = "recipe-category", name = "炼丹炉", localised_name = "炼丹炉", localised_description = "从铁锅逐渐进化到传统丹炉可替换", } } ) data:extend( { { type = "recipe-categ...
local Sock = class(utils.Events) Sock.beat = 0 Sock.codes = { DISPATCH = 0, HEARTBEAT = 1, IDENTIFY = 2, STATUS_UPDATE = 3, VOICE_STATE_UPDATE = 4, VOICE_SERVER_PING = 5, RESUME = 6, RECONNECT = 7, REQUEST_GUILD_MEMBERS = 8, INVALID_SESSION = 9, HELLO = 10, HEARTBEAT_ACK = 11, } Sock.gateway = 'wss://gatewa...
--[[ - SKYNET SIMPLE ( https://github.com/viticm/skynet-simple ) - $Id monster.lua - @link https://github.com/viticm/skynet-simple for the canonical source repository - @copyright Copyright (c) 2020 viticm( viticm.ti@gmail.com ) - @license - @user viticm( viticm.ti@gmail.com ) - @date 2020/11/23 13:59 - @uses T...
--[[ Name: drugs_weed.lua ]]-- local weedGrowModels = { [1] = { { mdl = "models/gonzo/weed/weed.mdl", pos = Vector(8.5, 0, 7), ang = "random_yaw", bgroups = { [1] = 0, }, }, { mdl = "models/gonzo/weed/weed.mdl", pos = Vector(0, 8.5, 7), ang = "random_yaw", bgroup...
#! /usr/bin/env lua local M = require 'posix.sys.socket' -- Packet socket loopback test -- Need CAP_NET_RAW, otherwise get "Operation not permitted" if M.AF_PACKET ~= nil then local fd = assert(M.socket(M.AF_PACKET, M.SOCK_RAW, 0)) assert(M.bind(fd, {family=M.AF_PACKET, ifindex=M.if_nametoindex("lo")})) a...
-- © 2015 David Given. -- WordGrinder is licensed under the MIT open source license. See the COPYING -- file in this distribution for the full text. local style = 0 ----------------------------------------------------------------------------- -- Build the status bar. do local function cb(event, token, terms) loca...
local util = require("lsp-rooter.util") local M = {} M.options = {} local defaults = { -- manual_mode = false, ignore_lsp = {}, -- on_fail = function () -- end, } -- TODO options validation M.setup = function (options) M.options = vim.tbl_deep_extend("force", {}, defaults, options or {}) -- Change table...
-- fixed-point operator local Z = function (le) local a = function (f) return le(function (x) return f(f)(x) end) end return a(a) end -- non-recursive factorial local F = function (f) return function (n) if n == 0 then return 1 else retu...
require("iupcdaux") -- utility module used in some samples w = 100 h = 100 image_rgb = cd.CreateImageRGB(w, h) size = w * h i = 0 while i < size do if i < size/2 then image_rgb.r[i] = 255 image_rgb.g[i] = 0 image_rgb.b[i] = 0 else image_rgb.r[i] = 0 image_rgb.g[i] = 0 image_rgb.b[i] = 25...
-- title: rawkey -- version: 1.0.0 -- author: Andrew Zyabin -- desc: a library cart -- input: keyboard -- script: lua -- license: MIT --[[ This is a library cartridge which code you can use in your own games for the TIC. The MIT License for that is included below. ]]-- --[[ MIT License Copyright (c) 2018-2018, Andre...
-- Copyright (c) 2017 Raihan Kibria -- -- 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, merge, pub...
local util = require("nightfox.util") local cmd = util.is_nvim and vim.cmd or vim.command local fmt = string.format local M = {} local function get_filetype() return vim["bo"] and vim.bo.filetype or vim.eval("&filetype") end function M.attach() vim.g.nightfox_debug = true require("nightfox.lib.compile").clean(...
local plugin_name = 'pg.user_tables' local every = 60 local sql_user_tables = read_file_in_plugin_dir("user_tables.sql") local sql_user_tables_io = read_file_in_plugin_dir("user_tables_io.sql") snapshot ...
require 'cairo' -- Set the path to images below. IMAGEPATH = "/home/<YOUR PATH HERE>/.conky/images/" function conky_main() if conky_window == nil then return end local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, co...
huff_quest_tusken_king_rifle = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/loot/quest/rifle_quest_tusken.iff", craftingValues = {}, customizationStringNames = {}, customizationValues = {}, skillMods = { }, randomDotChance = 625, junkDealerTypeNeeded...
function zearlybot_idle() return { filename = "__ZEarlyBots__/Graphics/Entity/early-logistic-robot/early-logistic-robot.png", priority = "high", line_length = 16, width = 41, height = 42, frame_count = 1, shift = util.by_pixel(0, -3), direction_count = 16, y = 42, ...
-- Apply or remove binary patches at runtime. --[[=begin binpatch ======== Implements functions for in-memory binpatches. See `binpatches`. =end]] local bp = require('binpatch') function run_command(cmd,name) local pfix = name..': ' local patch, err = bp.load_dif_file(name) if not patch then d...
local STORE_ITEM_HEADER_DEFAULT_PADDING = 60 local STORE_ITEM_HEADER_SELECTED_DEFAULT_PADDING = 0 local STABLE_ITEM_POST_PADDING = 20 local STORE_WEAPON_GROUP = 1 local STORE_HEAVY_ARMOR_GROUP = 2 local STORE_MEDIUM_ARMOR_GROUP = 3 local STORE_LIGHT_ARMOR_GROUP = 4 local STORE_JEWELRY_GROUP = 5 local STORE_SUPPLIES_GR...
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Teams\MarineTeam\server.lua -- - Dragon local originalMarineTeamOnResetComplete originalMarineTeamOnResetComplete = Class_ReplaceMethod("MarineTeam", "OnResetComplete", function(self) originalMarineTeamOnR...
local API = {} local names = { "Krushman", "Marceline", "Joosipher", "Rawling", "Zeppo", "Catamarsipan", "Fishman", "Temmie", "Wriggs", "ABagOfCats", "Loppy", "AngleDancer", "TanksALot", "Panzo", "Pandaman", "BangShootyMan323", "SharkTank", "Apples", "Poppinjay", "ReDeMo", "-=...
local git = require("yanil/git") local devicons = require("yanil/devicons") local config = { colors = require("yanil/colors"), commands = require("yanil/commands"), } local M = {} function M.setup(opts) opts = opts or {} config.colors.setup() config.commands.setup() git.setup(opts.git)...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. pistol_dl44 = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/weapon/ranged/pistol/pistol_dl44.iff", craftingValues = { {"mindamage",11,24,0}, {"maxdamage",63,127,0}, {"attackspeed",5.3,3.4,0}, {...
local raid local meta = FindMetaTable('Player') function meta:IsPartakingRaid() if raid then if raid.attacker == self or raid.attacker:IsAlly(self) then return 1 elseif raid.victim == self or raid.victim:IsAlly(self) then return 2 end end end function meta:IsRaiding(ply) return self:IsPartakingRaid() =...
---Weather cloud. After creating, set a texture and then add it to the ac.weatherClouds list which would add it to the scene. ---@class ac.SkyCloudBase ---@field position vec3 "Cloud position." ---@field size vec2 "Cloud size, X for width and Y for height." ---@field color rgb "Cloud color (final shading color is mater...
-- Copyright 2016 Marcel Haupt -- -- 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 ...
-- test_spec.lua _G._TEST = true package.loaded["dein/types/git"] = nil local git = require "dein/types/git" print(vim.inspect(git)) assert(git._join_paths('aaa', 'bbbbbbb')=='aaa/bbbbbbb') print(git._join_paths('aaa', '/bbbbbbb')) print(git._join_paths('/aaa', '/bbbbbbb')) print(git._is_absolute('/home/fool')) print(...
local info = { isActive = false, text = nil, onConfirm = nil } function info:show(text, onConfirm) self.text = text self.onConfirm = onConfirm self.isActive = true end function info:close() self.text = nil self.onConfirm = nil self.isActive = false end function info:control_...
local ActionType = require(script.Parent.ActionType) local createAction = require(script.Parent.createAction) return function(remoteEvent, history) history = history or {} return function(player) local action = createAction(ActionType.Setup, { history = history, }) remoteEvent:FireClient(player, action) ...
-------------------------------- -- BillBoardTest -------------------------------- local BillBoardTest = class("BillBoardTest", function () return cc.Layer:create() end) function BillBoardTest:ctor() self._camera = nil self._layerBillBoard = nil self._billboards = {} self:init() end function BillB...
---- Roleplay: Prison GM.Name = "Roleplay: Prison" GM.Author = "zana" GM.Email = "N/A" GM.Website = "N/A" GM.TeamBased = true GM.SecondsBetweenTeamSwitches = 0 COLOR_WHITE = Color(255, 255, 255, 255) COLOR_TRANSPARENT = Color(255, 255, 255, 0) COLOR_BLACK = Color(0, 0, 0, 255) COLOR_RED = Color(255, 0, 0,...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") include("commands.lua") util.AddNetworkString("ShowLetter") util.AddNetworkString("KillLetter") function ENT:Initialize() self:SetModel("models/props_c17/paper01.mdl") DarkRP.ValidatedPhysicsInit(self, SOLID_VPHYSICS) self:SetMo...
-- All generators are parameterized by a configuration environment -- 'e'. A single flat namespace is a little messy, but at the current -- complexity level that seems to be the simplest way to do render -- parameterization. -- See notes at the bottom. local list = require('lib.tools.list') local logsvg = {} local...
--- -- @author wesen -- @copyright 2018-2019 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- --- -- Returns the output rows for a ParsedTable. -- -- @type TableRenderer -- local TableRenderer = {} --- -- The numbers of tabs per column for the current ParsedTable -- -- @tfield int|nil numbersOfTabsPerColum...
return block { name="myblock", license="MIT", meta_data="", port_cache=true, types = { { name="vector", class='struct' }, -- Enum will follow once implemented in C { name="robot_data", class='struct' }, }, configurations= { { name="joint_limits", type_name="double", le...
pfUI.api = { } -- load pfUI environment setfenv(1, pfUI:GetEnvironment()) -- [ strsplit ] -- Splits a string using a delimiter. -- 'delimiter' [string] characters that will be interpreted as delimiter -- characters (bytes) in the string. -- 'subject' [string] String to s...
----------------------------------- -- -- Zone: Norg (252) -- ----------------------------------- local ID = require("scripts/zones/Norg/IDs") require("scripts/globals/conquest") require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/chocobo") ----------------------------------...
-- Copyright (c) 2019, Barcelona Supercomputing Center (BSC) -- Script that allows targeting an arbitrary number of streams. -- Streams are spread among all connections in a round-robin fashion. -- Streams are composed of different consecutive segments; similarly to -- MPEG-DASH MPD format). Both streams and segment i...
package.cpath = "luaclib/?.so" local socket = require "client.socket" local crypt = require "client.crypt" if _VERSION ~= "Lua 5.3" then error "Use lua 5.3" end local fd = assert(socket.connect("127.0.0.1", 8001)) local function writeline(fd, text) socket.send(fd, text .. "\n") end local function unpack_line(tex...
require("lualib_bundle"); __TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 5,["5"] = 5,["6"] = 5,["7"] = 5,["8"] = 9,["9"] = 10,["10"] = 11,["11"] = 9,["12"] = 14,["13"] = 15,["14"] = 14,["15"] = 5,["16"] = 5}); local ____exports = {} ____exports.default = (function() ____exports.default = __TS__Class(...
import("calibration") dt = DataFrame{ meat_prince_increase = {}, current_year = {}, current_week = {}, current_day = {}, prob_eat_meat_t0 = {}, prob_eat_meat_day = {}, std_meat_day = {}, tax_meat_day = {}, low_eat_meat_t0 = {}, low_prob_eat_meat_day = {}, low_std_meat_day =...
local awful = require("awful") local gears = require("gears") local beautiful = require("beautiful") local naughty = require("naughty") local hotkeys_popup = require("awful.hotkeys_popup").widget local lain = require("lain") local switcher = require("widgets/my-switcher") local helpers = require("utils.helpers") requir...
for i=12, 100 do surface.CreateFont( "ui."..i, { font = "Arial", size = i }) surface.CreateFont( "uib."..i, { font = "Arial", size = i, weight = 1024 }) surface.CreateFont( "ui.text."..i, { font = "Segoe UI Light", size = i, weight = 100, } ) surface.CreateFont( "ui.textb."..i, { font = "Segoe UI Light", size =...
-- s = Sprite("HelloWorldDemo/HelloWorld.png"); -- s.SetEffects(ImageEffects(100,-100,400,400)); -- f = Font("Hello World Font renderer"); -- f.SetPos(Vector(20,-150)); -- runProcess(function() -- local isserver = false -- local isclient = false -- while true do -- -- if(input.Press(string.byte('S'))) then -- ...
RegisterNetEvent("SquadCreated") RegisterNetEvent("SquadMemberJoined") RegisterNetEvent("SquadMemberLeft") RegisterNetEvent("LeftSquad") RegisterNetEvent("JoinedSquad") RegisterNetEvent("addSquadAdmin") rd = false -- KEEP THIS FALSE, OTHERWISE DEBUG FEATURES WILL BE ENABLED helpTexts = { {"Finding Food and Weapons",...
-- 2019 (c) kontakt@herrsch.de -- client request parser -- runs on every request coming from client to server local hotload = require "hotload" local class = hotload "class" local Header = hotload "header" local Message = hotload "message" local Request = class() function Request:new(transmitter) self.transmitt...
lifeDayOraalarriConvoTemplate = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "lifeDayOraalarriConvoHandler", screens = {} } im_sorry = ConvoScreen:new { id = "im_sorry", leftDialog = "@conversation/lifeday04b:s_5bd07d67", -- (Translated from Shyriiwook) I'm sorry, This is a pri...
local path = minetest.get_modpath("mazewheel") dofile(path.."/car.lua") minetest.register_alias("azewheel:car", "mazewheel:car") dofile(path.."/bus.lua") minetest.register_alias("azewheel:bus", "mazewheel:bus") dofile(path.."/bike.lua") minetest.register_alias("azewheel:bike", "mazewheel:bike") dofile(path.."/neonb...
-- https://github.com/neovim/neovim/pull/13479 local opt = vim.opt opt.hidden = true opt.relativenumber = true opt.showmode = false opt.updatetime = 1000 opt.hlsearch = false opt.scrolloff = 10 opt.autoindent = true opt.cindent = true opt.smartindent = true opt.expandtab ...
--[[ ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php. https://gist.github.com/2838755 Example: ProFi = require 'ProFi' ProFi:start() some_function() another_function() coroutine.resume( some_coroutine ) ProFi:stop() ProFi:writeReport( 'MyProfilingReport.txt' ) API: *A...
local path = require("path") local patterns = require("sg.patterns") local recognizers = require("sg.recognizers") local indexer = "sourcegraph/lsif-java" local outfile = "dump.lsif" local is_proejct_structure_supported = function(base) return base == "pom.xml" or base == "build.gradle" or base == "build.gradle.k...
--[[ lua-socket module is required for UDP client luarocks install luasocket ]] -- Notify minify UDP server from newly cached content return function() local socket = require("socket") local udp = socket.udp() udp:setpeername("127.0.0.1", 2222) udp:settimeout(1) udp:send(ngx.var.host .. ngx.var.request...
local rsp =[[{ "status":"OK", "message":"", "result":{ "symbol":"601228", "baseDate":"20210615", "marketCd":"1", "marketCd":"1", "DJ": "8029201.00", "sellTotal": "114719.40000", "sellPrice": "3.220", "stockUD": "0.008", "volumeRatio": "-15.7800", ...
fx_version 'cerulean' game 'gta5' author "WowJesus" server_script 'dist/src/server.js'
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceWeibo_pb', package.seeall) local BCEWEIBO = protobuf.Descriptor(); local BCEWEIBO_ACCOUNT_FIELD = protobuf.FieldDescriptor(); local BCEWEIBO_WEIBO_FIELD = protobuf.FieldDescriptor(); local BCEWEIBO_OPTYPE_FIELD = protobuf.FieldD...
--!A cross-platform build utility based on Lua -- -- 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...
workspace "Chroma" architecture "x64" startproject "Polychrome" configurations { "Debug", "Release", "Dist" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" include "Dependencies.lua" group "Dependencies" incl...
local lu = require("test.luaunit") local Effect = require("reactivity.effect") local Util = require("vlua.util") local slice = Util.slice local track, trigger, ITERATE_KEY, effect, stop = Effect.track, Effect.trigger, Effect.ITERATE_KEY, Effect.effect, Effect.stop local TriggerOpTypes = require("re...
local t = Def.ActorFrame{ OnCommand=function(s) ChangeGame() ChangeLanguage() if not FILEMAN:DoesFileExist("Save/ThemePrefs.ini") then Trace("ThemePrefs doesn't exist; creating file") ThemePrefs.ForceSave() end if SN3Debug then SCREENMAN:SystemMessage("Saving ThemePrefs.") end ThemePrefs...
local Native = require('lib.stdlib.native') ---@class Lightning : Handle local Lightning = class('Lightning', require('lib.stdlib.oop.handle')) ---destructor ---@return boolean function Lightning:destructor() --@debug@ checkobject(self, Lightning, 'destructor', 'self') --@end-debug@ return Native.DestroyLight...
-- redis连接模块 -- 需要注意: -- redis基础连接配置需要在这里进行 local _M = {} local redis = require"resty.redis" local cj = require"cjson" local redis_host = "127.0.0.1" local redis_port = "16161" local redis_auth = "asdfFWEFNn" local redis_alive = 300 local dict_alive = 300 local INFO = ngx.INFO local ERR ...
-- PrintTable( GAMEMODE.Jobs:GetPlayerJob( LocalPlayer() ) ) local function createFrame(classname, parent, x, y, w, h) frame = vgui.Create(classname, parent); frame:SetPos(x, y); frame:SetSize(w, h); if classname == "DFrame" then frame:SetTitle(""); frame:ShowCloseButton(false); frame:SetDraggable(false); e...
----------------------------------------------------- --[[ Name: cl_menu_lost_and_found.lua For: SantosRP By: Ultra ]]-- local Panel = {} function Panel:Init() self:SetTitle( "Lost and Found (Item Recovery)" ) self:SetDeleteOnClose( false ) self.m_pnlItemList = vgui.Create( "SRP_ScrollPanel", self ) self.m_pn...
local opt = vim.opt vim.cmd("filetype plugin indent on") vim.cmd("syntax enable") opt.compatible = false opt.tabstop = 2 opt.shiftwidth = 2 opt.shiftround = true opt.expandtab = true opt.encoding = "utf-8" opt.autoindent = true opt.fileencoding = "utf-8" opt.fileencodings = {"utf-8"} opt.backup = false opt.writebacku...
RegisterClientScript() RegisterClientAssets("placeholder/socle.png") local entity = ScriptedEntity({ IsNetworked = true, Properties = { { Name = "respawntime", Type = PropertyType.Integer, Default = 30 }, { Name = "powerup_entity", Type = PropertyType.Entity, Default = NoEntity } } }) entity.CanSpawn = true e...
KeyIsDown = {}; function makeMyEventReceiver(receiver) for i = 1, irr.KEY_KEY_CODES_COUNT do KeyIsDown[i] = false; end receiver.OnEvent = function(me, event) if event.EventType == irr.EET_KEY_INPUT_EVENT then KeyIsDown[event.KeyInput.Key + 1] = event.KeyInput.PressedDown; end return false; ...
--[[ This project is created with the Clockwork framework by Cloud Sixteen. http://cloudsixteen.com --]] CW_ENGLISH = Clockwork.lang:GetTable("English"); CW_ENGLISH["ExampleFaction"] = "Example Faction"; CW_ENGLISH["ItemExample"] = "Example Item"; CW_ENGLISH["ItemExampleDesc"] = "An example item."; CW_ENGLISH["Attr...
bobmods.lib.remove_recipe_item ("speed-processor", "silver-plate") bobmods.lib.remove_recipe_item ("speed-processor-2", "silver-plate") bobmods.lib.remove_recipe_item ("speed-processor-3", "silver-plate") bobmods.lib.remove_recipe_item ("effectivity-processor", "titanium-plate") bobmods.lib.remove_recipe_item ("effecti...
local Server = require("luatika/server") local Client = require("luatika/client") local Tika = {} local methods = {} local metatable = {} function metatable.__index(tika, key) return methods[key] end local DEFAULT_HOST = "127.0.0.1" local DEFAULT_PORT = "9998" local function start_server(tika) tika.server ...
Auctionator.Config.Create("JOURNALATOR_TOOLTIP_SALE_RATE", "journalator_tooltip_sale_rate", false) Auctionator.Config.Create("JOURNALATOR_TOOLTIP_FAILURES", "journalator_tooltip_failures", false) Auctionator.Config.Create("JOURNALATOR_TOOLTIP_LAST_SOLD", "journalator_tooltip_last_sold", false) Auctionator.Config.Create...
object_mobile_wod_mutant_rancor_boss = object_mobile_shared_wod_mutant_rancor_boss:new { } ObjectTemplates:addTemplate(object_mobile_wod_mutant_rancor_boss, "object/mobile/wod_mutant_rancor_boss.iff")
----------------------------------- -- -- Zone: Abdhaljs_Isle-Purgonorgo -- ----------------------------------- local ID = require("scripts/zones/Abdhaljs_Isle-Purgonorgo/IDs") require("scripts/globals/keyitems") ----------------------------------- function onInitialize(zone) end function onZoneIn(player,prevZone) ...
if not _G.THREATLIB_LOAD_MODULES then return end -- only load if LibThreatClassic2.lua allows it if not LibStub then return end local ThreatLib, MINOR = LibStub("LibThreatClassic2", true) if not ThreatLib then return end local AZUREGOS_ID = 6109 ThreatLib:GetModule("NPCCore-r"..MINOR):RegisterModule(AZUREGOS_...
local E = require('hs.application.watcher') -- appwindows events local A = require('appwindow/appactions') -- appwindows actions ------------------ -- appwindows -- ------------------ -- Each app name points to a list of rules, which are event/action pairs. -- See hs.application.watcher for events, an...
local Schema = require("kong.db.schema") local prometheus = require "kong.plugins.prometheus.exporter" -- schemas are used to parse parameters, for example: all params in a -- form-url-encoded field arrive to the server as strings. But if the provided -- schema has a field called `timeout` of type `number` then it wil...
local THNN = require 'nn.THNN' local SpatialDilatedMaxPooling, parent = torch.class('nn.SpatialDilatedMaxPooling', 'nn.SpatialMaxPooling') function SpatialDilatedMaxPooling:__init(kW, kH, dW, dH, padW, padH, dilationW, dilationH) parent.__init(self, kW, kH, dW, dH, padW, padH) self.dilationW = dilationW or 1 ...
test_run = require('test_run').new() fiber = require('fiber') digest = require('digest') default_threshold = box.cfg.checkpoint_wal_threshold threshold = 10 * 1024 box.cfg{checkpoint_wal_threshold = threshold} s = box.schema.space.create('test') _ = s:create_index('pk') box.snapshot() test_run:cmd("setopt delimiter ...
sel = map:tileSelection() if sel:isEmpty() then error 'the tile selection is empty' end bounds = sel:boundingRect() layer = map:tileLayer('0_Furniture') if not layer then error 'layer 0_Furniture not found' end dofile(scriptDirectory..'/dashed-line.lua') if bounds:width() > bounds:height() then tile = ma...
require("Prop/spawnPortalMesh.lua") --this = Model() function create() this:setColor(Vec3(0.8,0.0,0.78)) local portalEffectData = { WallboardParticle = true, color = { color1 = {r = 0.32, g = 0.3, b = 0.03, a = 0.35, size = 0.25, per = 0.00}, color2 = {r = 0.95, g = 0.90, b = 0.20, a = 0.25, s...
--- Admin commands local function GetPrintFn(ply) if IsValid(ply) then return function(...) local t = "" for _, a in ipairs({...}) do t = t .. "\t" .. a end ply:PrintMessage(HUD_PRINTCONSOLE, t) end e...
local M = {} local lualine_cfg = require "core.lualine.cfg" M.setup = function() require("core.lualine.styles").update() require("core.lualine.utils").validate_theme() local lualine = require "lualine" lualine.setup(lualine_cfg) if lualine_cfg.on_config_done then lualine_cfg.on_config_done(lualine) ...
GPS = {} GPS.Initialization = function(PlayerPed, train) PlayerPed = GetPlayerPed(-1) PlayerCoords = GetEntityCoords(PlayerPed) for i,stop in pairs(Config.TrainStops) do if GetDistanceBetweenCoords(stop.x, stop.y, stop.z, PlayerCoords.x, PlayerCoords.y, PlayerCoords.z, fal...
local ReplicatedStorage = game:GetService('ReplicatedStorage') local Modules = ReplicatedStorage:WaitForChild('Modules') local logger = require(Modules.src.utils.Logger) local PetManager = require(Modules.src.PetManager) local Print = require(Modules.src.utils.Print) local clientEquipped = require(Modules.src.actions....
-- local M = {} M.has_focus = true M.initilized = false -- Window width and height values are probably only useful from here on PC/Web and not mobile -- Really the Window API should include this information -- It would be better if default render script also put window width and height into window on init -- some pos...