content
stringlengths
5
1.05M
--[[ chain.lua Copyright 2016,2017 Robert T. Miller Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files 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 applic...
-------------------------------- -- @module SplitCols -- @extend TiledGrid3DAction -------------------------------- -- @function [parent=#SplitCols] create -- @param self -- @param #float float -- @param #unsigned int int -- @return SplitCols#SplitCols ret (return value: cc.SplitCols) ----------------------...
local ffi = require "ffi" local memory = require "memory" local lock = require "lock" local mod = {} ffi.cdef[[ struct counter { uint8_t active; uint32_t count; struct lock* lock; }; ]] local counter = {} counter.__index = counter function mod.new() local cnt = memory.alloc("struct counter*", ffi.size...
--[[ Multi-threaded data loader to make loading of large-size images efficient Kui Jia, Dacheng Tao, Shenghua Gao, and Xiangmin Xu, "Improving training of deep neural networks via Singular Value Bounding", CVPR 2017. http://www.aperture-lab.net/research/svb This code is based on the fb.resnet.torch package (https:/...
-- duplicate the elements of a list -- > dupli{'a', 'b', 'c', 'd', 'c'} -- {'a', 'a', 'b', 'b', 'c', 'c', 'd', 'd', 'c', 'c'} dupli = function (t) local res = {} for i = 1, #t do table.insert(res, t[i]) table.insert(res, t[i]) end return res end dofile 'dumper.lua' print(DataDumper(dup...
--[[ Metatool settings parser unit tests for busted. Execute busted at metatool source directory. TODO: Add more configuration files for different situations: - Only default configuration - Configuration only for single tool - Metatool core/API configuration - No configuration, empty file - No configurati...
--[[ Copyright (c) 2021, TU Delft 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 writing, softwar...
local AddonName, AddonTable = ... AddonTable.cloth = { 111557, -- Sumptuous Fur }
-- @todo -- @module native -- @submodule datafile -- @see DATAFILE_CREATE -- @usage void DATAFILE_CREATE(); -- @return void function DatafileCreate() end -- @todo -- @module native -- @submodule datafile -- @see DATAFILE_DELETE -- @usage void DATAFILE_DELETE(); -- @return void function DatafileDelete() e...
local turtle = require "turtle" local utils = require "utils" local deep = 8 local width = 3 function harvestSugar() if utils.isSugarCane() then turtle.up() if utils.isSugarCane() then -- sugar cane is two high turtle.down() turtle.dig() turtle.suck() turtle.tur...
#!/usr/bin/env luajit dofile'../include.lua' local si = require'simple_ipc' local util = require'util' local munpack = require'msgpack'.unpack local mpack = require'msgpack'.pack local movearm = require'movearm' local T = require'Transform' local vector = require'vector' local counter = 0 local f_adlib local prevPath ...
local new = require "LuaObservable.src.new" local isObservable = require "LuaObservable.src.is" local subscribe = require "LuaObservable.src.subscribe" --[[ ]] local function defaultFlatMapMutator(x) return x end return function (observable, onNext, onError, onComplete) onNext = type(onNext) == "functi...
function OnPlayerChangeTeam(player, team, oldTeam) KAG.SendMessage("(" .. os.time() .. ") " .. player:GetName() .. " switched from team " .. oldTeam .. " to team " .. team) end
--package.path = '/usr/local/openresty/lualib/?.lua;;' .. package.path --[[ redis_factory.lua Redis factory method. You can also find it at https://gist.github.com/karminski/33fa9149d2f95ff5d802 @version 151019:5 @author karminski @license MIT @changelogs 15...
-- -- Created by IntelliJ IDEA. -- User: Sling -- Date: 26-03-2019 -- Time: 20:27 -- Made for CiviliansNetwork -- local Proxy = module("vrp", "lib/Proxy") vRP = Proxy.getInterface("vRP") local isCarsPlaced = false local defaultcars = { } local fotovogne = { } local basiccost = 5000 RegisterServerEvent('cn-fotovog...
-- SPDX-License-Identifier: MIT -- Copyright (c) 2021 oO (https://github.com/oocytanb) ---@type cytanb @See `cytanb_annotations.lua` local cytanb = require('cytanb')(_ENV) local settings = (function () local transform_switch_name = 'atelier_transform_switch' return { atelier_mesh_name = 'atelier_mesh', ...
-- Copyright 2015 Nikolay Konovalow -- Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -- http://www.apache.org/licenses/LICENSE-2.0> --====================| Набор полезных функций |====================-- -- Отображение документа: -- табуляция = 3 пробела, 133 символа в строке -- Соглашение о имен...
---------------------------------------------------------------------- -- Generates unit test data to test Torch to DeepBoof -- -- Peter Abeles ---------------------------------------------------------------------- require 'torch' require 'nn' require 'boof' operation_name = "sequential" local function prune(lin) ...
-- A spritebatchable rectangle drawing implementation -- Stretches a 1x1 white pixel to achieve the same effect local utils = require("utils") local drawing = require("utils.drawing") local drawableSprite = require("structs.drawable_sprite") local spriteLoader = require("sprite_loader") local drawableRectangle = {} ...
return redis.call('flushdb')
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 l...
--[[ A top-down action game made with Bitty Engine Copyright (C) 2021 Tony Wang, all rights reserved Engine page: https://paladin-t.github.io/bitty/ Game page: https://paladin-t.github.io/games/hb/ ]] local function pickWeapons(index) local group1 = { { class = 'Melee', type = 'knife' } } local group2...
-- LosOceanic_PhoneMK.1 = My Attempt at building a phones -- -- -- -- By DK - 2019 ... Dont forget your Bananas! -- ------------------------------------------------------------------------------ --[[ Loading ESX Object Dependancies ]]-- ESX = nil TriggerEvent('Frame:getSha...
local Registry = class("Registry") Registry.classes_ = {} Registry.objects_ = {} function Registry.add(cls, name) assert(type(cls) == "table" and cls.__cname ~= nil, "Registry.add() - invalid class") if not name then name = cls.__cname end assert(Registry.classes_[name] == nil, string.format("Registry.ad...
local S = aurum.get_translator() aurum.mobs.register("aurum_mobs_animals:spider", { description = S"Spider", herd = "aurum:loom", longdesc = S"A warped arthropod emerging from the strange machinations of the loom.", initial_properties = { visual = "sprite", textures = {"aurum_mobs_animals_spider.png"}, visu...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterServerEvent('esx_atm:deposit') AddEventHandler('esx_atm:deposit', function(amount) local _source = source local xPlayer = ESX.GetPlayerFromId(_source) amount = tonumber(amount) if amount == nil or amount <= 0 or amount > xPlayer.get...
AddCSLuaFile() ENT.Base = "arccw_ammo" ENT.PrintName = "Shotgun Ammo" ENT.Category = "ArcCW - Ammo" ENT.Spawnable = true ENT.Model = "models/items/arccw/shotgun_ammo.mdl" ENT.AmmoType = "buckshot" ENT.AmmoCount = 20 if engine....
class("MetaCharacterRepairCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot9 = getProxy(BayProxy).getShipById(slot5, slot3).getMetaCharacter(slot6).getAttrVO(slot7, slot4).getItem(slot8) if getProxy(BagProxy):getItemCountById(slot9:getItemId()) < slot9:getTotalCnt() then return end if slot8:isM...
--[[ LibDualSpec-1.0 - Adds dual spec support to individual AceDB-3.0 databases Copyright (C) 2009-2012 Adirelle All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code mus...
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Fayeewah -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs") require("scripts/globals/shop") function onTrade(player,npc,trade) end function onTrigger(player,npc) local ...
--[[ screenshake module ]] local screenshake = class({ name = "screenshake", }) function screenshake:new() self.amplitude = 0 self.time = 1 self.timer = 0 end function screenshake:update(dt) self.timer = self.timer + dt end function screenshake:amount() if self.time == 0 or self.timer > self.time then retu...
function hello(wsapi_env) local headers = { ["Content-type"] = "text/html" } local function hello_text() coroutine.yield("<html><body>") coroutine.yield("<p>Hello Wsapi!</p>") coroutine.yield("<p>PATH_INFO: " .. wsapi_env.PATH_INFO .. "</p>") coroutine.yield("<p>SCRIPT_NAME: " .. wsapi_env.SCRIPT_NA...
return { id = "nicergift", name = "Nicer Gift", description = "Very Very Nice!", type = "hat", rarity = 3, hidden = false, }
--[[ Author: Bude Date: 30.09.2015. Sets some initial values and prepares the caster for motion controllers NOTE: Modifier that keeps huskar from attacking (etc.) does not get removed properly if Life Break is cancelled ]] function LifeBreak( keys ) -- Variables local caster = keys.caster lo...
--- 900UV return { { name = "RS", desc = "设备工作状态", vt = "int", }, { name = "i12101", desc = "工作状态", vt = "int", }, { name = "i12103", desc = "报警详情", vt = "int", }, { name = "alarm", desc = "分析仪故障(原始值)", -- 30011 HIGH vt = "int", }, { name = "adjust", desc = "系统校正(原始值)", -- 30011 LOW...
local upvalue1 = {} local upvalue2 = {} function f() local a = upvalue1.print local b = upvalue2.print local c = _ENV.print return print end function g() return _ENV.print end function f2(a) upvalue1.print = a upvalue2.print = a _ENV.print = a print = a end
-- luarabbit simple tests local lr = require "luarabbit" local function stohex(s) -- return the hex representation of a string return s:gsub(".", function(c) return string.format("%02x", string.byte(c)) end) end local function hextos(h) -- parse a hex string return h:gsub("%s", ""):gsub("..", function(cc) ...
object_tangible_collection_hanging_light_04 = object_tangible_collection_shared_hanging_light_04:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_hanging_light_04, "object/tangible/collection/hanging_light_04.iff")
local wibox = require("wibox") local beautiful = require('beautiful') local widget = {} function widget.get_widget() return wibox.widget { { id = "icon", image = '/usr/share/icons/Arc/status/symbolic/audio-volume-muted-symbolic.svg', resize = true, widget =...
require("rrpg.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); function newfrmBase() __o_rrpgObjs.beginObjectsLoading(); local obj = gui.fromHandle(_obj_newObject("form")); local self = obj; local sheet...
local Init = {} local event = require("event") local thread = require("thread") local computer = require("computer") local file = io.open("./conf/config.lua", "r") local config = file:read("*a") io.close(file) local ci_flag = false local co_count = 1 local fi_count = 1 local fif_count = 1 local input_number = 14 thr...
local insert, unpack = table.insert, table.unpack local char = string.char -- varint(value, index) -> number, number | string -- Function -- Converts a byte `string` in the `NIBArchive` `varint` format into an unsigned `number` value, or a `number` value into a byte `string`. -- It codes intege...
local uv = require('luv') local StdioStream = {} StdioStream.__index = StdioStream function StdioStream.open() local self = setmetatable({ _in = uv.new_pipe(false), _out = uv.new_pipe(false) }, StdioStream) self._in:open(0) self._out:open(1) return self end function StdioStream:write(data) self....
modifier_arena_event_proxy = modifier_arena_event_proxy or {} if IsClient() then return end function modifier_arena_event_proxy:DeclareFunctions() return { MODIFIER_EVENT_ON_DEATH } end function modifier_arena_event_proxy:OnDeath(event) Events:Emit("OnDeath", event) end
local type = type local pairs = pairs local common = require "gateway.module.common" local uri_lrucache = require "gateway.module.summary_lru" -- 用作持久的统计使用 local function table_is_array(t) if type(t) ~= "table" then return false end local i = 0 for _ in pairs(t) do i = i + 1 if t[i] == nil ...
local behaviour = {} -- 默认行为 function behaviour:init(world, block) self.world = world self.__block = block print("init block behaviour: " .. block.InternalName) end function behaviour:tick(x, y, z) -- default implement end function behaviour:place(x, y, z) -- default implement end function behav...
--- tweets engine.name = 'RedFrikTweets' function init() end local t1 = 1 local t2 = 2 key = function(n,z) if z > 0 then if n == 2 then t1 = t1 - 1 if t1 < 0 then t1 = 70 end engine.tweet(1, t1) redraw() end if n == 3 then t1 = t1 + 1 if t1 > 70 then t1 = 1 end ...
function createSet(list) local set = {} for _,l in ipairs(list) do set[l] = true end return set end vowels = createSet{"A","a","E","e","I","i","O","o","U","u","Y","y","Æ","æ","Œ", "œ"} -- q is intentionally left out here consonants = createSet{"B","b","C","c","D","d","F","f","G","g","H","h","J","...
return { name = "Disk Manager", run = "any" }
-- ---Lua BitOp is a C extension module for Lua 5.1/5.2 which adds bitwise operations on numbers. ---@class bit bit = bit or {} ---Normalizes a number to the numeric range for bit operations and returns it. This function is usually not needed since all bit operations already normalize all of their input arguments. fu...
LJT 7%$>7'2>GsetTextSizeset by Lua: setText15G setText
ActiveRecord.define_model('attributes', function(t) t:string 'attribute_id' t:integer 'character_id' t:integer 'level' t:integer 'progress' end) ActiveRecord.define_model('attribute_multipliers', function(t) t:integer 'attribute_id' t:integer 'value' t:datetime 'expires_at' end) ActiveRecord.defin...
require "mod-gui" require "stopit/stopit" -- when creating a new game, initialize data structure --script.on_init(todo.mod_init) -- When a player is joining, create the UI for them --[[script.on_event(defines.events.on_player_created, function(event) local player = game.players[event.player_index] todo.creat...
TextRenderVerticalAlignment = {} ---@type number TextRenderVerticalAlignment.Bottom = 3 ---@type number TextRenderVerticalAlignment.Top = 1 ---@type number TextRenderVerticalAlignment.Center = 2 ---@type number TextRenderVerticalAlignment.FirstLine = 0
local args = ... local g = args[1] local map_data = args[2] local layer_data = args[3] local layer_index = args[4] local map_index = args[5] local SleepDuration = g.SleepDuration local pos = { x=nil, y=nil } local player = { file = "Elli 4x4 (doubleres).png", dir = "Down", tweening = false, input = { Active ...
wlScans = { ["heirlooms"] = "122349:1,122352:1,122366:0,122354:0,122367:0,122385:0,122386:0,122389:0,122351:0,122369:0,122365:0,122363:0,122353:1,122368:0,105690:0,122350:0,122364:0,122391:0,105680:0,122392:0,122387:0,122263:0,122264:0,122388:0,122381:1,122245:1,122251:1,122355:1,127010:0,127012:0,127011:0,122373:0...
return {'ardeens','ardennen','ardennenoffensief','arduin','arduinen','arduinsteen','ards','ard','arda','ardenner','ardens','ardooie','ardenne','arden','ardon','ardesch','arde','arden','arduinstenen','ardeense','ards','ardas'}
local sx, sy = guiGetScreenSize() local text; local tick = 0; local alpha = 255; local x = (sx - 899) / 2; local y = (sy - 315) / 2; local w = ((sx - 899) / 2) + 899; local h = ( (sy - 315) / 2) + 315; local function drawNotification() if text then dxDrawText("Görev Tamamlandı\n"..text, x + 1, y + 1, w...
-- Global options must be set before calling `require'nvim-tree'` or calling setup vim.cmd[[let g:nvim_tree_quit_on_open = 1]] vim.cmd[[let g:nvim_tree_indent_markers = 1]] vim.cmd[[let g:nvim_tree_git_hl = 1]] vim.cmd[[let g:nvim_tree_highlight_opened_files = 1]] vim.cmd[[let g:nvim_tree_root_folder_modifier = ':~']] ...
local testRareAlive = { ID = 1, Name = "Danny Mob", EventType = "Alive", Health = 90, X = 12, Y = 19, MajorEvent = true, SourceCharacter = GetUnitName("player"), SourcePublisher = "SlashCommand" } local testRareAliveOtherZone = { ID = 1, Name = "Danny Mob", EventType = "Alive", Health = 90, X = 12, Y =...
--target local _, cfg = ... --export config local addon, ns = ... --get addon namespace local f = CreateFrame("Button","BobTargetHUD",UIParent,"SecureUnitButtonTemplate") local UnitPowerType = UnitPowerType f.unit = "target" --change to unit you want to track --Make the Health Bar --background texture f.back = f:Creat...
slot2 = "ParticleTintCdCcsPane" ParticleTintCdCcsPane = class(slot1) ParticleTintCdCcsPane.onCreationComplete = function (slot0) slot0._w = nil slot0._h = nil slot0._r = nil slot0._offsetX = nil slot0._offsetY = nil slot3 = slot0 slot0._parent = slot0.getParent(slot2) slot0._isCdReverse = false if slot0.shad...
object_ship_nova_orion_patrol_med_tier10 = object_ship_shared_nova_orion_patrol_med_tier10:new { } ObjectTemplates:addTemplate(object_ship_nova_orion_patrol_med_tier10, "object/ship/nova_orion_patrol_med_tier10.iff")
--[[ Name: tp-01_thermocouple_(ain_ef).lua Desc: This example shows how to get temp readings from a TP-01 thermocouple Note: Connect the thermocouple leads between AIN1 and GND The voltage output from the thermocouple is automatically converted into degK by the T7s AIN Extended Feature ...
--[[ An OAuth library for use with mattata, the feature-packed, multi-purpose Telegram bot. Based on LuaOAuth, by Ignacio Burgueño. Copyright 2017 Matthew Hesketh <wrxck0@gmail.com> See LICENSE for details ]] local ltn12 = require('ltn12') local http = require('socket.http') local https = requ...
local wibox = require("wibox") -- Create a textclock widget mytextclock = wibox.widget.textclock()
return {'rewinkel','rewijk'}
local g_Me = getLocalPlayer() local g_NewHudEnabled = false local g_MapRunning = true local g_Spectating = false local g_hud = false local g_radar = false local g_StartTick = nil local g_Duration = nil g_FadedIn = true local sx,sy = guiGetScreenSize() -- toggling the hud -- function showHud (hud) hud = tonumber(hud)...
package.path = package.path .. ";/usr/local/openresty/nginx/lualib/?.lua" local split = (require "stringutils").split local path = ngx.var.host path = split(path, ".endpoints.")[1] --ngx.log(ngx.ERR, "PATH: " .. path) local vars = split(path, "-") --tcp-172_19_0_4-8000 local protocol = vars[1] local ip = vars[2]:...
--------------------------------------------- -- Hydroball -- Deals Water damage to targets in a fan-shaped area of effect. Additional effect: STR Down -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Notes: STR reduced by 15%. --------------------------------------------- require("scripts/globals/set...
dofile("common.inc"); dofile("settings.inc"); ---------------------------------------- -- Global Variables -- ---------------------------------------- hotkeyTaskNames = {"Jug", "Clay Motar", "Cookpot"}; dropdown_values = {"Shift Key", "Ctrl Key", "Alt Key", "Mouse Wheel Click"}; total_delay_t...
--[[ GD50 Super Mario Bros. Remake Author: Colton Ogden cogden@cs50.harvard.edu ]] PlayerIdleState = Class{__includes = BaseState} function PlayerIdleState:init(player) self.player = player self.animation = Animation { frames = {1}, interval = 1 } self.player.currentAnimation = self.animation end func...
local Plugin = script.Parent.Parent.Parent.Parent local Libs = Plugin.Libs local Roact = require(Libs.Roact) local Constants = require(Plugin.Core.Util.Constants) local ContextHelper = require(Plugin.Core.Util.ContextHelper) local withTheme = ContextHelper.withTheme local Components = Plugin.Core.Components local F...
local path = "qnSwfRes/sfw/red_envelope_num_turn_swf_pin.png" local red_envelope_num_turn_swf_pin_map = { ["red_envelope_num_turn_4.png"] = { file=path, x=2,y=2, width=190,height=81, offsetX=2,offsetY=0, utWidth=199, utHeight=86, rotated=false }, ["red_envelope_num_turn_1.png"] = { file=path, x=...
local Secretary = require "me.strangepan.libs.secretary.v1.Secretary" local class = require "me.strangepan.libs.util.v1.class" local assert_that = require "me.strangepan.libs.truth.v1.assert_that" local Game = class.build() function Game:_init(secretary) self.secretary = assert_that(secretary):is_instance_of(Secret...
kaadu_male = Creature:new { objectName = "@mob/creature_names:kaadu_male", socialGroup = "kaadu", faction = "", level = 14, chanceHit = 0.3, damageMin = 150, damageMax = 160, baseXp = 714, baseHAM = 2000, baseHAMmax = 2400, armor = 0, resists = {0,0,0,0,0,0,0,-1,-1}, meatType = "meat_avian", meatAmount = ...
-- server util.AddNetworkString("xyz_msg") function XYZShit.Msg(tag, clr, msg, ply) net.Start("xyz_msg") net.WriteString(tag) net.WriteColor(clr) net.WriteString(msg) if not ply then net.Broadcast() else net.Send(ply) end end
local array2d = require("pl.array2d") describe("pl.array2d", function() describe("new()", function() it("creates an empty 2d array", function() assert.same({{},{},{}}, array2d.new(3,3,nil)) end) it("creates a value-filled 2d array", function() assert.same({{99,99,99}, {99...
local PANEL = {} function PANEL:Init() self:PerformLayout() self.Wait = CurTime() + 5 self.Pos = 1 self.YPos = 220 self.ListMode = true self.DrawTbl = {} self.Awards = {} self.Lists = {} self.Lists[1] = { 5, ScrW() * 0.30, "Survivors", function() return self:GetSurvivors() end, "bot/whoo2.wav" } self....
local lwtk = require"lwtk" local call = lwtk.call local getFocusHandler = lwtk.get.focusHandler local Focusable = lwtk.newMixin("lwtk.Focusable") Focusable.extra = {} local handlePostponedStates function Focusable.initClass(Focusable, Super) -- luacheck: ignore 431/Focusable function Focusable:_ha...
--================================================================================================================================= -- -- Author: Jeremy Shopf -- 3D Application Research Group -- AMD, Inc. -- -- Script for calculating SSAO --========================================================...
local m, s, o local openclash = "openclash" local uci = luci.model.uci.cursor() local fs = require "luci.openclash" local sys = require "luci.sys" local sid = arg[1] font_red = [[<font color="red">]] font_off = [[</font>]] bold_on = [[<strong>]] bold_off = [[</strong>]] function IsYamlFile(e) e=e or"" local e...
-- Prevent accidental quitting. -- This alias requires the 'no_quit/confirm_quit' alias. -- Pattern: ^quit$ -- Command: EMPTY cecho('<red>Quitting will drop all your inventory.\nIf you realy want to quit type \'quitforreal\'\n')
LinkLuaModifier("modifier_soul_burn", "<unknown>.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_soul_buff", "<unknown>.lua", LUA_MODIFIER_MOTION_NONE) --Spell Function firelord_soul_burn = class({}) function firelord_soul_burn:OnSpellStart() self:GetCursorTarget():EmitSound(hero_bloodseeker.bloodRage) ...
assert(assets.structures.cannon) assert(anim8) return { id = "CANNON", image = assets.structures.cannon, grid = anim8.newGrid(32, 32, assets.structures.cannon:getWidth(), assets.structures.cannon:getHeight()), animation_names = { "DEFAULT" }, layers = { { DEFAULT = {...
local kbdcode = {} kbdcode.event = { KEYRELEASE = 0, KEYPRESS = 1, } kbdcode.code = { ESC = 1, RETURN = 28, BKSP = 14, UP = 200, DOWN = 208, LEFT = 203, RIGHT = 205, HOME = 199, END = 207, PGUP = 201, PGDOWN = 209, LSHIFT = 42, RSHIFT = 54, CAPSLOCK = 58, LCTRL = 29, ...
local class = require '30log' return class('Player', { name = 'Soreto', age = 10 })
local pdu = require 'modbus.pdu' local code = require "modbus.code" local class = {} local function packet_check(apdu, req) local req = req return function(msg) return apdu.check(msg, req) end end -- Request { --ecm, error checking methods --unit, unit address --func, modbus function code --addr, start address ...
local fs = require('fs') local json = require('json') local constants = require('constants') local enums = require('enums') local package = require('../../package.lua') local API = require('client/API') local Shard = require('client/Shard') local Resolver = require('client/Resolver') local GroupChannel = require('co...
return { no_consumer = true, fields = { test = {type = "boolean", default = true, required = "true"}, } }
---@type Ellyb local Ellyb = Ellyb(...); if Ellyb.Enum then return end local Enum = {}; Ellyb.Enum = Enum; Enum.CHARS = { NON_BREAKING_SPACE = " " } Enum.UI_ESCAPE_SEQUENCES = { CLOSE = "|r", COLOR = "|c%.2x%.2x%.2x%.2x", } Enum.CLASSES = { HUNTER = "HUNTER", WARLOCK = "WARLOCK", PRIEST = "PRIEST", PALADIN...
if not modules then modules = { } end modules ['layo-ini'] = { version = 1.001, comment = "companion to layo-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- We need to share inf...
-- Copyright 2014-2021 Sandor Balazsi <sandor.balazsi@gmail.com> -- Licensed to the public under the GNU General Public License. local socket = require "socket" local url = require "socket.url" local http = require "socket.http" local https = require "ssl.https" local ltn12 = require "ltn12" local nixio = require "nix...
dathomir_rancor_enraged_bull_lair_neutral_large_boss_01 = Lair:new { mobiles = {{"enraged_bull_rancor",1}}, bossMobiles = {{"monstrous_brute",1}}, spawnLimit = 15, buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_bones_large_fog_red.iff"}, buildingsEasy = {"object/tangible/lair/base/poi_all_lair_bones_...
local API = {} function API:CheckExploit() if syn then return print("Synapse X") end if is_sirhurt_closure and rightpress and is_sirhurt_closure(rightpress) then return print("Sirhurt") end if is_protosmasher_closure and get_nil_instances and is_protosmasher_closure(get_nil_instanc...
--[[ TheNexusAvenger Tests the NexusScrollBar class. --]] local NexusUnitTesting = require("NexusUnitTesting") local NexusPluginFramework = require(game:GetService("ReplicatedStorage"):WaitForChild("NexusPluginFramework")) local NexusScrollBar = NexusPluginFramework:GetResource("UI.Scroll.NexusScrollBar") --[[ Te...
---@class CS.UnityEngine.Cubemap : CS.UnityEngine.Texture ---@field public mipmapCount number ---@field public format number ---@field public isReadable boolean ---@type CS.UnityEngine.Cubemap CS.UnityEngine.Cubemap = { } ---@overload fun(width:number, format:number, flags:number): CS.UnityEngine.Cubemap ---@return CS...
return function() local ReplicatedStorage = game:GetService("ReplicatedStorage") local lib = ReplicatedStorage.lib local Llama = require(lib.Llama) local Dictionary = Llama.Dictionary local filter = Dictionary.filter it("should not mutate the given table", function() local a = { foo = "FooValue", bar =...
-- module local UtilsModule = {} local generateGUID = MOAIEnvironment.generateGUID -------------------------------------------------------------------- local function affirmGUID ( entity ) if not entity.__guid then entity.__guid = generateGUID () end for com in pairs ( entity.components ) do if not com.__guid ...
Hooks:PreHook(CrimeSpreeContractMenuComponent, "_setup_new_crime_spree", "SetDesiredCSL", function(self, ...) local levels = { 1000, --Change Me 10000, --Change Me 100000 --Change Me } tweak_data.crime_spree.starting_levels = levels end )