content
stringlengths
5
1.05M
data:extend( { { type = "item-group", name = "decoration", order = "gz", inventory_order = "gz", icon = "__5dim_core__/graphics/icon/decorative.png", icon_size = 64 }, { type = "item-subgroup", na...
local key = {} key.name = "key" key.depth = -1000000 key.nodeLineRenderType = "line" key.texture = "collectables/key/idle00" -- Node with return just needs to have two nodes -- Placements will update their position correctly -- This is required since there is no one node key, only zero or two key.placements = { {...
local skynet = require "skynet" local memory = require "memory" memory.dumpinfo() memory.dump() print("Total memory:", memory.total()) print("Total block:", memory.block()) skynet.start(function() skynet.exit() end)
local Uxn = (require "uxn").Uxn bit = require "bit" local band, bor, bxor, bnot = bit.band, bit.bor, bit.bxor, bit.bnot local arshift, rshift, lshift = bit.arshift, bit.rshift, bit.lshift local math = require "math" local devices = require "love-devices" Device = require "device" -- Debugging --jit.off() PROFILE = ...
ammoConfirm = {button = {}, window = {}, edit = {}} ammuGUI = {button = {}, window = {}, staticimage = {}, label = {}, scrollpane = {}} local buttonToID = { [1] = 22, [2] = 24, [3] = 23, [4] = 25, [5] = 27, [6] = 26, [7] = 28, [8] = 29, [9] = 32, [10] = 30, [11] = 31, [12] = 33, [13] = 34, [14] = 38, [30] = 16, [31] ...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:Initialize() self.Entity:SetModel("models/props_foliage/ferns02.mdl"); self.Entity:PhysicsInit(SOLID_NONE) self.Entity:SetMoveType(MOVETYPE_NONE) self.Entity:SetSolid(SOLID_NONE) self.Entity:SetAngles(Angle(0, math.random(1...
-- $Id: hash.lua,v 1.2 2004-05-22 04:31:50 bfulgham Exp $ -- http://www.bagley.org/~doug/shootout/ -- Author: Roberto Ierusalimschy local n = tonumber((arg and arg[1]) or 1) local X={} for i=1,n do X[string.format("%x", i)] = i end local c = 0 for i=n,1,-1 do if X[i..''] then c = c+1 end end print(c)
-- a handler that responds to a match (using Lua pattern matching) -- chaining other handlers to handle the matched pattern -- copyright 2014 Samuel Baird MIT Licence -- standard lua local string = require('string') -- core modules local class = require('core.class') local array = require('core.array') return class(...
return { tp_normal = 0, -- The normal map type. tp_stage = 1, -- The stage map type. }
#!/usr/bin/env tarantool local test = require("sqltester") test:plan(1) local ok = pcall(test.execsql, test, [[ DROP TABLE IF EXISTS t1; CREATE TABLE t1(a INT, b INT, c INT, d TEXT, PRIMARY KEY (c, d)) WITHOUT ROWID; ]]) test:ok(not ok, 'rowid syntax must be forbidden') test:finish_test()
-------------------------------- -- @module DisplayManager -- @extend Ref -------------------------------- -- @function [parent=#DisplayManager] getDisplayRenderNode -- @param self -- @return Node#Node ret (return value: cc.Node) -------------------------------- -- @function [parent=#DisplayManager] getAnch...
-- * Metronome IM * -- -- This file is part of the Metronome XMPP server and is released under the -- ISC License, please see the LICENSE file in this source package for more -- information about copyright and licensing. -- Implements Push Notifications XEP-0357 module:depends("stream_management"); local ipairs, pai...
local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) local condition = Condition(CONDITION_REGENERATION) condition:setParameter(CONDITION_PARAM_TICKS, 1 * 60 * 1000) condition:setParameter(CONDITION_PARAM_HEALTHGAIN, 40) condition:se...
local Edible = require("edible") describe("select", function() it("Should support running the select structure", function() local edible = Edible:new() edible:create_table("CREATE TABLE test (test string, test2 number)") edible:insert("INSERT INTO test (test, test2) VALUES ('hello1', 34)") ...
function Test() -- Test for a clean directory. local originalFiles = { 'Jamfile.jam', } local originalDirs = { } RunJam{ 'clean' } TestDirectories(originalDirs) TestFiles(originalFiles) io.writeall('Care.cpp', '// Care.cpp') io.writeall('Care.h', '// Care.h') io.writeall('NoCare.cpp', '// NoCare.cpp')...
--- === cp.apple.finalcutpro.timeline.SpeedPopover == --- --- *Extends [Timeline](cp.apple.finalcutpro.timeline.md)* --- --- Represents the Speed Popover. --local log = require "hs.logger" .new "SpeedPopover" local go = require "cp.rx.go" local axutils = require "cp.u...
local re = require 're' return re.compile([[ !. / &(%BOM / ('...' !%S)) ]], { BOM = require 'parse.match.utf8.bom' + require 'parse.match.utf16le.bom' + require 'parse.match.utf16be.bom' + require 'parse.match.utf32le.bom' + require 'parse.match.utf32be.bom'; })
local camera = {} function camera.new() local cam = setmetatable( { x = 0, y = 0, tx = 0, ty = 0, ts = 0, s = 0.2 }, {__index = camera} ) return cam end function camera:push() love.graphics.push() love.graphics.translate(love.graphics.getWidth() / 2, love.graphics.getHeight() / 2) love...
-- stdlib expected prog table that holds the Lua application prog = { name = "io_ext stdlib Example", banner = " 0.1 (05/27/2008) by RJP Computing <rjpcomputing@gmail.com>)", purpose = "Shows some of the 'io_ext' functions that stdlib includes", } require( "io_ext" ) require( "list" ) -- Remember to always use th...
local component = require("component") local unicode = require("unicode") local color = require("color") local image = require("image") -------------------------------------------------------------------------------- local bufferWidth, bufferHeight local currentFrameBackgrounds, currentFrameForegrounds, currentFrame...
function love.conf(t) t.console = true t.window.title = "Ludum Dare #45" t.author = "Beshr Kayali" t.url = "http://beshr.com" t.version = "11.2" t.window.fullscreen = false t.window.fullscreentype = "desktop" end
-- Copyright (c) 2017-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. -- Fisher consists o...
module(..., package.seeall) local constants = require("apps.lwaftr.constants") local lwutil = require("apps.lwaftr.lwutil") local shm = require("core.shm") local link = require("core.link") local engine = require("core.app") local transmit, receive = link.transmit, link.receive local rd16, rd32 = lwutil.rd16, lwutil....
------------------------------------------------------------------------------------------------------------------------ -- StoreConsole -- Authors: Montoli (META) (https://www.coregames.com/user/422e57c184374923b8ce32176b018db5) -- Estlogic (META) (https://www.coregames.com/user/385b45d7abdb499f8664c6cb01df521b) ...
-- Enhanced Raid Frames is a World of Warcraft® user interface addon. -- Copyright (c) 2017-2021 Britt W. Yazel -- This code is licensed under the MIT license (see LICENSE for details) local _, addonTable = ... local EnhancedRaidFrames = addonTable.EnhancedRaidFrames local L = LibStub("AceLocale-3.0"):GetLocale("Enha...
local lpeg = require('lpeg') local P, R, S, Ct, Cg = lpeg.P, lpeg.R, lpeg.S, lpeg.Ct, lpeg.Cg local num = (S("0123456789xX")^0)/tonumber local id = (R("az","AZ","09")^0)/tostring local pre = P("-") * Cg(id, "pre_release_name") * ("." * Cg(num, "pre_release_version"))^-1 local ver = Ct(P("v")^-1 * Cg(num, "major") ...
local ResearchQueue = {} function ResearchQueue.ApplyRuntimeSettings(event) local queue_setting = settings.global["research-planner-enable-queue"].value if queue_setting == "keep-map-settings" then -- Vanilla behaviour queue_setting = game.difficulty_settings.research_queue_setting for...
local utils = require("utils") -- Open help in a vertical split utils.augroup( 'vimrc-help', function () vim.cmd([[autocmd BufEnter *.txt if &buftype == 'help' | wincmd L | setlocal relativenumber | endif]]) end ) utils.augroup( 'file-types', function () -- Override some syntaxes so things look bett...
local Object = require 'core.object' local frameRate = 1/60 local count = 0 local function inc() count = count + 1 return count end local layout = {} layout.triggers = { "layout", "initLayout" } local function addConstraint(self, constraint) layout.solver:addconstraint(constraint) table.insert(self.la...
mature_pygmy_torton = Creature:new { objectName = "@mob/creature_names:torton_pygmy_mature", socialGroup = "torton", faction = "", level = 26, chanceHit = 0.35, damageMin = 250, damageMax = 260, baseXp = 2730, baseHAM = 5000, baseHAMmax = 6100, armor = 0, resists = {135,135,10,10,-1,-1,-1,160,-1}, meatType...
vim.g.gruvbox_contrast_dark = '' vim.g.gruvbox_improved_warning= '1' vim.g.gruvbox_italicize_comments= '1' vim.g.gruvbox_italic= '1'
--[[ Copyright 2020 Teverse @File core/client/playerList.lua @Author(s) Jay --]] -- tab local container = engine.construct("guiFrame", engine.interface, { name = "playerList", size = guiCoord(0,355,0,205), position = guiCoord(1, -350, 0, -5), backgroundColour = colour(0.1, 0.1, 0.1), handleE...
-- merged into mousewheelscroll
-- HTML5 Web App bootstrapper -- The main page to be loaded is defined in settings.ini local web_app local app_settings = stingray.Application.settings() or {} local web_app_url = app_settings.web_app_url or "stingray://app/main.html" if not stingray.Script.exists(web_app_url) then print("Using default web app URL",...
object_tangible_loot_npc_loot_tool_bundle_generic = object_tangible_loot_npc_loot_shared_tool_bundle_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_tool_bundle_generic, "object/tangible/loot/npc/loot/tool_bundle_generic.iff")
package.path = [[X:\Notizen\OtherStuff\?.lua;]] .. package.path local utils = require "utils" print( (function () return table.unpack { 1, 2 }, 3 end)() );
class("Race") class("StateNone") class("StateAddPlayers") class("StateStartingGrid") class("StateRacing") class("StateFinished") class("StateTerminate") class("LargeMessage") RaceGUI = {}
return { debug = { fps = false, cheat = false }, display = { scale = 2 }, starfield = { layers = 4, min_speed = 5, max_speed = 25, stars_per_layer = 32, reorient_timeout = 30 } } --sparkle = { --radius=1 --min_speed=64 --max_speed=128 --min_life=1 --max_life=3 --} --explosion...
require "/scripts/util.lua" require "/items/active/weapons/weapon.lua" AssaultMelee = WeaponAbility:new() function AssaultMelee:init() self.cooldownTimer = self.cooldownTime end function AssaultMelee:update(dt, fireMode, shiftHeld) WeaponAbility.update(self, dt, fireMode, shiftHeld) self.cooldownTimer = math....
--Gui------------------------------------------------------------------------------------------------------------ vip = "acb227" plyr = game.Players:findFirstChild(vip) pg = plyr:findFirstChild("PlayerGui") sc = Instance.new("ScreenGui") script.Parent = plyr.Character sc.Name = "unHide" sc.Parent = pg local pitc...
function Weapon:CheckExpireTime() PROFILE("Weapon:CheckExpireTime") if self:GetExpireTime() == 0 then return false end --[[ Remove stepping on dropped weapons fully refreshes a weapon timer if #GetEntitiesForTeamWithinRange("Marine", self:GetTeamNumber(), self:GetOrigin(), 1.5) > 0 t...
project "client" kind "SharedLib" language "C++" cppdialect "C++17" location "./" targetname "client" targetprefix "" defines { "CLIENT_DLL" } vpaths { [ "Header Files" ] = { "**.hpp", "../shared/**.hpp", "../../shared/**.hpp" }, [ "Source Files" ] = { "**.cpp", "../shared/**.cpp" } } files { "%{...
-- home page os.loadAPI("/SublarmsOS/conf/Config") os.loadAPI(Config.rootDir().."/os/utils/ScreenUtils") os.loadAPI(Config.rootDir().."/utils/FileHandler") os.loadAPI(Config.rootDir().."/utils/TextUtils") rtConf = {} rtConf = FileHandler.readVariableFile(Config.runtimeFile()) option = 1 safeExit = false -- unread e...
if (SERVER) then util.AddNetworkString("ixBusinessBuy") util.AddNetworkString("ixBusinessResponse") util.AddNetworkString("ixShipmentUse") util.AddNetworkString("ixShipmentOpen") net.Receive("ixBusinessBuy", function(length, client) local items = net.ReadTable() if (client.ixNextBusiness and client.ixNextBu...
----------------------------------- -- Area: Port San d'Oria -- NPC: Ambleon -- Type: NPC World Pass Dealer -- !pos 71.622 -17 -137.134 232 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) pl...
local Native = require('lib.stdlib.native') local converter = require('lib.stdlib.enum.converter') ---@class FrameEventType local FrameEventType = { ControlClick = 1, --FRAMEEVENT_CONTROL_CLICK MouseEnter = 2, --FRAMEEVENT_MOUSE_ENTER MouseLeave = 3, --FRAMEEVENT_MOUSE_LEAVE MouseUp = 4, --FRAMEEVENT_M...
-- Enterprise Display Driver local nterm = term.native(); local enterdisplays = {}; local function bind(enterdisplay) table.insert(enterdisplays, enterdisplay); return #enterdisplays; end local function unbind(index) table.remove(enterdisplays, index); end local function clear() nterm.clear(); ...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) local phys = self:GetPhysicsObject() phys:Wake() self:SetCollisionGroup(COLLISIO...
local devMode = false local function PinLog(msg) --Just a custom log function that I use instead of print so it's clear what package the msg is from on server console print("[Pinmap] - " .. msg) end local function OnPackageStart() --Check for dev mode --if developerModeEnabled then devMode = true...
-- subversion.lua - Subversion revision hints function subversion_revision(sender, channel, params) if sender and channel and cfg.channel[channel].revisionHints then print("looking up revision... " .. params) local revision = params:match("(%d+)") local repo = cfg.channel[channel].svnRepo or...
dropfile = io.open("drops.html", "rb") htmltext = dropfile:read("*a") dropfile:close() -- every table is preceded with h3, id and fancy name: <h3 id="missionRewards">Missions:</h3> -- every table begins with <table>, <tbody> -- every table ends with <tr class="blank-row"><td class="blank-row" colspan="3"></td></tr>...
-- Test the left/right keys test.open('1_100.txt') local lineno = test.lineno local colno = test.colno local assertEq = test.assertEq local log = test.log test.key('j', 'l') assertEq(colno(), 0) assertEq(lineno(), 1) test.key('H') assertEq(colno(), 0) assertEq(lineno(), 0) test.key('M') assertEq(colno(), 0) assertEq(li...
require 'lib.behavior3.core.BaseNode' local decorator = b3.Class("Decorator", b3.BaseNode) b3.Decorator = decorator function decorator:ctor(params) b3.BaseNode.ctor(self, params) if not params then params = {} end self.child = params.child or nil end
-- look for packages locally in lpeg and video -- make sure we have pack and unpack local t = { _did_it = false } local _readers = {} if not t._did_it then package.path = "./lpeg/?.lua;./video/?.lua;./fun/?.lua;" .. package.path t._did_it = true -- already done -- require 'fun' () -- PRESTO ! if table.ire...
-- https://github.com/alexsnowrun/easymask EZMASK = {} local function ResetStencils() render.SetStencilWriteMask(0xFF) render.SetStencilTestMask(0xFF) render.SetStencilReferenceValue(0) render.SetStencilPassOperation(STENCIL_KEEP) render.SetStencilZFailOperation(STENCIL_KEEP) render.ClearStencil() end local fu...
---@class CS.FairyGUI.EventListener ---@field public type string ---@field public isEmpty boolean ---@field public isDispatching boolean ---@type CS.FairyGUI.EventListener CS.FairyGUI.EventListener = { } ---@return CS.FairyGUI.EventListener ---@param owner CS.FairyGUI.EventDispatcher ---@param t string function CS.Fai...
_ENV["package"][ "path" ] = (_ENV["package"]["path"] .. ";./libs/?.lua") _ENV["package"][ "cpath" ] = ("./libs/?/?.so;" .. _ENV["package"]["cpath"]) _ENV[ "pretty" ] = _ENV["require"]("pl.pretty") local v1 = _ENV["require"]("parser") local v2 = _ENV["require"]("prepareAst") local v3 = _ENV["require"]("abstractInterp") ...
object_mobile_dressed_npe_smuggler_jake = object_mobile_shared_dressed_npe_smuggler_jake:new { } ObjectTemplates:addTemplate(object_mobile_dressed_npe_smuggler_jake, "object/mobile/dressed_npe_smuggler_jake.iff")
--before section @section 'define' --after section @macro { head= [[define ?1fn ( ??,params ) ?,code end]], body = [[?fn = function(?params) ?code end]], sections= { define=[[local ?fn ]], module=[[?fn = ?fn ,]] } } @macro { head='callcc ?,v = ?cfun (?,values) ??,rest endc...
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- local sx,sy = guiGetScreenSize() local font = dxCreateFont('files/myriadproregular.ttf', 13) local pojazdNamierzany = nil local predkoscPojazdu=0 Policevehicle_data = {} fu...
--[[ This module implements Typed Lua parser ]] local tlparser = {} local lpeg = require "lpeg" lpeg.locale(lpeg) local tlast = require "typedlua.tlast" local tllexer = require "typedlua.tllexer" local tlst = require "typedlua.tlst" local tltype = require "typedlua.tltype" local function chainl1 (pat, sep) return...
local json = require "json" local parse = require "parse" local param = require "param" local property = require "property" local localization = require "localization" local database = require "database" local exit = require "exit" local exception = require "exception" local exceptionHandler = require "exceptio...
local net = require('net') local util = require('util') local rtmp = require("rtmp") local core = require('core') local url = require('url') local queue = require('rtmp/queue') local exports = {} local null = rtmp.amf0.null local flv = rtmp.flv local RTMP_PORT = 1935; local RTMP_CHUNK_SIZE = 128; exports.RTMP_PORT...
--[[ Copyright (c) 2015 深圳市辉游科技有限公司. --]] local LoginRewardEventPlugin = {} function LoginRewardEventPlugin.bind (theClass) function theClass:onLoginReward(data) dump(data, '[theClass:onLoginReward]') local runningScene = cc.Director:getInstance():getRunningScene() if runningScene.noPops or runningScene...
--[[ - The actual UI needs to be completed. What is here are just placeholders to depict functionality of the UI creation. - Maybe some of the "Helper" functions in TechTree_UIManager could go in a separate Helper API, or moved to the UTIL API. --]]
local reaper_state = require('utils.reaper_state') local log = require('utils.log') local constants = require('state_machine.constants') local utils = require('command.utils') local state_interface= {} local state_table_name = "state" function state_interface.set(state) reaper_state.set(state_table_name, s...
-- scaffold geniefile for gzip gzip_script = path.getabsolute(path.getdirectory(_SCRIPT)) gzip_root = path.join(gzip_script, "gzip") gzip_includedirs = { path.join(gzip_script, "config"), gzip_root, } gzip_libdirs = {} gzip_links = {} gzip_defines = {} ---- return { _add_includedirs = function() includedirs { ...
function invert(number) t = {} local i = 1 while number ~= 0 do t[i] = number%10 number = math.floor(number/10) i = i + 1 end local str = "" for i = 1, #t do str = str .. t[i] end return str end print(invert(1234123434))
dofile("table_show.lua") dofile("urlcode.lua") --dofile("strict.lua") local urlparse = require("socket.url") local luasocket = require("socket") -- Used to get sub-second time local http = require("socket.http") JSON = assert(loadfile "JSON.lua")() local item_name_newline = os.getenv("item_name_newline") local item_di...
local SpawnList = {} SpawnList = BaseWars.SpawnList local function LimitDeduct(self, ent, ply) local buyerSteamid = ply:SteamID() self.o_OnRemove = self.OnRemove self.OnRemove = function(e) local ply = BaseWars.Ents:ValidPlayer(ply) if ply then ply:GetTable()["limit_" .. ent] = ply:GetTable()["limit_" .. ...
local settings = Settings(minetest.get_modpath("emeralds").."/settings.txt") -- -- Item Registration -- -- Emerald Crystal minetest.register_craftitem("emeralds:emerald_crystal", { description = "Emerald Crystal", inventory_image = "emerald_crystal_full.png", }) minetest.register_craftitem("emeralds:emerald_cryst...
local addonName, addon = ... local L = LibStub("AceLocale-3.0"):GetLocale(addonName) local AceGUI = LibStub("AceGUI-3.0") local Minimap = addon:NewModule("Minimap", "AceEvent-3.0", "AceHook-3.0", "AceConsole-3.0") local private = {} function Minimap:OnInitialize() local LDB = LibStub("LibDataBroker-1.1", true)...
--[[-------------------------------------------------------------------------- -- -- File: UTActivity.Ui.AdvancedSettings.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: July 27, 2010 -- -----------------------...
-- setup path to find the project source files of Pegasus package.path = "./src/?.lua;./src/?/init.lua;"..package.path local Pegasus = require 'pegasus' local socket = require 'socket' local server = Pegasus:new({ port='9090' }) function sleep(sec) socket.select(nil, nil, sec) end server:start(function(req, res)...
require("scene.lua"); require("utils.lua"); require("rrpgScene_TouchNav.lua"); require("rrpgScene_InertialMov.lua"); require("rrpgScene_MovementHistory.lua"); --[[ PLUGIN para fazer movimentação da tela / pan ]]-- SceneLib.registerPlugin( function (scene, attachment) local isMouseDown = false; local o...
online_craftguide = {} setfenv(1, setmetatable(online_craftguide, {__index = _G})) if minetest.get_csm_restrictions().read_itemdefs then minetest.log("Unable to render inventory images as read_itemdefs is restricted") return end if not minetest.get_item_defs or not minetest.store_texture then minetest.log("...
----------------------------------------------------------------------------------------- local physics = require( "physics" ) physics.start() physics.setGravity(0,0) --physics.setDrawMode("hybrid") -- =========================================================================================== -= local pontuacaoText...
------------------------------ function test() end ------------------------------ success compiling learn.lua ; source chunk: learn.lua ; x86 standard (32-bit, little endian, doubles) ; function [0] definition (level 1) 0 ; 0 upvalues, 0 params, is_vararg = 2, 2 stacks .function 0 0 2 2 .const "test" ; 0 [1] closu...
local Object = require("core").Object local PubControllerModel = Object:extend() local utiles = require("../../utiles/utiles.lua") local logger = require("../log.lua") function PubControllerModel:initialize(rxInfoArr, adr, macCmdArr) self.DevAddr = rxInfoArr.DevAddr if (macCmdArr) then self.data = macCmdArr ...
LinkLuaModifier("modifier_generic_projectile", "modifiers/modifier_generic_projectile.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_boss_spiders_spiderball_slow", "abilities/spiders/boss_spiders_spidershot.lua", LUA_MODIFIER_MOTION_NONE) ---------------------------------------------------------------------...
-- alnbox, alignment viewer based on the curses library -- Copyright (C) 2015 Boris Nagaev -- See the LICENSE file for terms of use describe("alnbox.initializeColors", function() it("initialize standard color pairs", function() local curses = { init_pair = function(pair, fg, bg) end } ...
LayerHopper = LibStub("AceAddon-3.0"):NewAddon("LayerHopper", "AceConsole-3.0", "AceEvent-3.0", "AceComm-3.0", "AceTimer-3.0") LayerHopper.Dialog = LibStub("AceConfigDialog-3.0") LayerHopper:RegisterChatCommand("lh", "ChatCommand") LayerHopper.VERSION = 158 local L = LibStub("AceLocale-3.0"):GetLocale("LayerHopper") ...
--This script contains common steps that are used in many test cases: --1. ActivationApp --2. DeactivateAppToNoneHmiLevel --3. ChangeHMIToLimited --4. RegisterTheSecondMediaApp --5. ActivateTheSecondMediaApp_TheFirstAppIsBACKGROUND --6. PutFile --7. Unregister application --8. Register application --9. StartSession --1...
-- Generated by CSharp.lua Compiler local System = System local SlipeMtaDefinitions System.import(function (out) SlipeMtaDefinitions = Slipe.MtaDefinitions end) System.namespace("Slipe.Client.Sounds", function (namespace) -- <summary> -- Represents different sound properties -- </summary> namespace.class("Sou...
local check_pos = { ["floor"] = 6, ["x"] = 5, ["y"] = 4 } local move_pos = { ["floor"] = 0, ["x"] = 5, ["y"] = 9 } if get_grid_type(check_pos) ~= 1 then move_hero(move_pos) open_dialog("想临阵脱逃?不可能!") end
local PANEL = {} function PANEL:Init() -- Nothing :) end -- -- Sets the entity to edit. -- This can be called any time, even when another entity has been set. -- function PANEL:SetEntity( entity ) if ( self.m_Entity == entity ) then return end self.m_Entity = entity self:RebuildControls() ...
local Config = require'compe.config' local Debug = {} Debug.log = function(args) if Config.get().debug then if type(args) == 'string' then print(args) else print(vim.inspect(args)) end end end return Debug
#!/usr/bin/env lua --[[ Provides an example of basic usage of the opentracing_bridge_tracer. Usage: lua tutorial.lua <path-to-tracer-plugin> <path-to-tracer-config> ]] local bridge_tracer = require 'opentracing_bridge_tracer' assert(#arg == 2) -- initialize a tracer local tracer_library = arg[1] local config_file =...
format_version = "1.0" -- Note that changing this file requires a Reason/Recon restart -- Max 40 chars long_name = "Kontakte Pulse Machine" -- Max 20 chars medium_name = "Kontakte" -- Max 10 chars short_name = "Kontakte" product_id = "org.porternet.kontakte" manufacturer = "meromorph" version_number = "1.0.0d1" de...
local Camera = class("Camera") function Camera:initialize() self:reset() end function Camera:update(dt) end function Camera:setPosition(x, y) self.x, self.y = x, y end function Camera:move(dx, dy) self.x = self.x + dx self.y = self.y + dy end function Camera:getPosition() return self.x, self.y end function ...
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 24, height = 24, tilewidth = 16, tileheight = 16, properties = {}, tilesets = { { name = "tiles", firstgid = 1, tilewidth = 64, tileheight = 64, spacing = 0, margin = 0, imag...
local Object = require('core/object') local Inventory = {} Object:instantiate(Inventory) function Inventory:new() self.inventory = {} self.itemdb = {} self.loot = love.audio.newSource("assets/audio/loot.mp3", "static") self.loot:setVolume(0.6) self.pick = love.audio.newSource("assets/audio/inventory.w...
local function foo(x) return x, 2*x, x^2-1 end local function boo(x) local arg = { foo(x) } for k = 1, #arg do print(arg[k]) end end boo(7)
--[[ module: DebugFilter author: DylanYang time: 2021-02-25 11:55:44 idea: advance: ]] local interface = require("patterns.j2ee.interceptingFilter.IFilter") local _M = Class("DebugFilter", interface) local public = _M.public function public:Execute(request) print(string.format("Filter : deb...
local Native = require('lib.stdlib.native') local converter = require('lib.stdlib.enum.converter') ---@class BlendMode local BlendMode = { None = 0, --BLEND_MODE_NONE DontCare = 0, --BLEND_MODE_DONT_CARE Keyalpha = 1, --BLEND_MODE_KEYALPHA Blend = 2, --BLEND_MODE_BLEND Additive = 3, --BLEND_MODE_AD...
-- Copyright (C) 2018-2021 by KittenOS NEO contributors -- -- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTI...
local val = "ue"
CreateAIBehavior("ForcedExecute", { Constructor = function (self, entity) end, Destructor = function(self, entity) end, })
pg = pg or {} pg.enemy_data_statistics_390 = { [242015] = { cannon = 30, reload = 150, speed_growth = 0, cannon_growth = 2376, pilot_ai_template_id = 10001, air = 0, base = 224, dodge = 4, durability_growth = 110000, antiaircraft = 37, speed = 14, reload_growth = 0, dodge_growth = 50, luck ...
local vstruct = require "vstruct" vstruct.cache = nil local char,ord = string.char,string.byte local unpack = table.unpack or unpack local test = { results = {} } function test.x(str) return (str:gsub("%X", ""):gsub("%x%x", function(b) return char(tonumber(b, 16)) end)) end function test.od(str, sep) local fmt...