content
stringlengths
5
1.05M
return {'gefarceerd','gefaseerd','gefederaliseerd','gefeliciteerd','gefemel','gefigureerd','gefilosofeer','gefingeerd','gefladder','geflatteerd','geflikflooi','geflikker','geflirt','geflits','gefluister','gefluit','gefoeter','gefoezel','geforceerd','gefortuneerd','gefriemel','gefrons','gefrunnik','gefrustreerd','gefrut...
require('onmt.init') local path = require('pl.path') require('tds') local cmd = torch.CmdLine() cmd:text("") cmd:text("**train.lua**") cmd:text("") cmd:option('-config', '', [[Read options from this file]]) cmd:text("") cmd:text("**Data options**") cmd:text("") cmd:option('-data', '', [[Path to the training *-trai...
#!/usr/bin/env luajit require 'ext' local env = setmetatable({}, {__index=_G}) if setfenv then setfenv(1, env) else _ENV = env end require 'symmath'.setup{env=env, implicitVars=true, fixVariableNames=true, MathJax={title='Ernst'}} local chart = Tensor.Chart{coords={t,r,theta,phi}} --local Lambda = 1 + B^2 * r^2 * sin...
local a = require 'framework.listener':new(1048591) -- 遊戲裡的血法師的id print(a:object()) a:add("測試", nil, function() print('ASD') end):add("測試", nil, function(i) print("testing", i) end):add("測試", nil, function(i) print(i, "1896") end):add("測試") a:onTick("測試", 10) for arg, callback in a:iterator("測試") do print(arg, ca...
WeaponTypes.addType("SlugGun", "Slug Gun", armed)
--[[ MIT License Copyright (c) 2019 Michael Wiesendanger 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, mod...
local t = Def.ActorFrame{} t[#t+1] = Def.Quad{ InitCommand=cmd(diffuse,1,1,1,1;FullScreen); }; return t
--次元均衡 function c90901451.initial_effect(c) --fusion material c:EnableReviveLimit() --aux.AddFusionProcFun2(c,c900901250.ffilter,aux.FilterBoolFunction(Card.IsRace,RACE_SPELLCASTER),true) --aux.AddFusionProcCodeFun(c,(38033121),aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_LIGHT),1,true,true) --aux.AddFu...
-- schema.lua local typedefs = require "kong.db.schema.typedefs" return { name = "caesar-ok", }
object_mobile_ewok_kelbe = object_mobile_shared_ewok_kelbe:new { } ObjectTemplates:addTemplate(object_mobile_ewok_kelbe, "object/mobile/ewok_kelbe.iff")
ENT.Type = "anim" ENT.Base = "base_anim" function ENT:GetHealthScalar() return math.abs(self:GetPropHealth() / self.Entity:GetMaxHealth()) end function ENT:SetupDataTables() self:NetworkVar( "Int", 1, "PropHealth" ) self:NetworkVar( "Int", 2, "MaxHealth" ) self:NetworkVar( "Int", 3, "Team" ) self:Netwo...
--[[ -- added by wsh @ 2018-02-26 -- UIBattleMain视图层 --]] local UIBattleMainView = BaseClass("UIBattleMainView", UIBaseView) local base = UIBaseView -- 各个组件路径 local back_btn_path = "BackBtn" local function OnCreate(self) base.OnCreate(self) -- 控制角色 self.chara = nil -- 退出按钮 self.back_btn = self:AddComponent(UI...
-- Check the wiki at -- http://www.domoticz.com/wiki/%27dzVents%27:_next_generation_LUA_scripting return { -- 'active' controls if this entire script is considered or not active = true, -- set to false to disable this script -- trigger -- can be a combination: on = { timer = { 'at sunrise' } }, -- actu...
player_manager.AddValidModel( "PMC4_06", "models/player/PMC_4/PMC__06.mdl" ) list.Set( "PlayerOptionsModel", "PMC4_06", "models/player/PMC_4/PMC__06.mdl" )
AddEvent("OnPlayerJoin", function(player) if PlayerData[player] == nil then PlayerData[player] = {} end PlayerData[player].state = PLAYER_STATE_FREE SetPlayerSpawnLocation(player, 125773.000000, 80246.000000, 1645.000000, 90.0) end)
--[[ Name: "cl_hooks.lua". Product: "HL2 RP". --]] function kuroScript.game:KuroScriptInitialized() KS_CONVAR_HIDEDISPLAY = kuroScript.frame:CreateClientConVar("ks_hidedisplay", 1, true, true); KS_CONVAR_DONATORICON = kuroScript.frame:CreateClientConVar("ks_donatoricon", "", true, true); end; -- Called when the con...
-- --------------------------------------------- -- echem.lua 2018/01/18 -- Copyright (c) 2018 Toshi Nagata, -- released under the MIT open source license. -- --------------------------------------------- require "ljsc/init" local util = require("util") local sc = require("screen") local term = require...
local Player = class("Player") function Player:initialize(i, settings) self.i = i self.coins = 0 self.score = 0 self.lives = 3 if settings.palette then self.palette = convertPalette(settings.palette) end if settings.portalColors then self.portalColors = settings.portalCol...
local SceneOptions = {} ---------------------------- START ---------------------------- local BM = BouttonManager.newBM() local BM2 = BouttonManager.newBM() local Boutton = {} local Boutton2 = {} local delete = false SceneOptions.showMessage = false function Boutton.init() BM:setDimensions(screen.w * 0.2, screen.h...
game.reload_script() game.print("RUNNING ROBOT ARMY MIGRATION SCRIPT FOR 0.3.5") --ensure all global tables are present global.Squads = global.Squads or {} global.uniqueSquadId = global.uniqueSquadId or {} global.DroidAssemblers = global.DroidAssemblers or {} global.droidCounters = global.droidCounters or {} global....
-- Turn on coverage analysis if available pcall(require, 'luacov') _NOCOMPAT = true -- Used to be in properties.lua buffer.margin_width_n[1] = 0 buffer.margin_width_n[2] = 0 buffer.margin_width_n[3] = 1 buffer.margin_width_n[4] = 1 buffer.margin_width_n[5] = 0 buffer.use_tabs = false buffer.indent = 2 local function...
local lspconfig = require("lspconfig") local M = {} M.setup = function(on_attach, capabilities) lspconfig.yamlls.setup({ capabilities = capabilities, on_attach = function(client, bufnr) client.resolved_capabilities.document_formatting = false client.resolved_capabilities.document_range_formatting = false ...
function love.conf(t) t.title = "Burrow Down" t.author = "danbo" t.url = "http://twitter.com/__danbo" t.identity = "burrow-down" t.version = "0.9.1" t.window.width = 640 t.window.height = 480 t.window.vsync = true t.release = true end
function on_activate(parent, ability) local effect = parent:create_effect(ability:name(), ability:duration()) effect:set_tag("magic_defense") local stats = parent:stats() local bonus = stats.caster_level + stats.wisdom_bonus effect:add_resistance(25 + bonus, "Slashing") effect:add_resistance(30 + ...
local modis = require 'modis' local redis = require 'redis' describe('modis', function() local red, conn, db before_each(function() red = redis.connect('127.0.0.1', 6379) conn = modis.connect(red) db = conn:getDatabase('test') end) after_each(function() pcall(function() db:dropDatabase...
pk_pills.registerDrive("roll", { think = function(ply, ent, options) local aimYaw = Angle(0, ply:EyeAngles().y, 0) local moveDir = Vector(0, 0, 0) if (ply:KeyDown(IN_FORWARD)) then moveDir = moveDir + aimYaw:Forward() end if (ply:KeyDown(IN_BACK)) then ...
----Library package.path = package.path..";./lua/?.lua" local socket = require("socket") local http = require("socket.http") local https = require("ssl.https") local ltn12 = require("ltn12") local json = require("JSON") local mcq = require("mcquery.ping") ----Init local u = require("utils") name = 'Dynmap to Discord' v...
---@class ExampleModule : module local M = {} ---@type table<string, number> https://lua-api.factorio.com/latest/LuaBootstrap.html#LuaBootstrap.generate_event_name local custom_events = { custom_event1 = script.generate_event_name() -- Don't use in any events, it'll cause desyncs } --#region Global data local play...
help( [[ This module loads JDK 7u71 The Java JDK provides binaries to compile and run java applications ]]) whatis("Loads Java JDK ") local version = "7u71" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/java/jdk1.7.0_71" prepend_path("PATH", pathJoin(base, "bin")) prepend_path("LD_LIBRARY_PATH", pathJoi...
--PROJECT GOALS --[[ List of individual goals fireworks launcher fireworks cart launcher fireworks go out in water if you throw fireworks in fire group they ignite works with open ai and open vehicles ]]-- --global to enable other mods/packs to utilize the ai open_fireworks = {} open_fireworks.register_fir...
local s = require('say') s:set_namespace('de') s:set("assertion.same.positive", "Erwarte gleiche Objekte.\nGegeben:\n%s\nErwartet:\n%s") s:set("assertion.same.negative", "Erwarte ungleiche Objekte.\nGegeben:\n%s\nNicht erwartet:\n%s") s:set("assertion.equals.positive", "Erwarte die selben Objekte.\nGegeben:\n%s\nErw...
local commonSteps = require('user_modules/shared_testcases/commonSteps') local commonPreconditions = require('user_modules/shared_testcases/commonPreconditions') function DeleteLog_app_info_dat_policy() commonSteps:CheckSDLPath() local SDLStoragePath = config.pathToSDL .. "storage/" --Delete ...
--[[ MIT License Copyright (c) 2019-2021 Marco Lizza 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, publ...
--MoveCurve --H_Tohka/curve_Skill_3 curve_Skill_3 return { filePath = "H_Tohka/curve_Skill_3", startTime = Fixed64(31457280) --[[30]], startRealTime = Fixed64(838861) --[[0.8]], endTime = Fixed64(35651584) --[[34]], endRealTime = Fixed64(950709) --[[0.9066667]], isZoom = false, isCompensate = false, curve = { ...
--[[--- Easy no-fuss modules. Any function inside the module will be exported, unless it is explicitly local. The functions are declared up front using patching, leading to efficient calls between module functions. require_ 'module' function one () return two() end function two () return...
local White = {1, 1, 1} local Black = {0, 0, 0} local Black80 = {0, 0, 0, .80} local Red = {1, 0, 0} local Green = {0, 1, 0} local Blue = {0, 0, 1} local Yellow = {1, 1, 0} return { White = White, Black = Black, Black80 = Black80, Red = Red, Green = Green, Blue = Blue, Yellow = Yellow, ...
object_tangible_wearables_armor_infiltrator_shared_armor_infiltrator_s01_belt = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/wearables/armor/infiltrator/shared_armor_infiltrator_s01_belt.iff" } ObjectTemplates:addClientTemplate(object_tangible_wearables_armor_infiltrator_shared_armor_i...
local t = LoadFont("Common normal")..{ InitCommand=function(self) self:x(30):zoom(0.3):rotationz(90) end; }; return t;
--!A cross-platform build utility based on Lua -- -- 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 Apach...
function encode.mime.mailbox_list_header_line(key, mailboxes) local mailboxes = mailboxes if not mailboxes then mailboxes = {} elseif type(mailboxes) == "string" or mailboxes.address or mailboxes.name then mailboxes = { mailboxes } end local indentation = "" for i = 1, #key + #(": ") do ...
HeroName[2] = "上条当麻" HeroMain[2] = "力量" HeroType[2] = |Hart| RDHeroType[2] = |h012| IllHeroType[2] = |H02K| HeroTypePic[2] = "ReplaceableTextures\\CommandButtons\\BTNShangTiao.blp" HeroSize[2] = 1 LearnSkillId = {|A14I|, |A14J|, |A14K|, |A14L|} --上条之拳 InitSkill{ ...
local node = require "memfs.node" local n0 = require"mini.class".instance(node) assert(n0.hardlink) assert(n0.isfile) assert(n0.isdir) assert(n0.hardlink) assert(n0.unhardlink) assert(n0.all) print("OK")
local kLineTextureCoord = {0, 0, 64, 16} function GUIMinimapConnection:UpdateAnimation(teamNumber, modeIsMini, teamType) local isMarine = teamType == kMarineTeamType local hasLines = #GetEntitiesForTeam("MapConnector", teamNumber) > 2 local animatedArrows = not modeIsMini and isMarine and hasLines ...
--[[------------------------- Test C functions --]]------------------------ local function test_console_out() Log.Write("one|", "|two|", "|three|", "|four") Log.Write() Log.Write(nil) Log.Write(nil, nil) Log.Write(nil, nil, nil) Log.Write(nil, "|mixed|", nil) Log.Write("is that a nil at the end|", "|mi...
local firstSpawn = true local hide_hud_component_this_frame = HideHudComponentThisFrame local disable_control_action = DisableControlAction local is_ped_armed = IsPedArmed local network_set_friendly_fire_option = NetworkSetFriendlyFireOption local set_can_attack_friendly = SetCanAttackFriendly local network_s...
--[[ TTT -> Entities -> ttt_credit_adjust (Shared) Ported from: https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/terrortown/entities/entities/ttt_credit_adjust.lua --]] ENT.Type = "point" ENT.Base = "base_point" ENT.Credits = 0 function ENT:KeyValue(key, value) if key == "OnSuccess" or key ...
-- Make ranger replace Netrw and be the file explorer vim.g.rnvimr_enable_ex = 1 vim.g.rnvimr_draw_border = 1 -- Keep showing Ranger after choosing a file vim.g.rnvimr_enable_picker = 1 vim.g.rnvimr_edit_cmd = 'edit' -- Make neovim wipe buffers corresponding to files deleted in Ranger vim.g.rnvimr_enable_bw = 1 -- C...
SkillConfig = { } SkillConfig[100001]={id=100001,name='向前击退',maxFrame=20,lockLevel=1,event1=1,eventType1=5,eventId1=100001,event2=1,eventType2=2,eventId2=100007,event3=3,eventType3=6,eventId3=100001} SkillConfig[100002]={id=100002,name='曲线飞行',maxFrame=60,lockLevel=1,event1=1,eventType1=5,eventId1=100002,event2=1,eventT...
ITEM.name = "Glass" ITEM.model = Model("models/props_lab/box01a.mdl") ITEM.description = "Glass often used for the construction of scopes."
name = " Screecher Pre-Alpha" version = " 0.0.3" updatelog = " - " codename = " Screech" description = "There is alot of bugs so dont expect something good btw to get to play as the character with flashlight you have to find the main camp and the flashlight case however you will die in darkness cause of the bug it will...
local mesh = require "modules.mesh" describe("mesh:", function() end) --[[ average(vertices) normal(triangle) plane_from_triangle(triangle) is_front_facing(plane, direction) signed_distance(point, plane) --]]
--StateMachine M_DEM_21102 return { defaultState = "IdleBattle", parameters = { ["isRunning"] = { type = "Bool", defaultBool = false, defaultInt = Fixed64(0) --[[0]], defaultFloat = Fixed64(0) --[[0]] }, ["isGrounded"] = { type = "Bool", defaultBool = false, defaultInt = Fixed64(0) --[[0]]...
---- -*- Mode: Lua; -*- ---- ---- cli-test.lua sniff test for the CLI ---- ---- © Copyright IBM Corporation 2016, 2017. ---- LICENSE: MIT License (https://opensource.org/licenses/mit-license.html) ---- AUTHOR: Jamie A. Jennings assert(TEST...
--!strict --[[ If a target set was specified by captureDependencies(), this will add the given dependency to the target set. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local sharedState = require(Package.Dependencies.sharedState) local initialisedStack = sharedState.initiali...
-- create node MatrixConstruction require "moon.sg" local node = moon.sg.new_node("sg_mat_construction") if node then node:set_pos(moon.mouse.get_position()) end
----------------------------------------------------------------------------------------- -- menu.lua -- (c) 2018, Velocity by Jericho Crosby <jericho.crosby227@gmail.com> ----------------------------------------------------------------------------------------- local composer = require( "composer" ) local widget = requ...
--[[ Copyright (C) 2018 "IoT.bzh" Author Romain Forlot <romain.forlot@iot.bzh> 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 ...
-- @group UI -- @brief Represents rectangle bounds. local Bounds = ae.oo.class() -- @func -- @brief Creates bounds with coordinates (0,0) and size 0x0. -- @return The bounds. -- @func -- @brief Creates bounds. -- @param x The X coordinate. -- @param y The Y coordinate. -- @param width The bounds width. -- ...
local playsession = { {"mewmew", {289535}}, {"studmuffinfox", {1817}}, {"Quadrum", {1126484}}, {"Giatros", {203224}}, {"jeast360", {357539}}, {"Fraserbaser", {101414}}, {"Tonymagoo", {1346}}, {"Digzol", {256156}}, {"WinstonEwert", {34173}}, {"McSafety", {525175}}, {"Thorgal", {323149}}, {"dog80", {147682}},...
local function META_AP() return _G["Meta.Ability.Progression"] end local ServerScript = script:GetCustomProperty("ServerScript"):WaitForObject() local Equipment = ServerScript:GetCustomProperty("Equipment"):WaitForObject() local SpecialAbility = ServerScript:GetCustomProperty("MainAbility"):WaitForObject() local A...
-- load default options require("options") local modules = { "mappings", "commands", "plugins" } local async async = vim.loop.new_async( vim.schedule_wrap( function() for i = 1, #modules, 1 do local ok, response = xpcall(require, debug.traceback, modules[i]) ...
local BuffGUITimer, BuffGUITimerSec function TimerText_Create() BuffGUITimer = BuffGUI:CreateFontString("BuffGUITimer") BuffGUITimer:SetFont("Interface\\AddOns\\RogueBox\\Eggo.ttf", 40, "OUTLINE") BuffGUITimer:SetTextColor(1, 1, 1, 1) BuffGUITimer:SetJustifyH("CENTER") BuffGUITimer:SetJustifyV("TOP...
ARMOR_INIT_DELAY = 1 ARMOR_INIT_TIMES = 1 ARMOR_BONES_DELAY = 1 ARMOR_UPDATE_TIME = 1 ARMOR_DROP = minetest.get_modpath("bones") ~= nil ARMOR_DESTROY = false ARMOR_LEVEL_MULTIPLIER = 1 ARMOR_HEAL_MULTIPLIER = 1 local modpath = minetest.get_modpath(ARMOR_MOD_NAME) local worldpath = minetest.get_worldpath() local input ...
-- -- Author: Alexey Melnichuk <mimir@newmail.ru> -- -- Copyright (C) 2014 Alexey Melnichuk <mimir@newmail.ru> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of Lyre library. -- --------------------------------------------------------------------- local function lyre_node_threa...
-- TOOLS -- TOOL PEAK ORICHALCUM minetest.register_tool("mymod:peak_orichalcum", { description = "Pico de oricalco", inventory_image = "tool_orichalcumpick.png", range = 4.2, tool_capabilities = { full_punch_interval = 0.88, max_drop_level=1, groupcaps = { cracky = {...
local qr_TipsDialog= { name="qr_TipsDialog",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft, { name="shiled",type=1,typeName="Image",time=77189895,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParent...
local Class = require("class") local M = Class() M.__index = M M.__call = function(self, id) return assert(self._data[id][self._language]) end function M:_init() self._data = {} end function M:set(language) self._language = language end function M:add(data) if not(self._data[data.id]) then self._data...
-- Matter import 'matter/matter' local clear = playdate.graphics.clear -- Create an engine local engine = Engine.create() local world = engine.world -- Create a renderer local render = Render.create({ element = nil, engine = engine, options = { width = 400, height = 240, -- showInternalEdges = true, -- wi...
--- A unit capable of doing damage in construct PVP. -- -- Element class: Weapon<Type><Size> -- -- Extends: Element -- @see Element -- @module WeaponUnit -- @alias M local MockElement = require "dumocks.Element" local elementDefinitions = {} elementDefinitions["uncommon railgun xs"] = {mass = 232.02, maxHitPoints = 3...
--[[ @Title: ReferenceHolder @Author: Dr_K4rma @Date: 10 Apr. 2021 @Package: ServerScriptService.RovaFramework.Shared.Helpers @Provides: Holds a reference to an object until said object has been deleted (parent set to nil) ]]-- --[[ Hello future me! (or whomever is reading this) You might be wondering why this ...
DHUDO_locale = {}; DHUDO_locale.DHUDOptionsFrameTab1 = "Misc"; DHUDO_locale.DHUDOptionsFrameTab2 = "Offsets"; DHUDO_locale.DHUDOptionsFrameTab3 = "Unit Text"; DHUDO_locale.DHUDOptionsFrameTab4 = "Colors"; DHUDO_locale.DHUDOptionsFrameTab5 = "Layouts"; DHUDO_locale.DHUDOptionsFrameTab6 = "MADCATf"; DHUDO_locale.DHUDOpt...
--- The base from which all GUI Components extend -- @module GUIElement local cwd = string.sub(..., 1, string.len(...) - string.len('components.guiElement')) local class = require(cwd .. '.lib.middleclass') local Utils = require(cwd..'.lib.utils') local GUIElement = class('GUIElement') --- Creates a new GUIElemen...
local SceneEntityState = {} SceneEntityState.__index = SceneEntityState --############################################################################# --DO NOT EDIT ABOVE --############################################################################# --################################################################...
--[[ Don't edit or remove this comment block! It is used by the editor to store information since i'm too lazy to write a good LUA parser... -Haz SETTINGS RestrictedEnhancements=ResourceAllocation,DamageStablization,AdvancedEngineering,T3Engineering,HeavyAntiMatterCannon,LeftPod,RightPod,Shield,ShieldGeneratorField,...
bol_pack_runner = Creature:new { objectName = "@mob/creature_names:bol_pack_runner", socialGroup = "bol", faction = "", level = 26, chanceHit = 0.36, damageMin = 230, damageMax = 240, baseXp = 2637, baseHAM = 8200, baseHAMmax = 10000, armor = 0, resists = {125,125,15,15,-1,-1,15,-1,-1}, meatType = "meat_he...
function add ( x, y ) return x + y end
require "plugins.packer" require "plugins.lualine" require "plugins.kommentary" require "plugins.telescope" require "plugins.dashboard" require "plugins.coc" require "plugins.nvim-tree" require "plugins.transparent" require "plugins.tressiter" require "plugins.bufferline" require "plugins.vimtex" require "plugins.inden...
local PLUGIN = PLUGIN PLUGIN.name = "Fallout: New Vegas HUD Extras" PLUGIN.description = "Adds a Fallout: New Vegas stuff for my HUD." PLUGIN.author = "_HappyGoLucky" ix.util.Include("sh_hooks.lua") ix.util.Include("sv_hooks.lua") --Oxygen Stuff ix.config.Add("oxygenDrain", 3, "The amount of oxygen drained (out of 1...
local xcb = require("xcb.wrapper") describe("xcb.wrappers can connect,", function() local conn = xcb.connect() describe("get the focussed window's wid", function() local wid = conn:get_input_focus():reply(conn).focus assert.is_truthy(wid) it("and list the children", function() local wind = conn:window(wid)...
local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local vnc = require "vnc" description = [[ Queries a VNC server for its protocol version and supported security types. ]] author = "Patrik Karlsson" license = "Same as Nmap--See https://nmap.org/book/man-legal.html" ...
--[[ This file is part of ClearTables @author Paul Norman <penorman@mac.com> @copyright 2017 Paul Norman, MIT license ]]-- require "common" local amenity = { hospital = true, doctors = true, dentist = true, clinic = true } function accept_healthcare (tags) return amenity[tags["amenity"]] end fun...
local Utilities = { string = {} } function Utilities.string.trim(str) return string.match(str, '^%s*(.-)%s*$') end function Utilities.string.startswith(str, pattern, plain) local start = 1 return string.find(str, pattern, start, plain) == start end function Utilities.string.endswith(str, pattern, plain) local...
local lang = require 'lang' local w2l local wtg local state local chunk local unpack_index local read_eca local arg_type_map = { [-1] = lang.lml.DISABLE, [0] = lang.lml.PRESET, [1] = lang.lml.VARIABLE, [2] = lang.lml.CALL, [3] = lang.lml.CONSTANT, } local multiple = { YDWERegionMultiple = ...
--- -- Send a message to a server. -- hubot.RegisterCommand( "say", { desc = "Chat with remote servers in 'chat_*' channels.", run = function(args, envelope) if #args < 1 then return "usage: say <message>" end local room = envelope.room or "" local clientName = string.match( room, "chat_(%w+)" ) if no...
local LevelLoader = require('class')() function LevelLoader:_init(level) local game = require('game') local Platform = require('platform') local plat = Platform(0, game.bounds.h-30, game.bounds.w, 50) game:add(plat) local Litterbox = require('litterbox') game:add(Litterbox(0, plat.y-50)) local MilkAnd...
local kLoaded = 14 local kBad = 7 local kOffset = kLoaded + 2 -- require a quality score of 50 to stop displaying unknown in text -- actual score is still indicated by color kServerPerformanceDataUnknownQualityCutoff = 50 local kPerfIconIcons = { PrecacheAsset("ui/icons/smiley_good.dds"), PrecacheAsset("ui/i...
--lua script language --variables: client packet print(os.date().." heartbeat script") --client name local name = "" for i,v in ipairs(client) do name = name..string.char(v) end --packet received from client local comp = "" for i,v in ipairs(packet) do comp = comp..string.char(v) end --confirm the heartbeat if(n...
------------- -- Imports -- ------------- local ipairs = ipairs local tostring = tostring local IsInInstance = IsInInstance local autoHideObserver = CreateFrame("Frame") local partyFrames local parentFrame = CreateFrame("Frame") --------------- -- Functions -- --------------- local handleTogglingVisibility = fun...
----------------------------------- -- Area: Bastok Mines -- NPC: Parraggoh -- Finishes Quest: Beauty and the Galka ----------------------------------- require("scripts/globals/quests") require("scripts/globals/settings") require("scripts/globals/keyitems") local ID = require("scripts/zones/Bastok_Mines/IDs") --------...
--[[ function! LuaComplete (ArgLeaf, CmdLine, CursorPos) abort return map(luaeval("vim.tbl_keys(" . a:CmdLine[4:] . ")"), {k,v -> a:CmdLine[4:] . "." . v}) endfunction --]] local og_print = print local print = function(...) print(vim.inspect(...)) end local completion = {} completion.split_input = functio...
minetest.register_craft({ output = "diplazer:pchest", recipe = { {"default:stick","default:stick","default:stick"}, {"default:stick","default:chest_locked", "default:diamond"}, {"default:stick","default:stick","default:stick"}, } }) local function diplazer_setpchest(pos,user) local meta = minetest...
local Entity = require("kong.db.schema.entity") local DAO = require("kong.db.dao.init") local errors = require("kong.db.errors") local utils = require("kong.tools.utils") local basic_schema_definition = { name = "basic", primary_key = { "a" }, fields = { { a = { type = "number" }, }, { b = { type = "stri...
-- MATH do function math.randomseed() -- STUB STUB end function math.min(x,y) if x < y then return x else return y end end function math.max(x,y) if x > y then return x else return y end end...
PLUGIN.name = "Luck " PLUGIN.author = "Zadkiel" PLUGIN.desc = "Adds a luck attribute." if (SERVER) then function PLUGIN:EntityTakeDamage(client, dmg) if (dmg:GetAttacker():IsPlayer()) then if !(IsValid(dmg:GetAttacker():GetActiveWeapon())) then return end if weapons.IsBasedOn( dmg:GetAttacker():GetActiveWeapo...
-- Thermal Evaporation Plant -- Used to extract salt from water elethermal.cache = {} local results = { { input = "default:water_source 1000", output = "elepower_thermal:brine_source 100", heat = 400 }, { input = "elepower_thermal:brine_source 1000", output = "elepower_dynamics:lithium_source 100", heat ...
local nn = require 'nn' local BatchTopK, parent = torch.class('nn.BatchTopK', 'nn.Module') function BatchTopK:__init(k, flag) parent.__init(self) self.k = k or 1 self.flag = flag or false end function BatchTopK:updateOutput(input) if self.train then local nDim = input:nDimension() assert(nDim == 2, '...
_hx_funcToField = function(f) if type(f) == 'function' then return function(self,...) return f(...) end else return f end end
teal_animation = { size = { x = 49, y = 94 }, texture = ":/game/char/villager", offset = { x = 5, y = -66 } }
return { fadeOut = 1.5, mode = 2, id = "XINNIAN4", once = true, fadeType = 1, fadein = 1.5, scripts = { { mode = 1, sequence = { { "新年快乐\n\n<size=45>四 友情、努力、胜利</size>", 1 } } }, { actor = 401230, side = 2, nameColor = "#a9f548", dir = 1, say = "嗯?果然大家都来了吗", typ...
local irc = require( "irc" ) local ops = { } irc.on( "353", function( args ) local nicks = args:match( "^[^:]*:(.*)$" ) ops = { } for nick in nicks:gmatch( "(%S+)" ) do if nick:sub( 1, 1 ) == "@" then ops[ nick:sub( 2 ) ] = true end end end ) irc.on( "MODE", function( args, nick, target ) if target == C...