content
stringlengths
5
1.05M
-- -- Bones sign (sellhead) -- minetest.register_node("x_marketplace:sign_wall_bones", { description = "Bones Sign - write '/mp sellhead' to sell heads", drawtype = "nodebox", tiles = {"x_marketplace_sign_wall_bones.png"}, inventory_image = "x_marketplace_sign_bones.png", wield_image = "x_marketplace_sign_bones.pn...
#!/usr/bin/env lua5.4 local function parse(inp) local num = {} for str in io.lines(inp) do num[#num+1] = str end return num end local data = parse(arg[1]) local slopes = {{1, 1}, {3, 1}, {5, 1}, {7, 1}, {1, 2}} local numRows = #data local numCols = string.len(data[1]) local totalTrees = 1 l...
local CoreGui = game:GetService("CoreGui") --- local root = script.Parent local Studio = settings().Studio local includes = root:FindFirstChild("includes") local Rodux = require(includes:FindFirstChild("Rodux")) --- local copy copy = function(t) local tCopy = {} for k, v in pairs(t) do tCopy[(type...
math.randomseed(os.time()); math.random(); math.random(); math.random() --I *think* the first few values are the same on some platforms function testForPrime(n) --Implements Miller-Rabin, taken from in https://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test assert(n > 0, "No Negative Numbers") if...
local cpml = require("lib.cpml") Fabrik = {} function Fabrik.solve( chain, targetPos, targetDir, maxIterations, validify, verbose ) -- Remember the original poses of all bones: local cachePos = {} local cacheRot = {} for j=1,#chain do cachePos[j] = chain[j]:getPos() cacheRot[j] = chain[j]:getRot() end lo...
local etcdv2 = require("resty.etcd.v2") local etcdv3 = require("resty.etcd.v3") local utils = require("resty.etcd.utils") local typeof = require("typeof") local prefix_v3 = { ["3.5."] = "/v3", ["3.4."] = "/v3", ["3.3."] = "/v3beta", ["3.2."] = "/v3alpha", } local _M = {version = 0.9} local function ...
--- Small addon for checking rare spawns automatically on mouseover, nameplate spawn or targeting :) --------- Debugging --------- local Debug = function (flag, str, ...) if ... then str = str:format(...) end if flag=="r" then print(format("|cffff0000%s|r", str)) else if flag=="g" then print(format("|cff00...
-- create node Cosine require "moon.sg" local node = moon.sg.new_node("sg_cosine") if node then node:set_pos(moon.mouse.get_position()) end
local thismod = minetest.get_current_modname() local wac = _G[thismod] minetest.register_entity(thismod .. ":reverter", { initial_properties = { hp_max = 1, physical = false, collide_with_objects = false, collisionbox = { 0, 0, 0, 0, 0, 0 }, is_visible = false, }, get_staticdata = function(self) self.da...
---@type number local aNumber ---@type string local aString ---@class GenericSelfA<T : string> ---@field a T local GenericSelfA = {} ---@return self function GenericSelfA:colonMethod() ---@type self local selfTypedVar = self ---@type GenericSelfA<string> local someGenericSelfA someGenericSelfA ...
object_building_mustafar_terrain_must_rock_spire_smooth_03 = object_building_mustafar_terrain_shared_must_rock_spire_smooth_03:new { } ObjectTemplates:addTemplate(object_building_mustafar_terrain_must_rock_spire_smooth_03, "object/building/mustafar/terrain/must_rock_spire_smooth_03.iff")
---@meta ---@class ccs.SpriteDisplayData :ccs.DisplayData local SpriteDisplayData={ } ccs.SpriteDisplayData=SpriteDisplayData ---* ---@param displayData ccs.DisplayData ---@return self function SpriteDisplayData:copy (displayData) end ---* ---@return self function SpriteDisplayData:create () end ---* js ctor ---...
slot0 = class("StoreHouseMediatorTransformVer", import("view.base.ContextMediator")) slot0.ON_DESTROY = "EquipmentMediator:ON_DESTROY" slot0.ON_UNEQUIP_EQUIPMENT = "EquipmentMediator:ON_UNEQUIP_EQUIPMENT" slot0.OPEN_DESIGN = "EquipmentMediator:OPEN_DESIGN" slot0.CLOSE_DESIGN_LAYER = "EquipmentMediator:CLOSE_DESIGN_LAYE...
require('modules.inputsource_aurora') hs.hotkey.bind({'option', 'cmd'}, 'r', hs.reload) local f16_mode = hs.hotkey.modal.new() local f17_mode = hs.hotkey.modal.new() local inputEnglish = "com.apple.keylayout.ABC" hs.hotkey.bind({}, 'f16', function() f16_mode:enter() end, function() f16_mode:exit() end) hs.hotkey.bind...
local tweenService = game:GetService("TweenService") local replicatedStorage = game:GetService("ReplicatedStorage") local FX = replicatedStorage.FX local Arch = FX.Arch local VoidSphere = FX["Void Sphere"] local eventModule = {} function eventModule.Archway(player) local offset = Vector3.new(0,0,-10) local ArchClo...
-- A simple scene with some miscellaneous geometry. mat1 = gr.material({0.7, 1.0, 0.7}, {0.5, 0.7, 0.5}, 25) mat2 = gr.material({0.5, 0.5, 0.5}, {0.5, 0.7, 0.5}, 25) mat3 = gr.material({1.0, 0.6, 0.1}, {0.5, 0.7, 0.5}, 25) mat4 = gr.material({0.7, 0.6, 1.0}, {0.5, 0.4, 0.8}, 25) scene_root = gr.node('root') s1 = gr....
local type = math.type do --- smoke assert(type(3) == 'integer') assert(type(3.14) == 'float') assert(type('3.14') == nil) end
return function () vim.cmd([[ nnoremap q: <Cmd>lua require('cmdbuf').split_open(vim.o.cmdwinheight)<CR> cnoremap <C-f> <Cmd>lua require('cmdbuf').split_open(vim.o.cmdwinheight, {line = vim.fn.getcmdline(), column = vim.fn.getcmdpos()} )<CR><C-c> ]]) end
local PATH,IP = ... IP = IP or "127.0.0.1" package.path = string.format("%s/client/?.lua;%s/skynet/lualib/?.lua", PATH, PATH) package.cpath = string.format("%s/skynet/luaclib/?.so;%s/lsocket/?.so;%s/luaclib/?.so", PATH, PATH, PATH) local socket = require "simplesocket" local message = require "simplemessage" local r...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' description "Demonen's help text script for FiveM" client_scripts {'config.lua','bindstring.lua','cl_omghalp.lua'} server_script 'sv_omghalp.js' ui_page 'NUI/index.html' files { 'NUI/*', 'chapters/*.md', }
-- code to drive the addon local ADDON_NAME = ... local CONFIG_ADDON_NAME = ADDON_NAME .. "_Config" local L = _G.OMNICC_LOCALS local Addon = CreateFrame("Frame", ADDON_NAME, _G.InterfaceOptionsFrame) function Addon:Startup() self:SetupCommands() self:SetScript("OnEvent", function(f, event, ...) f[event](f, event...
RegisterCommand('kostka', function(source, args, rawCommand) if source == 0 or source == "Console" then return end local dices, c = tonumber(args[1]), 1 if dices then if dices > 3 then TriggerEvent('notification', source, 'You can choose a number between 1 and 3 only', 2) return end local dice ...
local mod = require("internal.mod") local i18n = require("internal.i18n") local data = require("internal.data") local draw = require("internal.draw") local field = require("game.field") local Event = require("api.Event") local Log = require("api.Log") local Rand = require("api.Rand") local Repl = require("api.Repl") lo...
local Tract = {} Tract.fixed = {} Tract.fixed.L = {} Tract.fixed.L[1] = 36 Tract.fixed.L[2] = 37 Tract.AreaNose = {} Tract.AreaNose[1] = 1.5714285714285714 Tract.AreaNose[2] = 1.7070523199983654 Tract.AreaNose[3] = 1.9404137497116318 Tract.AreaNose[4] = 2.2394542989695561 Tract.AreaNose[5] = 2.5779429120008288 Tract.Ar...
local __exports = LibStub:NewLibrary("ovale/Ovale", 80300) if not __exports then return end local __class = LibStub:GetLibrary("tslib").newClass local __Localization = LibStub:GetLibrary("ovale/Localization") local L = __Localization.L local __tsaddon = LibStub:GetLibrary("tsaddon", true) local NewAddon = __tsaddon.New...
--Kurdtkobain 23.10.16 playerSkull = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "human_skull", weight = 10000000} } } addLootGroupTemplate("playerSkull", playerSkull)
--- -- FDMM Resource Unit Module. -- @module FDMM_ResourceUnit env.info("---FDMM_ResourceUnit Start---") --- FDMM ResourceUnit module. fdmm.resourceUnit = {} do -- FDMMResourceUnit --- Resource unit class that stores a set of resource points that can be converted into DCS fuel, equipment, and craft. -- @type FDM...
-- @Author: Ritesh Pradhan -- @Date: 2016-04-10 22:00:08 -- @Last Modified by: Ritesh Pradhan -- @Last Modified time: 2016-04-21 14:24:31 local _M = {} local function print_table(t) if t ~= nil then for k,v in pairs(t) do print("Key : ", k, " ==> ", v) end end end local function pauseGameTimers(t) -- ...
local M={} ; package.loaded[(...)]=M ; M.module_name=(...) setmetatable(M,{__index=table}) -- use table as prototype local pmtable=M -- -- pmtable.lua -- Additions to Lua's built-in pmtable functions. -- Copyright (c) 2002-2008 Jason Perkins and the Premake project -- -- -- Returns true if the pmtable contains...
function default.get_hotbar_bg(...) return "dummy" end
----------------------------------------------------------------------------------------- -- QuizHang - a hangman quiz game with its own unique twist -- An ACEMADE Project -- Copyright Akeem C.E. Murray -- Libraries are copyright to their respective owners ----------------------------------------------------------...
local concord = require("lib.concord") return concord.component( function(e, radius, collider, x, y) e.shape = collider:circle(x, y, radius) e.radius = radius end )
--simple implementation of android LinearLayout for CoronaSDK --Author: n0ise9914@live.com Layout = {} function Layout:new(orientation) local group = display.newGroup() --filter null margin values if group.left == nil then group.left = 0 end if group.right == nil then ...
-- from https://github.com/kikito/middleclass local get_time = os.clock or tick; return function(file, trials) trials = trials or 10000; return function(title, f) collectgarbage() local startTime = get_time() for i=0,trials do f() end local endTime = get_time() local...
return { equipment = { }, armors = { }, vehicles = { { type = "fluid-wagon", name = "accumulator-wagon", engine = "unpowered", role = "cargo", chassis = "train", tier = 2 }, } }
data:extend( { { type = "fluid", name = "pressurised-water", subgroup = "uranium-heatexchangerecipes", default_temperature = 15, max_temperature = 350, heat_capacity = "2.4KJ", base_color = {r=0, g=0.34, b=0.6}, flow_color = {r=0.7, g=0.7, b=0.7}, icon = "__UraniumPowerRemastered__/graphics/icons/pre...
require "dev.demo.scenes.layers.PopupLayer" require "dev.demo.net.GameServer" require("json") local testGetUrl = "http://httpbin.org/get" local downPngUrl = "http://www.cocos2d-x.org/attachments/802/cocos2dx_landscape.png" local downBigFileUrl = "http://download.cocos.com/CocosCreator/v1.9.3/CocosCreator_v1.9.3.s...
slot0 = class("CustomIndexLayer", import("..base.BaseUI")) slot0.getUIName = function (slot0) return "CustomIndexUI" end slot0.Mode = { OR = 2, AND = 1 } slot0.init = function (slot0) slot0.panel = slot0:findTF("index_panel") slot0.layout = slot0:findTF("layout", slot0.panel) slot0.panelTemplate = slot0:findTF...
--[[ Copyright (c) 2015 Dustin Reed Morado 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, publi...
object_tangible_loot_undead_decal_splatt_01 = object_tangible_loot_undead_shared_decal_splatt_01:new { } ObjectTemplates:addTemplate(object_tangible_loot_undead_decal_splatt_01, "object/tangible/loot/undead/decal_splatt_01.iff")
workspace "CG-Sandbox" architecture "x86_64" configurations{ "Debug", "Release", "Dist" } startproject "CGSandbox" flags { "MultiProcessorCompile" } outputdir="%{cfg.buildcfg}_%{cfg.system}_%{cfg.architecture}" --include directories relative to root folder IncludeDir={} IncludeDir["extern"]="CGCore/...
--[=[ Right grip @class IKRightGrip ]=] local IKGripBase = require(script.Parent.IKGripBase) local IKRightGrip = setmetatable({}, IKGripBase) IKRightGrip.ClassName = "IKRightGrip" IKRightGrip.__index = IKRightGrip function IKRightGrip.new(ObjectValue: ObjectValue) local self = setmetatable(IKGripBase.new(ObjectVa...
local mtmsg = require("mtmsg") local listener = mtmsg.newlistener() local _, err = pcall(function() listener:nextmsg() end) assert(err:match(mtmsg.error.no_buffers))
object_tangible_tcg_series7_decal_imperial_graffiti_02 = object_tangible_tcg_series7_shared_decal_imperial_graffiti_02:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series7_decal_imperial_graffiti_02, "object/tangible/tcg/series7/decal_imperial_graffiti_02.iff")
return {'ursuline','ursulinen','ursel','ursul','ursula','urselmann','ursinus','ursulas'}
local ComponentRegistry = require(script.Parent.ComponentRegistry) return function() local registry beforeEach(function() registry = ComponentRegistry.new() end) afterEach(function() registry:destroy() end) describe("ComponentRegistry.new", function() it("should return a ComponentRegistry", function() ...
pfUI:RegisterSkin("Guild Bank", "tbc", function () local rawborder, border = GetBorderSize() local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel() HookAddonOrVariable("Blizzard_GuildBankUI", function() do -- GuildBankFrame StripTextures(GuildBankFrame) CreateBackdrop(Guil...
local contain_image = require("misc.libs.stdlib").contain_image local layout_button = function(image, cb) local widget = contain_image( _config_dir .. "/theme/assets/layouts/" .. image .. ".png", 32, 32, { resize = false, scaling_quality = "nearest" } ) widget:buttons(awful.button({}, mouse.LEFT, cb)) retu...
-- -- init.lua -- -- the NodeMCU firmware loads and executes this file at startup. -- -- This file waits for a brief time, then loads another file (app.lua). -- -- The wait is so that if your code ends up in a crash loop, -- you have a way to escape to the command prompt. -- -- -- First, set the serial port configurat...
local K, C, _ = select(2, ...):unpack() if C.Misc.AFKCamera ~= true then return end local CAMERA_SPEED = 0.035 local CreateFrame = CreateFrame local InCombatLockdown = InCombatLockdown local UnitIsAFK = UnitIsAFK local UnitIsDead = UnitIsDead local SpinCam = CreateFrame("Frame") local OnEvent = function(self, event, ...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local one_0 = DoorSlot("one","0") local one_0_hub = DoorSlotHub("one","0",one_0) one_0:setHubIcon(one_0_hub) local one_1 = DoorSlot("one","1") local one_1_hub = DoorSlotHub("one","1",one_1) one_1:setHubIcon(one_1_hub) local one_2 = DoorSlot("one","2") local one_2_hub = DoorSlotHub("one","2",one_2) one_2:setHubIcon(one_...
-- loosely based on MTA's https://code.google.com/p/mtasa-resources/source/browse/trunk/%5Bmanagers%5D/mapmanager/mapmanager_main.lua local maps = {} local gametypes = {} local function refreshResources() local numResources = GetNumResources() for i = 0, numResources - 1 do local resource = GetResour...
------ -- always need a doc comment to start! -- Can have a module with no internal doc comments, -- although you will get a warning. At least we no -- longer get a 'end-of-file' if there is no explicit -- module name. ----- not a doc comment ----- -- a common style when just specifying an informative comment -- May s...
msg_prec = "prethodnik" msg_fol = "sledbenik" msg_num = "broj"
require("zen-mode").setup { window = { backdrop = 1, width = 0.7, height = 1, options = { signcolumn = "no", number = false, relativenumber = false, foldcolumn = "0", }, }, plugins = { options = { enabled = true, ruler = false, showcmd = false, ...
-- Code created by Kwik - Copyright: kwiksher.com {{year}} -- Version: {{vers}} -- Project: {{ProjName}} -- local _M = {} local _K = require "Application" -- function _M:pPinchPag(pag) sceneGroup.anchorX = 0.5 sceneGroup.anchorY = 0.5 {{#move}} _K.MultiTouch.activate( sceneGroup, "move", {"single"} ) {{/move...
return { core_hexapod_lab = { buildcostenergy = 1552296, buildcostmetal = 86632, builder = true, buildinggrounddecaldecayspeed = 0.01, buildinggrounddecalsizex = 20, buildinggrounddecalsizey = 20, buildinggrounddecaltype = "core_hexapod_lab_aoplane.dds", buildpic = "core_hexapod_lab.dds", b...
require 'image' require 'cutorch' require 'nn' require 'nnx' require 'cunn' require 'cudnn' require 'optim' require 'model.lua' require 'util.lua' require 'DataLoader.lua' -- Default user options options = { batchSize = 2, nClass = 3, shuffleData = true, dataPath = '../handover_data', sampleList = '../handov...
-- @feature reverses the beacon animation to pulse into the ground -- data.lua if mods["base"] then data.raw["beacon"]["beacon"].graphics_set.animation_list[3].animation .run_mode = "backward" data.raw["beacon"]["beacon"].graphics_set.animation_list[3].animation.hr_version.run_mode = "backward" end
-------------------------------------------------------------------------------- -- TMXMapLoader is a class that reads the file format tmx, to create a TMXMap. -- Some functions, please do not see from the outside. -- Dare, leaving for the inheritance. -------------------------------------------------------------------...
-- See LICENSE for terms local mod_EnableMod local mod_DroneHubRange local mod_DroneHubRangeDefault local mod_UpdateExistingHubs local orig_CommandCenterMaxRadius = const.CommandCenterMaxRadius local SetPropertyProp = ChoGGi.ComFuncs.SetPropertyProp local function SetHubRange() -- defaults if not mod_EnableMod th...
// Original by OverloadUT PurchaseStools = SS.Plugins:New("PurchaseStools") // Store all tools PurchaseStools.List = {} // When script loads function PurchaseStools.ServerLoad() PurchaseStools.Generate() end // Add a tool to the list function PurchaseStools.Add(Tool, ID, Groups, Cost, Friendly, Description) if...
------------------------------------------------------------ -- DressUp by Sonaza (https://sonaza.com) -- Licensed under MIT License -- See attached license text in file LICENSE ------------------------------------------------------------ local ADDON_NAME, Addon = ...; local ADDON_CHANNEL_PREFIX = ADDON_NAME; local A...
--スプリガンズ・ブーティー --Sprigguns Booty --Scripted by Kohana Sonogami function c101104054.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --activate limit local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(10110...
LinkLuaModifier("modifier_imba_snapfire_scatterblast", fileName, LuaModifierType) imba_snapfire_scatterblast = imba_snapfire_scatterblast or class({}) function imba_snapfire_scatterblast:OnAbilityPhaseStart() if not IsServer() then return end self:GetCaster():EmitSound("") -- todo: add precast pfx end function ...
ITEM.name = "Combine Light" ITEM.uniqueID = "comlight" ITEM.model = Model("models/props_combine/combine_light001a.mdl") ITEM.desc = "Portable light sources used to illuminate dark areas in support of Combine operations." --ITEM.price = 0 --ITEM.flag = "" ITEM.functions = {} ITEM.functions.Place = { alias = "Place it"...
return { c = { ['bu aXa'] = -1, ['Cki Xi'] = -2, ['na Xog'] = 3, ['ram Xo'] = 4, ['gol aX'] = 5, ['huyu X'] = -6, ['m Xars'] = 7, ['Ik Xip'] = -8, ['ncu X '] = 9, ['zay Xo'] = 10, ['Xincik'] = 11, ['vre aX'] = 12, ['mUS aX'] = -13, [...
project "libjpeg" kind "StaticLib" language "C" staticruntime "on" targetdir ("Build/" .. outputdir .. "/%{prj.name}") objdir ("Build-obj/" .. outputdir .. "/%{prj.name}") files { "cderror.h", "cdjpeg.h", "jconfig.h", "jerror.h", "jinclude.h", "jmorecfg.h", "jpeglib.h", "jversion.h", "*.c"...
heightmaps = { }
laptop.register_theme("Blue", { desktop_background = "laptop_theme_blue_desktop_background.png", app_background = "laptop_theme_blue_app_background.png", major_button = "laptop_theme_blue_major_button.png", back_button = "laptop_theme_blue_back_button.png", exit_button = "laptop_theme_blue_exit_button.png", deskt...
--------------------------------------------------------------------------------------------------- -- User story: TBD -- Use case: TBD -- -- Requirement summary: -- TBD -- -- Description: -- In case: -- 1) Application is registered with PROJECTION appHMIType -- 2) and starts video and audio streaming -- 3) HMI sends O...
MOTD = {} local dir = "fusion_motd" TL.includeSH(dir .. "/config.lua") TL.includeSV(dir .. "/sv_init.lua") TL.includeCL(dir .. "/skin.lua") TL.includeCL(dir .. "/cl_init.lua")
#!/usr/bin/env lua local this_dir = arg[0]:match('(.+/)[^/]+%.lua') or './' package.path = this_dir..'../src/'..package.path local ev = require'ev' local port = 12343 local count = 0 local server = require'jet.socket'.listener({ port = port, on_connect = function(other) other:on_message(function(_,msg) ...
return 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 ;
assert(love.filesystem.isDirectory("samples"), "Sample directory does not exist.\n".. "Consider running `./tools/gen_sample.sh`?") -- Require or module LoveVideo = require("LoveVideo.lovevideo") LoveVideo.thread_file = "LoveVideo/lovevideo_loadthread.lua" samples = love.filesystem.getDirectoryItems("samples") fun...
-- Require the class. local server = require "luchia.core.server" -- Build a new server object. local srv = server:new({ connection = { protocol = "http", host = "www.example.com", port = "5984", }, }) -- Make a request. local response = srv:request({ path = "/", })
require "include/protoplug" local ffi = require("ffi") local temp = 1 local n = 2048 local l = 16 local iter = 1 local amp = 1 state = ffi.new("int[?]", n) for i = 0,n-1 do state[i] = 1; if math.random() < 0.5 then state[i] = -state[i] end end function plugin.processBlock (samples, smax) ...
return { tllswordfish = { acceleration = 0.015, activatewhenbuilt = true, brakerate = 0.54, buildcostenergy = 145504, buildcostmetal = 10132, builder = false, buildpic = "tllswordfish.dds", buildtime = 160000, canattack = true, canguard = true, canmanualfire = true, canmove = true,...
NDefines_Graphics = { NWiki = { BASE_URL = "https://hoi4.paradoxwikis.com/", FORUM_URL = "https://forum.paradoxplaza.com/forum/index.php?forums/hearts-of-iron-iv.844/" }, NMapMode = { FABRICATE_CLAIM_SELECTED_SECONDARY_COLOR = { 0, 1, 0, 1 }, FABRICATE_CLAIM_TARGET_COUNTRY_SECONDARY_COLOR = { 0, 0, 0, 0 }, FABRI...
-- -- created with TexturePacker (http://www.codeandweb.com/texturepacker) -- -- $TexturePacker:SmartUpdate:14f1e62f55d7f5242c38cbb240cc1172:0d7e9d0e9a9eaacc1ebd88e871ce9d63:202d7ad1136b4beb2111947776ecb911$ -- -- local sheetInfo = require("mysheet") -- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI...
-- // rTestPanel - Resize -- // zork - 2013 ----------------------------- -- INIT ----------------------------- --get the addon namespace local addon, ns = ... --variables local UIP = UIParent local CF = CreateFrame local _G = _G --get the config local cfg = ns.cfg -...
-- one of the default stair recipes overrides the slope -- FIXME: appears to be multiples registered. e.g. "mypaths:grass_slope" & "mypaths:slope_grass" local recipe_slope = { {"mypaths:grass", "", ""}, {"mypaths:grass", "mypaths:grass", ""}, {"mypaths:grass", "mypaths:grass", "mypaths:grass"}, } local recipe_sl...
-- Adds big items to list of productivity module usable items local function tagIcons() for k,v in pairs(data.raw.recipe) do if type(v) == "table" then if v.icon or v.icons then data:extend({{ name = v.name .. "_tagicon", type = "item", ...
local ngm = require "ng.math" local consts = require "gui.consts" local abstract_widget = require "gui.abstract_widget" local utils = require "gui.utils" local utf8 = require "ng.utf8" local wm = require "ng.wm" local W = abstract_widget:extends() function W:__init() W.super.__init(self) self.min_size = ngm.Vec2i(1...
#!/usr/bin/env lua5.3 digit = { '0','1','2','3','4','5','6', '7','8','9','A','B','C' } function cvt(x) -- dec to 13th high = math.floor(x / 13) low = x % 13 return digit[high+1]..digit[low+1] end io.write('#'..cvt(io.read('*number')).. cvt(io.read('*number'))..cvt(io.read('*number')))
local core = l2df or require((...):match("(.-)[^%.]+$") .. "core") assert(type(core) == "table" and core.version >= 1.0, "UI works only with l2df v1.0 and higher") local helper = core.import("helper") local Entity = core.import "core.entities.entity" local fs = love and love.filesystem local notNil = helper.notNil l...
--[[ desc:类型 auth:Carol Luo ]] local class = require("class") local chessType = require("chessType") ---@class fiveType:chessType @桌子 local type = class(chessType) ---构造函数 function type:ctor() end return type
-- editorconfig-vim -- https://EditorConfig.org vim.cmd 'packadd editorconfig-vim' vim.g.EditorConfig_exclude_patterns = { 'fugitive://.*' }
local f = string.format My.Translator:register("de", { comms_mission_broker_label = "Missionen", comms_mission_broker_main_no_missions = "Wir können Ihnen im Augenblick keine Missionen anbieten.", comms_mission_broker_main_missions = "Folgende Missionen halten wir für sie interessant:", comms_mission_...
--需要根据其他属性来设置内容 EditCtrl = relative_import('edit_utils').create_edit_class(nil, 'editor/edit/uieditor_edit_combo') function EditCtrl:on_update_data() end local function _getAniInfo(plist) local action2framepaths = {} local aniFrames = {} if not is_valid_str(plist) then return action2framepaths, aniFrames end ...
local _ENV = mkmodule('plugins.luasocket') local _funcs={} for k,v in pairs(_ENV) do if type(v)=="function" then _funcs[k]=v _ENV[k]=nil end end local socket=defclass(socket) socket.ATTRS={ server_id=-1, client_id=-1, } function socket:close( ) if self.client_id==-1 then _...
local _M = {} _M.fixtures = { http_mock = { circuit_breaker = [[ server { server_name app_config_10001; listen 10001; charset utf-8; charset_types application/json; default_type application/json; location = "/test" { ...
require("Menu/MainMenu/mainMenuStyle.lua") require("Menu/Campaign/mapPanel.lua") require("Menu/Campaign/shop.lua") --this = SceneNode() Campaing = {} function Campaing.new(camera, inForm) local self = {} --camera = Camera() local form = nil local mainForm = inForm local mapPanel = nil local mainMenuListener = Li...
#!/usr/bin/lua local cjson = require("cjson") socket = require"socket" --useage --minitor-ctrl.lua reload/status/start/stop/start_all/stop_all [conf_name] function sleep(n) socket.select(nil, nil, n) end --if file is exist return true ,else return false function file_exists(path) local file =...
local do_not_run = true if do_not_run then print([[ This script was used to bootstrap the filetype patterns in runtime/lua/vim/filetype.lua. It should no longer be used except for testing purposes. New filetypes, or changes to existing filetypes, should be ported manually as part of the vim-patch process....
local pressDuration = ... if pressDuration == nil then pressDuration = 1 end btnTimer = 0; tempVar = 0; -- multiply battery voltage by 5.70 to compensate for potential divider -- 5.70 comes from potential divider of 470K & 100K resistors' ladder -- i.e. battery voltage at adc pin = vbatt * 100 / (100 + 470) -- ...
if not modules then modules = { } end modules ['typo-ovl'] = { version = 1.001, comment = "companion to typo-ovl.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- This is dubious code...
----------------------------------- -- Area: Yhoator Jungle -- NPC: Peddlestox -- !pos -499.914 1.470 -109.039 124 -- Active on LIGHTNINGDAY in this zone. To test on off-days, setStatus(tpz.status.NORMAL) ----------------------------------- local ID = require("scripts/zones/Yhoator_Jungle/IDs") require("scripts/global...
-- This is a test script for tshark/wireshark. -- This script runs inside tshark/wireshark, so to run it do: -- wireshark -X lua_script:<path_to_testdir>/lua/struct.lua -- tshark -r bogus.cap -X lua_script:<path_to_testdir>/lua/struct.lua -- Tests Int64/UInt64 functions local function testing(...) print("---- Testi...