content
stringlengths
5
1.05M
return { id = "YONGYEHUANGUANG26", mode = 2, once = true, fadeType = 1, fadein = 1.5, scripts = { { dir = 1, side = 2, bgm = "xinnong-4", say = "巴伦支海·皇家支援舰队 稍早前", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { dir = 1, s...
GUIEditor = { tab = {}, tabpanel = {}, label = {}, button = {}, window = {}, memo = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 660) / 2, (screenH - 389) / 2, 660, 389, "AuroraRPG - Business", false) guiWindowSetSizable(GUIEditor.window[1],...
StatusMenu = StatusMenu or class() function StatusMenu:init(parent, menu) self._menu = menu:Menu({ name = "Status", auto_foreground = true, scrollbar = false, visible = false, w = 200, h = 100, }) local w = BLE.Options:GetValue("MapEditorPanelWidth") self....
---------------------- DIMENSIONAL PLANT ---------------------- -- Entity -- dpE = table.deepcopy(data.raw["assembling-machine"]["chemical-plant"]) dpE.name = "DimensionalPlant" dpE.icon = "__Mobile_Factory_Graphics__/graphics/icons/DimensionalPlant.png" dpE.icon_size = 32 dpE.icon_mipmaps = 1 dpE.minable = {mining_ti...
local commands = require("commands") local inputcommands = require("inputcommands") local insertionSort = require("util.sort") local gui = require("gui") local message = require("message") local input = require("input") local sort = {} function cmpKey(key, cmpFunc) if cmpFunc then return function(a, b) ...
local awful = require 'awful' local naughty = require 'naughty' local wibox = require 'wibox' local gears = require 'gears' local beautiful = require 'beautiful' local text_taglist = require 'ui.taglist' local widgets = require 'ui.widgets' local helpers = require 'helpers' screen.connect_signal('property::geometry', h...
local config = require 'config' local u = require 'utilities' local api = require 'methods' local plugin = {} local function doKeyboard_lang() local keyboard = { inline_keyboard = {} } for lang, flag in pairs(config.available_languages) do local line = {{text = flag, callback_data = 'langselected:'..lang}} t...
--- The Icey Maze Map Generator. -- See http://www.roguebasin.roguelikedevelopment.org/index.php?title=Simple_maze for explanation -- @module ROT.Map.IceyMaze local ROT = require((...):gsub(('.[^./\\]*'):rep(2) .. '$', '')) local IceyMaze = ROT.Map:extend("IceyMaze") --- Constructor. -- Called with ROT.Map.IceyMaze:new...
Bird = Class{} function Bird:init() --load bird image from disk and assign its width and height self.image = love.graphics.newImage('bird.png') self.width = self.image:getWidth() self.height = self.image:getHeight() --position bird in the middle of the screen self.x = VIRTUAL_WIDTH / 2 - (self.width / 2)...
local _, CLM = ... local MODELS = CLM.MODELS local UTILS = CLM.UTILS local mergeLists = UTILS.mergeLists local typeof = UTILS.typeof -- local getIntegerGuid = UTILS.getIntegerGuid -- local GetGUIDFromEntry = UTILS.GetGUIDFromEntry local CreateGUIDList = UTILS.CreateGUIDList local LogEntry = LibStub("EventSourcing/L...
ccs = ccs or {} ---ActionManagerEx object ---@class ActionManagerEx : Ref local ActionManagerEx = {} ccs.ActionManagerEx = ActionManagerEx -------------------------------- ---Stop an Action with a name.<br> ---param jsonName UI file name<br> ---param actionName action name in the UIfile.<br> ---return ActionObject ...
project "App_SharedMemoryPhysics" if _OPTIONS["ios"] then kind "WindowedApp" else kind "ConsoleApp" end includedirs {".","../../src", "../ThirdPartyLibs",} links { "Bullet3Common", "BulletDynamics","BulletCollision", "LinearMath" } language "C++" files { "PhysicsClient.cpp", "PhysicsClientSharedMemory.cpp",...
local oo = require("oo") local bt = require("bt") local log = require("log") local nt = require("nt") local facing = require("facing") local tb = {} -- A collection of common turtle behaviours local function fuel(v) -- Fuel needed to traverse vector return math.abs(v.x) + math.abs(v.y) + math...
-- Should Cillia spawn as in real tibia? local spawnByDay = true local spawnDay = 'Sunday' local spawnPosition = Position(32392, 32197, 8) function onStartup() if spawnByDay then if os.date('%A') == spawnDay then Game.createNpc('Cillia', spawnPosition, false, true) end else Game.createNpc('Cillia', spawnPos...
local ease = require "ease" --local base = require "base" --local movement = require "movement" local jump = { isjumping = false, } function jump:set_status(pstatus) self.isjumping = pstatus end function jump.process(pspeed, pmultiplier) jump:set_status(true) print(jump.isjumping) xprejump = x easedpo...
workspace "Violet" architecture "x86_64" startproject "Violet-Editor" configurations{ "Debug", "Release", "Distribution" } flags { "MultiProcessorCompile" } outputDir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "Violet" location "Violet" kind "StaticLib" language "C++" cppd...
local lookup = { [ ' _ ' .. '| |' .. '|_|' .. ' ' ] = '0', [ ' ' .. ' |' .. ' |' .. ' ' ] = '1', [ ' _ ' .. ' _|' .. '|_ ' .. ' ' ] = '2', [ ' _ ' .. ' _|' .. ' _|' .. ' ' ] = '3', [ ' ' .. '|_|' .. ' |' .. ...
--[[ © 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 --]] CW_SPANISH = Clockwork.lang:GetTable("Spanish"); CW_SPANISH["PaperWrittenOn"] = "...
ITEM.name = "Противогаз ЭО-20 ПБФ" ITEM.desc = "Модернизированная, значительно более компактная версия классического противогаза ЭО-19 ПБФ. Простая система обеспечивает фильтрацию воздуха от радиационных частиц и химических реагентов. Защита от радиации была усовершенствована добавлением в фильтры свинца, однако, сле...
local packer = require('packer') local util = require('packer.util') local manager = {} manager.__index = manager function manager:new(module_names) local o = {modules = {}, plugins = {}, module_names = module_names} setmetatable(o, {__index = self}) return o end function manager:init() self:_set_pac...
q1 = {"Линколн", "Шекспир", "Њутн", "да Винчи", "Мирзахани", "Чаплин"} msg_birth_a = "рођен (араб)" msg_birth_r = "рођен (роман)" msg_year_a = "године (араб)" msg_year_r = "године (роман)"
-- modinfo read by stlrel from http://github.com/stellaris-mods/scripts return { path = "folk_tinyoutliner", name = "Tiny Outliner", tags = { "Graphics", "Utilities" }, picture = "thumb.png", supported_version = "1.9.*", originalUploader = "folk", remote_file_id = 810204739, readme = "readme.md", steambb = "st...
-- Yuoki has a productivity recipe list... but applies it in the data phase, so yuoki's modules (from yuoki engines, which loads after yuoki itself) don't exist yet and thus aren't updated -- so, we're stealing that for here and re-running it to get other modules return { recipes = { { name = "y_slag_brick_burn_re...
---@class math.vec2 ---@field x number ---@field y number local M = {} M.__index = M setmetatable(M, { __call = function(_, x, y) local t = type(x) if t == 'number' then y = y or 0 elseif t == 'table' then x, y = x.x, x.y x = x or 0 y = y or 0 elseif t == 'nil' then ...
return { { Type = 0, nPointCount = 2, Next = 0, Delay = 0, id = 1, Position = { { x = 1840.0032, y = 450 }, { x = -400.00032, y = 450 }, { x = 0, y = 0 }, { x = 0, y = 0 } } }, { Type = 0, nPointCount = 2, Next = 0, Delay = 0, id = 2, ...
data:extend({ { -- Aircraft category type = "equipment-category", name = "aircraft" }, ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- { -- Gunship grid t...
data:extend( { { type = "recipe", name = "cursix-mushroom", enabled = false, energy_required = 25, ingredients = { {"wood", 5}, {"iron-gear-wheel", 10}, {"automation-science-pack", 1} }, result = "cursix-mushroom" }, { type = "recipe", name = "cursix-1up-mu...
local source = {} local items = require("cmp_latex_symbols/items") source.new = function() return setmetatable({}, { __index = source }) end source.is_available = function() return vim.o.filetype == 'markdown' or vim.o.filetype == 'latex' end source.get_trigger_characters = function() return { "\\" } end sou...
local tt=getTickCount() function menuUstaw() if getTickCount()-tt<2000 then outputChatBox("Musisz chwile odczekac.", 255,0,0) return end tt=getTickCount() local veh=getPedOccupiedVehicle(localPlayer) if not veh then outputChatBox("(( Płyty możesz użyc w pojezdzie. ))") ...
return { id = "WorldG006", events = { { alpha = 0.3, code = { "GuideDetail" }, style = { text = "点击详情界面,可以查看已接受的任务", mode = 2, posY = -54.13, dir = 1, posX = 236.1 }, ui = { path = "OverlayCamera/Overlay/UIMain/top/right_stage/dock/detail_button", pathIndex = -1, ...
if not (redis.call('exists', settings_key) == 1) then return redis.error_reply('SETTINGS_KEY_NOT_FOUND') end if not redis.call('zscore', client_running_key, client) then -- Register new client redis.call('zadd', client_running_key, 0, client) redis.call('hset', client_num_queued_key, client, queued) redis.ca...
---- -- Handles player crafting. -- -- if not SDK.Player.Craft.HasFreeCrafting(ThePlayer) then -- SDK.Player.Craft.ToggleFreeCrafting(ThePlayer) -- end -- -- **Source Code:** [https://github.com/dstmodders/dst-mod-sdk](https://github.com/dstmodders/dst-mod-sdk) -- -- @module SDK.Player.Craft -- @see SDK...
--New includeFile("custom_content/building/military/eow_imperial_endor_base.lua") includeFile("custom_content/building/military/eow_rebel_transport.lua") includeFile("custom_content/building/military/gcw_battlefield_base.lua") includeFile("custom_content/building/military/military_base_shed_imperial_style_cloning_facil...
if true then -- comment end if true then -- comment print("something else after") end
package.path = "../?.lua;" .. package.path require("tests/mock") local Queue = require("queue") describe("Queue", function() it("records function calls on an object for later execution on any object", function() local queue = Queue:new() queue:say_hello("John") local output = "" local target = { say_hell...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' description 'Server Logging' version '1.0' server_script 'server.lua' client_script 'client.lua' --edit and cleand up by NebelRebell
vim.g.markdown_image_paste = '/home/mark/Pictures/'
--- === plugins.core.application.manager === --- --- Application manager. local require = require local fnutils = require "hs.fnutils" local config = require "cp.config" local copy = fnutils.copy local mod = {} -- applications -> table -- Variable -- A table of registered applications. local applicati...
local taos_lib = require("resty.taos.library") local taos_data = require("resty.taos.data") local ffi = require("ffi") local ffi_cast = ffi.cast local ffi_new = ffi.new local ffi_copy = ffi.copy local ffi_string = ffi.string local C = taos_lib local ngx = ngx local ngx_log = ngx.log local ngx_DEBUG = ngx.DEB...
mapFields = require "lib/mapFields" if target.field == mapFields.getID("NLCSubwayStation") then selection = self.ask_menu("Hello. Would you like to buy a ticket for the subway?", { [0] = "Kerning City of Victoria Island" }) if selection == 0 then ticket = charInventory.selectTicketToVictoriaFrom...
local config = require'lspconfig'.texlab.document_config require'lspconfig/configs'.texlab = nil -- important, immediately unset the loaded config again config.default_config.cmd[1] = "./texlab" return vim.tbl_extend('error', config, { install_script = [[ os=$(uname -s | tr "[:upper:]" "[:lower:]") case $os in ...
local awful = require("awful") local gears = require("gears") local gcolor = require("gears.color") local gfs = require("gears.filesystem") local xresources = require("beautiful.xresources") local xrdb = xresources.get_current_theme() local themes_path = gfs.get_themes_dir() -- # Inherit default theme local theme = d...
-- -- 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 ...
local json = require 'jsonc' local function config_error(src, ...) error(src .. ' error: ' .. string.format(...), 0) end local has_domains = (os.execute('ls -d "$IPKG_INSTROOT"/lib/gluon/domains/ >/dev/null 2>&1') == 0) local function get_domains() local domains = {} local dirs = io.popen("find \"$IPKG_INSTROOT\...
local vim = vim local utils = require("neo-tree.utils") local function sort_items(a, b) if a.type == b.type then return a.path < b.path else return a.type < b.type end end local function deep_sort(tbl) table.sort(tbl, sort_items) for _, item in pairs(tbl) do if item.type == 'directory' then ...
---@class CS.FairyGUI.UIPanel : CS.UnityEngine.MonoBehaviour ---@field public packageName string ---@field public componentName string ---@field public fitScreen number ---@field public sortingOrder number ---@field public container CS.FairyGUI.Container ---@field public ui CS.FairyGUI.GComponent ---@field public EM_so...
index = math.random(2) decade = 10^index cifre[3] = math.random(7) numb1[1] = cifre[3] for i = 1, 2 do cifre[3-i] = math.random(10) - 1 numb1[1] = numb1[1] * 10 + cifre[3 - i] end if (cifre[index] >= 5) then cifre[index+1] = cifre[index+1] + 1 end for i = 1, index do cifre[i] = 0 end numb1[...
local config = require('config'); local party = require('party'); local actions = require('actions'); local packets = require('packets'); local buffs = require('behaviors.buffs') local healing = require('behaviors.healing'); local jdnc = require('jobs.dnc'); local jbrd = require('jobs.brd'); local spells = packets.spe...
function love.conf(t) t.console = true -- attach console when running on windows end
SubTitles= { {{255,255,255}, 0.1, 0.1, 1,"fleetintel#.tga",1}, {{255,255,255}, 0.1, 0.1, 1,"fleetcommand#.tga",1}, {{255,255,255}, 0.1, 0.1, 1,"makaan#.tga",1}, {{255,255,255}, 0.1, 0.1, 1,"keeper#.tga",1}, {{255,255,255}, 0.1, 0.1, 1,"chimera#.tga",1}, {{255,255,255}, 0.1, 0.1, 1,"bentusi#.tga",1}, {{...
--[=[ Circular buffer (aka fixed-sized FIFO queue) of Lua values. Written by Cosmin Apreutesei. Public domain. * Allows removing a value at any position from the queue. * For a cdata ringbuffer, look at fs.mirror_buffer(). * Implemented as an array, not a linked list, so remove(v) is O(n). * INDEX is a special ...
-- Copyright (C) Mashape, Inc. local BaseController = require "kong.api.routes.base_controller" local PluginsConfigurations = BaseController:extend() function PluginsConfigurations:new() PluginsConfigurations.super.new(self, dao.plugins_configurations, "plugins_configurations") end return PluginsConfigurations
local Narrow, parent = torch.class('nn.Narrow', 'nn.Module') function Narrow:__init(dimension,offset,length) parent.__init(self) self.dimension=dimension self.index=offset self.length=length or 1 if not dimension or not offset then error('nn.Narrow(dimension, offset, length)') end end function...
--[[ Copyright (c) 2013 Romain Meynet This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, ...
local m, s, o local sid = arg[1] local raw_modes = { "faketcp", "udp", "icmp", } local cipher_modes = { "aes128cbc", "xor", "none", } local auth_modes = { "md5", "crc32", "simple", "none", } m = Map("udp2raw", "%s - %s" %{translate("udp2raw-tunnel"), translate("Edit Server")}) m.redirect = luci.dispatcher...
return {'goed','goedaardig','goedaardigheid','goedachten','goedbedoeld','goedbekeken','goedbeschouwd','goedbetaald','goedbloed','goeddeels','goeddoen','goeddunken','goede','goedemannen','goedemiddag','goedemorgen','goedenacht','goedenavond','goedendag','goederen','goederenafgifte','goederenbedrijf','goederenbehandelaar...
local _, NeP = ... local _G = _G local strsplit = _G.strsplit local IsInGroup = _G.IsInGroup local IsInRaid = _G.IsInRaid local GetNumGroupMembers = _G.GetNumGroupMembers NeP.Protected = {} NeP.Protected.callbacks = {} local rangeCheck = _G.LibStub("LibRangeCheck-2.0") local noop = function() end function NeP.Protec...
local lualine_ok, lualine = pcall(require, "lualine") if not lualine_ok then vim.notify("Lualine not found. Statusline is disabled.", "warn") return end lualine.setup({ options = { theme = "gruvbox-material", component_separators = "|", section_separators = "", globalstatus = true, ...
local Parser = torch.class("neuralconvo.MovieScriptParser") function Parser:parse(file) local f = assert(io.open(file, 'r')) self.input = f:read("*all") f:close() self.pos = 0 self.match = nil -- Find start of script repeat self:acceptLine() until self:accept("<pre>") local dialogs = {} -- Apply ...
local content = { -- program data ["data"] = { ["commands"] = {}, -- [name] = function(args) ["variables"] = {}, -- [name] = value ["procedures"] = {}, -- [name] = {code, inputs name} ["labels"] = {} -- [name] = value }, -- program info ["program"] = { -- contents of the program ["contents"]...
package.path = package.path .. ';..\\src\\?.lua' local utils = require "WindowsFirewall.utils" utils.EachNetworkAdapter(function(adapter) print("Name: ", adapter:Name()) print("Description: ", adapter:Description()) print("GUID: ", adapter:GUID()) print("MAC: ", adapter:MACAddress()) p...
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local --- @param buffer buffer --- @param first integer --- @param last integer function vim.api.nvim__buf_redraw_range(buffer, first, last) end --- @param buffer buffer function vim.api.nvim__buf_stats(buffer) end --- @param ns_id integer function vi...
module('love.math') function compress() end function decompress() end function gammaToLinear() end function getRandomSeed() end function getRandomState() end function isConvex() end function linearToGamma() end function newBezierCurve() end function newRandomGenerator() end function newTransform() end funct...
-- Copyright 2020 Rohit Goswami (HaoZeke) <rog32[at]hi.is> -- -- 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 ...
PLUGIN.name = "Disable Doors" PLUGIN.author = "SleepyMode" PLUGIN.desc = "A simple system to disable doors by default." nut.config.add("disableDoors", true, "Whether or not all doors should be disabled by default.", function(oldValue, newValue) for k, v in pairs( ents.FindByClass( "door_*" ) ) do v:setNetVar("dis...
local info = { version = 1.002, comment = "presets for textadept for context/metafun", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files", } local lexer = require("scite-context-lexer") local co...
FILTER.Author = "@xayrga" FILTER.Version = 1.0 FILTER.Name = "VerifyMute" FILTER.DefaultEnabled = false FILTER.Requires = {} FILTER.Priority = 1000 local function FILTERCUSTOM_onUserVerified(thc, thm, groupID, GCO) if (GCO:getBool("verifymute")==false) then -- skip if filter is not enabled return false end ...
AccountData = {} AccountData.__mt = {__index = AccountData} AccountData.onChangeHandlers = {} AccountData.onChangeDoneHandlers = {} AccountData.map = {} setmetatable(AccountData.map, {__mode = 'v'}) -- weak table -- Note: default is always used for guests (even if database would ignore it) PlayersTable = Datab...
local ffi = require("ffi") local RendererBase = require("gwen.renderers.base") local BL2Renderer = oo.InheritClass(RendererBase, "Gwen.Renderer.BL2") local engine = engine local canvas = canvas local whiteColor = Color(255, 255, 255, 255) -- TODO: This whole renderer ignores scaling function BL2Renderer:SetDrawColo...
local playsession = { {"mewmew", {103574}}, {"_Mash_", {24734}}, {"Akhrem", {183209}}, {"A-l-a-n", {695833}}, {"CmdrRat", {351552}}, {"SMikiS", {321691}}, {"FallenAngel1010", {11292}}, {"Leverage", {198472}}, {"xPedion", {18192}}, {"VB11", {340728}}, {"mcskiny", {738164}}, {"oloklir", {664566}}, {"xaddr", ...
return { setup = { { "nvim-treesitter/nvim-treesitter", run = ":TSUpdate", requires = "nvim-treesitter/nvim-treesitter-textobjects", }, }, }
--do the local variables here ie local besttime = 0 local bat = 0 local amps = 0 local time = 0 local sats = 0 local speed = 0 local mkerror local timer local text = "Mikrokopter" local temp = 0 local errorcode local error_txt = { 0 = "Mikrokopter", 1 = "FC not compatible", 2 = "MK3Mag not compatible ", 3 ...
local tableComponent = {} local function makeTextEl(content, parent) return { type = "text", content = (parent.properties.prepend or "") .. content .. (parent.properties.append or ""), parent = parent } end local function addClass(node, class) local prop = node.properties...
local composer = require("composer"); composer.gotoScene("scenes.menu");
local alib = loadmodule("avada_lib") local common = alib.common local draw = alib.draw local menu = loadsubmodule("avada_evade", "menu") local polygon_helper = loadsubmodule("avada_evade", "modules/polygon_helper") local clipper = loadclipper() local myHero = objmanager.player local mouve_to_mouse = {} function mouve...
local RobloxReplicatedStorage = game:GetService('RobloxReplicatedStorage') RemoteEvent_NewFollower = RobloxReplicatedStorage:WaitForChild('NewFollower') while wait(0) do for i,v in pairs(game.Players:GetChildren()) do game.Players.LocalPlayer:RequestFriendship(v) RemoteEvent_NewFollower:FireServer(v, true) wait(0.01) R...
-- NEEDS CHECKING -- stuff has that comment, search for it aFunctions = { team = { ['createteam'] = function ( name, r, g, b ) local success = false if ( tonumber ( r ) ) and ( tonumber ( g ) ) and ( tonumber ( b ) ) then success = createTeam ( name, tonumber ( r ), tonumber ( g ), tonumber ( b ) ) els...
function connectMQTT(user, password, callback) mqtt = mqtt.Client("jsf_pump", 1200, user, password) -- 20 min keepalive mqtt:on("connect", function(con) print ("connected") end) mqtt:on("offline", function(con) print ("offline") node.restart() end) -- on receive message ...
-- -- Copyright (C) 2022 Masatoshi Fukunaga -- -- 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, ...
--ELF·莉莉 function c1190005.initial_effect(c) -- local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCountLimit(1,1190005) e1:SetCondition(c1190005.con1) e1:SetTarget(c1190005.tg1) e1:SetOperation...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [Policies] <device identifier>. User clears all these applications -- -- Description: -- All applications from new device are successfully registered AND the User clears all these applications from t...
-- See LICENSE for terms local default_InstantPassages = 0 local default_NonHomeDomePerformancePenalty = 10 local default_NonHomeDomeServiceThresholdDecrement = 10000 function OnMsg.ClassesPostprocess() default_InstantPassages = Consts.InstantPassages default_NonHomeDomePerformancePenalty = Consts.NonHomeDomePerfor...
local composer = require( "composer" ) local scene = composer.newScene() local score = require( "score" ) --------------------------------------------------------------------------------- -- All code outside of the listener functions will only be executed ONCE -- unless "composer.removeScene()" is called. ------------...
require 'funcs' local GameMode = require 'tetris.modes.gamemode' local Piece = require 'tetris.components.piece' local History4RollsRandomizer = require 'tetris.randomizers.history_4rolls' local MarathonA1Game = GameMode:extend() MarathonA1Game.name = "Marathon A1" MarathonA1Game.hash = "MarathonA1" MarathonA1Game....
local Criterion = torch.class('nn.Criterion') function Criterion:__init() self.gradInput = torch.Tensor() self.output = 0 end function Criterion:forward(input, target) end function Criterion:backward(input, target) end function Criterion:write(file) file:writeObject(self.gradInput) file:writeDouble(self...
-- -- Created by IntelliJ IDEA. -- User: chen0 -- Date: 25/7/2017 -- Time: 9:29 AM -- To change this template use File | Settings | File Templates. -- local StronglyConnectedComponents = {} StronglyConnectedComponents.__index = StronglyConnectedComponents function StronglyConnectedComponents.create() local s = {}...
local formStringClass = '<?xml version="1.0" encoding="utf-8"?><FormData><formMonoClass Class="TCEForm" Encoding="Ascii85">/yXy*/3td4;=F41+]S%7-9[S)8wjBhaO9R]HoK7}lMsjH2I_C;q!qi^+qxopm3Kfq!%Dma2hhF)$K_poB)7+L@pD3sNsL0}z:4a=UG;#ZcYR(mdDGOi$+A_KIq5#[)I_K?:br(3wCkfdu3o^M89!9((jBx%%y=iJ6B-(nYPGMi$Ck#Es?X+$!/5u))%[]*V/0Sn_D...
local class = require("heart.class") local M = class.newClass() function M:init(engine, config) self.engine = assert(engine) self.meshLoader = assert(engine.resourceLoaders.mesh) self.transformComponents = assert(self.engine.componentManagers.transform) self.meshes = {} self.transforms = {} end function M...
return { Name = "giveItem"; Aliases = {}; Description = "Gives a player an item with the specified quantity"; Group = "Admin"; Args = { { Type = "itemId"; Name = "itemId"; Description = "Item to give"; }, { Type = "player"; Name = "target"; Description = "Player to give item to"; }, { ...
-------------------------------- --- MATERIALS (MODELS) -------------------------------- local Models = {} MR.Models = Models -- Networking net.Receive("Models:Set", function(_, ply) if SERVER then return; end Models:Set(LocalPlayer(), net.ReadTable(), net.ReadBool()) end) net.Receive("Models:Remove", function() ...
object_tangible_furniture_flooring_tile_frn_flooring_tile_s10 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s10:new { } ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s10, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s10.iff")
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "White Bread Loaf"; ITEM.model = "models/foodnhouseholditems/bread-1.mdl"; ITEM.width = 1; ITEM.height = 1; ITEM.description = "A loaf of delicious white bread."; ITEM.permit = "consumables"; ITEM.category ...
local config = {} local function init() local bqf = require('bqf') vim.validate({config = {bqf._config, 'table', true}}) config = vim.tbl_deep_extend('keep', bqf._config or {}, { auto_enable = true, magic_window = true, auto_resize_height = true, preview = { auto...
-- -- Virtuajdr dice roller for TS3 init file -- require("ts3init") require("Virtuajdr_dice/VJDR_events") local registeredEvents = { onTextMessageEvent = diceroll_events.onTextMessageEvent } ts3RegisterModule("diceroll", registeredEvents)
return { "icons/elf_skill/skill_dru1-1", "icons/elf_skill/skill_dru1-2", "icons/elf_skill/skill_dru10-1", "icons/elf_skill/skill_dru10-2", "icons/elf_skill/skill_dru12-1", "icons/elf_skill/skill_dru12-2", "icons/elf_skill/skill_dru14-1", "icons/elf_skill/skill_dru16-1", "icons/elf_skill/skill_dru18-1", "icons/elf_skill...
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then return; end local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_generic" ) local utils = require(GetScriptDirectory() .. "/util") local mutil = r...
local api = vim.api local logger = require('tabout.logger') local utils = require('tabout.utils') local config = require('tabout.config') local tab = require('tabout.tab') local M = {} local enabled = false --[[ If e.g. a smarttabs expr is used for the completion pmu it is stored here ]] local completion_binding = ''...
local ConsumerSorter = {} function ConsumerSorter:new(consumers, empty_trains, trains_with_resource) o = {} setmetatable(o, self) self.__index = self -- load in the actual consumer train stops o.consumers = {} for resource_type, resources in pairs(consumers) do if empty_trains[resource_type] == nil a...
includeFile("tangible/theme_park/myyydril/myyydril_grievous_encounter_manager.lua") includeFile("tangible/theme_park/myyydril/myyydril_machine.lua") includeFile("tangible/theme_park/myyydril/myyydril_magic_stone.lua") includeFile("tangible/theme_park/myyydril/myyydril_power_cell.lua")
local MoneyLib = require(game.ReplicatedStorage.MoneyLib) for i,v in pairs(game.ReplicatedStorage.Items:GetChildren()) do if v:FindFirstChild("Crystals") then v.Cost.Value = v.Crystals.Value * 100 end if v.Cost.ClassName == "StringValue" then local newValue = MoneyLib.ShortToLong(v.Cost.Value) v.Cost.Name...