content
stringlengths
5
1.05M
return {'bom','bomaanslag','bomaanval','bomalarm','bomauto','bombam','bombarde','bombardeerder','bombardement','bombardementspauze','bombardementsvliegtuig','bombardementsvlucht','bombarderen','bombardon','bombarie','bombast','bombastisch','bombazijn','bombazijnen','bomberen','bomberjack','bombrief','bombriefje','bomen...
fx_version 'adamant' game 'rdr3' rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.' ui_page "NUI/SaltyWebSocket.html" client_scripts { "client/SaltyClient.net.dll" } server_scripts { "server/SaltyServer.net.dll" } fil...
----------------------------------------- -- ID: 4890 -- Scroll of Firaja -- Teaches the black magic Firaja ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(496) end function onItemUse(target) target:addSpell(496) end
local phDropout, Parent = torch.class('phnn.phDropout', 'nn.Module') function phDropout:__init(p) Parent.__init(self) self.p = p or 0.5 if self.p >= 1 or self.p < 0 then error('<Dropout> illegal percentage, must be 0 <= p < 1') end self.noise = torch.Tensor() end function phDropout:updateOutput(in...
package("hpsocket") set_homepage("https://github.com/ldcsaa/HP-Socket") set_description("High Performance Network Framework") set_license("Apache-2.0") add_urls("https://github.com/ldcsaa/HP-Socket/archive/$(version).tar.gz", "https://github.com/ldcsaa/HP-Socket.git") add_versions("v5...
motd = motd or {}; motd.tabs = motd.tabs or {}; motd.ChatCommand = "!motd"; if (SERVER) then return; end function motd.DefineTab(text, tabfunc) table.insert(motd.tabs, {text, tabfunc}); end motd.DefineTab("Home", function(base, w, h, _, colors) local pnl = vgui.Create("DPanel", base); pnl:SetSize(base:GetWide(),...
return { fadeOut = 1.5, mode = 2, id = "RENQILINGBO", once = true, fadeType = 2, fadein = 1.5, scripts = { { stopbgm = true, mode = 1, sequence = { { "特别小故事\n\n<size=45>{namecode:6}、约会@home</size>", 1 } } }, { actor = 301050, side = 2, bgName = "bg_story_room", nam...
local PANEL = class.create("Checkbox", "Button") PANEL:ACCESSOR("Radio", "m_bRadio", false) PANEL:ACCESSOR("Toggleable", "m_bToggleable", true) PANEL:ACCESSOR("Toggled", "m_bToggled", false) function PANEL:Checkbox() -- Initialize our baseclass self:super() self:TextMargin(28, 0, 0, 0) self:SetTextAlignment("left...
function isGuildOwner(accountid, guild) local characters = db:query("SELECT id FROM players WHERE account_id = ?", accountid) if characters == nil then return false end for _, val in pairs(characters) do if val.id == tonumber(guild.ownerid) then return true end en...
----------------------- -- Module using tparam for typed parameters. -- -- @module types --- has typed parameters, `string` and `int`. -- And never forget `E = m*c^2`. -- Reference to `two.md.First` -- -- A reference to `mydata`. -- @string name -- @int age -- @treturn mydata function _M.first (name,age) end --- sim...
-- HASH SETS with EXPIRE by fields -- HDELXP key field [field ...] ---- This command deletes fields in key local HSET_EXPIREAT_KEY = KEYS[1]..".EXPIREAT" for i, k in pairs(ARGV) do redis.call('HDEL', KEYS[1], k) redis.call('HDEL', HSET_EXPIREAT_KEY, k) end return true
require("lib/class") require("servers/udp_client") local lutl = require("lutl") local p = require("lib/utils").prettyPrint local TEST_PORT = 1019 local CLIENT_NUM = 1 local SEND_BUFFER = "hello" local SEND_INTERVAL = 200 local SEND_NUM = 1000 local my_clients = {} local send_time = {} local recv_count = {} local all_...
local UART_BAUDRATE = cfg:enumInt("串口波特率", {9600, 115200, 460800, 1000000, 1500000}) local MOUDLE_COMMENT_NAME = "// UART配置 //" local comment_begin = cfg:i32("uart注释开始", 0); local uart_comment_begin_htext = module_output_comment(comment_begin, ...
local SyntaxKind = require("lunar.ast.syntax_kind") local SyntaxNode = require("lunar.ast.syntax_node") local VariableArgumentExpression = setmetatable({}, { __index = SyntaxNode, }) VariableArgumentExpression.__index = setmetatable({}, SyntaxNode) function VariableArgumentExpression.new() return VariableArgumentEx...
--------------------------------------------------------------------------------------------------- -- func: addquest <logID> <questID> <player> -- desc: Adds a quest to the given targets log. --------------------------------------------------------------------------------------------------- require("scripts/globals/q...
-- testing mouse function on_mousedown(x, y) -- get the mouse position as a vec2 local pos = input.getMousePosition() -- get the state of a mouse button -- possible values: left,right,middle,x1,x2 local buttons = {input.getMouseButton('left', 'right', 'middle')} print('mouse position: ' .. pos) for i=1,#butto...
project_root = "../../../.." include(project_root.."/tools/build") group("src") project("xenia-hid-winkey") uuid("fd16e19a-6219-4ab7-b95a-7c78523c50c3") kind("StaticLib") language("C++") links({ "xenia-base", "xenia-hid", "xenia-ui", }) defines({ }) local_platform_files()
user_input = {} turtles = {} pockets = {} homes = {}
----------------------------------- -- Area: Ghelsba Outpost (140) -- Mob: Orcish Wallbreacher ----------------------------------- require("scripts/globals/hunts") function onMobDeath(mob, player, isKiller) tpz.hunts.checkHunt(mob, player, 169) end function onMobDespawn(mob) mob:setRespawnTime(math.random(39...
-- apply the hide- target config (tgt) defined as part of 'advfloat_hide' gconfig_register("advfloat_hide", "statusbar-left"); local function hide_tgt(wnd, tgt) -- prevent dual invocation (from ipc or wherever) if wnd.minimize_btn then return; end if (tgt == "statusbar-left" or tgt == "statusbar-right") then l...
--War Rock Gactos --Scripted by Kohana Sonogami function c101103094.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101103094,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetRa...
--ZFUNC-acosh-v1 local function acosh( x ) --> res if x < 1 then return math.sqrt( -1 ) end return math.log( x + math.sqrt( x+1 ) * math.sqrt( x-1 ) ) end return acosh
local ffi = require "ffi" local ffi_cdef = ffi.cdef local ffi_load = ffi.load local ffi_typeof = ffi.typeof local ffi_new = ffi.new local ffi_str = ffi.string local ffi_gc = ffi.gc local C = ffi.C local type = type local setmetatable = setmetatable ffi_cdef [[ typedef struct { int min[5], max; int passphrase_w...
local M = { } function M.parse(arg) local cmd = torch.CmdLine() cmd:text() cmd:text('Options:') ------------ General options -------------------- cmd:option('-imgColorPath', '0000_color.png' , 'RGB Image path') cmd:option('-imgDepthPath', '0000_depth.png' , 'Depth Image path') ...
--[[ Module:Shape Author:DylanYang Time:2021-01-31 13:27:36 ]] local interface = require("patterns.Cloneable") local _M = Class("Shape", interface) _M.abstract = true local public = _M.public _M._id = nil _M.protected._type = nil function _M:ctor(id) self._id = id end function public.get:id() ret...
local Asteroid = class('Asteroid', Base) local getForce = require('shared.get_force') function Asteroid:initialize(x, y, radius, evaluator) Base.initialize(self) self.origin_x = x self.origin_y = y local p = love.physics self.body = p.newBody(world, x, y, 'dynamic') local astindex = love.math.random(#as...
ITEM.name = "Antirad" ITEM.model = "models/gmodz/medical/antidot.mdl" ITEM.description = "Antirad is a packet of anti-radiation drugs that neutralize radiation accumulated in the body." ITEM.radiationAmount = -300 ITEM.price = 2500 ITEM.useSound = "gmodz/items/antirad.wav" ITEM.rarity = { weight = 44 } function ITE...
local K, C, L = unpack(select(2, ...)) if C.Automation.AutoInvite ~= true then return end local _G = _G local format = string.format local select = select local strmatch = strmatch local strlower = strlower local CreateFrame = CreateFrame local GetNumPartyMembers = GetNumPartyMembers local GetNumFriends = GetNumFrien...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. halloweenitems10 = { minimumLevel = 0, maximumLevel = 0, customObjectName = "Halloween Skull Candle", directObjectTemplate = "object/tangible/event_perk/halloween_skull_candle_02.iff", craftingValues = { }, customizationStringNames = {}, customi...
AddEventHandler('onClientMapStart', function() -------------------------------------IPL--------------------------------- LoadMpDlcMaps() EnableMpDlcMaps(true) RequestIpl("chop_props") RequestIpl("FIBlobby") RemoveIpl("FIBlobbyfake") RequestIpl("FBI_colPLUG") RequestIpl("FBI_repair") RequestIpl("v_tun...
--[[ bonus_pool_index的渲染文件 ]] local template = require "resty.template" local reqArgs = require "common.request_args" local responeData = require"common.api_data_help" local cjson = require "cjson" local session =require "resty.session".open() local db = require "db.base_db" local userDbOp = db.new() local currentR...
--[[ --=====================================================================================================-- Script Name: VPN Blocker (alternate version 1), for SAPP (PC & CE) 1). This mod requires that the following plugin is installed to your server: https://opencarnage.net/index.php?/topic/5998-sapp-http-client/ ...
function AddAmmoType(name, text) game.AddAmmoType({name = name, dmgtype = DMG_BULLET, force = 10, maxsplash = 0, minsplash = 0, npcdmg = 0, plydmg = 0, tracer = 3}) if CLIENT then language.Add(name .. "_ammo", text) end end AddAmmoType("taser_ammo", "Taser Cartridges")
include('./logging.lua') CreateConVar("discord_language", "english", 1, "Set the language you want user prompts to be in.") local availableLanguages = {} function getAvailableLanguages() if (table.Count(availableLanguages) <= 0) then local foundLocaleFiles, _ = file.Find('locale/*.lua', 'lsv') for i, locale...
local component = require("component") local computer = require("computer") local modem = require("modem") local configlib = require("configlib") local conf = configlib.loadConfig('lights.cfg', {}) function listLights(conf) local li = 1 if (conf.lights ~= nil) then for k,v in pairs(conf.lights) do ...
-- data structure only, no graphics, no event handling -- see: -- http://www.wildbunny.co.uk/blog/2011/03/27/isometric-coordinate-systems-the-modern-way/ -- http://flarerpg.org/tutorials/isometric_intro/ -- http://gamedevelopment.tutsplus.com/tutorials/creating-isometric-worlds-a-primer-for-game-developers--gamedev-...
--エクソシスター・カスピテル -- --Scripted by KillerDJ function c100417018.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,4,2) c:EnableReviveLimit() --cannot spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100417018,0)) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetP...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" module('Attribute_pb') ATTRIBUTE = protobuf.Descriptor(); local ATTRIBUTE_BASICATTRIBUTE_FIELD = protobuf.FieldDescriptor(); local ATTRIBUTE_PERCENTATTRIBUTE_FIELD = protobuf.FieldDescriptor(); local ATTRIBUTE_ATTRID_FIELD = proto...
local _ = require("underscore") local MockRequest = {} local Utils = require("sinatra/utils") MockRequest.__index = MockRequest function MockRequest:new(app) return setmetatable({ app=app }, MockRequest) end local function convert_qs(str) local groups = _.split(str, "&") return _.reduce(groups, function(m...
-- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details -- This file is based on Lua 5.x tests -- https://github.com/lua/lua/tree/master/testes print("testing string-number conversion") -- zero assert(tostring(0) == "0") assert(tostring(0/-1) == "-0") -- sp...
local loader = {} loader.temp_map = {} loader.step = 1 loader.kill_next = -2 loader.spawn_after = 100 loader.x = 0 loader.spawn_remainder = 0 loader.spawn_after_static = 0 function loader.init() loader.temp_map = { "# I F I ", "# WW I I ", "# WW I ...
local ECS = require "ECS" local DamageSystem = ECS.BaseClass(ECS.ComponentSystem) ECS.TypeManager.RegisterScriptMgr("UMO.DamageSystem", DamageSystem) function DamageSystem:OnCreateManager( ) ECS.ComponentSystem.OnCreateManager(self) self.fightMgr = self.sceneMgr.fightMgr self.group = self:GetComponentGroup({"UMO...
-- some settings based on different machine _M = { lsp_sumneko_root_path = "/home/efenyao/.tools/3rd/lua-language-server/bin/Linux", --lua language server lsp_sumneko_binary = '/home/efenyao/.tools/3rd/lua-language-server/bin/Linux/lua-language-server' --lua language server binary } return _M
local function find_recursive_lua(dir, out) local files, folders = file.Find(dir .. "*", "LUA") for _, file_name in ipairs(files) do table.insert(out, "lua/" .. dir .. file_name) end for _, folder_name in pairs(folders) do find_recursive_lua(dir .. folder_name .. "/", out) end end local write_int32 = functi...
require("NPC/npcBase.lua") require("NPC/hydraBase.lua") --this = SceneNode() local npcBase function destroy() npcBase.destroy() end function create() npcBase = NpcBase.new() createHydra(1,0.5,npcBase) -- local tableAnimationInfo = {{duration = 0.75, length = 1.0, blendTime=0.25}, {duration = 0.75, len...
local LrCatalog = import'LrApplication'.activeCatalog() local LrDialogs = import 'LrDialogs' local LrSelection = import 'LrSelection' local LrTasks = import 'LrTasks' require 'AspectRatio' require 'AspectRatioMapping' require 'Logger' require 'TableHelper' ApplyAspectRatio = {timeout = 30} function ApplyAspectRatio....
data:extend( { { type = "item-group", name = "extended-logistics", icon = "__spicy-teeth-core_assets__/graphics/item-group/extended-logistics.png", icon_size = 64, order = "aab" } } )
--[[ This script trains a network on the FLIC dataset under some configurations. Info: Network name/id/type: wide. Train Ensemble: no. Dataset: FLIC. ]] --[[ General configs ]] optim_method = 'adam' nThreads = 4 --------------------------------------------------------------------...
help([[ For detailed instructions, go to: https://github.com/rchereji/plot2DO This module sets the following environment variables: PLOT2DO_BASE: directory containing plot2DO R_LIBS_USER: sets R library directory to use plot2DO R_PROFILE_USER: allows to configure CPAN automatically This module lo...
--!strict --[[====================================================================== Styles | Written by boatbomber (Zack Ovits) for BoatTween (https://github.com/boatbomber/BoatTween) | 2020 | v1.0.1 Description: Contains a list of flow styles. ======================================================================...
include('shared.lua') include("remap.lua") -- For stools/keyboard.lua's layout selector net.Receive("wire_keyboard_blockinput", function(netlen) if net.ReadBit() ~= 0 then hook.Add("StartChat", "wire_keyboard_startchatoverride", function(teamChat) return true end) hook.Add("PlayerBindPress", "wir...
local L = require "lpeg" local epeg = require "espalier/elpatt" local Csp = epeg.Csp local a = require "anterm:anterm" local Node = require "espalier/node" local m = require "orb:Orbit/morphemes" local Header = require "orb:Orbit/header" local Section = require "orb:Orbit/section" local Block = req...
-- change comment style for lua file vim.api.nvim_buf_set_option("0", "commentstring", "# %s")
-- Hedgewars - Basketball for 2+ Players HedgewarsScriptLoad("/Scripts/Locale.lua") local started = false function onGameInit() GameFlags = gfSolidLand + gfBorder + gfInvulnerable + gfLowGravity TurnTime = 20000 CaseFreq = 0 MinesNum = 0 Explosives = 0 Map = 'BasketballField' -- Disable Sudden Death Water...
globals = require "globals" function make_resolution(p_w, p_h) return { width = w, height = h } end --- make_texture_EXT params : name, resolution, layer_count, format, usage, dimensions (2 or 3) --- Make GBuffer objects swapchain_resolution = make_resolution(swapchain_width_EXT, swapchain_height_E...
-- ExodiaLib: function ExodiaInit(cards) local summon = cards.summonable_cards local activate = cards.activatable_cards local cardid = 0 for i=1,#summon do if summon[i].id == 70791313 then --royal magic library return COMMAND_SUMMON,i end end for i=1,#activate do cardid = activate[i]...
-- Copyright (c) 2017. tangzx(love.tangzx@qq.com) -- -- 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 ...
print("Solving day 14") local parsedProgram = {} for line in io.lines("Day14.txt") do table.insert(parsedProgram, line) end local function convert(bits) local result = 0 for _, value in ipairs(bits) do result = result * 2 if value == 1 then result = result + 1 end end return result...
-- $Id: UnitPieceLight.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local UnitPieceLight = {} U...
cmdp = require('cmdparse')cmdp:init("Hello")function func1() print("Hello")endfunction func2() print("Goodbye")endmyjt = {  {txt="ugga", cmd=func1}, {txt="blaa", cmd=func2}}cmdp:setCbTable(myjt)cmdp:getJT()ftmp = io.tmpfile()tmp = os.tmpname()print("File: "..os.tmpname())os.execute("C:\\vim\\vim74\\gvim.exe "..tmp)cmdp...
----------------------------------------------- -- key.lua -- Represents a key when it is in the world ----------------------------------------------- local Item = require 'items/item' local Prompt = require 'prompt' local Key = {} Key.__index = Key Key.isKey = true --- -- Creates a new key object -- @return the key...
ignite_rogue = { cast = function(player, target) local spellName = "Ignite" local damage = 260 if not player:canCast(1, 1, 0) then return end local worked = global_zap.cast(player, target, damage, 30, 250) if worked ~= 0 then player:sendMinitext("You cast " .. spellName .. ".") end if worked == 2...
local colors = { head = Color(192, 57, 43, 255), back = Color(236, 240, 241, 255), text = Color(255, 255, 255, 255), btn = Color(52, 73, 94, 255), btn_hover = Color(44, 62, 80, 255), deposit = Color(46, 204, 113, 255), deposit_hover = Color(39, 174, 96, 255), withdraw = Color(231, 76, 60, 255), withdraw_hover ...
local class = require('lib.middleclass') local Interactable = require('modules.interactable') local Asteroid = class('Asteroid', Interactable) function Asteroid:initialize(x, y, size) Interactable.initialize(self, { {'Excavate', function() print('mining some stuff') end}, {'Cancel', function() end} }, 'circle',...
local lu = require('luaunit') local FileDescriptor = require('jls.io.FileDescriptor') local Path = require('jls.io.Path') local TMP_FILENAME = Path.cleanPath('tests/test_fd.tmp') local function createFile(path, content) local file = io.open(path, 'wb') file:write(content) -- TODO check for errors ...
-- Swallow lines and extend the triggers as long as we haven't found the end of the planet yet if gatherPlanetState ~= nil then setTriggerStayOpen("gather-planet", 1) end deleteLine()
--[[ Asset Extraction PvE Ground Branch game mode by Bob/AT Notes for Mission Editing: 1. Start with a regular 'Kill Confirmed' mission ... ]]-- local Teams = require('Players.Teams') local SpawnsGroups = require('Spawns.Groups') local ObjectiveExfiltrate = require('Objectives.Exfiltrate') local Logger = ...
local map = {} -- Hardcoded behavior: -- - creation of character based on quest (puppy's cave) function map.puppy_cave(generator) generator.generate_nefia() end return map
local importations = require(IMPORTATIONS) local composer = require(importations.COMPOSER) local images = require(importations.IMAGES) local listener = require(importations.LISTENER) local eventUtil = require(importations.EVENT_UTIL) local sceneManager = require(importations.SCENE_MANAGER) local displayConstants = requ...
-- Expression.lua -- Contains the cExpression class. This allows formulas to be executed safely in an empty environment. --[[ Usage example: local FormulaString = "data=4; x > y" local Expression = cExpression:new(FormulaString) Expression:AddReturnValue("Comp1") -- Return the first known comparisons :AddP...
local ENCODER_API = require(script:GetCustomProperty("EncoderAPI")) --Template local ANIMATION_DISPLAY = script:GetCustomProperty("AnimationDisplay") -- Custom local ANIMATION_LIST = script:GetCustomProperty("AnimationList"):WaitForObject() ---@type UIPanel local PLAYBACK = script:GetCustomProperty("Playback"):Wait...
ALIAS/System/APIs/Settings.lua
-- Создает ключ -- table options -- { -- string car -- number money -- number xp -- } function createGiftKey(...) return GiftKeys.add(...) end function isGiftKeyValid(...) return GiftKeys.isKeyValid(...) end -- Активирует ключ -- string key -- element player function activateGiftKey(...) return GiftKeys.activ...
local AddonName, Addon = ... local L = LibStub("AceLocale-3.0"):GetLocale(AddonName, true) local defaultOptions = { global = { config = { tracking = { bossKills = true, lfg = true, bg = true, lfr = false, arena = t...
object_tangible_loot_creature_loot_collections_broken_lightsaber_hilt_009 = object_tangible_loot_creature_loot_collections_shared_broken_lightsaber_hilt_009:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_broken_lightsaber_hilt_009, "object/tangible/loot/creature/loot/collections/br...
require'telescope'.load_extension('project') vim.api.nvim_set_keymap( 'n', '<leader>pp', ":lua require'telescope'.extensions.project.project{ change_dir = true }<CR>", {noremap = true, silent = true} )
myname = "xSoulStealerx" me = game.Players[myname] char = me.Character name = "MiniRocketLauncher" explodecolors = {"Really red", "Neon orange", "Bright red", "New Yeller", "Bright yellow", "Bright orange"} sm = {"Really black", "Black"} acceleratemax = 100 accelerateincrease = 0.55 MassDestruct = 100 MaxEnergy = 160 E...
-- General language and low level application utilities -- see test.lua if questions util = {} --------------------------------------------------------------- -- CONFIG --------------------------------------------------------------- -- read local configuration stored in json -- module - code module -- returns value ...
local hideHUDElements = { ["DarkRP_HUD"] = true, ["DarkRP_EntityDisplay"] = false, ["DarkRP_ZombieInfo"] = false, ["DarkRP_LocalPlayerHUD"] = false, ["DarkRP_Hungermod"] = false, ["DarkRP_Agenda"] = false } hook.Add("HUDShouldDraw", "HideDefaultDarkRPHud", function(name) if hideHUDElements[name] then return fal...
-- -- DESCRIPTION -- -- @COMPANY ** -- @AUTHOR fenghailiang -- @DATE ${date} ${time} -- require "UnLua" local FlightMissile_AIM120C = Class() --function FlightMissile_AIM120C:Initialize(Initializer) --end function FlightMissile_AIM120C:UserConstructionScript() self.Overridden.UserConstructionScri...
local entity = {} entity["level"] = [[43]] entity["spellDeck"] = {} entity["spellDeck"][1] = [[Magarula]] entity["spellDeck"][2] = [[]] entity["spellDeck"][3] = [[Marakukaja]] entity["spellDeck"][4] = [[]] entity["spellDeck"][5] = [[Growth 2]] entity["spellDeck"][6] = [[]] entity["heritage"] = {} entity["heritage"][1] ...
require'lspconfig'.eslint.setup{}
require "common.p8declares" require "common.p8init" require "common.p8core" require "common.c4_command" require "common.c4_notify" require "common.c4_diagnostics" --DEBUG require "p8proxy" require "p8system" require "p8routing" require "p8monitoring" --Defines MAX_INPUTS = 8 MAX_OUTPUTS = 10 --Init Functions local ...
Exiting = {} --[[ Functions: Exiting ]]-- function Exiting:Update() local state = LocalPlayer.state DisableControlAction(0, 75) if not DoesEntityExist(CurrentVehicle) or state.immobile then return end if IsDisabledControlJustReleased(0, 23) then Exiting:Activate() end end function Exiting:Activate(...
local utils = require "typesystem_utils" -- Constructor for a promote call (implementing int + double by promoting -- the first argument int to double and do a double + double to get the result) function promoteCallConstructor( call_constructor, promote) return function( this, arg) return call_constructor( prom...
local composer = require("composer"); local widget = require("widget"); local json = require("json"); local scene = composer.newScene(); function scene:create(event) local sceneGroup = self.view; display.newRect(sceneGroup, display.contentCenterX, display.contentCenterY, display.contentWidth, display.contentHeig...
local Component = require "xl.gui.Component" local Button = Class.create("Button", Component) function Button:init(text) self:setText(text) end function Button:update() Component.update(self) local x,y = love.mouse.getPosition() if self:isInBounds(x,y) then end end function Button:mousepressed(x,y,button) en...
local Util = require("Util/Util") local m = ChangeDiff local function CompareApiTable(a, b) local added = {} for k, v in pairs(b) do if a[k] == nil then added[k] = v end end local removed, modified = {}, {} for k, v in pairs(a) do if b[k] == nil then removed[k] = v else if not Util:equals(v, b[k]...
local marbles = {} marbles.beert = {} function marbles.start() -- idítás local colors = { {"Wrath", {255,000,000}, "Data/wrath.png"}, {"Lust", {000,000,255}, "Data/lust.png" }, {"Greed", {255,255,000}, "Data/greed.png"}, {"Sloth", {000,200,200}, "Data/sloth.png"}, {"Gluttony", {200,100,000}, "Data/glu...
-- Fold Stuff vim.wo.foldenable = false vim.wo.foldnestmax = 10 vim.wo.foldmethod = 'syntax' -- Work with several buffers vim.o.hidden = true -- Nice Time vim.o.updatetime = 250 -- Tabs to Spaces vim.o.expandtab = true vim.bo.expandtab = true -- Correct level of indentation vim.o.shiftwidth = 2 vim.bo.shiftwidth = ...
local PANEL = {} function PANEL:Init(uniqueID) self:SetSize(ScrW() * 0.3, ScrH() * 0.682) self:MakePopup() self:SetTitle("") self:ShowCloseButton(false) self:SetDraggable(false) end function PANEL:Paint(w, h) nut.util.drawBlur(self, 10) surface.SetDrawColor(Color( 20, 20, 20, 220)) surface.DrawRect( 0, 0, w...
local LookupTableOneHot, parent = torch.class('nn.LookupTableOneHot', 'nn.Module') function LookupTableOneHot:__init(input_size) parent.__init(self) self.eye = torch.eye(input_size) self.output = torch.Tensor() end function LookupTableOneHot:updateOutput(input) -- make sure input is a contiguous torch.LongTen...
HDC1000 = require("HDC1000") sda = 1 scl = 2 drdyn = false HDC1000.init(sda, scl, drdyn) HDC1000.config() -- default values are used if called with no arguments. prototype is config(address, resolution, heater) print(string.format("Temperature: %.2f °C\nHumidity: %.2f %%", HDC1000.getTemp(), HDC1000.getHumi())) HDC...
-- vector utilities local table = table local string = string --[[ Initizalizer, creates a vector @param vdata raw lua table of data (numbers) @param size vector requested size (optional) @param value default value for uninitialized vector (optional) returns a new vector ]] function vector(vdata, s...
object_building_general_corellia_greck_hq = object_building_general_shared_corellia_greck_hq:new { } ObjectTemplates:addTemplate(object_building_general_corellia_greck_hq, "object/building/general/corellia_greck_hq.iff")
-- Moving Schema.voices.Add("CombineHLA", "MOVING", "Moving.", "HLAComVoice/grunt/advancing_on_target_01.wav") Schema.voices.Add("CombineHLA", "MOVING2", "Moving now.", "HLAComVoice/grunt/advancing_on_target_02.wav") Schema.voices.Add("CombineHLA", "MOVING NOW", "Moving now.", "HLAComVoice/grunt/advancing_on_...
local SplitterGun = require 'entities.splitter_gun' local SplitterItem = {} local SPLITTER_ITEM_PIC = love.graphics.newImage('assets/img/powerup_sheet.png') local SPLITTER_ITEM_GRID = anim8.newGrid(16, 16, SPLITTER_ITEM_PIC:getWidth(), SPLITTER_ITEM_PIC:getHeight()) function SplitterItem.new( x, y ) local spl...
local sound = require('play_sound') local clear_embeds = require('clear_embeds') local DIFFICULTY = require('difficulty') define_tile_code("bat_generator") define_tile_code("bat_switch") define_tile_code("moving_totem") define_tile_code("totem_switch") define_tile_code("dialog_block") local dwelling = { identifie...
local ICONPATH = "__ZElectricVehicles__/graphics/icons/" data:extend{ { type = "battery-equipment", name = "zelectric-transformer", categories = {"armor"}, energy_source = { type = "electric", buffer_capacity = "15MJ", usage_priority = "secondary-input" }, shape = { ty...
return "1.4"