content
stringlengths
5
1.05M
local AddonName, AddonTable = ... -- WoD Junk AddonTable.junk = { 56046, -- Shattered Rock Fragments 83156, -- Trembling Stone Shard 106285, -- Acid Scarred Plate Belt 106289, -- Sun-Baked Bracers 106290, -- Scraggly Cloth Bracers 106291, -- Ripped Mail Bracers 106292, -- Acid Scarred Pl...
local component = require("component") local GUI = require("GUI") local MineOSInterface = require("MineOSInterface") local buffer = require("doubleBuffering") local fs = require("filesystem") local defaultPath = "/EFIFlash/" local dumpFileName = "Dump" .. math.random(1, 1000) .. ".efi" ----------Image---------- ------...
return { name = "Zemacsy", description = "Xcode and Emacs type keybindings", author = "Sean Levin", version = 0.1, onRegister = function() end, onEditorCharAdded = function(self, editor, event) end, onEditorFocusSet = function(self, editor, event) end, --[[ This page is helpful for com...
package("lyra") set_homepage("https://www.bfgroup.xyz/Lyra/") set_description("A simple to use, composable, command line parser for C++ 11 and beyond") set_license("BSL-1.0") add_urls("https://github.com/bfgroup/Lyra/archive/1.5.1.tar.gz", "https://github.com/bfgroup/Lyra.git") add_ve...
local llthreads2 = require "llthreads2" local utils = require "utils" local sleep = utils.sleep local include = utils.thread_init .. [[ local llthreads2 = require"llthreads2" local sleep = require "utils".sleep ]] local thread = llthreads2.new(include .. [[ sleep(5) ]]) thread:start() local ok, err = thre...
--[[ The MIT License (MIT) Copyright (c) 2015-2018 Xaymar 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,...
return { level = 95, need_exp = 300000, clothes_attrs = { 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, }, }
local crypto = require("crypto") local urlhandler = require("escher.urlhandler") local utils = require("escher.utils") local Canonicalizer = {} local meta = { __index = Canonicalizer } function Canonicalizer:new(options) local object = { authHeaderName = options.authHeaderName, dateHeaderName = options.d...
slot0 = class("ShopBgView") slot0.Ctor = function (slot0, slot1) slot0._bg = slot1 slot0.img = slot0._bg:GetComponent(typeof(Image)) setActive(slot1, false) slot0.bgs = {} end slot0.Init = function (slot0, slot1) setActive(slot0._bg, slot1 ~= nil) if slot1 then slot2 = nil slot0.img.sprite = (not slot0.b...
position = {x = 4.1311092376709, y = 1.43001747131348, z = -18.0412254333496} rotation = {x = -0.000122623663628474, y = 269.991760253906, z = 0.00591064570471644}
require("src.main") require("remote") local function on_init() -- Working set -- List of all known vehicles with an equipment grid -- [unit-number] = entity global.vehicles = { } -- List of all trains currently slowing down. Used for regenerative braking. -- [*] = braking data global.braking_trains = ...
Creature = Class{} --Initiates a creature. Don't call this explicitly, it's called when you create a new creature. --@param self The ID of the creature you want to create. --@param level The level to set the creature to (optional) --@return The creature itself. function Creature:init(creatureType,level) local data =...
require("logic.computer") computer.commands = { cat = { "cat <filename> ... - concatenate files and return result", function(self, fs, ...) local text = "" local file = fs.cwd if #{...} == 0 then return computer.commands.cat[1] end ...
local FakeMetaRef = assert(foundation.com.FakeMetaRef) local cluster_devices = assert(yatm.cluster.devices) local cluster_energy = assert(yatm.cluster.energy) local Energy = assert(yatm.energy) local spacetime_network = assert(yatm.spacetime.network) local SpacetimeMeta = assert(yatm.spacetime.SpacetimeMeta) local tel...
--!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...
puck_illusory_orb_lua = class({}) puck_ethereal_jaunt_lua = class({}) LinkLuaModifier( "modifier_puck_illusory_orb_lua_thinker", "lua_abilities/puck_illusory_orb_lua/modifier_puck_illusory_orb_lua_thinker", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- -- S...
local EventTap = require("hs.eventtap") local obj = {} local _appObj = nil local function newWindow(modal) modal:exit() EventTap.keyStroke({"cmd", "alt"}, "n") modal:enter() end obj.modal = nil obj.actions = { newWindow = { action = function() newWindow(_appObj) end, hotkey = {"cmd", "n"} } } fun...
--[[ User Study - API v1.3.4 by: standardcombo Provides a set of functions to control and to get information about the study. The API script itself is state-less. Study state is stored in the observer's `serverUserData`. See the README file to learn more about this package. Server-only functions: - Beg...
include("shared.lua") local CameraScreen = nil CreateConVar( "vrmod_camera_track", "1", FCVAR_ARCHIVE, "Should cameras track the player?" ) CreateConVar( "cl_drawcameras", "1", FCVAR_ARCHIVE, "Should cameras be drawn?" ) CreateConVar( "vrmod_camera_lock", "1", FCVAR_ARCHIVE, "Should cameras movable?" ) CreateC...
local qGunServer = require(game:GetService("ServerStorage"):WaitForChild("nofairTCM_Server"):WaitForChild("GunKit")); qGunServer.init(); -- 초기화를 진행함 (다른사람이 날린 총알 그리기 등을 위해서 서버와 이벤트 소캣을 만듬) -- 처리는 모두 모듈이 하므로 여기는 그냥 로더 부분 정도밖에 안됨 -- 코드를 편집하고 싶으면 ServerStorage/qGunServer 로 이동 (src/server/init.lua)
-- STORAGES -- Storage = { DemonOak = { Done = 1010, Progress = 1013, Squares = 1014, AxeBlowsBird = 8288, AxeBlowsLeft = 8289, AxeBlowsRight = 8290, AxeBlowsFace = 8291 }, AnnihilatorDone = 5000, VampireShieldDone = 5001, FireAxeDone = 5002, MedusaShieldDone = 5003, CrystalWandDone = 5004, ...
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/smartdevicelink/sdl_core/issues/3412 --------------------------------------------------------------------------------------------------- -- Description: Check SDL is able to proceed with Aler...
return {'ogief','ogink','ogier','ogieven'}
local Character = class('Character', Base) function Character:initialize(owner, x, y, radius, rotation, speed) Base.initialize(self) assert(owner:isInstanceOf(Player)) assert(is_num(x)) assert(is_num(y)) assert(is_num(radius)) assert(is_num(rotation)) assert(is_num(speed)) self.owner = owner self.x...
--[[ CS50x final project Falling from the Sky -- main.lua -- Author: Yoru Sung https://github.com/spero61/falling-from-the-sky -- Dependencies -- [vrld/hump/class.lua](https://github.com/vrld/hump) a classic OOP class library [Ulydev/push](https://github.com/Ulydev/push) ...
-- credit to atom0s for help with decompiling -- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec return { API = {function(API, TRIGGER, TARGETOBJ, ...) -- function num : 0_0 local Args = {...} local EventKey = Args[1] local Time = tonumber(Args[2]) local IsLoop = Args[3]...
--[[ 章节驻守阵容选人界面 @Liukeming 2020-8-26 ]] local M = DClass('ChapterGarrisonFormationWindow', BaseWindowExtend) _G.ChapterGarrisonFormationWindow = M function M:ctor(data) self.chapter = data[1] self.index = data[2] end function M:onInit() --lang self:getText('nodeDialog/txtTitle').text = '入驻选择'...
for _, mappings in pairs( { {"n", "Y", "y$"}, -- do Y to yank till the end of the line {"n", "<TAB>", ":bn<CR>"}, {"n", "<S-TAB>", ":bp<CR>"}, {"n", "<C-s>", ":lua reload()<cr>"}, -- reload config -- replace selected {"n", "R", ":%s///g<left><left>"}, {"n", "<...
require 'lib.behavior3.core.Composite' local sequence = b3.Class("Sequence", b3.Composite) b3.Sequence = sequence function sequence:ctor() b3.Composite.ctor(self) self.name = "Sequence" end function sequence:tick(tick) for i = 1,table.getn(self.children) do local v = self.children[i] local status = v:_execut...
-- HELPER METHODS -- creates new Text object with given string local function message_factory( font, str, limit, padX, padY ) local text = love.graphics.newText( font, nil ) text:addf( str, limit - (padX * 2), "left", padX, padY ) return text end -- OBJECT DEFINITION local message = {} -- m...
addition_table = function() columns = 6 q = {} for i=0,columns-1 do q[i] = {} term = 5 + math.random(14) q[i][1] = math.random(term - 2) q[i][2] = q[i][1] + 2 * term q[i][3] = q[i][1] + term q[i][4] = term q[i][5] = math.random(2) q[i][6] = 2 + math.random(2) end style = {} ...
solution "modplayer" location "../build" configurations { "Debug", "Dev", "Release" } platforms { "native", "x32", "x64" } project "modrender" location "../build" kind "ConsoleApp" language "C++" files { "../src/core/**", "../src/modrender/**" } includedirs { "../src/core", "../src/modrende...
local dayMean; local day7Mean; local todayTime; local numDays = 0; local isFirstDaySession = true; local STStats; function InitializeUserStats() -- "STATS" FRAME -- statsFrame = STCreateFrame("Frame", "statsFrame", 380, 200, "DIALOG", true); statsFrame.text = STCreateFrameFontString(statsFrame, "Stats...
--- -- ## SafeLuaAPI compiler, generate the C code needed for the library -- -- @author Demi Marie Obenour -- @copyright 2016 -- @license MIT/X11 OR Apache 2.0 OR Boost OR ISC (your choice) -- @module generator local generator = {} -- Local versions of global variables local require = require local concat = table.conc...
local HC = require "HC" local Bullet = require "objects.bullet" local Ship = {} --[[ Constructor : newImage : the ship's image ]]-- function Ship:new() local newShip = { x = 300, y = 400, r = 0, width = 53, height = 63, speed = 200, ...
-- // ------------------------------------------------------------------- // -- -- // // -- -- // A T O M A G I C A L Y G E N E R A T E D F I L E // -- -- // - D O N O T E D I T - // ...
include("MasterGear/MasterGearLua.lua") enmity_actions = {} enmity_actions["JA"] = { "Valiance", "Vallation", "Swordplay", "Pflug", "Gambit", "Rayke", "Liement", "Battuta", "One for All", "Elemental Sforzo" } enmity_actions["RUN"] = { "Flash", "Foil" } enmity_actions["DRK"] = { "Poisonga", "Stun" } enmity_actions["BL...
-- LandscapeX -- ArsonistD -- Started : 12/14/2021 -- Last Edit : 12/14/2021 local LandscapeX = { CreateTerrain = require(script.CreateTerrain).new; CreateBiome = require(script.CreateBiome).new; CreateNoise = require(script.CreateNoise).new; CreateMaterial = require(script.CreateMaterial).new; Cre...
local Class = require "c3class" local Reader = Class("Reader") Reader.read = Class.ABSTRACT_FUNCTION local Writer = Class("Writer") Writer.write = Class.ABSTRACT_FUNCTION -- 有虚拟函数的类不能实例化 assert(pcall(Reader) == false) assert(pcall(Writer) == false) -- 实现接口 local StringStream = Class("StringStream", Reader, Writer...
function MakeHat(name) local fname = "hat_"..name local symname = name.."hat" local texture = symname..".tex" local prefabname = symname local assets= { Asset("ANIM", "anim/"..fname..".zip"), --Asset("IMAGE", texture), } if name == "miner" then ...
-- Copyright 2020 Tansony72 <tansony72@gmail.com> -- Licensed to the public under the Apache License 2.0. module("luci.controller.power_off", package.seeall) function index() entry({"admin", "system", "power_off"}, template("power_off/power_off"), _("Power Off"), 90) entry({"admin", "system", "power_off", ...
-- Local instances of Global tables -- local PA = PersonalAssistant -- ===================================================================================================================== local PARepairMenuDefaults = { name = table.concat({GetString(SI_PA_PROFILE), " ", 1}), -- -----------------------------...
-- Draw blips Citizen.CreateThread(function() while true do while not Jobs.JobDataLoaded do Citizen.Wait(10) end if (not Jobs.BlipsLoaded) then for _, blip in pairs(Jobs.Blips or {}) do RemoveBlip(blip.data) end local jobData ...
require("brains/mosquitobrain") require "stategraphs/SGmosquito" local assets= { Asset("ANIM", "anim/mosquito.zip"), } local prefabs = { "mosquitosack" } local sounds = { takeoff = "dontstarve/creatures/mosquito/mosquito_takeoff", attack = "dontstarve/creatures/mosquito/mosquito_attack", buzz = "do...
-- luacheck: globals describe it return function() describe("should pass", function() it("passing", function() -- An empty test should pass by default end) end) end
local function interact(event1) -- has .name = event ID number, .tick = tick number, .player_index, and .input_name = custom input name local player = game.get_player(event1.player_index) ThingHovering = player.selected --| Player Launcher SteppingOn = player.surface.find_entities_filtered { name = "PlayerLau...
blackMales = {[0] = true, [7] = true, [14] = true, [15] = true, [16] = true, [17] = true, [18] = true, [20] = true, [21] = true, [22] = true, [24] = true, [25] = true, [28] = true, [35] = true, [36] = true, [50] = true, [51] = true, [66] = true, [67] = true, [78] = true, [79] = true, [80] = true, [83] = true, [84] = tr...
-- Strip mining turtle program. --[[fuel must be placed in slot 15, torches must be placed in slot 16.]] -- Create the function for refueling function checkFuel() if turtle.getFuelLevel() <= 10 then turtle.select(15) turtle.refuel(1) turtle.select(1) end --if end --checkFuel() -- Create the turnAr...
local DEBUG_MODE = false local COMMENT = "#" local TOKENS = { "left", "right", "add", "sub", "while", "end", "write", "read", } local TOKEN_COUNT = #TOKENS local PARAMS = { true, true, true, true, false, false, false, false } local SIZES = {8, 16, 32} local VALUES = {2^SIZES[1], 2^SIZES[2], 2^SIZES[3]} local ...
project "hedron-core" -- Name of the project kind "SharedLib" -- Type of project (in that case a .lib (static library)) language "C++" -- The language in which the project is written cppdialect (hedron_core_cpp_version) -- The version of our C++ used staticruntime "off" targetdir (bin_dir...
while true do if turtle.detectDown() then turtle.digDown() else turtle.select(1) turtle.dropUp() sleep(10) end end
-- credit to atom0s for help with decompiling -- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec return { AttrCfg = { ArenaPoint = { Attr = "ArenaPoint", AttrType = "number", OutParam = "ArenaPoint" }, DifficultValue = { Attr = "Difficult", AttrType = "number",...
local ecs = dtrequire("ecs") local resource = dtrequire("resource") local _, Component = ecs.common() local peachy = dtrequire("lib.peachy") local AnimatedSprite = Component:subtype({}, "droptune.components.AnimatedSprite") do function AnimatedSprite:init(jsonresource, imageresource, initialTag, sx, sy, ox, o...
-- -- (C) 2013 Kriss@XIXs.com -- local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,str...
Locales['fr'] = { ['valid_this_purchase'] = 'valider cet achat ?', ['yes'] = 'oui', ['no'] = 'non', ['name_outfit'] = 'nom de la tenue ?', ['not_enough_money'] = 'vous n\'avez pas assez d\'argent', ['press_menu'] = 'appuyez sur ~INPUT_CONTEXT~ pour accéder au menu', ['clothes'] = 'vêtements', ['you_paid'] = 'v...
meta = { name = "Become a Shoppie", description = "You get to own a shop in this mod!", version = "0.1", author = "C_ffeeStain" } local customers = {} local random_exit = -1 define_tile_code("random_exit") local basement_start = {23, 107} local basement_end = {33, 104} local shop_start = {25, 112} lo...
--------------------------------------------- -- PerimeterX(www.perimeterx.com) Nginx plugin ---------------------------------------------- local M = {} function M.load(px_config) local _M = {} local lustache = require "lustache" local px_constants = require "px.utils.pxconstants" local px_logger = r...
---- -- Styles - A class for writing the Excel XLSX Styles file. -- -- Copyright 2014-2015, John McNamara, jmcnamara@cpan.org -- require "xlsxwriter.strict" local Xmlwriter = require "xlsxwriter.xmlwriter" ------------------------------------------------------------------------------ -- -- Constructor. -- -----------...
local modpath = minetest.get_modpath("blocks_nodes") dofile(modpath.."/nodes.lua") dofile(modpath.."/recipes.lua")
local bindings = function(t) t.bindings = {} t.bindings.Button_Button = t.map:Get('Button_Button'):GetComponent(typeof(CS.UnityEngine.UI.Button)) t.bindings.Image_Button = t.map:Get('Image_Button'):GetComponent(typeof(CS.UnityEngine.UI.Image)) t.bindings.Image_Background = t.map:Get('Image_Background'):GetCompo...
--[[Copyright © 2019, Kenshi 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 must retain the above copyright notice, this list of conditions and the following ...
-- ======================================================================= -- ======================= For Factorio 0.17.64 ========================== -- ======================================================================= -- ===================== FSAC SCRIPT INITIALIATION ======================= -- =================...
healing_salve_ns_diax = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/mission/quest_item/diax_q2_needed.iff", craftingValues = {}, customizationStringNames = {}, customizationValues = {} } addLootItemTemplate("healing_salve_ns_diax", healing_salve_ns_diax)
workspace "PearlSDL" architecture "x86_64" startproject "Sandbox" configurations { "Debug", "Release" } flags { "MultiProcessorCompile" } project "PearlSDL" location "PearlSDL" kind "StaticLib" language "C++" cppdialect "C++17" staticruntime "on" targetdir ("bin/out/%{cfg.buildcfg} %{cfg.architect...
local frankenstein = {} local image = love.graphics.newImage function frankenstein.IdleLeftAnimation() local idleLeft = { image('entities/img/frankenstein/idleLeft1.png'), image('entities/img/frankenstein/idleLeft2.png'), image('entities/img/frankenstein/idleLeft3.png'), image('entities/img/frankenstein/idle...
local CoreGui = game:GetService("CoreGui") local CorePackages = game:GetService("CorePackages") local AppTempCommon = CorePackages.AppTempCommon local Modules = CoreGui.RobloxGui.Modules local Roact = require(CorePackages.Roact) local RoactRodux = require(CorePackages.RoactRodux) local ShareGame = Modules.Settings.P...
local config = {} config.options = {} local defaults = { pomodoroMinutes = 25, pomodoroBreakMinutes = 5, pomodoroLongBreakMinutes = 15, updateFrequency = 1000 } function config.setup_options(opts) config.options = vim.tbl_deep_extend("force", {}, defaults, opts or {}) end return config
local MJ_CARDS_TYPE = { [1] = "🀇", [2] = "🀈", [3] = "🀉", [4] = "🀊", [5] = "🀋", [6] = "🀌", [7] = "🀍", [8] = "🀎", [9] = "🀏", [11] = "🀐", [12] = "🀑", [13] = "🀒", [14] = "🀓", [15] = "🀔", [16] = "🀕", [17] = "🀖", [18] = "🀗", [19] = "🀘", [21] = "🀙", [22] = "🀚", [23] = "🀛", [24] = "...
--[[ Http:Request(request, awsService) Http:JSONEncode(tbl) Http:JSONDecode(str) ]] local Http = {} local httpService = game:GetService("HttpService") local Date local Promise local hashLib local function EncodeUri(str) return httpService:UrlEncode(str) end local function Trim(str) return str:match("^%s*...
-- Just an example, supposed to be placed in /lua/custom/ local M = {} local user_plugins = require("custom.plugins") -- make sure you maintain the structure of `core/default_config.lua` here, -- example of changing theme: M.ui = {theme = "gruvchad"} M.plugins = { install = user_plugins, options =...
-- 工程名 set_project("ars") set_version("$(aruversion)", {build = "%Y%m%d%H%M%S"}) -- 自定义配置 set_configvar("ARS_ATHOR", "wotsen(astralrovers@outlook.com)") -- 生成配置文件 add_configfiles("src/configure.h.in") -- 设置版本 option("aruversion") set_default("1.0.0") -- debug版本设置 if is_mode("debug") then add_defines("DEBUG...
--- Acts as an interface for a checklist item implementation. -- A checklist item can have a challenge and resposne text, which are displayed in the UI. These are optional, however if the checklist item has a response, the challenge and response texts are required. -- -- The challenge and response sounds are referenced...
local particledelay = 0.005 local colors = { {100,0,150}, {0,0,0}, {150,0,150}, {0,0,0}, {50,0,150}, {0,0,0}, {50,0,100}, {0,0,0}, {20,0,50}, } local headcolors = { {170,230,255}, {255,255,255}, {200,255,255}, } function EFFECT:Init( data ) --[[local demononly = data:GetFlags() == 1 if demononly and not...
-- Variables that are used on both client and server SWEP.Gun = ("ix_m16a2") -- must be the name of your swep but NO CAPITALS! SWEP.Category = "HL2 RP" --Category where you will find your weapons SWEP.MuzzleAttachment = "1" -- Should be "1" for CSS models or "muzzle" for hl2 models SWEP.ShellAttachment = "shell...
-- Démarre le WIFI en mode AP function wifi_ap_start() print("\n wifi_ap_start.lua zf190310.1511 \n") local zmodewifi=wifi.getmode() if zmodewifi == wifi.NULLMODE then print("WIFI mode AP only") wifi.setmode(wifi.SOFTAP) elseif zmodewifi == wifi.STATION then print("WIFI mod...
-- Package: local Image = require 'graphicsmagick.Image' local convert = require 'graphicsmagick.convert' local parseExif = require 'graphicsmagick.exif' local info = require 'graphicsmagick.info' local load = function(path,type) local img = Image(path) return img:toTensor(type or 'float','RGB','DHW') end local...
local _, core = ... local commandDelimiter = "\1" local messageDelimiter = "\2" local lootlist = {} -- String encoded NAME:GUID local lootlistMap = {} local playerAddonData = {} local playerDurabilities = {} local itemTrackingTable = {} local similarItemIds = {} local addonMessagePrefix = "SU" local lootW...
--[[ This example is a part of the State switcher class: stateswitcher.lua Author: Daniel Duris, (CC-BY) 2014, dusoft[at]staznosti.sk Mutilated by: Philipp Überbacher, 2017, murks[at]freeshell.de]]-- function love.draw() love.graphics.setBackgroundColor(0,0,50) love.graphics.setColor(255,30,30) love.graphics.pr...
--[[ TheNexusAvenger Implementation of a command. --]] local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand")) local CommonState = require(script.Parent.Parent:WaitForChild("CommonState")) local Command = BaseCommand:Extend() --[[ Creates the command. --]] function Command:__new() self:In...
function IPainlasher_OnEnterCombat(Unit,Event) Unit:RegisterEvent("IPainlasher_LashOfPain", 4000, 0) end function IPainlasher_LashOfPain(Unit,Event) Unit:FullCastSpellOnTarget(15968,Unit:GetClosestPlayer()) end function IPainlasher_OnLeaveCombat(Unit,Event) Unit:RemoveEvents() end function IPainlasher_OnDied(Unit...
include('shared.lua') function ENT:Draw() self:DrawModel() local offset = Vector(0,0,60) local ang = self:GetAngles() offset:Rotate( ang) local pos = self:GetPos()+offset local rot = CurTime()*50 ang.p = 0 ang.r = 0 cam.Start3D2D( pos, ang+Angle(0,rot,90), 0.25) draw.DrawText( math.Round(self:Ge...
function LinkRightCels() local sprite = app.activeSprite local cel = app.activeCel local layer = app.activeLayer local frameNumbers = {} local sframe = cel.frameNumber local eframe = sprite.frames[#sprite.frames].frameNumber for f = sframe, eframe do frameNumbers[#frame...
let a = 1 pprint a
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by henning. --- DateTime: 17/07/2019 10:55 --- do local oldWait = PolledWait function PolledWait(duration) local thread = coroutine.running() if thread then TimerStart(NewTimer(thread), duration, false, function() ...
--[[ Load hms + ConvNet (5d conv + lin layer) networks. ]] require 'nn' ------------------------------------------------------------------------------------------------------------ local conv = nn.VolumetricConvolution local batchnorm = nn.VolumetricBatchNormalization local relu = nn.ReLU -- Main convolution...
local bin = require("bin") local bits = bin.bits test = bin.newDataBuffer(16) print()
module("luci.controller.tencentddns",package.seeall) function index() entry({"admin", "services", "tencentddns"},cbi("tencentddns"),_("TencentDDNS"),57).dependent = true end
-- used this code to test what i was making -- caching the background local background = draw.DrawCircle(120, ScrH() - 120, 75, nil, true) local innerBackground = draw.DrawCircle(120, ScrH() - 120, 75, nil, true) local scrw, scrh = ScrW(), ScrH() -- Cache middle of Spining Rings local midSpinRing = draw.DrawCircle(S...
-------------------------------------------------------------------------------- -- Preconditions -------------------------------------------------------------------------------- local Preconditions = require('user_modules/shared_testcases/commonPreconditions') --------------------------------------------------------...
#!/usr/bin/env lua package.path = 'argparse/src/?.lua;templates/lib/resty/?.lua;' .. package.path argparse = require 'argparse' helpers = require 'helpers' templates = require 'template' local parser = argparse("luacc", "Lua Code Combine tool") parser:argument("main", "Main file of project") parser:argument("modules...
log = require 'log' local fs = require 'bee.filesystem' local ydwe = fs.dll_path():parent_path():parent_path() log.init(ydwe / "logs", "lock_mouse") local ffi = require 'ffi' ffi.cdef[[ void __stdcall Sleep(unsigned long dwMilliseconds); struct RECT { long left; long top; ...
--------------------------------- --- @file namespaces.lua --- @brief Namespaces ... --- @todo TODO docu --------------------------------- local mod = {} local ffi = require "ffi" local serpent = require "Serpent" local stp = require "StackTracePlus" local lock = require "lock" local log = require "log" ffi.cdef...
local m = {} package.loaded[...] = m require 'sys.base' local sys = require 'sys' function m.mkdirs(mkdir, exist, path) path = sys.path.nml(path) local parts = sys.str.split(path, '/') local dir = nil for _, part in ipairs(parts) do if dir then dir = dir .. '/' .. part else dir = part end if not e...
require "src.imports" function love.load() rects = require "src.entities.rects" love.graphics.setBackgroundColor(color(255, 255, 0)) end function love.update(dt) for _, v in ipairs(rects) do v:motor(dt) end end function love.draw() for _, v in ipairs(rects) do v:draw() end end
function onCreate() makeLuaSprite('vignette', 'vignette-black', -500, -300); addLuaSprite('vignette', true); scaleObject('vignette', 1.0, 1.0); makeLuaSprite('stage', 'bob-run-stage', -500, -300); addLuaSprite('stage', false); end
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** ---@class ISVehiclePartMenu ISVehiclePartMenu = {} function ISVehiclePartMenu.getNearbyFuelPump(vehicle) local part = vehicle:getPa...
--[[ As mentioned in the readme and the resource, this is my first script - a Panic Button script. If you see any faults, let me know! Orginally From - aka-lucifer, Vespera and Austin Grandpre Edited By - Callum Created - 01-22-2019 Change Log: 10-12-2018 - I have now made the command pb and it displays a ...
--- Entity lifespan. -- -- @setting ghost.lifetime -- @settype int -- @default 300 cmer_ghost.lifetime = tonumber(core.settings:get("ghost.lifetime")) or 300 --- Spawn rate frequency. -- -- -- @setting ghost.spawn_interval -- @settype int -- @default 40 -- @see [ABM definition](http://minetest.gitlab.io/minete...
SERVICE.Name = "HTML5 Video" SERVICE.Id = "h5v" SERVICE.Base = "res" SERVICE.FileExtensions = { 'webm', -- 'mp4', -- not yet supported by Awesomium -- 'ogg' -- already registered as audio, need a work-around :( } DEFINE_BASECLASS( "mp_service_base" ) if CLIENT then local MimeTypes = { webm = "video/webm", ...
data:extend( { { type = "recipe-category", name = "ymm_smelting" }, { type = "recipe-category", name = "ymm_casting" }, })