content
stringlengths
5
1.05M
----------------------------------------------------------------------------------------------- -- Goes through each directory and creates input and output data for each network -- so that compatibility with the current version of DeepBoof can be tested. -- -- Usage: th generate_tests.lua -- -- Peter Abeles -----------...
vim.cmd 'packadd packer.nvim' return require'packer'.startup(function() use {'wbthomason/packer.nvim', opt = true, config = 'require("plugins")', cmd = 'PackerSync', } -- find, navigate use {'junegunn/fzf', config = function() vim.env.FZF_DEFAULT_OPTS = '--reverse' ...
-------------------------------------------------------------------------------- -- Algebra module. -- -- Copyright (C) 2011-2014 Stefano Peluchetti. All rights reserved. -- -- Features, documentation and more: http://www.scilua.org . -- -- This file is part of the SciLua library, which is released under the MIT...
--[[ Copyright 2021 0x2A ( https://github.com/0x2A-git ) 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...
local adam = require("adam.adam") local actions = require("adam.actions") local M = {} local function flip_comparator(current_value, speed) if speed == 0 then return current_value end return speed < 0 end local update_z_pos = adam.actions( actions.math.set("z_pos", actions.value("position", "y"), true), act...
local monitor = peripheral.wrap("top") monitor.clear() monitor.setCursorPos(5, 2) monitor.setTextColor(colors.cyan) monitor.write("WizardOfZot") monitor.setCursorPos(4, 4) monitor.setTextColor(colors.green) monitor.write("ComputerCraft")
local t = require('luatest') local g = t.group('unit_sample') require('test.helper.unit') g.test_sample = function() t.assert_equals(type(box.cfg), 'table') end
-- NetHack 3.7 Tourist.des $NHDT-Date: 1432512784 2015/05/25 00:13:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.8 $ -- Copyright (c) 1989 by Jean-Christophe Collet -- Copyright (c) 1991,92 by M. Stephenson, P. Winner -- NetHack may be freely redistributed. See license for details. -- des.level_init({ style = "solidf...
local NET = {} function NET.packages() require 'cudnn' require 'cunn' require 'utils/mathfuncs' require 'utils/utilfuncs' end require 'cudnn' local Convolution = cudnn.SpatialConvolution local ReLU = nn.ReLU local Max = nn.SpatialMaxPooling local Avg = cudnn.SpatialAveragePooling local SBatchNorm = nn....
return {'onjuist','onjuistheid','onjoods','onjuiste','onjuister','onjuistheden','onjoodse'}
--[[ APERTURE API MAIN ]] AddCSLuaFile( ) APERTURESCIENCE = { } -- Main APERTURESCIENCE.DRAW_HALOS = false -- Funnel APERTURESCIENCE.FUNNEL_MOVE_SPEED = 173 APERTURESCIENCE.FUNNEL_COLOR = Color( 0, 150, 255 ) APERTURESCIENCE.FUNNEL_REVERSE_COLOR = Color( 255, 150, 0 ) -- Fizzle APERTURESCIENCE.DISSOLVE_SPEED ...
return function() it("should be a valid theme palette.", function() local Themes = script.Parent local Style = Themes.Parent local validateTheme = require(Style.Validator.validateTheme) local LightTheme = require(Themes.LightTheme) assert(validateTheme(LightTheme)) end) end
ardour { ["type"] = "EditorAction", name = "Reset session start and end", license = "MIT", author = "Daniel Appelt", description = [[Reset session start and end markers according to existing regions]] } function factory (unused_params) return function () local min = math.maxi...
config = { window = { title = "Morpheus Engine", fullscreen = false, primary_monitor = true, resolution = { width = 1280, height = 720 } }, fps = 120, vsync = true, debug = false }
--Created by Krock for the BitChange mod --License: WTFPL moneychanger = {} moneychanger.constructing = function(pos) local meta = minetest.get_meta(pos) meta:set_string("formspec", "size[8,7]" .. "list[current_name;source;0,1;1,1;]" .. "label[0,0;Input money]" .. "list[current_name;output;2,1;2,1;]" .....
-- Given an .ini file, convert it into a Lua table. module(..., package.seeall) local lpeg = require "lpeg" local P, R, S, C, Carg, Cc, Cf, Cg, Ct = lpeg.P, lpeg.R, lpeg.S, lpeg.C, lpeg.Carg, lpeg.Cc, lpeg.Cf, lpeg.Cg, lpeg.Ct local whitespace = S(" \t\r\n\f")^1 local space = S(' \t') local eol = space^0 * S('\r\n') ...
--- @classmod core.voxel.BlockVoxelMesh --- A voxel mesh, which defines geometry for each side of a cube. local engine = require 'engine' local class = require 'middleclass' local Object = class.Object local Scheduler = require 'core/Scheduler' local Vec = require 'core/Vector' local Mat4 =...
package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;" require("wx") -- -- Control Table -- wxID_USER_Index = 1000 _window__ctrl_table = {} function GetControl(key) return _window__ctrl_table[key] end function GetNativeControl(key) if _window__ctrl_table[key] then return _window__ctrl_table[k...
require 'pl' refactor:transform( function(transform) return transform:match( function(mcx) local pat = mcx:parse_stmts([[ $i:Ident = $start:Expr; $'label:?Ident: while $cond:Expr { $body:MultiStmt; $incr:Stmt; }]]) local lt_cond = mcx:parse_expr("$i < $end:Expr") ...
-- Prosody IM -- Copyright (C) 2012 Florian Zeitz -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local jid = require "util.jid"; module:hook("message/host", function (event) local origin, stanza = event.origin, e...
--===========================================================================-- -- -- -- System.Net.Socket -- -- -- ...
---[[---------------------------------------]]--- -- utils - Doom Nvim utilities -- -- Author: NTBBloodbath -- -- License: GPLv2 -- ---[[---------------------------------------]]--- --- @class utils local utils = {} local system = require("doom.core....
fio = require('fio') env = require('test_run') test_run = env.new() source_dir = os.getenv("SOURCEDIR") .. "/test/app/" build_dir = os.getenv("BUILDDIR") .. "/test/app/" -- -- Check . loader -- orig_cwd = fio.cwd() fio.chdir(source_dir) cwd_loader = package.loaders[2] f = cwd_loader("loaders") type(f) f() fio.chdir(or...
-- local dbg = require("debugger") -- dbg.auto_where = 2 local stubber = require'spec.helpers.stub_vim'.stubber local buffer = {"alpha", "beta", "gamma"} stubber.cursor(2,3) stubber.lines(table.unpack(buffer)) stubber.option("ft", "elixir") stubber.evaluation('expand("%:t")', "filename") stubber.evaluation('...
-- Diagnostics settings vim.diagnostic.config({ virtual_text = false, update_in_insert = true, severity_sort = true, float = { focusable = false, }, }) -- Diagnostics icons local signs = { Error = " ", Warn = " ", Hint = " ", Info = " ", } for type, icon in pairs(signs) do local hl = "Diagn...
Description="Marks the lines defined as comma separated list or range in the plug-in parameter (HTML, RTF or Truecolor/xterm256 Escape)." Categories = {"format", "html", "rtf", "truecolor", "xterm256" } function syntaxUpdate(desc) if HL_OUTPUT ~= HL_FORMAT_HTML and HL_OUTPUT ~= HL_FORMAT_XHTML and HL_OUTPUT ~= HL...
--- Hardware timestamping. local mod = {} local ffi = require "ffi" local dpdkc = require "dpdkc" local dpdk = require "dpdk" local device = require "device" local eth = require "proto.ethernet" local memory = require "memory" local timer = require "timer" local log = require "log" local filter = require ...
-- See LICENSE for terms local mod_ShowConstruct local mod_SetMaxRadius -- fired when settings are changed/init local function ModOptions() mod_ShowConstruct = CurrentModOptions:GetProperty("ShowConstruct") mod_SetMaxRadius = CurrentModOptions:GetProperty("SetMaxRadius") end -- load default/saved settings OnMsg.Mo...
do return end if not (bit and jit and Panel.LoadCustomSortMode) then return end local ffi=require'ffi' local C=ffi.C local band,bor = bit.band,bit.bor local tonumber = tonumber local CompareStringFlags = bor(C.NORM_IGNORECASE, C.SORT_STRINGSORT) local FILE_ATTRIBUTE_DIRECTORY = 0x0010 local DOT, BS = string.byte(".")...
local class = require "lib.middleclass" local Item = require "components.Item" local Column = class("Column", Item) Column.property.spacing = 0 function Column:cDraw() local children, y, sp = self.children, 0, self.spacing for i = 1, #children do local c = children[i] local h = c:getHeight() if c.vi...
local player = {} local canShoot = true local canShootTimerMax = 0.2 local canShootTimer = canShootTimerMax local speed = 150 local playerImg = love.graphics.newImage('Sprites/XenonShip.png') local animExplosion = false function player.init() player.isAlive = true player.score = 0 player.i...
-- LUA filter for Pandoc -- Replace all relative links in Markdown document by absolute URL for use in Gitlab pages. -- Relative URL "misc/CompilerConstruction.pdf" is replaced by -- "https://gitlab.com/pmetras/nim0/-/blob/master/misc/CompilerConstruction.pdf" -- when generating static pages. -- Relative URL "/doc/OSG....
local parsers = require "nvim-treesitter.parsers" local M = {} function M.init() require("nvim-treesitter").define_modules { playground = { module_path = "nvim-treesitter-playground.internal", updatetime = 25, persist_queries = false, keybindings = { toggle_query_editor = "o", ...
modifier_phoenix_fire_spirits_burn_nb2017 = class({}) -------------------------------------------------------------------------------- function modifier_phoenix_fire_spirits_burn_nb2017:OnCreated( kv ) self.tick_interval = self:GetAbility():GetSpecialValueFor( "tick_interval" ) self.attackspeed_slow = self:GetAbili...
--- The Speed based scheduler -- @module ROT.Scheduler.Speed local ROT = require((...):gsub(('.[^./\\]*'):rep(2) .. '$', '')) local Speed = ROT.Scheduler:extend("Speed") --- Add. -- Add an item to the schedule -- @tparam userdata item Any class/module/userdata with a :getSpeed() function. The value returned by getSpeed...
local comments = {} local commentHandler = class("commentHandler", turbo.web.RequestHandler) function commentHandler:get(postID) local postID = tonumber(postID) if not postID then error(turbo.web.HTTPError(400, "Bad post ID")) end if posts[postID]then return templates.render("comments.lua", comments) else ...
local playsession = { {"dog80", {895865}}, {"Menander", {1221617}}, {"Fireflyghost", {612425}}, {"MrJSelig", {169805}}, {"mattdawg10", {24865}}, {"ChinaNumba1", {459013}}, {"Krono", {382835}}, {"huashengmaodou", {17382}}, {"ronnaldy", {759339}}, {"Thewarlockminer", {6024}}, {"facere", {353603}}, {"Roufails"...
#!/usr/bin/env tarantool test = require("sqltester") test:plan(10) --!./tcltestrunner.lua -- 2015-03-16 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. --...
-- ********************* -- DRIVEABLE CAR EXAMPLE -- ********************* -- -- NOTES: -- + Please turn deactivation OFF or keyboad shortcuts will not work -- + Dimensions scaled x10 for better stability -- -- KEYBOARD SHORTCUTS: -- + F1 = switch camera -- + F2 = accelerate -- + F3 = brake -- + F4 = reverse -- + ...
----------------------------------- -- Ability: Footwork -- Makes kicks your primary mode of attack. -- Obtained: Monk Level 65 -- Recast Time: 5:00 -- Duration: 1:00 ----------------------------------- require("scripts/globals/status") ----------------------------------- function onAbilityCheck(player, target, abilit...
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
ext_root = _WORKING_DIR .. "/" print("Parsing settings.. "); dofile("settings.ini"); print("Done."); newoption { trigger = "64bit", description = "Generate 64 bit projects." } newoption { trigger = "platform-windows", description = "Generate windows projects." } newoption { trigger = "no-dx12", descript...
vim.g.mapleader = ' ' -- vim.g.colors_name = 'onedark' vim.g.colors_name = 'vscode' -- -- NAVIGATION -- -- open new split panes to right and bottom, which feels more natural vim.opt.splitbelow = true vim.opt.splitright = true -- -- EDITING -- -- soft tabs of 2 spaces vim.opt.tabstop = 2 vim.opt.shiftwidth = 2 vim.o...
-- "Test cases" for Sup local sup = require('Sup') -- A very long one local solid = sup.OACRFVFHGSS{args={}} print(solid) -- The very long one, but split local split = sup.OA{args={'C RFVF', 'HGSS'}} print(split) -- Syntax equivalence assert(solid == split, 'syntax mismatch') -- No color specified local noColor ...
-- cli to pull birthdays on the month-day provided on the command line from wikipedia REST API -- cerner_2tothe5th_2021 local lunajson = require 'lunajson' local http_request = require "http.request" if (arg[1] == nil or arg[2] == nil or (tonumber(arg[1]) < 1 or tonumber(arg[2]) > 12)) then -- check if days are va...
Camera = Entity:extend() function Camera:new(follow) Camera.super.new(self) self.follow = follow self.speed = 2 self.w = WIDTH self.h = HEIGHT end function Camera:set() love.graphics.push() love.graphics.translate(-self.x, -self.y) end function Camera:unset() love.graphics.pop() end functi...
include "third_party/ld80/build.lua" include "third_party/zmac/build.lua" local VERSIONS = { "ADM3A", } local srcs = {"cmos", "eval", "exec", "fpp", "main", "ram", "sorry"} local generated = {} for _, f in pairs(srcs) do generated[#generated+1] = zmac { name = f, srcs = { "./"..f..".z80" } } ...
include ("glib/stage1.lua") if SERVER or file.Exists ("glib/stage2.lua", "LUA") or file.Exists ("glib/stage2.lua", "LCL") and GetConVar ("sv_allowcslua"):GetBool () then include ("glib/stage2.lua") end
-- https://github.com/hrsh7th/nvim-cmp local cmp = require('cmp') local luasnip = require('luasnip') local cmp_kinds = { Class = ' ', Color = ' ', Constant = 'ﲀ ', Constructor = ' ', Enum = '練', EnumMember = ' ', Event = ' ', Field = ' ', File = '', Folder = ' ', Fun...
-- load pfUI environment setfenv(1, pfUI:GetEnvironment()) --[[ libcast ]]-- -- A pfUI library that detects and saves all ongoing castbars of players, NPCs and enemies. -- This also includes spells that usually don't have a castbar like Multi-Shot and Aimed Shot. -- -- libcast:GetCastInfo(unit) -- Returns all ongo...
require("ElementManager") require("ContainerManager") require("SkillManager") require("string_util") script = {} function script.onStart() system.print(SkillManager:Instance():ToString()) local el = ElementManager:Instance() assert(el.Core ~= nil, "Core not linked") assert(#el.Screen > 0, "Screen no...
----------------------------------------- -- ID: 4871 -- Scroll of Escape -- Teaches the black magic Escape ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(263) end function onItemUse(target) target:addSpell(263) end
---@class UB : module local M = {} is_server = false -- this is for rcon --#region Global data local mod_data ---@type table<integer, table> local public_script_data ---@type table<integer, table> local admin_script_data ---@type table<string, table> local rcon_script_data --#endregion ---@type table<integer, func...
fx_version 'cerulean' game 'gta5' description 'qb-Multicharacter' version '1.0.0' ui_page "html/index.html" client_scripts { 'client/main.lua' } server_scripts { 'server/main.lua' } files { 'html/index.html', 'html/style.css', 'html/reset.css', 'html/script.js', 'html/zion.png' } share...
object_mobile_exar_kun_minder = object_mobile_shared_exar_kun_minder:new { } ObjectTemplates:addTemplate(object_mobile_exar_kun_minder, "object/mobile/exar_kun_minder.iff")
require("player") p = player.new()
local Actor = require "actor" local Action = require "action" local Condition = require "condition" local Tiles = require "tiles" local Vector2 = require "vector" local Zap = actions.Zap:extend() Zap.name = "zap" Zap.targets = {targets.Item} function Zap:perform(level) actions.Zap.perform(self, level) local targe...
------------------------------------------------------------------ -- mapping table from speech event name to localized event text -- -- NOTE: Names need to be all UPPERCASE STATUS_FRIGATEDIES_1 = "$5600" -- Frigate lost STATUS_MOBILEREFINERYDIES_1 = "$5601" -- Mobile Refinery destroyed STATUS_DESTROYERDIES_1 = "$560...
-- // FileName: MessageSender.lua -- // Written by: Xsitsu -- // Description: Module to centralize sending message functionality. local module = {} --////////////////////////////// Include --////////////////////////////////////// local modulesFolder = script.Parent --////////////////////////////// Methods --/////////...
--邀请赛选择item local InvitationalSlideCommonItem = class(Node) InvitationalSlideCommonItem.ctor = function (self, data) self:setFillParent(true, false) self:setSize(410, 90) end InvitationalSlideCommonItem.createText = function(self, str, isSelect) local fontSize, r, g, b = 30, 139, 106, 64 if ...
-- initz.lua -- test si clic sur le bouton -- clic <2s goto start.lua -- clic >2s goto config wifi print("\ninit.lua zf180719.1045 \n") zBTN = 3 -- GPIO0 button --zRelay = 6 -- GPIO12 PWM0 relay (active high) zLED = 0 -- SonOff: 7 GPIO13 PWM1, NodeMCU: 0, (active low) zFlag_LED = 0 function blink_LED () if zF...
-- LocalScript local ReplicatedStorage = game:GetService("ReplicatedStorage") local UpdateSong = ReplicatedStorage.RadioServer.UpdateSong local Sound = Instance.new("Sound", game.Workspace) --local Thumbnail = game.Workspace.Part.RadioUI.Thumbnail --local SoundName = game.Workspace.Part.RadioUI.SoundName UpdateSong....
module(..., package.seeall) local touchingProp function onCreate(params) layer = Layer { scene = scene, touchEnabled = true, } for i = 1, 4 do local sprite = Sprite {texture = "cathead.png", layer = layer, pos = {(i - 1) * 64, 0}, size = {64, 64}} sprite:addEventListen...
local p=require"pinout" local config=require"config" local http_util=require"http_util" return function(state,send,data) idx=idx and tonumber(idx)+1 local inputs={} local outputs={} local adcs={} for i,v in ipairs(p.input) do inputs[i]={name=config.get_value("input_name",i),value=1-gpio.rea...
function animationsystem_load() animationtriggerfuncs = {} animationbuttontriggerfuncs = {} animationbuttonreleasetriggerfuncs = {} animationswitchtriggerfuncs = {} animationplayerlandtriggerfuncs = {} animationplayerhurttriggerfuncs = {} animations = {} animationschar = {} if not dcplaying then local dir ...
return { {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, desc_get = "", name = "百合根", init_effect = "", time = 90, color = "red", picture = "", desc = "", stack = 1, id = 103060, icon = 103060, last_effect = "", effect_list = { { type = "BattleBuffCastSkill", trigger = { "onUpdate" }, ar...
local special_skill={ { name="华佗再世",info="治疗一个角色,治疗血量受自身的根骨与福缘加成。",coverType=0,castSize=1,coverSize=0,audio="音效.恢复类物品",animation="test",costMp=200,cd=1,costball=0,hitself=false,icon="paiji",buff="" }, { name="一刀两断",info="威力无匹的攻击,一定几率减对方一半气血",coverType=3,castSize=1,coverSize=0,audio="音效.利器4",animation="test",costMp=40...
--[[ -- Servers for LSP -- -- Author: Nicholas O'Kelley -- Updated: Jan 3, 2022 --]] local ok, lsp_installer = pcall(require, "nvim-lsp-installer") if not ok then return end -- Register each of the server handlers for installed servers -- Check lsp-installer for more info lsp_installer.on_server_ready(function(se...
local playerModule = require "module.playerModule" local PlayerInfoHelper = require "utils.PlayerInfoHelper" local ItemModule=require"module.ItemModule" local TipCfg = require "config.TipConfig" local changeName = {} function changeName:Start(data) local idx=data and data.idx or 1 local info=data and data.info...
local MotdMessage = [[ --------------------------------------------------------------------------- DarkRP Message of the day! --------------------------------------------------------------------------- ]] local endMOTD = "---------------------------------------------------------------------------\n" local functi...
-- -- Created by IntelliJ IDEA. -- User: tinkpad -- Date: 2017/9/2 -- Time: 0:22 -- To change this template use File | Settings | File Templates. -- local locks = require "resty.lock" --lock模块 local limit = 3 --限流大小 local function acquire() if limit <= 0 then return 0 end local lock = locks:new...
return { run = function(C, msg) C.api:send(msg, msg.loc.pat:format(os.time() - msg.date)) end }
target("parser") set_kind("static") add_includedirs("include") add_files("src/**/*.cpp")
-- Copyright 2022 philh30 -- -- 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 or agreed to in writ...
--[[ Copyright (c) 2012 Matthias Richter 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, publish, distribu...
require "config" local function createFusionTrainTechnology() data:extend( { { type = "technology", name = "fusion-train", icon = "__fupower__/graphics/icons/fusion-locomotive.png", prerequisites = {"alien-technology", "railway", "logistics-3"}, effects = { {type = "...
package.path = 'D:/Program Files (x86)/HTTPD/htdocs/TrainMobileFile/LuaCode/lib/?.lua' --url format --fs_user_upload_team.php?data={} require 'string' local fs = require 'file_system' local jt = require 'json_tool' function handle(r) r.content_type = "text/plain" if r.method == 'GET' or r.method == 'POST' then...
local match_redis_key = { user_match_list = "user_match_list", --玩家比赛列表key } return match_redis_key
BULLET_PLAYER_IMA = nil BULLET_PLAYER_IMA_FRAME_LIST = nil function BulletPlayer(x,y,dir) local self = {} self.dir = dir self.x = x self.y = y self.w = 2 self.h = 2 self.on_screen = true self.is_dead = false self.add_explo = false self.ricochet = false...
kole = Creature:new { objectName = "@mob/creature_names:kole", socialGroup = "nym", faction = "nym", level = 22, chanceHit = 0.33, damageMin = 190, damageMax = 200, baseXp = 1803, baseHAM = 5000, baseHAMmax = 6100, armor = 1, resists = {20,20,40,20,0,20,0,-1,-1}, meatType = "", meatAmount = 0, hideType =...
local guideDialog = {} function guideDialog:Start(data) --self:initData(data) self.data = data self:initUi(data) end function guideDialog:initData(data) self.questId = data.questId end function guideDialog:initUi(data) self.view = CS.SGK.UIReference.Setup(self.gameObject) --self.quest = modul...
local value = 1 function testfn(v1, ...) local local_value1 = 1 local local_value2 = "abc" local local_value3 = 4234.33 local local_value4 ={4234.3} return ... end testfn(2,1,3)
-- Copyright (c) 2020-2021 hoob3rt -- MIT license, see LICENSE for more details. local Mode = require('lualine.component'):new() local get_mode = require('lualine.utils.mode').get_mode Mode.update_status = get_mode return Mode
--[[ Name: sh_loader.lua ----------------------------------------------------------------- -- @package VrZn - Custom Gamemode (SRP BASE) -- @author Nodge -- @build Beta 1 ----------------------------------------------------------------- ]]-- local file = file local FILE_CLIENT = 0x0 local FILE_SHARED = ...
net.Receive("LElectronics:Notify", function() local message = net.ReadString() notification.AddLegacy("[LElectronics] "..message, NOTIFY_ERROR, 3) end)
------------------------------------------------------------------- -- This script is created by zdroid9770; please do not edit this -- -- script and claim it as your own, as of All rights are claimed -- -- by me. -- -- Copyright (c) zdroid9770 ...
--[[------------------------------------------------------ # File A simple OS file wrapper which can return file descriptors for read/write/events. --]]------------------------------------------------------ local core = require 'lens.core' local lib = core.File local OK, Wait, new = lib.O...
#!/usr/bin/env luajit local fmt=string.format local write=io.write local int,sqrt=math.floor, math.sqrt function fna(z) return 30*math.exp(-z^2/100) end function string:plot(x) return self:sub(1,x-1).."*"..self:sub(x+1) end function tab(x) return (" "):rep(x) end function center(len, str) return tab(.5*(len-#str)).....
local class = require('middleclass') local Controller = require('mvc.Controller') local HasSignals = require('HasSignals') local GVMessageListController = class("GVMessageListController", Controller):include(HasSignals) function GVMessageListController:initialize(group) Controller.initialize(self) HasSignals.i...
--[[ Copyright (c) 2015-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. ]]-- local...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_marci_unl...
-- Gkyl -------------------------------------------------------------- -- Basic sheath simulation ------------------------------------------- local Plasma = require ("App.PlasmaOnCartGrid").VlasovMaxwell -- SI units local epsilon_0, mu_0 = 8.854e-12, 1.257e-6 local q_e, q_i = -1.6021766e-19, 1.6021766e-19 local m_e, m...
TigerWarpNpc = { clearTrap = function(map) local blockCheck = core:getObjectsInMap(map, BL_ALL) if (#blockCheck > 0) then for z = 1, #blockCheck do removeTrapItem(blockCheck[z]) blockCheck[z]:delete() end end end, spawnTrap = function(chosenMap, map) local spawnedAmount = 0 local failCheck =...
local E = Game_Event:extend("Outside::Neighbour_Away_Event") function E.prototype:trigger() Game_Map.interpreter:message( "My neighbour's house is\n pretty fucked up...", { showFrame = true, position = "bottom" } ) Game_Map.interpreter:message( "I can\'t hear anything so I guess\n no one\'s home.", ...
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/404rq/GTW-RPG/ Bugtracker: https://discuss.404rq.com/t/issues Suggestions: https://discuss.404rq.com/t/deve...
-- MV compressor local S = technic.getter minetest.register_craft({ output = 'technic:mv_compressor', recipe = { {'technic:stainless_steel_ingot', 'technic:lv_compressor', 'technic:stainless_steel_ingot'}, {'pipeworks:tube_1', 'technic:mv_transformer', 'pipeworks:tube_1'}, {'technic:stainless_ste...
local rspamd_http = require "rspamd_http" local rspamd_logger = require "rspamd_logger" local function http_symbol(task) local url = tostring(task:get_request_header('url')) local method = tostring(task:get_request_header('method')) task:insert_result('method_' .. method, 1.0) local function http_callback(er...
TaanabCaveScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "TaanabCaveScreenPlay", } registerScreenPlay("TaanabCaveScreenPlay", true) function TaanabCaveScreenPlay:start() if (isZoneEnabled("taanab")) then self:spawnMobiles() end end function TaanabCaveScreenPlay:spawnMo...
--[[ timestamp.lua This example shows how the varius capabilities of the timestamp module. Timestamps are represented in UTC time values. Any time timestamp value is returned to Lua, they are returned as 64-bit integers encoded in strings. The rationale for this is due to lua_Number size limitations. ...
-- Constructed with love by ImogenOC. Shared and Used under the MIT Licensing. -- Mind Quickening { "49868", { "!player.buff(55610)", -- Unhola Aura "!player.buff(49868)", -- Mind Quickening "!player.buff(113742)", -- Swiftblade's Cunning "!player.buff(116956)", -- Grace of Air "!player.buff(128432)", -- Hunter: ...