content
stringlengths
5
1.05M
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Category = "FounderRocketLanded", CompletionEffects = {}, Disables = { "TheStowaway_2_NonGenius", }, Effects = {}, EnableChance = 10, Enabled = true, Image = "UI/Messages/Events/27_rocket_launch....
local compassLikeGPI_dirs -- client local compassLikeGPI_updateTooltip -- extended client function local compassLikeGPI_update -- extended server function if onClient() then compassLikeGPI_dirs = { {name = "E", angle = math.pi * 2 * 0 / 16}, {name = "ENE", angle = math.pi * 2 * 1 / 16}, {name = "NE", angle...
local Aye = Aye; if not Aye.addModule("Aye.AutoOK") then return end; -- LFGListInviteDialog -- -- PopUp OnShow -- LFG rules showing after joining some LFG groups LFGListInviteDialog.AcknowledgeButton:HookScript("OnShow", function(self) if Aye.db.global.AutoOK.enable and Aye.db.global.AutoOK.LFGListInviteDialog ...
df_trees.sounds = {} df_trees.sounds.wood = default.node_sound_wood_defaults() df_trees.sounds.leaves = default.node_sound_leaves_defaults() df_trees.sounds.nethercap_wood = default.node_sound_wood_defaults({ footstep = {name = "default_snow_footstep", gain = 0.2}, }) df_trees.sounds.glass = default.node_sound_glass_...
--[[ All functions in here expect either a 2D Nx2 Complex tensor ]]-- local complex = {} function complex.angle(h) return torch.atan2(h[{{},2}],h[{{},1}]) end function complex.exp(h) local out = h:clone() local real = h[{{},1}] local imag = h[{{},2}] out[{{},1}] = torch.exp(real):cmul(torch.cos(ima...
module('content.recipes.creator',package.seeall) require 'lux.object' require 'base.element' require 'base.property' function make(name, data) local creator = base.element(name) local makerecipe = require('content.recipes.' .. data.recipe).make if data.number then data.makerecipe = function ( name, args ) ...
slot0 = class("MiniGameRequestCommand", pm.SimpleCommand) slot0.REQUEST_HUB_DATA = 1 slot0.execute = function (slot0, slot1) slot4 = slot1:getBody().callback pg.ConnectionMgr.GetInstance():Send(26101, { type = slot1.getBody().type }, 26102, function (slot0) slot1 = getProxy(MiniGameProxy) for slot5, slot6 i...
--[[ LuiExtended License: The MIT License (MIT) --]] LUIE.CombatTextResourcesPotionEventListener = LUIE.CombatTextEventListener:Subclass() local CombatTextResourcesPotionEventListener = LUIE.CombatTextResourcesPotionEventListener local eventType = LUIE.Data.CombatTextConstants.eventType local resourc...
-- Set the headers content("application/javascript") setheader("Cache-Control", "no-cache") -- Handle requests if method() == "POST" then -- Add the form data as JSON to the "comments" list in the database (NOTE: unsanitized) List("comments"):add(json(formdata())) else -- Retrieve the "comments" list from the da...
epic_score = { hud = { posx = tonumber(minetest.settings:get("epic_score.hud.offsetx") or 0.5), posy = tonumber(minetest.settings:get("epic_score.hud.offsety") or 0.7) }, http = minetest.request_http_api() } local MP = minetest.get_modpath("epic_score") -- utils dofile(MP.."/persistence.lua") dofile(MP...
local Draw = require("api.Draw") local IDrawLayer = require("api.gui.IDrawLayer") local Gui = require("api.Gui") local global = require("mod.chat_bubbles.internal.global") local Map = require("api.Map") local Chara = require("api.Chara") local ChatBubbleLayer = class.class("ChatBubbleLayer", IDrawLayer) function Chat...
LED_BOARD = 0 LED_CHIP = 4 s = gpio.LOW function blink () s = bit.bxor(s, 1) gpio.write(LED_BOARD, s) end gpio.mode(LED_BOARD, gpio.OUTPUT) tm = tmr.create() tm:register(1000, tmr.ALARM_AUTO, blink) tm:start()
-- base64 images local chair_albedo_png = [[ iVBORw0KGgoAAAANSUhEUgAAACAAAAAyCAYAAAA9ZNlkAAACTElEQVRYhcVYO7LCMAzcMNR0dK9M BQ2tD5JT5iBqaaDyDdJxgbwGBdmRbSVxYKvgyUiLPis5zR9aLIWDH7VzQtsstXVc4/R6PuPShsSf 3gPD5x0rmSIBdtw593GUQECMaLQQaXIpcPCjNPr0fvHzYxiyJJIEHPwY/2s17IbznihJ4lByXgOd c8nCnRHgsDM4pJe2DfK/9Px6PqskghTIgtsadu28Jw...
local core = require('vfiler/libs/core') local a = require('vfiler/actions/open') local u = require('tests/utility') local configs = { options = u.vfiler.generate_options(), } describe('open actions', function() local vfiler = u.vfiler.start(configs) it(u.vfiler.desc('open by vsplit', vfiler), function() lo...
require 'nn' --pcall(require, './ConstrainedDiv') --pcall(require, './ConstrainedMul') local function PELU() local pelu = nn.Sequential() pelu:add(nn.ConstrainedMul(false)) pelu:add(nn.ELU(1, true)) pelu:add(nn.ConstrainedDiv(false)) return pelu end return PELU
local needsreloading = true local schedules = {} --Todo: Receive schedules local function ReceiveSchedules() schedules = {} for i=1,5 do table.insert(schedules, { from = StationNameFromID(math.random(1,100)), to = StationNameFromID(math.random(1,100)), line = math.random(1,3) }) end needsreloading...
local API, Titles, _, L = ImmersionAPI, {}, ... L.TitlesMixin = Titles -- Upvalue for update scripts local GetScaledCursorPosition, UIParent = GetScaledCursorPosition, UIParent local NORMAL_QUEST_DISPLAY = NORMAL_QUEST_DISPLAY:gsub(0, 'f') local TRIVIAL_QUEST_DISPLAY = TRIVIAL_QUEST_DISPLAY:gsub(0, 'f') -- Priority ...
-- -*- coding: utf-8 -*- -- -- @Date : 2015-12-26 23:58 -- -- @Author : Alexa (AlexaZhou@163.com) -- -- @Link : -- -- @Disc : summary all the request local json = require "json" local VeryNginxConfig = require "VeryNginxConfig" local util = require "util" local request_tester = require "request_tester" loc...
return { _name = 'DesignDrawing', id = 1110020080, learn_component_id = { 1021009132, }, }
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
-- Dragonsand local TileSounds = {[6] = {[0] = 91, [1] = 52}} function events.TileSound(t) local Grp = TileSounds[Game.CurrentTileBin[Map.TileMap[t.X][t.Y]].TileSet] if Grp then t.Sound = Grp[t.Run] end -- Dimension door if t.X == 89 and t.Y == 47 then TownPortalControls.DimDoorEvent() end end function ...
competent_panshee_ritualist = Creature:new { objectName = "@mob/creature_names:competent_panshee_ritualist", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "panshee_tribe", faction = "panshee_tribe", level = 22, chanceHit = 0.33, damageMin = 190, damageMax = 200, baseXp = 2006, baseHAM = ...
local util = require 'util' local tnorm, snorm, complement, defuzzification = {}, {}, {}, {} function tnorm.Min(a, b) return util.minimum(a, b) end function snorm.Max(a, b) return util.maximum(a, b) end function complement.Not(a) return 1.0 - a end function defuzzification.centroid(set) local n, d = 0., 0....
local DungeonIIIETCVendorID = 43477 local DungeonIIIETCLoop = { ["Stoff"] = {27902,27795,27517,27525,29255,28406,29241,27919,29249,29258,}, ["Leder"] = {27783,29263,28398,29248,27914,32769,28339,}, ["Schwere"] = {29261,29243,27521,27915,29259,29262,}, ["Platte"] = {27884,29463,29254,28375,29252,27918,27985,327...
local VoiceSocket = require('./VoiceSocket') local VoiceConnection = require('./VoiceConnection') local constants = require('./constants') local CHANNELS = constants.CHANNELS local SAMPLE_RATE = constants.SAMPLE_RATE local wrap, resume = coroutine.wrap, coroutine.resume local VoiceManager, property, method ...
shell = require("shell") shell.execute("move -f /home/.shrc /home/.shrc.old") shell.execute("move -f /argon/.autorun /home/.shrc") shell.execute("rm -rf /argon")
local GameScreen = require("game.GameScreen") function love.load() love.physics.setMeter(1) screen = GameScreen.new() end function love.draw() screen:draw() end function love.resize(w, h) screen:resize(w, h) end function love.update(dt) screen:update(dt) end
object_tangible_furniture_decorative_professor_desk = object_tangible_furniture_decorative_shared_professor_desk:new { } ObjectTemplates:addTemplate(object_tangible_furniture_decorative_professor_desk, "object/tangible/furniture/decorative/professor_desk.iff")
function mod_hit(id, source, weapon, hpdmg, apdmg, rawdmg, object) if Player[id].var_god_toggle then return 1 end if cloud.settings.modules.freeroam == true then if source ~= 0 then if freeroam[id].insafezone or freeroam[source].insafezone then return 1 ...
local wantedPoints = {} addEventHandler("onResourceStart", resourceRoot, function () for _, plr in ipairs(Element.getAllByType("player")) do if (not plr.account.guest) then setWantedPoints(plr, exports.UCDaccounts:GAD(plr, "wp")) end end end ) addEventHandler("onResourceStop", resourceRoot, function ...
-------------------------------------- -- CharacterData -------------------------------------- -- Data about an individual character in the guild -------------------------------------- -- DEFINITION + CONSTRUCTOR -------------------------------------- CharacterData = { Name = nil, -- character name Class = nil, -- ch...
--[[ XML lib by Dante van Gemert Converts: - lua tables to XML - XML output from xmlread to lua tables ]]-- local xml = {} -- XML TO LUA xml.input = {} function xml.input.string(input) return input[1] end function xml.input.integer(input) return tonumber(input[1]) end function xml.input.array(inp...
includes(path.join(os.scriptdir(), "../clang/xmake.lua")) toolchain_clang("12")
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("Component", function() local Component = require "moonpie.ui.components.component" Component("test", function() return { } end) describe("Func...
return {'dabben','dab','dabde','dabt'}
big_game_hunter = Creature:new { objectName = "", customName = "a Big Game Hunter", socialGroup = "", pvpFaction = "", faction = "", level = 300, chanceHit = 100, damageMin = 95, damageMax = 95, baseXp = 100, baseHAM = 3900000, baseHAMmax = 4300000, armor = 1, res...
/silent-command if game.forces['player'].technologies['{tech_name}'] then if game.forces['player'].technologies['{tech_name}'].researched ~= {tech_researched} then game.forces['player'].technologies['{tech_name}'].researched = {tech_researched} end if game.forces['player'].technologies['{tech_name}'].level ~= {tec...
local drawing = require("drawing") local utils = require("utils") local dreamBlock = {} dreamBlock.depth = -2000000 function dreamBlock.draw(room, entity) local pr, pg, pb, pa = love.graphics.getColor() love.graphics.setColor(1, 1, 1) love.graphics.rectangle("fill", entity.x, entity.y, entity.width, ...
assets = {} assets.color_bg = Color("#070203") assets.color_jumperscore = Color("#ecb72f") assets.color_jumperlose = Color("#d60042") assets.color_jumperbonus = Color("#00b9f7") assets.color_walls = Color("#bcb3aa") assets.color_disker = Color("#d60000") assets.color_effects = Color("#bcb3aa") assets.main_font = lo...
mapFields = require "lib/mapFields" if target.field == mapFields.getID("OrbisStationEntrance") then selection = self.ask_menu("Hello, I'm the information guide for Orbis Station. Which of our destinations would you like to know more about?", { [0] = "Victoria Island", [1] = "Ludibrium", [2]...
-- Modified version of wallpaper.lua that allows filters to be applied require("imlib2") local filter_name, inpath, outpath = ... assert(filter_name and inpath and outpath, "Usage: filter.lua [blur|sharpen|color-blur|emboss|grayscale|saturation|edge-detection] input_image output_image") local photo = imlib2.image.loa...
--[[ Created by Zyrex#3641 Modified by Pikalyzix MASSIVE THANK YOU to zyrex Documentation: library:CreateWindow(Name <string>) Window:Toggle(Name <string>, Callback <function>) Window:Button(Name <string>, Callback <function>) Window:Slider(Name <string>, Min <number>, Max <number>, Callback <function>) Window:Dropdown...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0160-rc-radio-parameter-update.md -- User story: TBD -- -- Requirement summary: -- TBD -- -- Description: -- In case: -- 1) RC.GetCapabi...
local NeP, g = NeP, NeP._G local heroismBuffs = { 32182, 90355, 80353, 2825, 146555 } NeP.DSL:Register("hashero", function() for i = 1, #heroismBuffs do local SpellName = NeP.Core:GetSpellName(heroismBuffs[i]) if NeP.Core.UnitBuffL('player', SpellName) then return true end end end) NeP.DSL:Register("buff"...
messages = { -- These dialogue IDs match "You were unable to enter a combination" for the associated zone IDs [100] = 8056, [101] = 7505, [102] = 7907, [103] = 8082, [104] = 8647, [105] = 7698, [106] = 8072, [107] = 7533, [108] = 7602, [109] = 8465, [110] = 7589, [111] = ...
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local terrain = require "terrain" local MapSquare = {} function MapSquare:new(x, y) local ms = { x = x, y = y, terrain = terrain:none() } retu...
-- Manifest local GARRYSMOD = true --[[ Options describe select = <number> Select one of the returned values keys = <flag> Only print keys of returned value limit = <number> Limit the amount of entries printed in each table escape_newline = <flag> Es...
local launch_json_content = [[ { "version": "0.2.0", "configurations": [ { "name": "Launch main", "type": "go", "request": "launch", "mode": "exec", "remotePath": "", "port": 38697, "host": "127.0.0.1", "prog...
------------------------------------------------------------------------------------------------------------------------ -- Proposal: -- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0192-button_subscription_response_from_hmi.md ------------------------------------------------------------------...
local table_mgr = require "myfunlib.gui_table.table_mgr" local hutype = require "myfunlib.gui_table.hutype" local datacenter = require "skynet.datacenter" local M = {} function M.get_hu_info(cards, gui_index) local hand_cards = {} for i,v in ipairs(cards) do hand_cards[i] = v end local gui_num...
--[[ Author: benmooo Date: 2018/07/18 Structed data keeper ]] local CRUD = require('crud') local json = require('json') local util = require('util') local readfile, writefile = util.readfile, util.writefile local _M = CRUD:extend() -- dump collection table to json string function _M:jsonDump() return json....
local pretty = require('pretty-print') local function searchMember(guild, arg, msg) --local guild = msg.guild local members = guild.members local user = msg.mentionedUsers.first if not arg then return nil end local member = user and guild:getMember(user) or members:get(arg) if member then return member...
function onEvent(name, value1, value2) if name == "ArrowFlicker" then duration = tonumber(value2); runTimer('tweenduration',duration); character = tonumber(value1); if character == 1 then noteTweenAlpha('A', 4, -1, 0.5, linear); noteTweenAlpha(...
--- Highlights terminal CSI ANSI color codes. -- @module terminal local nvim = require 'nvim' local function rgb_to_hex(r,g,b) return ("#%02X%02X%02X"):format(r,g,b) end local cterm_colors = { [0] = "#000000", "#AA0000", "#00AA00", "#AA5500", "#0000AA", "#AA00AA", "#00AAAA", "#AAAAAA", "#555555", "#FF5555", "#55F...
object_intangible_pet_beast_master_bm_monkey_lizard = object_intangible_pet_beast_master_shared_bm_monkey_lizard:new { } ObjectTemplates:addTemplate(object_intangible_pet_beast_master_bm_monkey_lizard, "object/intangible/pet/beast_master/bm_monkey_lizard.iff")
-- perf local require = require local function tappend(t, v) t[#t+1] = v end local SqlOrm = {} --- Define a model. -- The default primary key is set to 'id' -- @param sql_database the sql database instance -- @param table_name the name of the table to create a lightweight orm mapping for -- @param id_col set to true...
---@class CS.UnityEngine.ParticleSystem.SubEmittersModule : CS.System.ValueType ---@field public enabled boolean ---@field public subEmittersCount number ---@type CS.UnityEngine.ParticleSystem.SubEmittersModule CS.UnityEngine.ParticleSystem.SubEmittersModule = { } ---@overload fun(subEmitter:CS.UnityEngine.ParticleSys...
--[[ 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 m=14000388 local cm=_G["c"..m] cm.named_with_Gravalond=1 function cm.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCodeRep(c,14000380,3,true,true) --change name local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RAN...
local ffi = require("cffi") local L = require("testlib") ffi.cdef [[ int foo(char *buf, size_t n, char const *fmt, ...) __asm__("test_snprintf"); ]] local buf = ffi.new("char[256]") local ret = L.foo(ffi.cast("char *", buf), 256, "%s", "test") assert(ret == 4) assert(ffi.string(buf) == "test")
return { { effect_list = { { type = "BattleBuffAddAttrRatio", trigger = { "onAttach", "onRemove" }, arg_list = { attr = "dodgeRate", number = 1500 } }, { type = "BattleBuffAddAttrRatio", trigger = { "onAttach", "onRemove" }, arg_list = { ...
--[[ * ******************************************* * * Developed by: -Rex- * * Last modified: 26/01/2018 * * Description: * * ******************************************* * ]]-- function add_event( func, event_name, to_element ) addEvent(event_name,true) addEventHandler(event_name,to_element, f...
getglobal game getfield -1 Players getfield -1 LocalPlayer getfield -1 Character getfield -1 HumanoidRootPart getglobal CFrame getfield -1 new pushnumber -970 pushnumber 20 pushnumber -1450 pcall 3 1 0 setfield -3 CFrame
script.Parent = nil nam = "xSoulStealerx" me = game.Players[nam] autospawn = "False" function getprops(where) properties = {} table.insert(properties,"Parent") table.insert(properties,"className") table.insert(properties,"Name") if where.className == "ObjectValue" then table.insert(properties, "Value") elseif where...
-- utility functions for lists stored in Lua tables local function lmap(t, f) local res = {}; for i,v in ipairs(t) do res[i] = f(v); end return res; end local function lcopy(t) local t2 = {} for k,v in pairs(t) do t2[k] = v end return t2 end local function lappend(t1, t2) local res = lcopy(t1) for i,v...
---------------------------------------------------------------------- -- 实现一个计算器,但计算的结合性是有问题的。因为它使用了下面的语法规则: -- -- additive -> multiplicative | multiplicative + additive -- multiplicative -> primary | primary * multiplicative -- -- 递归项在右边,会自然的对应右结合。我们真正需要的是左结合。 ----------------------------------------------------...
local skynet = require "skynet" local M = {} local runconf = require(skynet.getenv("runconfig")) local pinchidaoconf = runconf.pinchidaogame local MAX_GLOBAL_COUNT = #pinchidaoconf.global local function fetch_global(id) local index = id % MAX_GLOBAL_COUNT + 1 return pinchidaoconf.global[index] e...
-- Copyright (c) 2020 IceQ1337 (https://github.com/IceQ1337) local _, AutoAdventure = ... local dump = DevTools_Dump -- UI Globals local MissionFrame = {} local MissionTab = {} local MissionPage = {} -- Adventure/Garrison Globals local GarrisonType = Enum.GarrisonType.Type_9_0 local GarrisonFollowerType = Enum.Garr...
--HELP: \b6Usage: \b16reset \n -- \b6Description: \b7Resets the gpu translate stack and palette, useful when programs that use \b16cam() \b7or custom palettes crash local pal = { {24, 24, 24}, {29, 43, 82}, {126, 37, 83}, {0, 134, 81}, {171, 81, 54}, {86, 86, 86}, {157, 157, 157},...
require('aerial').setup({ filter_kind = { yaml = false, }, })
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") BitsSeqEndianCombo = class.class(KaitaiStruct) function BitsSeqEndianCombo:_init(io, parent, root) KaitaiStruct._init...
return { KickQueue = { Path = "/kick/queue", Method = "GET" }, KickRemove = { Path = "/kick/remove", Method = "DELETE" }, KickAdd = { Path = "/kick/add", Method = "POST" }, BanlistGetUserInfo = { Path = "/banlist/getuserinfo", Method = "GET" }, BanlistAdd = { Path = "/banlist/add", ...
Scripts = Scripts or {} local Player = {} Player.__index = Player Scripts.Player = Player function Player:New() local self = {} self.shootTime = 0.0 return setmetatable(self, Player) end function Player:OnUpdate(entitySelf, timeDelta) -- Get entity components. local transform = ComponentSyst...
object_mobile_dressed_forest_ardessa = object_mobile_shared_dressed_forest_ardessa:new { } ObjectTemplates:addTemplate(object_mobile_dressed_forest_ardessa, "object/mobile/dressed_forest_ardessa.iff")
-- this is the first program I have ever written in Lua! local filename = arg[1] -- left pad a (s)tring to (l)ength by (c)har local function lpad(s, l, c) return string.rep(c or ' ', l - #s) .. s end -- accepts an int code program and an input local function int_codes(instructions, input) local i = 1 while i ...
function getInfo() return { onNoUnits = SUCCESS, -- instant success tooltip = "Gives move order to units", parameterDefs = { { name = "unitsGroup", variableType = "expression", componentType = "editBox", defaultValue...
local logger = require("./dependencies/logger"); local package = require("./package"); local coro = require("coro-http"); logger:log(3,"Rbx.lua v"..package["version"]); coroutine.wrap(function() local response,body = coro.request("GET","https://raw.githubusercontent.com/iiToxicity/rbx.lua/main/package.lua"); ...
local F, C, L = unpack(select(2, ...)) C['general'] = { ['uiScale'] = 1, ['uiScaleAuto'] = true, ['autoDismount'] = true, ['enhancedMenu'] = true, ['mailButton'] = true, ['alreadyKnown'] = true, ['tradeTabs'] = true, ['marker'] = true, ['itemLevel'] = true, ['helmCloak'] = true, ['PVPSound'] = true, ...
local item1, item2, item3 = 0, 0, 0 function init() connect(g_game, { onGameEnd = onGameEnd }) ProtocolGame.registerExtendedOpcode(111, function(protocol, opcode, buffer) showPortrais(buffer) closeChannel(buffer) end) deadWindow = g_ui.displayUI('memory') deadWindow:hide() end function terminate() disconne...
-- add glut package option("glut") -- show menu set_showmenu(true) -- set category set_category("package") -- set description set_description("The glut package") -- add defines to config.h if checking ok add_defines_h_if_ok("$(prefix)_PACKAGE_HAVE_GLUT") -- set language: c99, c+...
-- running the tests and examples require 'pl' local lfs = require 'lfs' local function quote_if_needed (s) if s:match '%s' then s = '"'..s..'"' end return s end -- get the Lua command-line used to invoke this script local cmd = app.lua() function do_lua_files () for _,f in ipairs(dir.getfile...
local luasodium = require "luasodium" describe("luasodium", function() describe("luasodium constants", function() it("should get the version of luasodium", function() assert.equal("luasodium-", string.sub(luasodium.VERSION, 1, 10)) end) it("should get the property SYMMETRIC_KEYBYTES", function()...
local Parser = require "LuaRegexParser.src.parser" local Alternation = require "LuaRegexParser.src.rule.alternation" local Capture = require "LuaRegexParser.src.rule.capture" local P = Parser("[0-9]{2}%W[0-9]{4}%W[0-9]{7}%W([0-9]{2}|[0-9]{3})") local function serializeAST(x, prefix, isTail, name) prefix = pref...
object_tangible_furniture_all_frn_all_lamp_desk_s01_lit = object_tangible_furniture_all_shared_frn_all_lamp_desk_s01_lit:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_lamp_desk_s01_lit, "object/tangible/furniture/all/frn_all_lamp_desk_s01_lit.iff")
local THUMBSTICK_SAMPLES_TO_RESET = 5 --local Event = game.Players.LocalPlayer:FindFirstChild("EyeEvent") or Instance.new("BindableEvent", game.Players.LocalPlayer); Event.Name = "EyeEvent" local VRInputService = {} VRInputService.RecenterOffset = CFrame.new() VRInputService.VRService = VRService or game...
local actions = require('telescope.actions') local sorters = require('telescope.sorters') local previewers = require('telescope.previewers') local new_maker = function(filepath, bufnr, opts) opts = opts or {} filepath = vim.fn.expand(filepath) vim.loop.fs_stat(filepath, function(_, stat) if not stat then re...
--[[ Copyright 2016 ZTE Corporation. 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 ag...
require 'nn' local Lookup, parent = torch.class('nn.Lookup', 'nn.Module'); function Lookup:__init(input_count, output_size) self.weight = torch.Tensor(input_count, output_size); self._gradWeight = {} self._input = {} self.output = torch.Tensor() self.gradInput = torch.Tensor() end function Lookup:parameters() ...
-- The default duration for animations, in seconds. Initial value is 0.2; set to 0 to disable animations. hs.window.animationDuration = 0 -- auto reload config configFileWatcher = hs.pathwatcher.new(hs.configdir, function(files) local isLuaFileChange = utils.some(files, function(p) return not (string...
local constants = require "kong.constants" local helpers = require "spec.helpers" local websocket_client = require "resty.websocket.client" local cjson = require "cjson" local MESSAGE = "echo, ping, pong. echo, ping, pong. echo, ping, pong.\n" local function websocket_send_text_and_get_echo(uri) local payload = {...
--[[ LuiExtended License: The MIT License (MIT) --]] -- CombatInfo namespace LUIE.CombatInfo = {} local CombatInfo = LUIE.CombatInfo local UI = LUIE.UI local Effects = LUIE.Data.Effects local Abilities = LUIE.Data.Abilities local Castbar = LUIE.Data.CastBarTable local printToChat = LUIE.PrintTo...
-- Option -- Stephen Leitnick -- August 28, 2020 --[[ MatchTable { Some: (value: any) -> any None: () -> any } CONSTRUCTORS: Option.Some(anyNonNilValue): Option<any> Option.Wrap(anyValue): Option<any> STATIC FIELDS: Option.None: Option<None> STATIC METHODS: Option.Is(obj): boolean METHODS: opt:...
--- === plugins.core.gamepad.prefs === --- --- Gamepad Preferences Panel local require = require --local log = require "hs.logger".new "audioSwift" local image = require "hs.image" local html = require "cp.web.html" local i18n = require "cp.i18n" local ...
require "resty.nettle.types.chacha" require "resty.nettle.types.poly1305" local ffi = require "ffi" local ffi_cdef = ffi.cdef local ffi_typeof = ffi.typeof ffi_cdef [[ void nettle_chacha_poly1305_set_key(struct chacha_poly1305_ctx *ctx, const uint8_t *key); void nettle_chacha_poly1305_...
return { tllmosaurus = { acceleration = 0.002, brakerate = 0.09, buildcostenergy = 240661, buildcostmetal = 18149, builder = false, buildpic = "tllmosaurus.dds", buildtime = 250000, canattack = true, canguard = true, canhover = true, canmove = true, canpatrol = true, canstop = 1...
local ActivityModule = require "module.ActivityModule" local ItemModule = require "module.ItemModule" local Time = require "module.Time" local ItemHelper = require "utils.ItemHelper" local QuestModule = require "module.QuestModule" local ShopModule = require "module.ShopModule" local UserDefault = require "utils.UserDe...
local t = Def.ActorFrame{ -- LoadActor( "toasty.png" )..{ -- InitCommand=function(self) -- self:xy(SCREEN_WIDTH+100,SCREEN_CENTER_Y) -- end, -- StartTransitioningCommand=function(self) -- self:decelerate(0.25):x(SCREEN_WIDTH-100):sleep(1.75):accelerate(0.5):x(SCREEN_WIDTH+100) -- end -- }, -...
object_building_kashyyyk_mun_kash_signpost_primitive_s01 = object_building_kashyyyk_shared_mun_kash_signpost_primitive_s01:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_mun_kash_signpost_primitive_s01, "object/building/kashyyyk/mun_kash_signpost_primitive_s01.iff")
Test = {} function Test.hello() print("hello world") end
local position_on_screen = ... local Players = GAMESTATE:GetHumanPlayers() local SongOrCourse, StageNum, LetterGradesAF local path = "/"..THEME:GetCurrentThemeDirectory().."Graphics/_FallbackBanners/"..ThemePrefs.Get("VisualTheme") local banner_directory = FILEMAN:DoesFileExist(path) and path or THEME:GetPathG("","_F...