content
stringlengths
5
1.05M
--This script merges the files Engine_Documentation directory except the Media directory into a single .json file --Specification Implemented: 2019-11-17-Specification.md --Code author: Rami Sabbagh (RamiLego4Game) --Extend the package path so it search for the modules in the special directory. package.path = "./Lua_...
function Server_AdvanceTurn_Order(game, order, result, skipThisOrder, addNewOrder) if order.proxyType == 'GameOrderStateTransition' then skipThisOrder(WL.ModOrderControl.Skip) end if order.proxyType == 'GameOrderAttackTransfer' and result.IsAttack then if is_commander_killed(result) then local Lost_...
local UI = script:GetCustomProperty("ST_CHAMPIONS_CRATE"):WaitForObject() local Time = script:GetCustomProperty("Time") function ShowBox() UI.visibility = Visibility.INHERIT end Task.Wait(1) ShowBox()
--[[ Virtual Button Makes it so there's buttons to tap Fancy stuff. Yeh. --]] function newVirtualButton(x, y, text, releasedColor, pressedColor, ...) local virtualbutton = {} virtualbutton.x = x virtualbutton.y = y virtualbutton.text = text virtualbutton.width = 32 virtualbutton.height = 3...
-- Circuit break if this plugin has already completed if vim.b.did_local_ftplugin == true then return 0 end -- Create an augroup for this module vim.api.nvim_define_augroup("GitRebase", true) -- Delete the buffer upon losing visibility -- This exists to support terminating the buffer so that GIT_EDITOR completes vim...
TitleScreenState = Class{__includes = BaseState} function TitleScreenState:update(dt) if love.keyboard.wasPressed('enter') or love.keyboard.wasPressed('return') then gStateMachine:change('countdown') end end function TitleScreenState:render() love.graphics.setFont(fonts['flappyFont']) love.gr...
--[ vRP ]---------------------------------------------------------------------------------------------- local Tunnel = module("vrp","lib/Tunnel") local Proxy = module("vrp","lib/Proxy") vRP = Proxy.getInterface("vRP") --[ CONNECTION ]------------------------------------------------------------------------------------...
local TextOperation = require "ot.text-operation" function randomInt(max) return math.floor(math.random() * max) end function randomChar() return string.char(97 + randomInt(26)) end function randomString(maxLen) maxLen = maxLen or 16 local s = '' local sLen = randomInt(maxLen + 1) while sLen > 0 do s...
--- 模块功能:LCD适配 -- @author openLuat -- @module ui.lcd -- @license MIT -- @copyright openLuat -- @release 2018.03.27 --根据自己的lcd类型以及使用的spi引脚,打开下面的其中一个文件进行测试 --mono表示黑白屏,color表示彩屏 --std_spi表示使用标准的SPI引脚,lcd_spi表示使用LCD专用的SPI引脚 --i2c表示使用i2c引脚 -- require "mono_std_spi_sh1106" -- require "mono_lcd_spi_ssd1306" -- re...
local mod = DBM:NewMod(887, "DBM-Party-WoD", 2, 385) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 15007 $"):sub(12, -3)) mod:SetCreatureID(75786) mod:SetEncounterID(1652) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 153247 152940 152939", ...
RegisterNetEvent('pz_armario:armario') AddEventHandler('pz_armario:armario', function() TriggerEvent('motels:wardrobe') end) function OpenRoomMenu2(player) local entering = nil local elements = {} table.insert(elements, {label = 'Tus outfits', value = 'player_dressing'}) table.insert(elements, {label = ...
require('bqf').setup {}
son_kal = { --poet vita attack --Monk stats equipped, 89 M, 98 G, 149 W. 13708 vita, ~13k mana cast = function(player) --local aethers = 50000 -- 50s local aethers = 10000 -- changed to help balance with other paths and give monks some "hybrid" utility, aethers are low enough to matter, but not too high th...
return { speak = function(str) return str end }
Dntgtest_Visual = { { TypeID = 0, Id = 1, Die = { { Scale = 1.5, Name = "end", Direction = 0, Image = "xiaolvyu", OffestX = 0, OffestY = 0, AniType = 0 } }, Live = { { Scale = 1.2, Name = "idle", Direction = 0, Image = "xiaolvyu", OffestX = 0, Offe...
--[[--------------------------------------------------------------------------- DarkRP custom shipments and guns --------------------------------------------------------------------------- This file contains your custom shipments and guns. This file should also contain shipments and guns from DarkRP that you edited. ...
-- token filter: allow reserved words as field names local function emit(...) io.write(...) io.write(" ") end local state=0 function FILTER(line,token,text,value) local t=text if t=="<file>" or t=="<eof>" then return end if t=="<string>" then value=string.format("%q",value) end if state==0 then if t=="." the...
local httpdRequestHandler = { method = nil, query = { }, path = nil, contentType = nil, body = nil } local httpdRequest = { new = function (data) local _, _, method, path, query = string.find(data, '([A-Z]+) (.+)?(.+) HTTP') if method == nil then _, _, method, path = string.find(data, '([A-Z...
require 'dp' --[[parse command line arguments]]-- cmd = torch.CmdLine() cmd:text() cmd:text('List experiments by descending minima') cmd:text('Example:') cmd:text('$> th rankbyminima.lua --collection "MNIST-NDT-2"') cmd:text('Options:') cmd:option('--collection', '', 'comma separated xplog collection id') cmd:option(...
wampa = Creature:new { objectName = "@mob/creature_names:wampa", socialGroup = "wampa", faction = "", level = 80, chanceHit = 0.75, damageMin = 570, damageMax = 850, baseXp = 7668, baseHAM = 12000, baseHAMmax = 15000, armor = 1, resists = {30,160,30,200,200,200,30,30,-1}, meatType = "", meatAmount = 0, h...
---------------------------------------------------------------------------------------------------- -- -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or -- its licensors. -- -- For complete copyright and license terms please see the LICENSE at the root of this -- distribution (the "Li...
-- @module ae.ui.ViewportLayout -- @group UI -- @brief Lays out child components as if the layout bounds were the viewport -- for the child components. -- @full Lays out child components as if the layout bounds were the viewport -- for the child components. Child bounds are normalized. That is, child -- coo...
local TXT = Localize{ [0] = " ", [1] = "Door", [2] = "Leave the Grand Temple of the Moon", [3] = "Chest", [4] = "Button", [5] = "Lever", [6] = "Vault", [7] = "Cabinet", [8] = "Switch", [9] = "Drawer", [10] = "Bookcase", [11] = "Altar", [12] = "", [13] = "", [14] = "You Successfully disarm the trap", [15...
--$Name:fingers3$ --$Version:1.0$ require "finger" require "timer" local fingers = {} function finger:filter(press, fid, x, y) -- all finger events return true end timer:set(20) game.onfinger = function(s, press, fid, x, y) if press then pn (x, "x", y, rnd(10)) table.insert(fingers, { id = fid, x = x, y = y }...
local skynet = require "skynet" local httpd = require "http.httpd" local websocket = require "websocket" local socket = require "socket" local sockethelper = require "http.sockethelper" local handler = {} function handler.on_open(ws) skynet.error(string.format("Client connected: %s", ws.addr)) ws:send_text("H...
// Wildfire Black Mesa Roleplay // File description: BMRP shared function script // Copyright (c) 2022 KiwifruitDev // Licensed under the MIT License. //********************************************************************************************* // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRES...
local Gate = { [1] = createObject(5779, -86.335319519043, -24.826784896851, 3.686868667602, 0, 0, 250.82580566406), } local GateName = "Best's Gate" exports.pool:allocateElement(Gate[1]) local GatePass = "ohayena123" local open = false local busy = false local function ResetBusyState() busy = false end ...
local theme={colors={normal={blue={0.34117647058824,0.42745098039216,0.85882352941176,1},green={0.16470588235294,0.57254901960784,0.57254901960784,1},cyan={0.22352941176471,0.54509803921569,0.77647058823529,1},white={0.34509803921569,0.32156862745098,0.37647058823529,1},red={0.74509803921569,0.27450980392157,0.47058823...
--- === hs.utf8 === --- --- Functions providing basic support for UTF-8 encodings --- --- Prior to upgrading Hammerspoon's Lua interpreter to 5.3, UTF8 support was provided by including the then beta version of Lua 5.3's utf8 library as a Hammerspoon module. This is no longer necessary, but to maintain compatibility, ...
function love.conf(t) t.window.title = "Dark Flappy Bird" t.window.width = 900 t.window.height = 450 t.window.borderless = false t.window.fullscreen = false end
--- === hs.loupedeck === --- --- Control surface support for the Loupedeck CT and Loupedeck Live. --- --- Special thanks to William Viker & Håkon Nessjøen for their [NodeJS experiments](https://github.com/bitfocus/loupedeck-ct). --- --- Special thanks to [Max Maischein](https://github.com/Corion) for his [HID-Loupedeck...
-- -- The Kong schema definition -- return { name = "oauth-proxy", fields = {{ config = { type = "record", fields = { { cookie_name_prefix = { type = "string", required = true } }, { encryption_key = { type = "string", required = true } }, ...
-- Here is where all of your shared hooks should go. -- Disable entity driving. function Schema:CanDrive(client, entity) return false end function Schema:CanPlayerJoinClass(client, class, info) if(info.RequiredLevel)then return client:GetCharacter():GetLevel()>=info.RequiredLevel end end
local game = remodel.readPlaceFile("test-models/place-with-models.rbxlx") assert(game.Workspace.Camera ~= nil) remodel.writePlaceFile(game, "temp/new-place.rbxlx") local game2 = remodel.readPlaceFile("temp/new-place.rbxlx") assert(game2.Workspace.Camera ~= nil)
--[[ TheNexusAvenger Menu buttons for the bottom bar. --]] local Players = game:GetService("Players") local ReplicatedStorageProject = require(game:GetService("ReplicatedStorage"):WaitForChild("Project"):WaitForChild("ReplicatedStorage")) local NexusObject = ReplicatedStorageProject:GetResource("ExternalUtil.NexusI...
local redis = require "redis" local M = {} function M:init(conf) self.conf = conf self.db = nil end function M:connect() print("conn",self.db) self.db = redis.connect(self.conf) print("conn",self.db) end function M:disconnect() self.db:disconnect() end function M:check_conn() return sel...
require "x_functions"; if not x_requires then -- Sanity check. If they require a newer version, let them know. timer = 1; while (true) do timer = timer + 1; for i = 0, 32 do gui.drawbox( 6, 28 + i, 250, 92 - i, "#000000"); end; gui.text( 10, 32, string.format("This Lua script requires the x_functions lib...
alpha_wolf_critical_strike_aura_oaa = class(AbilityBaseClass) LinkLuaModifier("modifier_alpha_critical_strike_aura_oaa_applier", "abilities/neutrals/oaa_alpha_wolf_critical_strike_aura.lua", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier("modifier_alpha_critical_strike_aura_oaa_effect", "abilities/neutrals/oaa_alpha_wolf_...
--!strict local getPlayerHumanoid = require(script.Parent.getPlayerHumanoid) local function getAlivePlayerHumanoid(player: Player) local humanoid = getPlayerHumanoid(player) return if humanoid and humanoid.Health > 0 then humanoid else nil end return getAlivePlayerHumanoid
mPenaltyLogs = {} function mPenaltyLogs.init() mPenaltyLogs.logs = {} mPenaltyLogs.filter = nil mPenaltyLogs.full = false cSync.addHandler("PenaltyLogs.next", mPenaltyLogs.sync.next) mPenaltyLogs.gui.init() return true end function mPenaltyLogs.term() cSync.removeHandler("PenaltyLogs.next", mPenaltyLogs....
------------------------------------------------------------------------------- -- ElvUI Chat Tweaks By Crackpot (US, Thrall) -- Based on functionality provided by Prat and/or Chatter ------------------------------------------------------------------------------- local Module = ElvUI_ChatTweaks:NewModule("Custom Chat F...
--D・インパクトリターン -- --Script by Trishula9 function c100290020.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TODECK) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1,100290020) e1:SetHintTiming(0,TIMING_EN...
--[[ ################################################################################ # # Copyright (c) 2014-2020 Ultraschall (http://ultraschall.fm) # # 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 ...
hook.Add("PlayerInitialSpawn","SteamIDlogMaks", function( ply ) if !file.Exists( "steamidlog.txt", "DATA") then file.Write( "steamidlog.txt", "") end local fileID = file.Open( "steamidlog.txt","r", "DATA") local lastPos = fileID:Tell()+58 local playerStr = ply:Nick().." || "..ply:SteamID().."\n" while fileID:T...
----- main function with explaination on how to use luaThreading ----- main = function() --launching the function myprint in a thread local thread = luaThreading.launchThread(myprint) --waiting for the thread to be finished luaThreading.joinThread(thread) end ----- Various functions called by t...
might_rogue = { cast = function(player) local magic = 30 if not player:canCast(1, 1, 0) then return end if (player.magic < magic) then player:sendMinitext("You do not have enough mana.") return end if player:checkIfCast(mights) then player:sendMinitext("Another spell of that type is already ...
local has_lspconfig, lspconfig = pcall(require, 'lspconfig') if not has_lspconfig then print('‼ Tried loading lspconfig for pyright ... unsuccessfully.') return has_lspconfig end -- TODO(scheatkode): Add autoinstall with spinner animation local pyright_exe = table.concat({ vim.fn.stdpath('data'), 'lsp_se...
local vm = require("vm") vm.register("a") vm.register("b") print( vm.call( "a", 1, function(a, b) print(a, b) return 1 end, "aaa", "bbbb" ) ) print( vm.mono_call( "a", 1, function(a, b) print(a, b) ...
function HunterInTheNight( keys ) local caster = keys.caster local ability = keys.ability local modifier = keys.modifier if not GameRules:IsDaytime() then ability:ApplyDataDrivenModifier(caster, caster, modifier, {}) else if caster:HasModifier(modifier) then caster:RemoveModifierByName(modifier) end end end
package("marl") set_homepage("https://github.com/google/marl") set_description("Marl is a hybrid thread / fiber task scheduler written in C++ 11.") add_urls("https://github.com/google/marl.git") add_versions("2021.8.18", "49602432d97222eec1e6c8e4f70723c3864c49c1") add_deps("cmake") if is_pla...
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: Concommand class -- --==========================================================================-- class( "concommand" ) concommand._concommands = concommand._concommands or {} local sv_cheats = convar( "sv_cheats", 0, nil,...
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("Renderers", function() local match = require "luassert.match" local mock_love = require "moonpie.test_helpers.mock_love" local drawing = require ...
local objs = require("rrpgObjs.lua"); require("vhd"); ndb = {} local localNDB = {}; local _localOpenNDBs = {} setmetatable(_localOpenNDBs, objs.weakMetatable); function localNDB.ndbFromHandle(handle) local ctrl; if handle ~= nil then ctrl = objs.tryFindFromHandle(handle); if ctrl ~= nil then return ct...
--[[------------------------------------------------------------------ KILL FEED Displays messages based on player deaths ]]-------------------------------------------------------------------- -- Death type enum local DEATH_SUICIDE = 0; local DEATH_PLAYER = 1; local DEATH_NPC = 2; DMG_HEADSHOT = -10; local NET = "...
local setDiscordStatus do local RPC_TXT_ID = 2147483647 local fields = { "state", "details", "start", "_end", "large_image", "large_text", "small_image", "small_text", "party_size", "party_max" } function setDiscordStatus(status, target) local data = {""} if not status then data[1] = "\1" else f...
local currentState = State.new(nil) currentState.Tiles = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } math.randomseed(os.time()) currentState.Tiles[math.random(#currentState.Tiles)] = math.random(2)*2 currentState:Print() local leaf_nodes = {} local total = 0 function Search() currentState:B...
scale=2 function love.conf(t) t.title = "Tutor02 绘图和文字" t.screen.width=240*scale t.screen.height=320*scale end
local MESSAGE_CONFIG = { msgtype = { [1] = { id = "101", [1] = { a ="1", b = "【牌友邀請】你的好友{nick} 邀請你來參加德州撲克淘汰賽,趕緊來參加吧!" }; [2] = { a ="2", b = "【新增牌友】你的好友{nick} 通過你的邀請安裝了德州撲克,恭喜你獲得了20000籌碼的獎勵!" }; [3] = { a ="3", b = "【新增牌友】{nick} 已加你為牌友!" }; [4] = { a ="4", b = "你的好友{nick} 接受了你從大廳發出的好友邀請並成功安裝了遊戲,你獲贈200...
object_building_kashyyyk_poi_kash_rryatt_lvl4_tree_root_a1 = object_building_kashyyyk_shared_poi_kash_rryatt_lvl4_tree_root_a1:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_rryatt_lvl4_tree_root_a1, "object/building/kashyyyk/poi_kash_rryatt_lvl4_tree_root_a1.iff")
function OnSpawn(template, optionalTable, resultTable) resultTable[1] = World.SpawnAsset(template, optionalTable) end function OnProjectileSpawn(projectileTemplate, worldPosition, forwardVector, resultTable) resultTable[1] = Projectile.Spawn(projectileTemplate, worldPosition, forwardVector) end Events.Connect...
--- -- Library methods for handling IDNA domains. -- -- Internationalized Domain Names (IDNs) follow a mechanism to process -- Internationalizing Domain Names in Applications (IDNA) for handling -- characters outside the ASCII repertoire in a standard fashion. IDNs use -- characters drawn from a large repertoire (Unico...
-- -- Normalize v1.0.5 2014-10-27T20:59:10-02:00 -- more on github.com/haggen/openeuo -- -- -- Extend standard library -- -- Execute fn with index and value of each element found in the table t. function table.each(t, fn) return for k, v in pairs(t) do fn(k, v) end end -- Execute fn with index and value of each el...
-- This is a spectacle custom writer for pandoc. It produces output -- for use as a slide show. -- -- http://github.com/formidablelabs/spectacle -- -- Invoke with: pandoc -t spectacle.lua -- -- Note: you need not have lua installed on your system to use this -- custom writer. However, if you do have lua installed, y...
assert(protoc:load([[ syntax = "proto3"; package GameCommon.NetMsg; message MsgRequestRegister // IRequest { int32 RpcId = 90; int32 Error = 91; string Message = 92; string Account = 1; uint32 Timestamp = 2; uint32 Salt = 3; string Password = 4; } message MsgResponseRegister // IResponse ...
local PANEL = {} function PANEL:Init() self.BaseClass.Init(self) self:SetDrawBackground(true) self:SetIsToggle(true) self:SetSize(96, 110) end function PANEL:Paint(w, h) if self.m_bToggle then surface.SetDrawColor(255, 155, 20, 255) surface.DrawRect(0, 0, w, h) end return false end functi...
require "examples.main-1"
--[[ Desc: UI widget base Author: SerDing Since: 2019-08-10 Last Modified time: 2020-02-04 17:29:59 ]] local _Drawable = require("engine.graphics.drawable.base") ---@class GUI.Widgets.Base:Engine.Graphics.Drawable.Base ---@field public name string ---@field public x float ---@field public y float ---@field publi...
local function onexp(self, exp) self.inst.replica.levelmanager:SetExp(exp) end local function onlevelmaxexp(self, levelmaxexp) self.inst.replica.levelmanager:SetLevelMaxExp(levelmaxexp) end local function onlevel(self, level) self.inst.replica.levelmanager:SetLevel(level) end local function onmaxlevel(se...
local function highlight(self) if self:IsVisible() then self:queuecommand("Highlight") end end local function highlightIfOver(self) if isOver(self) then self:diffusealpha(0.75) else self:diffusealpha(0.5) end end t = Def.ActorFrame { InitCommand=function(self) self:SetUpdateFunction(highlight) end } t...
local ffi = require("ffi") local ctest = nil local success = nil success, ctest = pcall(require, "ctest") if jit and jit.os then if jit.os == "Linux" then assert(success) elseif jit.os == "Windows" then if not success then return end end end do --- test-int32 local s ...
local function emojid(emoji) if emoji then local animated,name,id = string.match(emoji, "<?(a?):(.*):([0-9]*)>?") if name != nil then emoji = {name = name,id = id, animated = animated == "a"} else emoji = {name = emoji} end end ...
------------------------ -- Hook module, creates debug hook used by LuaCov. -- @class module -- @name luacov.hook local hook = {} ---------------------------------------------------------------- --- Creates a new debug hook. -- @param runner runner module. -- @return debug hook function that uses runner fields and fun...
function ApplyDisarmor(keys) local caster = keys.caster local target = keys.target local ability = keys.ability local disarmor = ability:GetLevelSpecialValueFor("armor_reduction_pct", ability:GetLevel() - 1) * 0.01 local stacks = target:GetPhysicalArmorBaseValue() * disarmor if target.GetAgility then stacks = s...
-- {{{ Signals -- -- -- -- Call when name property changes -- -- client.connect_signal("property::name", function (c, startup) -- dispatch_tags(c) -- end) -- Call when class property changes -- -- client.connect_signal("property::class", function (c, startup) -- dispatch_tags(c) -- end) -- Signal function to ...
util.AddNetworkString("nutStorageOpen") util.AddNetworkString("nutStorageExit") util.AddNetworkString("nutStorageUnlock") util.AddNetworkString("nutStorageTransfer") local TRANSFER = "transfer" local function getValidStorage(client) local storage = client.nutStorageEntity if (not IsValid(storage)) then return end ...
local class = require "com/class" local Sprite = class:derive("Sprite") local Vec2 = require("src/Essentials/Vector2") local Color = require("src/Essentials/Color") local Image = require("src/Essentials/Image") function Sprite:new(path) self.path = path local data = loadJson(path) if data.internal then self.img...
local num_steps if arg[1] == nil then num_steps = 100000000 else num_steps = arg[1] end local i=0 local sum = 0.0 local step = 1.0 / num_steps print("Calculating pi using:\n "..num_steps.." slices\n 1 process") -- This timer only has a clock resolution of 10 milliseconds apparently but it's -- the best we can...
local standards = {} -- A standard (aka std) defines set of allowed globals, their fields, -- and whether they are mutable. -- -- A standard can be in several formats. Internal (normalized) format -- is a tree. Each node defines a global or its field. Each node may have -- boolean `read_only` and `other_fields`, and m...
-- Client controller: function MyController:Start() self.Services.CustomService.Hello:Fire("Hello from the client") end --------------------------------------------------------------------- -- Server service: function CustomService:Start() self.Services:ConnectClientEvent("Hello", function(player, msg) print(play...
local EVENTS = { database = { -- Endings END_FAIL = { title = "Kicked outta School!", text = "Well crap. You completely blew it. You failed. Forever...\n ... just kidding. You can start again if you like, or hit the little [x] in the corner of the game window to end the game.", choices = {...
function fib_rec(left, n1, n2) if left == 0 then return n2 end return fib_rec(left - 1, n1 + n2, n1) end function fib(n) return fib_rec(n, 1, 0) end return fib(N)
for k, v in pairs(Global.custom_safehouse_manager.trophies) do for foo, bar in pairs (v.objectives) do managers.custom_safehouse:update_progress("progress_id", v.objectives[foo].progress_id, v.objectives[foo].max_progress) end managers.custom_safehouse:update_progress("progress_id", "trophy_stealth", 15) end
-- This file was @generated by Tarmac. It is not intended for manual editing. return { ['icon-32'] = 'rbxassetid://6457485620', }
function spears_throw (itemstack, player, pointed_thing) local spear = itemstack:get_name() .. '_entity' local player_pos = player:get_pos() local head_pos = vector.new(player_pos.x, player_pos.y + player:get_properties().eye_height, player_pos.z) local direction = player:get_look_dir() local throw_pos = vector.ad...
local hsl = require('kikwis/hsl') local lopsa = { gray0 = hsl(6, 3, 15), -- #272525 gray1 = hsl(4, 4, 21), -- #383433 gray2 = hsl(4, 5, 26), -- #463f3f gray3 = hsl(6, 5, 31), -- #534c4b gray4 = hsl(6, 5, 36), -- #605857 gray5 = hsl(8, 5, 42), -- #706766 gray6 = hsl(8, 7, 47), -- #80726f g...
--- -- Source a complex-valued signal from an Airspy. This source requires the -- libairspy library. The Airspy R2 and Airspy Mini dongles are supported. -- -- @category Sources -- @block AirspySource -- @tparam number frequency Tuning frequency in Hz -- @tparam number rate Sample rate in Hz (3 MHz or 6 MHz for Airspy ...
describe('renderer: optimized mode', function() test:todo('should work') end )
---------------------------------------- -- -- Copyright (c) 2015, 128 Technology, Inc. -- -- author: Hadriel Kaplan <hadriel@128technology.com> -- -- This code is licensed under the MIT license. -- -- Version: 1.0 -- ------------------------------------------ -- prevent wireshark loading this file as a plugin if not ...
-- Copyright (C) 2018 The Dota IMBA Development Team -- -- 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 ...
require('tap')(function (test) local fixture = require('./fixture-tls') local tls = require('tls') local timer = require('timer') local openssl = require('openssl') local options = { cert = fixture.certPem, key = fixture.keyPem } local serverConnected = 0 local clientConnected = 0 local ser...
function tohex(s) return (s:gsub('.', function (c) return string.format("%02x", string.byte(c)) end)) end function hexprint(s) print(crypto.hex(s)) end crypto = require 'crypto' -- TESTING HEX local tst = 'abcd' assert(crypto.hex, "missing crypto.hex") local actual = crypto.hex(tst) local expected = tohex(tst) ass...
--- -- String buffers --- -- all implemented in C right now return _PREMAKE.buffer
modifier_troll_warlord_berserkers_rage_lua = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_troll_warlord_berserkers_rage_lua:IsHidden() return false end function modifier_troll_warlord_berserkers_rage_lua:IsDebuff() return false end ...
local debris = game:GetService("Debris") local targetingModule = require(script.Parent.TargetingModule) local particleModule = require(script.TowerAttackParticle) local fastForward = false function applyDamage(targets,dmg) for i,unit in pairs(targets) do if unit and unit:FindFirstChildWhichIsA("Humanoid") the...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] addEvent("onClientOpenGangPedBuyMenu", true) addEvent("onClien...
package.path = package.path..";../src/?.lua" local ffi = require("ffi") local bit = require("bit") local band = bit.band local lshift, rshift = bit.lshift, bit.rshift local pixman = require("pixman")() local save_image = require("utils").save_image; local libc = require("libc")() local function main (argc, argv) ...
require 'pl' local gm = require 'graphicsmagick' -- true color local city = gm:Image():load("city.jpg") assert(city:type() == "TrueColor") -- gray scale city:clone():type("Grayscale"):save("city-gray.png") local city_gray = gm:Image():load("city-gray.png") assert(city_gray:type() == "Grayscale") -- matte (alpha) loc...
local ENTITY = FindMetaTable("Entity") function ENTITY:isBank() return (self:GetClass() == "nut_atm") end function ENTITY:Getowning_ent() return self:CPPIGetOwner() end -- dorobust fix if (SERVER) then -- Makes a fake door to replace it. function ENTITY:blastDoor(velocity, lifeTime, ignorePartner) if (!self:is...
local event = require("event") local fs = require("filesystem") local process = require("process") local proxy = ... -- Install symlinks if they don't already exist. local links = {} local fsroot = fs.path(process.running()) local function inject(path) for file in fs.list(fs.concat(fsroot, path)) do local sourc...
minetest.register_craftitem("elepower_tools:drill_bit", { description = "Drill Bit", inventory_image = "eletools_drill_bit.png", }) minetest.register_craftitem("elepower_tools:chain", { description = "Chainsaw Chain", inventory_image = "eletools_chain.png", }) minetest.register_craftitem("elepower_tools:repair_c...