content
stringlengths
5
1.05M
local AddonName, Addon = ...; local HtmlView = {}; local function scrollbarHide(self) local control = self:GetParent(); local parent = control:GetParent(); local offset = control.containerPadding or 0; control.Background:Hide(); control:GetScrollChild():SetWidth(control:GetWidth()); getmetatable(self).__index....
-- Author: __Vector__ addEvent ("enableVehicleCruiseSpeed", true); addEventHandler ("enableVehicleCruiseSpeed", getRootElement (), function (state) if state then setElementSyncer (source, getVehicleController (source)); else setElementSyncer (source, true); end; end);
--[[ name : netatmo.lua version: 1.0 description: netatmo plugin for dzbasic 5 uservariables to be created : 'netatmo_homeid' 'netatmo_appid' 'netatmo_appsecret' 'netatmo_username' 'netatmo_passwd' author : casanoe creation : 16/04/2021 update : 16/04/2021 --]] -- Script description local scriptName = 'netatmo' lo...
module("kinstall/adjustable2", package.seeall) setfenv(1, getfenv(2)); --Adjustable2 Container -- -- Kopia z oryginalnego Adjustable Container, z drobną zmiana -- będzie to używane dopóki nie przygotuje PRa do Mudleta -- --Just use it like a normal Geyser Container with some extras like: --moveable, Adjustable2 size...
object_tangible_deed_player_house_deed_emperors_house_deed = object_tangible_deed_player_house_deed_shared_emperors_house_deed:new { } ObjectTemplates:addTemplate(object_tangible_deed_player_house_deed_emperors_house_deed, "object/tangible/deed/player_house_deed/emperors_house_deed.iff")
local machine = script.Parent.Parent local selection1Name = "Flavors" local selection2Name = "FlavorsTwo" local origModel = machine.Yogurt local origTool = script["Frozen Yogurt"] local instruction1 = "Select first flavor" local instruction2 = "Select second flavor" local function handleSelection1(obj, button) obj.Fil...
local lorem = [[lorem ipsum dolor sit amet consetetur sadipscing elitr sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat sed diam voluptua at vero eos et accusam et justo duo dolores et ea rebum stet clita kasd gubergren no sea takimata sanctus est lorem ipsum dolor sit amet lorem ipsum dol...
-- oc3-ftp Server File (1.4) -- This program should be ran on an OC computer. -- For setup info, see README.md local comp = require("component") local ok, err = pcall(function() local fs = require("filesystem") local event = require("event") local serialization = require("serialization") local gpu = comp.gpu...
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- HID interface for Hammerspoon, controls and queries caps lock state -- -- Portions sourced from (https://discussions.apple.com/thread/7094207). ---@class hs.hid local M = {} hs.hid = M -- Checks the state of the caps lock via HID -- -- Paramet...
--[[-------------------------------------------------------------------------- Copyright (c) 2011, salesforce.com, inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code mu...
require "torch" require('libimage') --use_gfx="" if use_gfx then -- This creates an uneccesary dependency - should move to gfx require "gfx" local function loadPng(filename,type,depth) local surf=gfx.ImageSurface(filename); if surf == nil then return nil end if depth==nil then depth=4; end; if not( d...
-- rc.lua -- If LuaRocks is installed, make sure that packages installed through it are -- found (e.g. lgi). If LuaRocks is not installed, do nothing. pcall(require, "luarocks.loader") -- Standard awesome libraries local gfs = require("gears.filesystem") local beautiful = require("beautiful") local naughty = require("...
local Name2Id = GetFileConfig(OUTPUTBASE .. "server/setting/item/itemtype2class.lua").Name2Id return function (Data) assert(Name2Id[Data], Data.."没有该类型,请确认相关物品表") local Id = Name2Id[Data] return Id end
if not ngx then ngx = { log = print, ERR = 0, INFO = 0, WARN = 0 } end local log = ngx.log local ERR = ngx.ERR local INFO = ngx.INFO local WARN = ngx.WARN local _M = {} local function file_exists(file) local f = io.open(file, "rb") if f then f:close() end return f ~= ...
local Ships = PlayState:addState('Ships') local PHASE_DURATION = 23.5 - 11.75 function Ships:enteredState() if ANDROID or IOS then -- Unlock achievement for reaching the ships state. love.system.unlockAchievement(IDS.ACH_REACH_THE_SHIPS) end local stars = self:addEntity(Stars()) self:flashWhite(1.0)...
require("fucore.lib.entity") require("fubelts.prototypes.item") require("fubelts.prototypes.recipe") require("fubelts.prototypes.technology")
require('notify').setup { background_colour = '#000000', } vim.notify = require('notify')
object_mobile_col_forage_aggravated_worm = object_mobile_shared_col_forage_aggravated_worm:new { } ObjectTemplates:addTemplate(object_mobile_col_forage_aggravated_worm, "object/mobile/col_forage_aggravated_worm.iff")
local modpath = minetest.get_modpath(minetest.get_current_modname()) name_generator = dofile(modpath.."/namegen.lua") --name_generator.parse_lines(io.lines(modpath.."/data/books.cfg")) --name_generator.parse_lines(io.lines(modpath.."/data/creatures.cfg")) --name_generator.parse_lines(io.lines(modpath.."/data/inns.cfg...
require( "components/cavern/cavern_encounter" ) -------------------------------------------------------------------- if encounter_special_serpent_wards == nil then encounter_special_serpent_wards = class( {}, {}, CCavernEncounter ) end -------------------------------------------------------------------- function ...
--- 3D vector implementation in lua -- Was created as inline library to use in Principia game -- This file is mostly for documentation, you might want to use minified version in your code -- Minified version https://github.com/mrsimb/lua-vec/blob/main/vec.min.lua -- @author mrsimb https://github.com/mrsimb Vec = {} Ve...
--[[ 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 not use ...
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local fund_config = require "game.template.fund" local _M = function(role,data) if not data.id then data.id = 2 end data.id = tonumber(data.id) local pass = role.base:can_fund_reward(data.id) if...
--example, how to use -- local opts = { -- nwr = {3, 2, 2}, -- ak_sk = {'accesskey', 'secret_key'}, -- timeouts = {1, 1, 1}, -- } -- local cli = redis_proxy_cli:new({{ip, port}}, opts) -- -- "retry(another N times) is optional" -- cli:get(key, retry) -- E.g. cli:get('key1') -- E.g. cli:get('key1',...
local Doors = {} AddEvent("OnPackageStart", function() log.info("Loading interactive doors...") local _table = File_LoadJSONTable("packages/" .. GetPackageName() .. "/doors/doors.json") for _, config in pairs(_table) do CreateInteractiveDoor(config) end end) AddEvent("OnPackageStop", function...
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -- -- ───────────────────────────────────────────────── -- -- Plugin: alpha-nvim -- Github: github.com/goolord/alpha-nvim -- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -- -- ━━━━━━━━━━━━━━━━━━━❰ configs ❱━━━━━━━━━━━━━━━━━━━ -- -- ━━━━━━━━━━━━━━━━━━━━...
local logging = require("logging") local tg_logger = logging.new( function(self, level, msg) if type(bot) == "table" then bot.sendMessage(config.monitor, ("*[%s]*\n```\n%s\n```"):format(level, msg), "Markdown") end return true end ) tg_logger:setLevel(logging.WARN) local logger = logging.n...
function ends_in_3(num) return num % 10 == 3 end print(ends_in_3(13)) print(ends_in_3(20))
-- Kills the specified historical figure --[====[ devel/kill-hf ============= Kills the specified historical figure, even if off-site, or terminates a pregnancy. Useful for working around :bug:`11549`. Usage:: devel/kill-hf [-p|--pregnancy] [-n|--dry-run] HISTFIG_ID Arguments: ``histfig_id``: the ID of t...
require "bots/data/ability_data" require "bots/dota2_nn/util" local function ChooseHeroes() -- selects heroes for all the bots local ids = GetTeamPlayers(GetTeam()) util.Debug("selecting team composition") local team = ability_data.teams[RandomInt(1, #ability_data.teams)][GetTeam()] util.Debug("assigning heroe...
pix = lepton.pixCreate(30,30,1) lepton.pixClearAll(pix) lepton.pixSetPixel(pix,10,10,1) out = lepton.pixDilateBrick(nil,pix,18,18) lepton.pixWritePng("out_l.png",out,1.0)
--region supers_Tester.lua --Author : jefflwq --Date : 2016/03/02 --说明 : supers 的测试程序 --endregion if true then --false:启用测试, true:禁用测试(测试无问题后请设为true) return end using "Joop" using "System.Tester" import "System.CType" import "System.Drawing.CColor" import "System.Drawing.EColor" namespace...
newoption { trigger = "gfxlib", value = "LIBRARY", description = "Choose a particular development library", default = "glfw", allowed = { { "glfw", "GLFW" }, { "sdl2", "SDL2" }, }, } newoption { trigger = "glfwdir64", value = "PATH", description = "Directory of glfw", default = ".....
local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local Modules = Players.LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local RetrievalStatus = require(Modules.NotLApp.Enum.RetrievalStatus) local Cryo = require(Modules.Packages.Cryo) local Logging = require(Mod...
return { meta = { _next = "assets/levels/level-7.lua", pause = false, info = "LEVEL 6\nDON'T PANIC!!!!" }, blocks = { {x = 400, y = 168,}, {x = 432, y = 168,}, {x = 496, y = 200,}, {x = 610, y = 168,}, {x = 610 + 32, y = 168,}, {x = 610 + 142, y = 200,}, {x = 950, y = 231,}, } }
local spec = require 'spec.spec' describe("Twitter-oauth", function() it("uses the api key + secret to call twitter API and include an Authorization token in the request headers", function() local twitter_oauth = spec.middleware('twitter-oauth/twitter_oauth.lua') local request = spec.request({ meth...
--[[ TTT -> Database library (ServerSide) by Tassilo (https://github.com/TASSIA710) --]] -- Load MySQLOO require("mysqloo") TTT.Database = mysqloo.connect(TTT.Config.Database.Hostname, TTT.Config.Database.Username, TTT.Config.Database.Password, TTT.Config.Database.Database, TTT.Config.Database.Port) -- Gene...
return function (Data) local Tbl = {} local TmpTips = Split(Data,",") if #TmpTips == 1 then Tbl.CommonTips = Data else for _,strData in ipairs(TmpTips) do local TmpData = Split(strData, "|") assert(#TmpData == 2,"参数错误,"..strData) local TmpInfo = { Job = TmpData[1], Tips = TmpData[2], } ...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [SubscribeVehicleData] DISALLOWED response when all parameters are not allowed in the request -- [Mobile API] [GENIVI] SubscribeVehicleData request/response -- [HMI API] [GENIVI] VehicleInfo.Subscrib...
Boolean = Object:extend("Boolean") function Boolean.prototype:isPresent() return self end function Boolean.prototype:toString() if self then return 'true' end return 'false' end Boolean.prototype.class = Boolean local meta = { __index = Boolean.prototype, __metatable = false, __tostring = function (self...
local modkeys = {} modkeys.map = { ["left ctrl"] = "ctrl", ["right ctrl"] = "ctrl", ["left shift"] = "shift", ["right shift"] = "shift", ["left alt"] = "alt", ["right alt"] = "altgr", } modkeys.keys = { "ctrl", "alt", "altgr", "shift" } return modkeys
-- Sets stress to negative one million -- With unit selected, affects that unit. Use "remove-stress all" to affect all units. --By Putnam; http://www.bay12forums.com/smf/index.php?topic=139553.msg5820486#msg5820486 local utils = require 'utils' validArgs = validArgs or utils.invert({ 'help', 'all' }) local args ...
PlazaPopupFirstPayCcsView = class("PlazaPopupFirstPayCcsView") PlazaPopupFirstPayCcsView.onCreationComplete = function (slot0) ClassUtil.extends(slot0, ZoomPopUpChildView, true, slot0, slot0.bg, slot0.view) end PlazaPopupFirstPayCcsView.show = function (slot0) slot1 = Hero:getFirstPayPrice() or 0 slot2 = Hero:getF...
local Globals = require("vr-radio-helper.globals") local AcfReader = require("vr-radio-helper.shared_components.acf_reader") local AircraftCompatibilityId do AircraftCompatibilityId = {} function AircraftCompatibilityId:new() local newInstanceWithState = { icao = icao, acfFileN...
-------------------------------- -- @module ProgressTo -- @extend ActionInterval -- @parent_module cc ---@class cc.ProgressTo:cc.ActionInterval local ProgressTo = {} cc.ProgressTo = ProgressTo -------------------------------- --- brief Initializes with a duration and destination percentage. --- param duration Speci...
function onCreate() -- background shit makeLuaSprite('w2stage', 'w2stage', 0, 0); setScrollFactor('w2stage', 1, 1); addLuaSprite('w2stage', false); makeLuaSprite('overlay', 'w2overlay', 0, 0) setScrollFactor('overlay', 1, 1) setObjectCamera('overlay', 'hud') setBlendMode('overlay', 'overlay') addLu...
local id= require "id" local lst= require "lists" local num= require "num" ----------------------------------------------------------- local function create() return {id=id.new(), cells={}, cooked={}} end ----------------------------------------------------------- local function update(i,cells,t) i.cells=lst....
local drpath = require("directories") drpath.addPath("myprograms", "ZeroBraineProjects", "CorporateProjects", -- When not located in general directory search in projects "ZeroBraineProjects/dvdlualib", "ZeroBraineProje...
local json = require("utils.json") local t = { testing = "tst"; int = 20; soemthing = "else"; } function Activate() thisEntity:SetThink(function() return setAtt() end,"idk",0) end function setAtt() thisEntity:SetIntAttr("plswork",10) --EntFire(thisEntity,"jackpot","AddCSSClass","MOTHERFUCKER...
norushtime_timing = 1 norushtime_flag = 1 if (Locale_AddDictionary ~= nil) then Locale_AddDictionary("locale:LevelData\\Multiplayer\\lib\\norushtime.dat") end function norushtime_updating() if (norushtime_flag == 1) then for playerIndex = 0, Player_Count do if (Player_IsAlive(playerIndex) == 1) then if (Pl...
-- SPDX-License-Identifier: MIT local lgi = require('lgi') local GLib = lgi.require('GLib') hexchat.register('Playback', '1', "Integration with ZNC's Playback module") --[[ This should behave like this: On connect (end of MOTD): if new server, play all if old server, play all after latest timestamp...
-- Basic example of a simulation Input File thermal_solver={} thermal_solver.mesh = { filename = "/data/star.mesh", serial = 1, parallel = 1 } thermal_solver.order = 2 thermal_solver.timestepper = "quasistatic" -- define initial conditions thermal_solver.u0 = { type = "function", func = "BoundaryTemperatur...
slot0 = setmetatable slot1 = Mathf slot2 = Vector3 UnityEngine.Plane = { __index = function (slot0, slot1) return rawget(slot0, slot1) end, __call = function (slot0, slot1) return slot0.New(slot1) end, New = function (slot0, slot1) return slot0({ normal = slot0:Normalize(), distance = slot1 }, slot1)...
local bst = require("data_structures.sorted_set.binary_search_tree") describe("Binary search tree", function() local tree = bst.new() -- Checks a BST local function check_bst(subtree) if not subtree then return end if subtree[true] then assert.truthy(subtree[true].key < subtree.key) end if subtree[f...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true) combat:setParameter(COMBAT_PARAM_USECHARGES, true) combat:setArea(createCombatArea(AREA_SQUARE1X1)) function onGetFormulaVa...
require 'plugins.startify.bindings' vim.g.startify_change_to_dir = 0 vim.g.startify_change_to_vcs_root = 1 vim.g.startify_custom_header = "" vim.g.startify_enable_unsafe = 1 vim.g.startify_files_number = 8 vim.g.startify_session_autoload = 1 vim.g.startify_session_persist...
-- -- Copyright (c) 2015, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- Author: Marc...
--------------------------------------------------------------------------------------------------- -- func: spawnmob -- desc: Spawns a mob. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters = "iii" }; function error(pla...
--this = SceneNode() function create() --this:setIsStatic(true) greenDensity = {} greenDensityMax = 0.0 nature = {} natureConectToScene = {}--list all nodes to connect nature models to(so they dont colide with each other) natureCount = 0 for i=-128, 128, 1 do greenDensity[i] = {} for j=-128, 12...
-- simple.lua -- Simple conditional expression example a = 10 if a then a = a / 2 else a = a * 2 end
local builtin = require('telescope.builtin') local function get_workspace_folder () return vim.lsp.buf.list_workspace_folders()[1] or vim.fn.systemlist('git rev-parse --show-toplevel')[1] end return require('telescope').register_extension { setup = function() builtin.live_grep_workspace = function(opts) ...
-- Soldiers ( Team E ) -- Officer mobs:register_mob("mobs_modern:moTEof", { -- animal, monster, npc name = "moTEofficer", type = "armye", "te", owner = "MisterE", -- aggressive, shoots shuriken damage = 3, attack_type = "shoot", shoot_interval = 1, arrow = "mobs_modern:bullet", shoot_offset ...
--[=[ @c Guild x Snowflake @d Represents a Discord guild (or server). Guilds are a collection of members, channels, and roles that represents one community. ]=] local Cache = require('iterables/Cache') local Role = require('containers/Role') local Emoji = require('containers/Emoji') local Invite = require('containers/...
vim.deepcopy = (function() local function _id(v) return v end local deepcopy_funcs = { table = function(orig) local copy = {} if vim._empty_dict_mt ~= nil and getmetatable(orig) == vim._empty_dict_mt then copy = vim.empty_dict() end for k, v in pairs(orig) do cop...
-- -- astar.lua -- lua-astar -- -- Based on John Eriksson's Python A* implementation. -- http://www.pygame.org/project-AStar-195-.html -- -- Created by Jay Roberts on 2011-01-08. -- Copyright 2011 Jay Roberts All rights reserved. -- -- Licensed under the MIT License -- -- Permission is hereby granted, free ...
slot0 = class("StaticCellView", import("view.level.cell.LevelCellView")) slot0.Ctor = function (slot0, slot1) slot0.super.Ctor(slot0) slot0.parent = slot1 slot0.go = nil slot0.tf = nil slot0.info = nil end slot0.GetOrder = function (slot0) return ChapterConst.CellPriorityNone end slot0.SetTpl = function (slot...
local cf = require "cf" local child = require "child" local pids = {} local pid_cb = nil local co = coroutine.create(function () while true do local pid, code = coroutine.yield() if pid_cb then cf.fork(pid_cb, pid, code) else print('exit', pid, pids[pid]) end end end) coroutine.resume...
newoption { trigger = "plainc", description = "Set this to build GL Load without C++ support.", } project("glload") kind "StaticLib" includedirs {"include", "source"} targetdir "lib" if(_OPTIONS["plainc"]) then language "c" else language "c++" end files { "include/glload/gl_*.h...
resource.AddFile( "materials/vgui/entities/weapon_acf_xm25.vmt" ) AddCSLuaFile( "shared.lua" ) if CLIENT then -- Client only variables SWEP.Slot = 3 -- Slot in the weapon selection menu SWEP.SlotPos = 12 -- Position in the slot killicon.AddFont( "weapon_acf_awp", "CSSD_Killcon", "r", Color( 255...
local sayHi = require('sayHi') sayHi('world')
local changeYourJob, inMenu = vector3(478.79, -107.85, 63.15), false local plyPed, plyCoords = PlayerPedId(), vector3(0, 0, 0) OnGoingHuntSession = false local timer = 0 TempLicense = 0 local Blips = { ['hunting'] = { ['blips'] = { [1] = {['blip'] = 0, ['title'] = 'Hunting Office', ['coords'] = vector3(-675...
local PLUGIN = PLUGIN; function PLUGIN:Tick() if(#player.GetAll() == 0) then return; end; for k, v in pairs(player.GetAll()) do local playerMan = v; local table = v:GetCharacters(); for k2, v2 in pairs(table) do if(v2.data["CharTempBanned"]) then if(os.time() >= v2.data["Ch...
Prefab = Class(function(self, name, fn, assets, deps) self.name = name or "" self.path = name or nil self.name = string.sub(name, string.find(name, "[^/]*$")) self.desc = "" self.fn = fn self.assets = assets or {} self.deps = deps or {} end) function Prefab:__tostring() return string.fo...
paths.dofile('../layers/ResidualBest.lua') local function lin_old(numIn,numOut,inp) -- Apply 1x1 convolution, stride 1, no padding local bn_relu = nn.RReLU()(nn.SpatialBatchNormalization(numIn)(inp)) local spatial_dropout = nn.SpatialDropout(opt.spatialdropout)(bn_relu) return nn.SpatialConvolution(num...
#!/usr/bin/env lua local lub = require 'lub' local lib = lub local tmp = lub.Template(lub.content(lub.path '|rockspec.in')) lub.writeall(lib.type..'-'..lib.VERSION..'-1.rockspec', tmp:run({lib = lib})) tmp = lub.Template(lub.content(lub.path '|CMakeLists.txt.in')) lub.writeall('CMakeLists.txt', tmp:run()) tmp = lub....
-- Lua script used to clean up tabs and spaces in C, CPP and H files. -- Copyright (c) 2014, bel -- MIT License (http://opensource.org/licenses/mit-license.php) -- -- It can be used from the command line: -- Call Lua5.1 or Lua5.2 + this script file + the C/CPP/H file to clean -- -- It can be used in Visual Studi...
local AddonName, AddonTable = ... AddonTable.consumable = { -- Potions 22829, 22832, 32902, 32905, } AddonTable.foodDrink = { 28399, 27854, 27855, 27859, 27860, 29449, 29451, 29452, }
Constraint = { Properties= { radius = 0.03, damping = 0, bNoSelfCollisions = 1, bUseEntityFrame=1, max_pull_force=0, max_bend_torque=0, bConstrainToLine=0, bConstrainToPlane=0, bConstrainFully=1, bNoRotation=0, Limits = { x_min = 0, x_max = 0, yz_min = 0, yz_max = 0, } }, nu...
----------------------------------- -- Ruinator -- Axe weapon skill -- Skill level: 357 -- Description: Delivers a four-hit attack. params.accuracy varies with TP -- In order to obtain Ruinator, the quest Martial Mastery must be completed. -- This Weapon Skill's first hit params.ftp is duplicated for all additional hit...
local component = require("component") local transposer = component.transposer local sides = require("sides") local tdebug = require("tdebug") local function transfer1() print("transfer1") for i = 1, transposer.getInventorySize(sides.west) do transposer.transferItem(sides.top, sides.west, 1, 1, i) end prin...
-- inventory.lua local inventory = { box = { x = 0, y = 0, w = 350, h = 350 }, buttons = {}, lastItemAdded = "" } local bounds = { width = 350, height = 350, left = 0, top = 0, rows = 5, columns = 5 } local colors = { } local buttonTimerMax = 0.2 local buttonTimer =...
-- 扩展httpc httpc.answer = require "app.gg.http.answer" function httpc.signature(str,secret) if type(str) == "table" then str = table.ksort(str,"&",{sign=true}) end return crypt.base64encode(crypt.hmac_sha1(secret,str)) end function httpc.make_request(request,secret) secret = secret or "secret" request.sign = h...
worldgen = {} worldgen.overworld_top = 256 worldgen.overworld_bottom = 0 -- Doubles as the surface height too worldgen.overworld_sealevel = worldgen.overworld_bottom + 63 -- sets where we will randomly plot a sturcture worldgen.overworld_struct_min = worldgen.overworld_bottom + 25 worldgen.overworld_struct_max = world...
----------------------------------- -- Area: Al Zahbi -- NPC: Bornahn -- Guild Merchant NPC: Goldsmithing Guild -- !pos 46.011 0.000 -42.713 48 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/shop") local ID = require("scripts/zones/Al_Zahbi/IDs") ---------------------...
local t = Def.ActorFrame{ LoadActor("EditMenu Left")..{ BeginCommand=cmd(zoomx,-1); }; }; return t;
class("PlayPuzzleSidebar").extends(Sidebar) function PlayPuzzleSidebar:init() PlayPuzzleSidebar.super.init(self) end function PlayPuzzleSidebar:enter(context, selected) local player = context.player local creator = context.creator local puzzle = context.puzzle local config = { player = player.avatar, creator...
modifier_rubick_spell_steal_lua_hidden = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_rubick_spell_steal_lua_hidden:IsHidden() return true end function modifier_rubick_spell_steal_lua_hidden:IsDebuff() return false end function modi...
local function ErrorHandler(err) print(string.format("[Error] %s", err)) print(debug.traceback()) end return function(folder, file_names) local files, data = {} for _, file_name in ipairs(file_names) do data = select(2, xpcall(require, ErrorHandler, table.concat({folder, ".", file_name}))) ...
--=========== Copyright © 2020, Planimeter, All rights reserved. ===========-- -- -- Purpose: -- --==========================================================================-- local SDL = require( "sdl" ) module( "framework.timer" ) _frames = _frames or 0 _dt = _dt or 0 _lastTime ...
local widget = require( "widget" ) local composer = require( "composer" ) local json = require ("json") local loadsave = require( "loadsave" ) local myData = require ("mydata") local crewWarsAlertScene = composer.newScene() --------------------------------------------------------------------------------- -------------...
object_tangible_quest_survey_data_05 = object_tangible_quest_shared_survey_data_05:new { } ObjectTemplates:addTemplate(object_tangible_quest_survey_data_05, "object/tangible/quest/survey_data_05.iff")
-- Shows mechanisms linked to the current building. --[====[ gui/mechanisms ============== Lists mechanisms connected to the building, and their links. Navigating the list centers the view on the relevant linked buildings. .. image:: /docs/images/mechanisms.png To exit, press :kbd:`Esc` or :kbd:`Enter`; :kbd:`Esc` r...
local mod = get_mod("InfiniteAmmo") -- luacheck: ignore get_mod -- luacheck: globals Managers Unit ScriptUnit mod.on_disabled = function() if not mod.is_ready then return end mod.remove_buffs() end mod.update = function() if not mod.is_ready then return end if mod:is_enabled() then mod.refresh_buffs() ...
_ENV.require = nil local require = loadfile "D:\\Programming\\lua-vfs\\knowledge_base\\lua\\relative_require.lua" () (...) -- local require = require "relative_require" (...) local restore = package.path package.path = "./?.lua" local Promise = require "Promise" Promise.async, Promise.await = require "key...
local ansible = {} function ansible.config() vim.g.ansible_unindent_after_newline = 1 vim.g.ansible_extra_keywords_highlight = 1 vim.g.ansible_template_syntaxes = { ["*.sh.j2"] = "sh", } end return ansible
namespace('Radio') local g_NotifyPlayers = {} local function loadChannels() channels = {} local node, i = xmlLoadFile('conf/radio.xml'), 0 if(node) then while(true) do local subnode = xmlFindChild(node, 'channel', i) if(not subnode) then break end i = i + 1 local ch = {} ch.name ...
--[[ ################################################################################ # # Copyright (c) 2014-2019 Ultraschall (http://ultraschall.fm) # # 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 th...
table.insert(emojichatHTML, [===[<!doctype html> <html> <head> <meta charset="UTF-8" /> <style> body { background-color: transparent; color: #fff!important; position: absolute; left: 0; top: 0; width: 100%; height: 100%...
return { mod_description = { en = "V2RT description", }, }
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] -- Translated by karl-police CW_GERMAN = Clockwork.lang:GetTable("German"); CW_G...