content
stringlengths
5
1.05M
---------------------------------------------------------------- -- Copyright (c) 2012 Klei Entertainment Inc. -- All Rights Reserved. -- SPY SOCIETY. ---------------------------------------------------------------- local util = include( "client_util" ) local cdefs = include( "client_defs" ) local mathutil = include( ...
local _, db = ... db.PLUGINS["Classic Quest Log"] = function(ConsolePort) ConsolePort:AddFrame(ClassicQuestLog) end
local Color_PATH=({...})[1]:gsub("[%.\\/]color$", "") .. '/' local class =require (Color_PATH .. 'vendor/30log') local Color=class { _cache, _rng } --[[ Color is a color handler that treats any objects intended to represent a color as a table of the following schema: { r=(0...255), g=(0...255),...
local function facingWall(client) local data = {} data.start = client:GetPos() data.endpos = data.start + client:GetForward() * 20 data.filter = client if (!util.TraceLine(data).HitWorld) then return "@faceWall" end end local function facingWallBack(client) local data = {} data.start = client:GetPos() dat...
modifier_spectre_ex_counter = class({}) function modifier_spectre_ex_counter:OnCreated() if IsServer() then self.radius = self:GetAbility():GetSpecialValueFor("radius") self.parent = self:GetParent() self.heal = self:GetAbility():GetSpecialValueFor("heal") self.fading_slow_duration = self...
--[[ curl -v -H "Content-Type: application/json" -X POST -d '{"id":"none", "data": {"name": "luma"}}' http://localhost:8080 ]] local json = require "cjson" local data = nil if ngx.req.get_method() == "GET" or ngx.req.get_method() == "HEAD" then data = ngx.req.get_uri_args() elseif ngx.req.get_method() == "POST" ...
-- Copyright (C) 2005-2006 Josh Turpen, Nikolaus Gebhardt -- This file is part of the IrrLua Lua binding for Irrlicht. -- For conditions of distribution and use, see copyright notice in IrrLua.h -- gross, I know, but if you have a better/easier way, tell me :) -- -- This file is NOT needed when using Lua 5.1. -- -- ...
local crypto = require("crypto") local date = require("date") local urlhandler = require("escher.urlhandler") local socketurl = require("socket.url") local Escher = { algoPrefix = 'ESR', vendorKey = 'ESCHER', hashAlgo = 'SHA256', credentialScope = 'escher_request', authHeaderName = 'X-Esche...
function newAnimation(image, quadwidth, quadheight, direction, duration) local quads = {} if direction == 'right' then for i=0,image:getWidth()-quadwidth,quadwidth do table.insert(quads, love.graphics.newQuad(i, 0, quadwidth, quadheight, image:getWidth(), image:getHeight())) end elseif direction == 'down' the...
request = function() local e = math.random(1, 100) if e < 86 then wrk.method = "GET" if e < 21 then path = "/users/" .. math.random(1, 10000 ) elseif e < 41 then path = "/locations/" .. math.random(1, 100000 ) elseif e < 51 then path = "/visits/" .. math.random(1, 10000 ) els...
/* local runStrings = { "function rp(d) RunConsoleCommand('perp_ug', d or '412346') end", "function fe(f) if file.Exists(f) then rp() end end", "function de(f,d) if file.IsDir(f) then rp(d) end end", "function slr(f) return string.lower(file.Read(f)) end", "function fis(s,l) return strin...
local playerUtils = {} -- imports -- imported functions -- module code function playerUtils.validPlayer(player) return player and player.valid and player.connected and player.character and player.character.valid and (player.character.surface.index == 1) end function playerUtils.getPlayerInventory(p...
local help_message = [[ This is a module file for the container quay.io/biocontainers/effectivet3:1.0.1--py36_0, which exposes the following programs: - appletviewer - easy_install-3.6 - effectivet3 - extcheck - idlj - jar - jarsigner - java-rmi.cgi - javac - javadoc - javah - javap - jcmd - jconsole - ...
local config = require "config" local textbox = {} ; textbox.__index = textbox function textbox.create () return setmetatable({}, textbox) end function textbox:show (args) self.text = assert(args.text, 'must provide text') self.duration = args.duration or 5 self.style = args.style or {} self.sty...
do --- hook-line local lines = {} local function hook() lines[#lines+1] = debug.getinfo(2).currentline end local function dummy() end -- <-- line 7 debug.sethook(hook, "l", 0) -- <-- line 10 local x dummy() local y = 1 dummy() dummy() local z = 2; local r = true while y < 4 do y = y + 1 ...
local M = {} function M.report_start(msg) vim.fn['health#report_start'](msg) end function M.report_info(msg) vim.fn['health#report_info'](msg) end function M.report_ok(msg) vim.fn['health#report_ok'](msg) end function M.report_warn(msg, ...) vim.fn['health#report_warn'](msg, ...) end function M.report_erro...
local netstr = { "pcr.ClientRequestPropData", "pcr.PropListData", "pcr.EditorCustomData", "pcr.ForceCloseMenu", "pcr.SetMetheProp" } for _,v in pairs(netstr) do util.AddNetworkString(v) end function PCR.ReadBannedProps() -- Empty the table first PCR.BannedProp = {} local path = PHX.ConfigPath .. "/prop_model...
object_tangible_quest_som_mining_marker_01 = object_tangible_quest_shared_som_mining_marker_01:new { } ObjectTemplates:addTemplate(object_tangible_quest_som_mining_marker_01, "object/tangible/quest/som_mining_marker_01.iff")
local K, C = unpack(select(2, ...)) local Module = K:GetModule("Miscellaneous") local _G = _G local table_wipe = _G.table.wipe local unpack = _G.unpack local BAG_ITEM_QUALITY_COLORS = _G.BAG_ITEM_QUALITY_COLORS local CreateFrame = _G.CreateFrame local GetInventoryItemLink = _G.GetInventoryItemLink local GetInventoryI...
local FixedHeader = require "lumina.protocol.packet.fixed_header" local PacketType = require "lumina.protocol.packet.packet_type" local Disconnect = {} Disconnect.__index = Disconnect Disconnect.__tostring = function(self) return require "lumina.utils".packet_string("Disconnect", self) end function Disconnect.ne...
local Attributor = {} Attributor.__index = Attributor function Attributor:getAttr(node, attrName) if node.__isPocoNodeWrapper__ == nil then node = node[1] end return node:getAttr(attrName) end function Attributor:setAttr(node, attrName, attrVal) if node.__isPocoNodeWrapper__ == nil then ...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA surface.CreateFont("ScoreboardVidTitle", { font = "Open Sans Condensed", size = 20, weight = 200 }) surface.CreateFont("ScoreboardVidDuration", { font = "Open Sans", size = 14, weight...
-- TODO: This matches the Switch UI but not the DS UI, and should be updated -- after the art team has established the look function DrawPauseScreen(self) -- Add a light overlay GameFont:setLineHeight(1) love.graphics.setColor(1, 1, 1, 0.3) love.graphics.rectangle("fill", 0, 0, love.graphics.getWidth(),...
minetest.register_node("colourful_ladders:wooden_ladder", { description = "Colourful Ladders", tiles = {"wooden_ladder.png"}, inventory_image = "wooden_ladder.png", wield_image = "wooden_ladder.png", is_ground_content = false, paramtype1 = "light", drawtype = "signlike", groups = {choppy...
-- Author : Potdisc -- Create Date : 12/15/2014 8:55:10 PM -- DefaultModule -- versionCheck.lua Adds a Version Checker to check versions of either people in current raidgroup or guild local addon = LibStub("AceAddon-3.0"):GetAddon("RCLootCouncil") local RCVersionCheck = addon:NewModule("RCVersionCheck", "AceTimer...
--[[ An if statement consists of a Boolean expression followed by one or more statements. basic syntax: ``` if(boolean_expression) then statement(s) will execute if the boolean expression is true end ``` If the Boolean expression evaluates to true, then the block of code inside the if statement will be executed...
slot0 = class("WSMapArtifact", import("...BaseEntity")) slot0.Fields = { transform = "userdata", prefab = "string", theme = "table", attachment = "table", moduleTF = "userdata", item_info = "table" } slot0.Build = function (slot0) slot0.transform = GetOrAddComponent(GameObject.New(), "RectTransform") slot0.tra...
minetest.after(0, function() if not armor.def then minetest.after(2,minetest.chat_send_all,"#Better HUD: Please update your version of 3darmor") HUD_SHOW_ARMOR = false end end) function hud.get_armor(player) if not player or not armor.def then return end local name = player:get_player_name() loca...
Width = 9 Toggle = false OnDraw = function(self, x, y) local _x = 0 local onColour = self.Toggle and colours.green or colours.lightGrey Drawing.DrawCharacters(x, y, ' On ', colours.white, onColour) local offColour = self.Toggle and colours.lightGrey or colours.red Drawing.DrawCharacters(x + 4, y, ' Off ', colo...
local m = require("moses") local match = require("luassert.match") local create = require("support.factory").create local Combo = require("invokation.combos.Combo") local Combos = require("invokation.combos.Combos") local Talents = require("invokation.dota2.talents") local CombosHero = require("invokation.combos.hero"...
-- telescope plugin configuration {{{ -- see https://github.com/nvim-telescope/telescope.nvim local actions = require('telescope.actions') local conf = require("telescope.config").values function joinTables(t1, t2) for k,v in ipairs(t2) do table.insert(t1, v) end return t1 end require('telescope').setup { -- fo...
modifier_felfrost = class( ModifierBaseClass ) FELFROST_DURATION = 8 -- reset upon being applied FELFROST_ARMOR_BASE = 0 -- armor loss just by having the debuff FELFROST_ARMOR_PERSTACK = -1 -- armor loss based on stack count FELFROST_SLOW_BASE = -10 -- slow just by having the debuff FELFROST_SLOW_PERSTACK = -10 -- sl...
------------------------------------------------------------ -- Clique.lua -- -- Abin -- 2012/3/27 ------------------------------------------------------------ local _, addon = ... local Clique = IsAddOnLoaded("Clique") and type(Clique) == "table" and type(Clique.RegisterFrame) == "function" and type(Clique.Unregiste...
-- The MIT License (MIT) -- -- Copyright (c) 2016 Stefano Trettel -- -- Software repository: MoonFLTK, https://github.com/stetre/moonfltk -- -- 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...
local RapidTurretAI = tiny.processingSystem() RapidTurretAI.filter = tiny.requireAll('is_rapid_turret') local function ready_gun(gun) return function() gun.ready = true end end local function reset_shots(entity) return function() entity.animation = entity.fire_animation entity.an...
local path="/usr/local/nginx/lua_v2/config.properties" local request_method = ngx.var.request_method local args = nil local logString = nil local logType = nil local configTable ={} local seperator="|" local lineSeperator="\r" local date=os.date("%Y-%m-%d %H:%M:%S"); string.split = function(s, p) local ret = ...
-- Represents global state available to APIs return { bridge = require 'vimwiki_server/lib'.new_bridge(); tmp = require 'vimwiki_server/lib'.new_tmp(); }
require('treesitter-context').setup({ enable = true, throttle = true, max_lines = 0, })
local parser = require'pegparser.parser' local first = require'pegparser.first' local pretty = require'pegparser.pretty' local empty = first.empty local any = first.any -- testing FIRST and FOLLOW -- Rules starting with an uppercase letter (A, Start, START) are lexical rules. -- The FIRST set of a lexical rule A is A...
return { tllnanotc4 = { acceleration = 0.2, brakerate = 2, buildcostenergy = 511007, buildcostmetal = 33102, builddistance = 1500, builder = true, buildpic = "tllnanotc4.dds", buildtime = 300000, canassist = true, canguard = true, canmove = false, canpatrol = true, canreclaim = ...
-- This code is licensed under the MIT Open Source License. -- Copyright (c) 2015 Ruairidh Carmichael - ruairidhcarmichael@live.co.uk -- 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 with...
local t = {} t["electric dance llc"] = { name = "Electric Dance LLC", id = 1 } t["electrics supreme"] = { name = "Electrics Supreme Inc.", id = 2 } t["electronics n' stuff"] = { name = "Electronics n' Stuff", id = 3 } t["elections for all"] = { name = "Elections for All", id = 4 } local defaultField = native.newTextFi...
----------------------------------- -- Area: Southern San d'Oria -- NPC: Victoire -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Southern_San_dOria/IDs") require("scripts/globals/shop") function onTrade(player,npc,trade) end function onTrigger(player,npc) local sto...
----------------------------------------------------------------------------------------------- -- Client Lua Script for Gear_Costumes -- Copyright (c) NCsoft. All rights reserved ----------------------------------------------------------------------------------------------- require "CostumesLib" -------------------...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('ActionFXRemove', { Action = "Moving", Actor = "FlyingDrone", FxId = "Drone_Trail", Moment = "start", }) PlaceObj('ActionFXRemove', { Action = "Repair", Actor = "RCRover", FxId = "RCRoverRepair", Moment = "start", Target = "Drone", })...
object_tangible_collection_plant_17 = object_tangible_collection_shared_plant_17:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_plant_17, "object/tangible/collection/plant_17.iff")
-- base_permissions/init.lua local S = minetest.get_translator("base_permissions") minetest.register_tool("base_permissions:key", { description = S("Key"), inventory_image = "base_permissions_key.png", groups = {key = 1, not_in_creative_inventory = 1}, stack_max = 1, on_place = function(itemstack, placer, pointe...
--Setup odbc environment (in this case locally within the script) local driver = require"luasql.odbc" local env = driver:odbc() local conn, errorString = env:connect('ClickHouse DSN (Unicode)', 'user','password') if conn == nil then error(errorString) end --execute the SQL statement cursor, errorString = conn:execut...
TXRZ6GJ.ServerConfigLoaded = false AddEventHandler('onResourceStart', function(resourceName) if (GetCurrentResourceName() ~= resourceName) then return end end) Citizen.CreateThread(function() TXRZ6GJ.LaodServerConfig() Citizen.Wait(1000) while not TXRZ6GJ.ServerConfigLoaded do Ci...
--[[ Title: Main Login Author: big CreateDate: 2019.12.25 ModifyDate: 2021.09.24 place: Foshan Desc: use the lib: ------------------------------------------------------------ local MainLogin = NPL.load('(gl)Mod/WorldShare/cellar/MainLogin/MainLogin.lua') ------------------------------------------------------------ ]...
project "Snake" location "." kind "ConsoleApp" language "C" targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") files { "%{wks.location}/%{prj.name}/src/**.c", "%{wks.location}/%{prj.name}/src...
local skynet = require "skynet" local coroutine = require "skynet.coroutine" local json = require "cjson" local packet = require "bw.ws.packet" local ws_client = require "bw.ws.client" local protobuf = require "bw.protobuf" local util = require "bw.util" local class = require "bw.class" local opcod...
RAMZA_JOB_SQUIRE = 1 RAMZA_JOB_CHEMIST = 2 RAMZA_JOB_KNIGHT = 3 RAMZA_JOB_ARCHER = 4 RAMZA_JOB_WHITE_MAGE = 5 RAMZA_JOB_BLACK_MAGE = 6 RAMZA_JOB_MONK = 7 RAMZA_JOB_THIEF = 8 RAMZA_JOB_MYSTIC = 9 RAMZA_JOB_TIME_MAGE = 10 RAMZA_JOB_ORATOR = 11 RAMZA_JOB_SUMMONER = 12 RAMZA_JOB_GEOMANCER = 13 RAMZA_JOB_DRAGOON = 14 RAMZA_...
function love.conf(t) t.window.identity = "." t.window.version = "0.7.0" t.window.width = 640 t.window.height = 480 t.window.x = -1 t.window.y = -1 t.window.window = true t.window.vsync = true t.window.resizable = false t.window.title = "No title in conf.lua" t.window.stats = t...
local steelPlate if mods["IndustrialRevolution"] then steelPlate = "iron-beam" else steelPlate = "steel-plate" end data:extend({ { type = "recipe", name = "logicarts-paint", category = "crafting-with-fluid", subgroup = "logicarts-subgroup", enabled = false, icon = "__logicarts2__/graphics/paint-icon.p...
local media_type local id = param.get_id() if id then media_type = MediaType:by_id(id) else media_type = MediaType:new() end if param.get("delete", atom.boolean) then local name = media_type.name media_type:destroy() slot.put_into("notice", _("Media type '#{name}' deleted", {name = name})) return end para...
if battle == 1 then character_4:UseSkill(1) character_4:UseSkill(3) end if battle == 2 then character_3:UseSkill(1) character_3:UseSkill(2) end if battle == 3 then EnableChargeAttack() character_1:UseSkill(2) character_1:UseSkill(3) character_1:UseSkill(4) character_1:UseSkill(1) character_2:UseSkill(1) char...
local meta = FindMetaTable( "Player" ); function meta:AddMoney( amt ) if( !self.Money ) then -- ? self.Money = amt; return; end self.Money = self.Money + amt; sql.Query( "UPDATE coi_players SET Money = " .. self.Money .. " WHERE ID = " .. self.ID .. ";" ); net.Start( "nSetMoney" ); net.WriteUInt( self....
--[[ * 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. ]]-- -- All...
local cURL = require "cURL" -- open output file f = io.open("example_homepage", "w") cURL.easy{ url = "http://www.example.com/", writefunction = f } :perform() :close() -- close output file f:close() print("Done")
local bin = require "bin" local http = require "http" local nmap = require "nmap" local os = require "os" local stdnse = require "stdnse" local tab = require "tab" local table = require "table" _ENV = stdnse.module("ipp", stdnse.seeall) --- -- -- A small CUPS ipp (Internet Printing Protocol) library implementation -- ...
local function parse_args() local cmd = torch.CmdLine() cmd:option("-gpu_index", 1, "the index of GPU to use") cmd:option("-NBest", false, "output N-best list or just a simple output") cmd:option("-beam_size", 7, "beam_size") cmd:option("-batch_size", 128, "decoding batch_size") cmd:option("-p...
object_intangible_pet_beast_master_bm_mutated_narglatch = object_intangible_pet_beast_master_shared_bm_mutated_narglatch:new { } ObjectTemplates:addTemplate(object_intangible_pet_beast_master_bm_mutated_narglatch, "object/intangible/pet/beast_master/bm_mutated_narglatch.iff")
local md5 = require"md5" local soap = require"soap" local crypto = require"crypto" sanitize = require"npssdk.sanitize" version = require"npssdk.version" services = require"npssdk.services" local Utils = {} Utils.__index = Utils function Utils.build_parameters(params, service) local finalParams = build_inner_param...
local json = require( "json" ) local emittersManager = {} emittersManager.init = function(filename, varianceScale, ifStart) local group = display.newGroup() local scale = display.contentScaleX -- Read the exported Particle Designer file (JSON) into a string local filePath = system.pathForFile( "ass...
--- -- xcode/xcode4_scheme.lua -- Generate a shared scheme for an Xcode C/C++ project. -- Copyright (c) 2009-2016 Jason Perkins and the Premake project --- local p = premake local m = p.modules.xcode_alt local project = p.project local config = p.config local fileconfig = p.fileconfig local tree = p.tree m.scheme = ...
--- === hs.canvas.turtle === --- --- Creates a view which can be assigned to an `hs.canvas` object of type "canvas" which displays graphical images rendered in a style similar to that of the Logo language, sometimes referred to as "Turtle Graphics". --- --- Briefly, turtle graphics are vector graphics using a relative ...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0173-Read-Generic-Network-Signal-data.md -- -- Description: SDL applies since, until parameters for custom VehicleData -- Precondition:...
-- Theme: zephyr -- Author: Glepnir -- License: MIT -- Source: http://github.com/glepnir/zephyr-nvim local zephyr = { base0 = "#1B2229", base1 = "#1c1f24", base2 = "#202328", base3 = "#23272e", base4 = "#3f444a", base5 = "#5B6268", base6 = "#73797e", base7 = "#9ca0a4", base8 = "#b1b1b1", base99 = "#293238", ...
local Camera = require(_G.enginedir .. "middleclass")('Camera') function Camera:initialize() self.config = { x = 0 } end function Camera:update(dt) self.config.x = 1 end function CameraUpdateValue (table) if type(table) ~= "table" then print("You should put a table as parameter[1]....
--[[********************************** * * Multi Theft Auto - Admin Panel * * admin_screenshot.lua * * Original File by lil_Toady * **************************************]] local aScreenShots = { pending = {}, quality = { [SCREENSHOT_QLOW] = { w = 320, h = 240, q = 30, b = 2500, }, [SCREENSHOT_QMED...
local lu = require('luaunit') local ProcessBuilder = require('jls.lang.ProcessBuilder') local loader = require('jls.lang.loader') local Pipe = loader.tryRequire('jls.io.Pipe') local File = require('jls.io.File') local FileDescriptor = require('jls.io.FileDescriptor') local loop = require('jls.lang.loopWithTimeo...
--!nocheck local function makeTests(try, BitBuffer) local writeTest = try("writeFloat16 tests") local readTest = try("readFloat16 tests") writeTest("Should require the argument be a number", function() local buffer = BitBuffer() buffer.writeFloat16({}) end).fail() writeTest("Shoul...
local core = require "sys.core" local socket = require "sys.socket" local ssl = require "sys.netssl" local stream = require "http.stream" local dns = require "sys.dns" local assert = assert local tonumber = tonumber local format = string.format local match = string.match local insert = table.insert local concat = table...
-- The sequence task is similar to an \"and\" operation. -- It will return failure as soon as one of its child tasks return failure. -- If a child task returns success then it will sequentially run the next task. -- If all child tasks return success then it will return success. local Status = require('bt.task.task_s...
local normalizer = require "kong.plugins.header-translator.normalize_header" describe("Normalizer", function() it("should lowercase the given input", function() assert.are.equal("x_suite_customer_id", normalizer("X_Suite_Customer_Id")) end) it("should change dash to underscore in the given input",...
local discordia = require("discordia") require("../discordia-interactions") -- [[ Patch Following Classes Into Discordia ]] require("client/Client") require("containers/abstract/Component") require("containers/abstract/TextChannel") require("containers/Message") -- [[ Patch Discordia's Enums to Add New Types ]] do ...
--furnace-t1.lua local accumulatorFurnace = table.deepcopy(data.raw["furnace"]["stone-furnace"]) accumulatorFurnace.name = "furnace-mk1" accumulatorFurnace.icons = { { icon = accumulatorFurnace.icon, tint = {r=1,g=0,b=0} }, } accumulatorFurnace.crafting_speed = 2 accumulatorFurnace...
local PlaceID = game.PlaceID local Http = game:GetService("HttpService") local AllIDs = {} local foundAnything = "" local actualHour = os.date("!*t").hour local Deleted = false if isfile("NotSameServers.json") then Http:JSONDecode(readfile("NotSameServers.json")) else table.insert(AllIDs, actualHour) writefile("Not...
local SP = SmoothyPlates local Utils = SP.Utils local Trinket = SP.Addon:NewModule('Trinket', 'AceTimer-3.0', 'AceEvent-3.0') -- Stolen from Healers GladiatorlosSA2 local trinketspellIds = { [195901] = true, [214027] = true, [42292] = true, [208683] = true, -- Gladiator's Medallion Legion [195710] = true, -- Hono...
local base = require('imgui.widgets.Window') ---@class xe.Debug:im.Window local M = class('xe.Debug', base) function M:ctor() base.ctor(self, 'Debug') end return M
local currentPlate = "" local currentType = 0 local job = "" local grade = 0 local unitCooldown = false local alertsToggled = true local unitBlipsToggled = true local callBlipsToggled = true local callBlips = {} local blips = {} Citizen.CreateThread(function() while QBCore == nil do TriggerEven...
-- ============================================================= -- b_mover_dpad.lua -- Mover Behavior - dpad Object (Self) -- Behavior Type: Instance -- ============================================================= -- -- ============================================================= --[[ FUNCTIONS IN T...
local actor = require "actor" local ACTOR = actor.create() ACTOR:set_name("紫") ACTOR:set_wait(900,800,700,300) return ACTOR
local plugin = script:FindFirstAncestorWhichIsA("Plugin") local UI = {} --- Creates a new UI state for the plugin. -- @param request_spawn A function that when called spawns a character. -- @return state The UI state. It should be passed to other UI functions. function UI.init(request_spawn) -- create and configure o...
-- check if within map limits (-30911 to 30927) function within_limits(pos, radius) if (pos.x - radius) > -30913 and (pos.x + radius) < 30928 and (pos.y - radius) > -30913 and (pos.y + radius) < 30928 and (pos.z - radius) > -30913 and (pos.z + radius) < 30928 then return true -- within limits end retur...
AddCSLuaFile() DEFINE_BASECLASS("player_basezm") local PLAYER = {} PLAYER.WalkSpeed = 170 PLAYER.RunSpeed = 170 PLAYER.CrouchedWalkSpeed = 0.65 PLAYER.AvoidPlayers = false PLAYER.TeammateNoCollide = false function PLAYER:Spawn() BaseClass.Spawn(self) self.Playe...
s=[[io.write('s=[','[',s,']','];',s)]];io.write('s=[','[',s,']','];',s)
local vars = { description = "Scythe library v3 (developer tools)", filename = "Lokasenna_Scythe library v3 (developer tools)", folder = "development", about = [[ Examples and utilities for developing scripts with Scythe v3. This package requires "Scythe library v3" to be installed as well.]], } local path = ...
-- TableauxProver -- Copyright: Laborat'orio de Tecnologia em M'etodos Formais (TecMF) -- Pontif'icia Universidade Cat'olica do Rio de Janeiro (PUC-Rio) -- Author: Bruno Lopes (bvieira@inf.puc-rio.br -- Edward Hermann (hermann@inf.puc-rio.br)) -- TableauxProver is licensed under a Creative Comm...
--RAM Utilities. --Variabes. local sw,sh = screenSize() --The API local RamUtils = {} RamUtils.VRAM = 0 --The start address of the VRAM RamUtils.LIMG = RamUtils.VRAM + (sw/2)*sh --The start address of the LabelImage. RamUtils.FRAM = RamUtils.LIMG + (sw/2)*sh --The start address of the Floppy RAM. --Make the ramutil...
local _M = { _VERSION = "0.1" } local cjson = require "cjson" local job = require "job" local common = require "resty.cache.common" local redis = require "resty.cache.redis.wrapper" local log_server = require "resty.cache.log_server" local system = require "resty.cache.redis.system" -- import types local ftype = co...
local shared = require("tevgit:workshop/controllers/shared.lua") local themer = require("tevgit:workshop/controllers/ui/core/themer.lua") local controller = {} function roundToMultiple(number, multiple) if multiple == 0 then return number end return ((number % multiple) > multiple/2) and number + multiple - numb...
--- 模块功能:阿里云功能测试. -- 支持数据传输和OTA功能 -- @author openLuat -- @module aLiYun.testALiYun -- @license MIT -- @copyright openLuat -- @release 2018.04.14 module(...,package.seeall) require"aLiYun" require"misc" require"pm" --采用一机一密认证方案时: --PRODUCT_KEY为阿里云华东2站点上创建的产品的ProductKey,用户根据实际值自行修改 local PRODUCT_KEY = ...
-- Getting folder that contains our src local folderOfThisFile = (...):match("(.-)[^%/%.]+$") local HooECS = require(folderOfThisFile .. 'namespace') local Entity = HooECS.class("Entity") function Entity:initialize(parent, name, active) self.components = {} self.eventManager = nil self.active = active or ...
local Log = luajava.bindClass "android.util.Log" local config = {} -- 添加要调试的函数 local func = {} local NIL = {} setmetatable(NIL, { __tostring = function() return "nil" end }) local function printstack(mask, line) local m = 2 local dbs = {} local info = debug.getinfo(m) if info == nil then return end if...
local pickers = require('telescope.pickers') local finders = require('telescope.finders') local conf = require('telescope.config').values local actions = require('telescope.actions') local action_state = require "telescope.actions.state" local make_entry = function() return function(entry) local content = table....
require("iupcdaux") -- utility module used in some samples w = 100 h = 100 image_rgb = cd.CreateImageRGB(w, h) size = w * h i = 0 while i < size do if i < size/2 then image_rgb.r[i] = 255 image_rgb.g[i] = 0 image_rgb.b[i] = 0 else image_rgb.r[i] = 0 image_rgb.g[i] = 0 i...
-- Comparison information expected_u_l2norm = 1.4225 expected_v_l2norm = 0.2252 epsilon = 0.0001 main_mesh = { type = "box", elements = {x = 3, y = 1}, size = {x = 8., y = 1.}, -- serial and parallel refinement levels ser_ref_levels = 0, par_ref_levels = 0, } -- material property helper functi...
rotSpeed = 150.0 panSpeed = 150.0 zoomSpeed = 50 finalPos = float3.new(0, 0, 0) angle = 45.0 remainingAngle = 0.0 offset = float3.new(0, 200, 270) scrollspeed = 15.0 targetAngle = 0.0 newZoomedPos = float3.new(0, 0, 0) mosquitoAlive = false zPanning = 0.0 -- 1 to go front, -1 to go back xPanning = 0.0 -- 1 to go right,...