content
stringlengths
5
1.05M
--[[ Main configuration script for opic3d Defines task for plasma cloud expansion in magnetized backround. All opic3d variable names have f prefix "pic_": pic_parameters - common parameters for opic3d; pic_grid - computational grid; pic_particles - particles array; pic_p...
local mod = DBM:NewMod("z998", "DBM-PvP", 2) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 48 $"):sub(12, -3)) mod:SetZone(DBM_DISABLE_ZONE_DETECTION) mod:RegisterEvents( "ZONE_CHANGED_NEW_AREA" ) local winTimer = mod:NewTimer(30, "TimerWin", "Interface\\Icons\\INV_Misc_PocketWatch...
local ScriptBehaviourManager = BaseClass() ECS.ScriptBehaviourManager = ScriptBehaviourManager function ScriptBehaviourManager:CreateInstance( world, capacity ) if self.OnBeforeCreateManagerInternal then self:OnBeforeCreateManagerInternal(world, capacity) end if self.OnCreateManager then self:OnCreateManager(c...
local Range = require('orgmode.parser.range') local Duration = require('orgmode.objects.duration') local Section = require('orgmode.parser.section') local LanguageTree = require('vim.treesitter.languagetree') local config = require('orgmode.config') local utils = require('orgmode.utils') ---@class File ---@field tree ...
local Enemy = require('modules/Enemy') local Slime = class('Slime', Enemy) local SlimeTiny = require('modules/SlimeTiny') function Slime:initialize( options ) Enemy.initialize( self, options ) self.health = 1 self.speed = 40 self.state = 'move' self.state_times = { hurt = 0.4 } s...
local f = "../statistics/database.csv" local h = {} for line in io.lines(f) do line = string.gsub(line, "/Users/andre/tmp/luarocks_repo//unpack/", "") --local k = string.match(line, "[^/]+[/]([^/]+)") local k = string.match(line, "([^/]+)[/]") if not h[k] then h[k] = true end end local l = {} for k, v in p...
--New object_tangible_furniture_ep3_rewards_shared_avatar_hologram_squid = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/furniture/ep3_rewards/shared_avatar_hologram_squid.iff" } ObjectTemplates:addClientTemplate(object_tangible_furniture_ep3_rewards_shared_avatar_hologram_squid, "object...
-- file: 'thanks.lua' -- desc: to print the list of the contributing guys function list_iter (t) local i = 0 local n = #t return function () i = i + 1 if i <= n then return t[i] end end end helpful_guys = { "----参与翻译----", "buxiu", "凤舞影天", "zhang3", "morler", "lambda", "sunlight...
----------------------------------- -- Area: Abyssea - Attohwa -- NPC: Cavernous Maw -- !pos -133.197 20.242 -181.658 215 -- Notes: Teleports Players to Buburimu Peninsula ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) player:startEvent(200) end functio...
CItemManager = inherit(cSingleton) function CItemManager:constructor() local start = getTickCount() local result = CDatabase:getInstance():query("SELECT * FROM item") self.m_tblItems = {} self.m_tblItemNames = {} if(#result > 0) then for key, value in pairs(result) do self.m_tblItems[tonumber(value["...
function startConfiguration() newSerial({ serial_port = "/dev/ttyUSB0" }) newJoystick({ message_type = 0, robot_id = 0, communication_frequency = 100, min_axis_value = 10000, max_axis_value = 32767, max_linear_velocity = 50, max_angular_veloci...
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. -- This class contains several functions useful for http message- and content -- decoding and to retrive form data from raw http messages. module("luci.http.protocol", package.seeall) local l...
package("libiconv") set_homepage("https://www.gnu.org/software/libiconv") set_description("Character set conversion library.") set_urls("https://ftp.gnu.org/gnu/libiconv/libiconv-$(version).tar.gz", "https://ftpmirror.gnu.org/libiconv/libiconv-$(version).tar.gz") add_versions("1.16", "e6a...
return { init_effect = "Darkness", name = "2020年6月世界BOSS叠加buff", time = 0, color = "yellow", picture = "", desc = "", stack = 1, id = 8705, icon = 2120, last_effect = "", effect_list = { { type = "BattleBuffFixVelocity", trigger = { "onAttach" }, arg_list = { add = -12, mul = 0 }...
local opts = { noremap = true, silent = true } local auto_opts = { silent = true, expr = true } local term_opts = { silent = true } local keymap = vim.api.nvim_set_keymap --Remap space as leader key keymap('', '<Space>', '<Nop>', opts) vim.g.mapleader = ' ' -- Normal -- -- Better window navigation keymap('n', '<C-h>'...
local ROOT = script:GetCustomProperty("Root"):WaitForObject() local GEO = script:GetCustomProperty("GEO"):WaitForObject() local PositionOffset = script:GetCustomProperty("PositionOffset") local RotationOffset = script:GetCustomProperty("RotationOffset") local Time = script:GetCustomProperty("Time") local RecoverTime = ...
---@diagnostic disable: undefined-global local palette = require 'nord-palette' local base = require 'base' local clrs = palette.clrs local lang = function() return { asciidocAttributeEntry {fg = clrs.nord10}, asciidocAttributeList {fg = clrs.nord10}, asciidocAttributeRef {fg = clrs.nord10}, asciidoc...
--[[ TitleScreenState Class Author: Colton Ogden cogden@cs50.harvard.edu The TitleScreenState is the starting screen of the game, shown on startup. It should display "Press Enter" and also our highest score. ]] TitleScreenState = Class{__includes = BaseState} function TitleScreenState:init()...
-- -- tests/tools/test_dotnet.lua -- Automated test suite for the .NET toolset interface. -- Copyright (c) 2012-2013 Jason Perkins and the Premake project -- local suite = test.declare("tools_dotnet") local dotnet = premake.tools.dotnet -- -- Setup/teardown -- local wks, prj, cfg function suite.setup() wks, ...
local Rarity = {} Rarity.__index = Rarity function Rarity.New(Name, Cost,PremiumCost ,SortValue,Rank,Level) local o = setmetatable({}, Rarity) o.name = Name o.cost = Cost o.premiumcost = PremiumCost o.sortvalue = SortValue o.rank = Rank o.level = Level return o end function Rarity:G...
-- premake5.lua --[[ Usage examples: for windows: premake5.exe --os=windows vs2015 fot linux: premake5.exe --os=linux gmake ]] workspace "grpc_cb_core" location (_ACTION) -- subdir vs2015 (or gmake, ...) configurations { "Release", "Debug" } platforms { "x64", "x32" } language "C++" flags { "C++11", -- ...
--[[ _____ ____ _ _ _ _ _______ |_ _/ ___|| | | | / \ | |/ / ____| | | \___ \| |_| | / _ \ | ' /| _| | | ___) | _ |/ ___ \| . \| |___ |_| |____/|_| |_/_/ \_\_|\_\_____| CH > @TshAkETEAM --]] -------------------------------------- serpent = require('serpent') serp = requir...
local PANEL = {}; function PANEL:Init ( ) self:SetVisible(true) self.ModelPanel = vgui.Create("DModelPanel", self); function self.ModelPanel:LayoutEntity ( ) end function self.ModelPanel.OnMousePressed ( _, mc ) self:OnMousePressed(mc) end function self.ModelPanel.OnMouseReleased ( _, mc ) self:OnMouseReleas...
local Camera = require("hamsterTank.Camera") local Class = require("hamsterTank.Class") local GamepadControls = require("hamsterTank.GamepadControls") local KeyboardMouseControls = require("hamsterTank.KeyboardMouseControls") local Player = require("hamsterTank.Player") local Tank = require("hamsterTank.Tank") local Te...
----------------------------------- -- Area: Mamool_Ja_Training_Grounds ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[tpz.zone.MAMOOL_JA_TRAINING_GROUNDS] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain t...
local addon_name, addon_env = ... if not LibStub then return end local ldb = LibStub:GetLibrary("LibDataBroker-1.1", true) if not ldb then return end local broker = ldb:NewDataObject(addon_name, { type = "data source", label = addon_name, icon = "Interface\\ICONS\\Achievement_Garrison_Tier01_" .. UnitFaction...
return PlaceObj("ModDef", { "dependencies", { PlaceObj("ModDependency", { "id", "ChoGGi_Library", "title", "ChoGGi's Library", "version_major", 9, "version_minor", 6, }), }, "title", "Construction Show Dust Grid", "id", "ChoGGi_ConstructionShowDustGrid", "steam_id", "1566670588", "pops_any_uuid", ...
function drawMiniMap() for y = 0, mapHeight-1, 1 do for x = 0, mapWidth-1, 1 do local wall = map[y][x] if wall > 0 then local xs = x * miniMapScale local ys = y * miniMapScale love.graphics.setColor(153, 0, 0) ...
-- Example of osg.Scissor usage. -- Create scissor and show cropped foreground by 800x300 pixels. -- Cropped visible area is in left bottom corner of screen. local foreground = reactorController:getReactorByName("white_rect") -- must be presented in the project local scissor = osg.Scissor() -- move foreground on top...
function onCreate() -- background shit makeLuaSprite('backwall', 'mashedtails/wall', -200, -200); setScrollFactor('backwall', 0.9, 0.9); scaleObject('backwall', 0.8, 0.8); makeLuaSprite('desk', 'mashedtails/desk', -170, -100); setScrollFactor('desk', 0.9, 0.9); scaleObject('desk', 0.7, 0.7); makeLuaSprite('r...
spring = class:new() function spring:init(x, y, t, p) self.cox = x self.coy = y --PHYSICS STUFF self.x = x-1 self.y = y-31/16 self.width = 16/16 self.height = 31/16 self.static = true self.active = true self.drawable = false self.timer = springtime self.category = 19 self.mask = {true} --actu...
local ffi = require("ffi") --[[ 压缩图片到crunch后的ETC2 pSrcData jpep、png 的原始数据 srcSize 输入数据的字节数 pOutSize 编码后数据字节数 函数返回 编码后的数据 编码失败返回 nullptr void* compress(const unsigned char *pSrcData, unsigned int scrSize, unsigned int *pOutSize); 释放压缩函数返回的内存 void freeCompressData(...
-- Please see server_event.lua.license for licensing information. --[[ server.lua based on lua/libevent by blastbeat notes: -- when using luaevent, never register 2 or more EV_READ at one socket, same for EV_WRITE -- you cant even register a new EV_READ/EV_WRITE callback inside another one -- to do s...
--- -- Entity -- a general game object -- local Entity = {} Entity.__index = Entity --- -- Create new entity object -- @param template -- function Entity:create(template) local obj = template or Object:create({ name = "Entity", position = {x = 0, y = 0}, fixture = nil, }) if o...
local powerup = Class{ type = 'powerup' } local Quads = { catch = {}, duplicate = {}, enlarge = {}, laser = {}, life = {}, slow = {}, } for i = 1, 8 do Quads.catch[i] = love.graphics.newQuad(38*(i-1), 0, 38, 19, Graphics.powerup:getDimensions()) end for i = 1, 8 do Quads.duplicate[i] = love.graphics.newQu...
local Coercion = {}; function Coercion.toboolean (value) if value == true or value == false then return value end; return not not value; end return Coercion;
describe("StandardOperatingProcedure", function() local standardOperatingProcedure local voice local checklist local function createSOP() return standardOperatingProcedure:new("My SOP") end setup(function() standardOperatingProcedure = require "audiochecklist.standardoperatingp...
object_tangible_gcw_static_base_rebel_icon = object_tangible_gcw_static_base_shared_rebel_icon:new { } ObjectTemplates:addTemplate(object_tangible_gcw_static_base_rebel_icon, "object/tangible/gcw/static_base/rebel_icon.iff")
function onCreate() -- le bg fuckin shit makeLuaSprite('back', 'bgs/anders/ANDERSSSSSSSSS', -600, -300); scaleObject('back',0.64,0.64); addLuaSprite('back', false); close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used anymore after loading the s...
package.path="?/init.lua;"..package.path require("bin") -- this library needs a lot of work it has a bunch of old useless code, but also has many nice things as well that are really useful require("multi") -- you need this to handle multiple connections and such require("net.testinit") -- That requires the main library...
dyinclude("meta-settings/movement.settings.lua"); CAbstractMovement = class(CBaseObject, function (self, copyfrom) self.type = "default" self.Address =0; if( type(copyfrom) == "table" ) then self.type = copyfrom.type; self.Address = copyfrom.Address; end end ); -- Forces the player to face a directio...
require "jester.support.file" local cjson = require "cjson" local ltn12 = require "ltn12" local http_mock = require "jester.spec.http_mock" local function request(url, params, attributes) local request_handler = params.request_handler or https local response = {} local body, status_code, headers, status_descript...
----------------------------------- -- Area: Upper Jeuno -- NPC: Mapitoto -- Type: Full Speed Ahead Mount NPC -- !pos -54.310 8.200 85.940 244 ----------------------------------- local ID = require("scripts/zones/Upper_Jeuno/IDs") require("scripts/globals/chocobo") require("scripts/globals/keyitems") require("scripts/...
ColorScreen = Screen:subclass "ColorScreen" local colorMenus = { ["BodyColor"] = {locale="garage_tuning_paint_body", position = Vector3(2916, -3188.8, 2535.6), angle = 10}, ["SmokeColor"] = {locale="garage_tuning_smoke_color", position = Vector3(2916, -3188.8, 2535.6), angle = 10}, ["WheelsColorF"] =...
local ScrollViewCell = import("..ui.ScrollViewCell") local LevelsListCell = class("LevelsListCell", ScrollViewCell) function LevelsListCell:ctor(size, beginLevelIndex, endLevelIndex, rows, cols) local rowHeight = math.floor((display.height - 340) / rows) local colWidth = math.floor(display.width * 0.9 / cols)...
local naughty = require("naughty") local util = {} local function messageBox(msg_type,msg_title,message) local messageType = {} if msg_type == "info" then messageType = naughty.config.presets.info elseif msg_type == "warning" then messageType = naughty.config.presets.warn elseif msg_type == "error" then mess...
E2VguiCore.RegisterVguiElementType("dpropertysheet.lua",true) __e2setcost(5) local function isValidDPropertySheet(panel) if not istable(panel) then return false end if table.Count(panel) != 3 then return false end if panel["players"] == nil then return false end if panel["paneldata"] == nil then return ...
local module = { --[=[ _NAME = 'hydra.lua', _VERSION = '0.1', _URL = 'https://github.com/asmagill/hammerspoon-config', _DESCRIPTION = [[ personal keybindings for hammerspoon ]], _TODO = [[]], _LICENSE = [[ See README.md ]] --]=] } -- private variables and methods -...
--[[ Copyright 2016 Jason White. MIT license. Description: Tests the path manipulation functions for Windows. ]] local path = winpath; --[[ path.splitroot ]] assert(path.splitroot("/") == "/") assert(path.splitroot("foo") == "") assert(path.splitroot("/foo") == "/") assert(path.splitroot("C:\\foo") == "C:\\") as...
return require("./dist/lamda")
--[[Akkiris Lightning-Waker yells: You are... nothing! Akkiris Lightning-Waker yells: You dare imprison me? You will die!]] function Akkiris(Unit, event, miscUnit, misc) Unit:RegisterEvent("Akkiris_Red", 10000, 0) Unit:RegisterEvent("Akkiris_Wave", 13000, 0) Unit:RegisterEvent("Akkiris_FireBolt", 21000, 0) end fun...
-- Copyright 2022 SmartThings -- -- 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 ...
object_tangible_collection_gem_triliant_hueable_01 = object_tangible_collection_shared_gem_triliant_hueable_01:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_gem_triliant_hueable_01, "object/tangible/collection/gem_triliant_hueable_01.iff")
--[[ files = { 'hi', { folder = 'Stuff', 'stuff', { folder = 'nested', } } } ]] local M = {} function M.FindFolder(currentFolder, fullFolderPath) if fullFolderPath == '' then return currentFolder end -- Split each component. for folderName in fullFolderPath:gmatch('[^\\]+') do loc...
local Connection = require('Scripts/lib/colyseus.connection') -- local Auth = require('Scripts/lib/colyseus.auth') local Room = require('Scripts/lib/colyseus.room') -- local Push = require('Scripts/lib/colyseus.push') local protocol = require('Scripts/lib/colyseus.protocol') local EventEmitter = require('Scripts/lib/co...
data:extend({ --ITEM {--Small Pole type = "item", name = "small-pole-r1", icon = "__RExtended__/graphics/icons/poles/small-electric-pole-r1.png", icon_size = 64, icon_mipmaps = 4, subgroup = "power-poles", order = "a-a-b", place_result = "small-pole-r1", stack_size = 50 }, {--Medium Pole type = "item", ...
AddCSLuaFile("ulx/modules/sh/urs_cmds.lua") if not URS then URS = {} end HOOK_LOW = HOOK_LOW or 1 -- ensure we don't break on old versions of ULib function URS.Load() URS.restricions = {} URS.limits = {} URS.loadouts = {} if file.Exists("ulx/restrictions.txt", "DATA") then URS.restrictio...
InputConfig({ name = "bryface" }) KeyMap({ [Key.Num3] = Button.Up, [Key.W] = Button.Left, [Key.E] = Button.Down, [Key.R] = Button.Right, [Key.B] = Button.Select, [Key.N] = Button.Start, [Key.Num9] = Button.B, [Key.Num0] = Button.A }) GlobalKeyMap({ [Key.Tab] = Action.RetroPlug.NextInstance })
-- -- Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) -- -- Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt -- or copy at http://opensource.org/licenses/MIT) -- local pkmn = require("pkmn") local luaunit = require("luaunit") local items_tests = require("items_tests") local gen2...
---------------------------------------------------- -- Licensed under the GNU General Public License v3 -- * (c) 2015, Martin Carton <martin@carton.im> ---------------------------------------------------- -- {{{ Grab environment -- }}} -- vicious.widget.video local video = {} -- {{{ video widget type local functio...
ui = require "tek.ui" symBut = function(txt, foo, color, isnosym) local font = ":18" --"Vera:18" --print (isnosym,txt) if not isnosym then font = "ui-icons:20" end local style = "font:" .. font .. "; width:24; color:olive;" --olive;" --navy;" local par = {} -- if par.Style then -- style = styl...
--[[ Copyright 2016 The Luvit Authors. All Rights Reserved. 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 agr...
function building_lib.get_deserialize_options(mapblock_pos, building_def) if type(building_def.deserialize_options) == "function" then return building_def.deserialize_options(mapblock_pos, building_def) elseif type(building_def.deserialize_options) == "table" then return building_def.deserialize_options end -...
--- Module for a data container that does not allow nil values. -- @classmod lqc.helpers.vector -- @alias Vector local deep_equals = require 'lqc.helpers.deep_equals' local Vector = {} local Vector_mt = { __index = Vector } --- Constructs a new vector, possibly filled with data (a table value) -- @param data[opt...
#!/usr/bin/env tarantool local LIMIT = tonumber(arg[1]) box.cfg{ wal_mode = 'none', memtx_memory = LIMIT, } require('console').listen(os.getenv('ADMIN'))
local vertex_shader = [[ #version 120 uniform mat4 matrix; attribute vec4 position; attribute vec3 normal; attribute vec2 uv; varying vec2 fragment_uv; void main() { gl_Position = matrix * position; fragment_uv = uv; } ]] local fragment_shader = [[ #version 120 uniform sampler2D sampler; uniform float tim...
object_static_worldbuilding_furniture_cheap_frn_all_chep_end_table_s01 = object_static_worldbuilding_furniture_cheap_shared_frn_all_chep_end_table_s01:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_furniture_cheap_frn_all_chep_end_table_s01, "object/static/worldbuilding/furniture/cheap/frn_all_chep_end...
local t = {} local function create() local this = {} this.assignments = {} this.sections = {} function this:readFromFile(path, ignoreNotFound) assert(path, 'configParser: no path passed') local f = io.open(path, 'r') if (f == nil) then if not ignoreNotFound then error(string.format('configParser: ...
require 'image' require 'cutorch' require 'cunn' require 'cudnn' require 'optim' -- Custom files require 'model' require 'sys' -- require 'qtwidget' -- for visualizing images dofile('util.lua') opt_string = [[ -h,--help print help -s,--save (default "logs") subdirectory to save logs -b,--batchSize ...
-- __ ___ _ -- \ \/ (_)_ _(_) __ _ -- \ /| \ \ / / |/ _` | -- / \| |\ V /| | (_| | -- /_/\_\_| \_/ |_|\__,_| -- -- Xawareness FREE -- 1.142 load(Base64Decode("G0x1YVIAAQQEBAgAGZMNChoKid14C9TaQggAAZmjBQAAOAAAADgAAAA+AAAANQAAADsAAAAsAAAAPQAAADkAAAA7AAAANwAAAC4AAAA4AAAAKgAAAD0AAAA1AAAANQAAADQAAAA2AAAANgAAAC0...
local cjson = require 'cjson' return { handle = function() ngx.say('================ URI ====================') ngx.say(ngx.var.request_uri .. '\n\n') ngx.say('================ Headers ================') for k, v in pairs(ngx.req.get_headers()) do ngx.say(k .. ': ' .. v...
require("isolater/interface/settingIsolater"); require("games/common2/match/module/matchFinish/matchOverRewardItem"); require("isolater/interface/regionConfigIsolater"); local ViewBase = require("games/common2/module/viewBase"); local MatchOverView = class(ViewBase, false); local h_index = 0; local getIndex = f...
local parser = require "parser" for i in io.lines("compile.csv") do if parser.parse_from_file(i) then print(i .. ",OK") else print(i .. ",NOT") end end
-- liyao -- example script that demonstrates use of setup() to pass -- data to and from the threads local counter = 1 local threads = {} -- 创建线程 function setup(thread) thread:set("id", counter) table.insert(threads, thread) counter = counter + 1 end -- 初始化请求 function init(args) requests = 0 responses...
local permission = { kick = 1, ban = 4 } -- Loading MySQL Class require "resources/essentialmode/lib/MySQL" -- MySQL:open("IP", "databasname", "user", "password") MySQL:open("127.0.0.1", "gta5_gamemode_essential", "root", "1202") -- Adding custom groups called owner, inhereting from superadmin. (It's hi...
Buffer = require't.Buffer' Pack = require't.Pack' b=Buffer( 'ABCDEFGH' ) a=Pack( '>I2', 4) x = a( b ) -- create a result array for i,v in pairs(x) do print( i, v, a[i](b) ) end
local ViewportFrame = require(script.Parent.ViewportFrame) local ObjectRefMap = require(script.Parent.ObjectRefMap) local DEFAULT_IMPLEMENTATION = require(script.Parent.Implementations.worldColor) local Renderer = {} Renderer.__index = Renderer local function onAddedToStack(self, highlight) local objectRef = Object...
-- MODULE CONFIG.LUA -- by Garran Plum -- -- GP Configuration for this individual mod. -- IMPORT GP OBJECT local myMod, GP = ... GP:log("config.lua", GP:version()) -- MY CONFIG Mod Name local modName = "REMIX" -- MY CONFIG Remix local remix = { TOPIARY = { "BUILDING_PART_LUSH_GARDEN_OGIVE_BUSH", ...
require(GetScriptDirectory() .. "/logic") require(GetScriptDirectory() .. "/ability_item_usage_generic") if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then return; end local ability_item_usage_generic = dofile( GetScriptDirectory()....
do local _class_0 local _base_0 = { clone_and_zero = function(self) return Vol(self.sx, self.sy, self.depth, 0) end, clone = function(self) local V = Vol(self.sx, self.sy, self.depth, 0) for i = 1, #self.w do V.w[i] = self.w[i] end return V end, add_from = f...
local Zlog = require "Zlibs.class.Log" local type = require "Zlibs.tool.type" local Timer = require "Zlibs.class.Timer" local api = require "Zlibs.class.api" local obj={} local all={} --默认变量 obj.__tag="Scene" obj.name="default" obj.blackboard=false obj.children=false obj.behavior=false obj.trigger=false obj.runcount=1 ...
test = require 'u-test' common = require 'common' -- Test ensuring legacy RTA calling patters are still functional function SimpleRTALegacy_Handler() print("SimpleRTALegacy_Handler"); -- Test isn't valid on all platforms (i.e. on Win32 we set up a notification service subscription by default so the RTA conne...
local rootElement = getRootElement() --current settings' table, initially default map settings local defaults = { gamespeed = 1, gravity = "0.008", lockTime = false, timeHour = 12, timeMinute = 00, waveheight = 0, weather = 0, metaAuthor = "", metaDescription = "", metaName = "", metaVersion = "1.0.0", min...
-- 0m0.190s local t = {} local insert = table.insert for i = 1, 10000000 do insert(t, i) end -- 0m1.359s local t = {} for i = 1, 10000000 do t[#t+1] = i end -- 0m0.666s local t = {} local insert = table.insert for i = 1, 10000 do insert(t, 1, i) end
local AddonName, AddonTable = ... AddonTable.junk = { 131805, -- Gilded Goblet 139542, -- Strip of Sailcloth 152099, -- Shriveled Onion 152855, -- Exhausted Soulcore 152857, -- Chipped Man'ari Blade 153162, -- Unattuned Portal Stones 154770, -- Cracked Hide Belt 154771, -- Cracked H...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local TASKCONDITIONINFO_PB = require("TaskConditionInfo_pb") local ENUM_PB = require("Enum_pb") module('TaskInfo_pb') TASKINFO = protobuf.Descriptor(); local TASKINFO_ID_FIELD = protobuf.FieldDescriptor(); local TASKINFO_STATUS_FI...
function simBWF.createOpenBox(size,baseThickness,wallThickness,density,inertiaCorrectionFact,static,respondable,color) local parts={} local dim={size[1],size[2],baseThickness} parts[1]=sim.createPureShape(0,16,dim,density*dim[1]*dim[2]*dim[3]) sim.setObjectPosition(parts[1],-1,{0,0,baseThickness*0.5}) ...
local config = { title = "Test Website", baseUrl = "http://example.com/", languageCode = "en", ignoreFiles = {"%.tmp$", "%.psd$"}, ignoreFolders = {"^%."}, processors = {}, -- Defined here below... -- autoLockPages = true, redirections = { ["/blog/original-first/"] = "/blog/fi...
print("Hello") ngx.log(ngx.ERR, "host: just a ERR") ngx.log(ngx.CRIT, "host: just a CRIT") ngx.log(ngx.ALERT, "host: just a ALERT") ngx.say('Hello,world!') ngx.print('some data here') local key = ngx.var.http_user_agent if not key then ngx.log(ngx.ERR, "no user-agent found") return ngx.exit(400) end local red...
-- This script can be used to make a device blink -- It will blink for as many times configured in repeats -- Each on/off period will be as long as configured in delay -- Define your devices and settings here: local blink = "Blink" -- Name of the device that should be controlled local trigger = "Door" -- Name of the D...
object_tangible_component_genetic_engineering_centrifuge_use_mixture = object_tangible_component_genetic_engineering_shared_centrifuge_use_mixture:new { } ObjectTemplates:addTemplate(object_tangible_component_genetic_engineering_centrifuge_use_mixture, "object/tangible/component/genetic_engineering/centrifuge_use_mix...
local module = {} local replicated = game:GetService('ReplicatedStorage') local tweens = game:GetService('TweenService') local blur = game:GetService('Lighting').Blur local tryCore = require(replicated.Common.SetCore) local tween_info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local heade...
Input = require('libs.Input')() Event = require('libs.Event')() Timer = require('libs.Timer')() local Mapper = require('libs.Mapper')() DEBUG = false local scale = 1 local World local Player function love.load(args) love.physics.setMeter(32) World = love.physics.newWorld(0, 0) local function beginContact(a, ...
function start (song) print("YOOOO COOLSONG UPDATE GO BRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR") speedThing = 5; end function update (elapsed) if (gamegorotate == true) then speedThing = speedThing - 0.02; camHudAngle = camHudAngle + speedThing; end local currentBeat = (songPo...
local pos = { x = 0, y = 0 } pos.mt = { __index = { z = 1 }; __newindex = function(t, k, v) print('__newindex', t, k, v) rawset(t, k, v) return t[k] end; } setmetatable(pos, pos.mt); print(pos.x, pos.y, pos.z) pos.z = 2 print(pos.x, pos.y, pos.z) pos.z = 1 print(pos.x, pos.y, pos.z) pos.z = nil print(p...
return { order = 'pftsicmv', kinds = { p = { group = 'neotags_PreProcTag' }, c = { group = 'neotags_ConstantTag' }, t = { group = 'neotags_TypeTag' }, s = { group = 'neotags_StructTag' }, i = { group = 'neotags_InterfaceTag' }, v = { gr...
-- if Ctrl+Ins pressed on '..' and command line is empty and no selected items -- then copy full path of the current folder to clipboard local function not_empty(str) return str~="" and str end Macro { description="Copy current path when pressed on '..'"; area="Shell"; key="CtrlIns"; condition=function() ...
-- Copyright (c) 2020, The Pallene Developers -- Pallene is licensed under the MIT license. -- Please refer to the LICENSE and AUTHORS files for details -- SPDX-License-Identifier: MIT local ir = require "pallene.ir" local typedecl = require "pallene.typedecl" local constant_propagation = {} local function is_consta...
minko.project = {} minko.project.library = function(name) project(name) language "C++" kind "StaticLib" location "." includedirs { minko.sdk.path("/framework/include") } includedirs { minko.sdk.path("/framework/lib/glm") } includedirs { minko.sdk.path("/framework/lib/sparsehash/src") } ...
local ColorTable = LoadModule("Theme.Colors.lua")( LoadModule("Config.Load.lua")("SoundwavesSubTheme","Save/OutFoxPrefs.ini") ) return Def.ActorFrame { -- Page Def.Quad { InitCommand=function(self) self:vertalign(middle):zoomto(SCREEN_WIDTH,SCREEN_HEIGHT*0.85) self:diffuse(ColorTable["serviceBG"]):diffusealph...