content
stringlengths
5
1.05M
local device_map = require "specification/device_map" local devices = {} local tot_gpio = 0 for i,v in ipairs(device_map) do for n=1,v.count do local dev = { name = v.name, gpio = v.gpio, } if v.count > 1 then dev.index = n dev.name = dev.name .. (" (%d)"):format(n) end d...
print('core.contents.list.changeUserPubkey'); local ContMe = ContentsMe; ChangeUserPubkey = class(ContMe); local auObjs = {}; -- Change User Public Key Objects ChangeUserPubkey._myContentsObj = {}; local _myContentsObj = ChangeUserPubkey._myContentsObj; ChangeUserPubkey._myContentsName = 'changeUserPu...
local nn = require 'nn' require 'cunn' require 'rnn' local function createModel(opt) local function create_brnn(inputDim, hiddenDim, batchFirst) forwardModule1 = nn.SeqLSTM(inputDim, hiddenDim) backwardModule1 = nn.SeqLSTM(inputDim, hiddenDim) forwardModule2 = nn.SeqLSTM(hiddenDim, hiddenDim) backwar...
object_static_structure_general_cave_stalactite_snow_style_06 = object_static_structure_general_shared_cave_stalactite_snow_style_06:new { } ObjectTemplates:addTemplate(object_static_structure_general_cave_stalactite_snow_style_06, "object/static/structure/general/cave_stalactite_snow_style_06.iff")
--[[ Name: "sh_book_ha.lua". Product: "HL2 RP". --]] local ITEM = {}; -- Set some information. ITEM.base = "book_base"; ITEM.name = "Headcrab Anatomy"; ITEM.cost = 5; ITEM.model = "models/props_lab/binderredlabel.mdl"; ITEM.uniqueID = "book_ha"; ITEM.business = true; ITEM.description = "A book with numerous headcrabs...
-- ------------------------------------------------------------------------------------------ -- ITEMS local ip_item = table.deepcopy(data.raw['item']['big-electric-pole']) ip_item.name = 'infinity-electric-pole' ip_item.icons = {apply_infinity_tint{icon=ip_item.icon, icon_size=ip_item.icon_size, icon_mipmaps=ip_item....
return require('lexers.lexer')
-- Author: Coronhaus local Players = game:GetService('Players') local UIS = game:GetService('UserInputService') local ReplicatedStorage = game:GetService('ReplicatedStorage') local LocalPlayer = Players.LocalPlayer local Character = LocalPlayer.Character LocalPlayer.CharacterAdded:connect(function(c) Character = c e...
--大回合开始前 function afterAllEnter(target, buff) if GetFightData().fight_id == 10102004 and GetFightData().round == 1 and target.side == 2 then AddBattleDialog(1010200401) end end
-- -------------------------------------------------------------------------------------- -- -- this script handles control of Viper bot -- -- -- . Think() - Called every frame. Completely takes over bots. -- -- -- . currently ticks planner's root node. ...
local class = require "utils.class" local default_formula = require "utils.PropertyFormula" local M = class() local warp_meta = { __index = function(t, k) return t.P:Get(k) end, __newindex = function(t, k, v) return t.P:Set(k,v) end, } function M:_init_(values) self.values = values or {} sel...
require "resources/mysql-async/lib/MySQL" require "resources/mysql-async/lib/EssentialModeApi"
local uhudBasePath = "uHUD/" dofile(uhudBasePath .. "middleclass.lua") dofile(uhudBasePath .. "utils.lua") dofile(uhudBasePath .. "widget.lua") dofile(uhudBasePath .. "label.lua") dofile(uhudBasePath .. "horizontalbar.lua") dofile(uhudBasePath .. "notification.lua") dofile(uhudBasePath .. "hud.lua")
-- local function data(file, tag, names, stripFunc, postFunc) local parser = require "otherData.featParser" local names = { "Enduring Soul", "Staying Power", "Shrug Off", "Awareness", "Resilience", "Not Yet!", "Vim and Vigor" } local m = string.match local function strip(parser, str) -- local firstFeat = par...
local PLUGIN = PLUGIN PLUGIN.name = "Custom Items" PLUGIN.author = "Gary Tate" PLUGIN.description = "Enables staff members to create custom items." PLUGIN.readme = [[ Enables staff members to create custom items. Support for this plugin can be found here: https://discord.gg/mntpDMU ]] ix.command.Add("CreateCustomIt...
serverIp = 'www.breadboard.com.cn'--'192.168.0.5'-- serverPort = 1883 mac = string.gsub(wifi.sta.getmac(), ":", "") reconnectInterval = 5000 --local regReqTopic = "/regReq" local fsValTopic = "/breathMon:"..mac local fsOnlineTopic = "/devOnlineMonitor:"..mac local fsValStr = "" print(fsValTopic) local mqttInst = nil lo...
function love.load() -- inicia o programa arenaWidth = 800 arenaHeight = 600 -- nave shipRadius = 30 -- bullets bulletRadius = 5 -- asteroids asteroids = { { x = 100, y = 100, }, { x = arenaWidth - 100, y = 10...
-- Code By Officer Pringle -- Sprites and Idea by Officer Storm -- -- -- [ 3 Phases ] -- -- -- -- -- -- AddCSLuaFile() local A = "AMBER" local R = "RED" local DR = "D_RED" local B = "BLUE" local W = "WHITE" local CW = "C_WHITE" local SW = "S_WHITE" local G = "GREEN" local RB = "BLUE/RED" local name = "NYSP 15 Charge...
local utils = require('utils') utils.run('syntax on') utils.run('filetype on') utils.run('filetype plugin on') utils.run('filetype indent on') utils.opt('autoindent', true) -- C语言格式缩进 -- utils.opt('mouse', 'a') -- 开启鼠标功能 utils.opt('shortmess', 'sI') utils.opt('hidden', true) ...
--------------------------------------------------------------- -- Button.lua: Secure action button management --------------------------------------------------------------- -- Creates all secure action buttons used by the addon. -- These buttons are also used to bind UI widgets, since -- direct 'clicking' causes tai...
Effect.new("bloom", { vars = { samples=5, quality=1 }, integers = { 'samples' }, effect = [[ vec4 source = Texel(texture, texture_coords); vec4 sum = vec4(0); number diff = (samples - 1) / 2; vec2 sizeFactor = vec2(1) / love_ScreenSize.xy * quality; for (number x = -diff; x <= diff; x++) { ...
windowPlrCnt = guiCreateWindow(389, 237, 482, 370, "AUR Player Count", false) guiWindowSetMovable(windowPlrCnt, false) guiSetAlpha(windowPlrCnt, 1.00) image1 = guiCreateStaticImage(87, 24, 287, 104, ":AURplayercount/aur.png", false, windowPlrCnt) gridList = guiCreateGridList(10, 138, 462, 184, false, windowPlrCnt) gui...
--[[ © 2018 Thriving Ventures AB do not share, re-distribute or modify without permission of its author (gustaf@thrivingventures.com). ]] --- ## Shared -- Player manipulation. -- @module serverguard.player serverguard.player = serverguard.player or {} --- Sets a player's rank. -- @player player The player to set th...
local CATEGORY_EX_ICES = { "codex", "murex", "silex", "vertex", "index" } local CATEGORY_IX_ICES = { "matrix", "radix", "helix" } local CATEGORY_UM_A = { "baterium", "agendum", "desideratum", "erratum", "stratum", "datum", "ovum", "extremum", "candelabrum" } local CATEGORY_US_I = { "alumnus", "alveolus", "...
-- doom_userplugins - Doom nvim custom plugins -- -- All the available fields can be found here: -- https://github.com/wbthomason/packer.nvim#specifying-plugins -- -- By example, for including a plugin with a dependency on telescope: -- M.plugins { -- { -- 'user/repository', -- requires = { 'nvim-lua/telescop...
local NotificationBindable = Instance.new("BindableFunction") NotificationBindable.OnInvoke = callback -- game.StarterGui:SetCore("SendNotification", { Title = "Dynamic Client"; Text = "FreeCam Activated, Use = to turn on/off."; Icon = "rbxassetid://257124016"; Duration = 3; Callback = NotificationBindable; }) fu...
object_mobile_dressed_restuss_captain_roth = object_mobile_shared_dressed_restuss_captain_roth:new { } ObjectTemplates:addTemplate(object_mobile_dressed_restuss_captain_roth, "object/mobile/dressed_restuss_captain_roth.iff")
MediaPlayer.Cvars = {} MediaPlayer.Cvars.Debug = CreateConVar( "mediaplayer_debug", 0, FCVAR_DONTRECORD, "Enables media player debug mode; logs a bunch of actions into the console." ) MediaPlayer.DEBUG = MediaPlayer.Cvars.Debug:GetBool() cvars.AddChangeCallback( "mediaplayer_debug", function(name, old, new) MediaPlay...
-- @description Marker Track Wildcards -- @author Aaron Cendan -- @version 1.0 -- @metapackage -- @provides -- [main] . -- @link https://ko-fi.com/acendan_ -- @about -- # To use this script, simply name your markers with an @ symbol at the start, followed by a number, then shift+alt+click on the ruler near a marker...
include('particletrace.lua') AddCSLuaFile( "particletrace.lua" ) local sndAttackLoop = Sound("fire_large") local sndSprayLoop = Sound("ambient.steam01") local sndAttackStop = Sound("ambient/_period.wav") local sndIgnite = Sound("PropaneTank.Burst") if (SERVER) then AddCSLuaFile( "shared.lua" ) SWEP.Weig...
local skynet = require "skynet" local log = require "log" local api = require "api" local sys = require "sys" local http = require "utils.http" local uri = "http://localhost:9100/metrics" local svc = "nodeexporter" local cmd_desc = { post_attr = "Post attributes", } local function reg_cmd() for k, v in pairs...
-- A more macho version of simple_cows.py, in which cows aren't -- spheres, they're cow-shaped polyhedral models. -- We'll need an extra function that knows how to read Wavefront .OBJ -- files. stone = gr.material({0.8, 0.7, 0.7}, {0.0, 0.0, 0.0}, 0) grass = gr.material({0.1, 0.7, 0.1}, {0.0, 0.0, 0.0}, 0) hide = gr...
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- display.setStatusBar( display.HiddenStatusBar ) local mte = require('mte').createMTE() --Load and instantiate MTE....
sv_test_port = "7777" sv_login_port = "7171" sv_info_port = "7171" sv_game_port = "7172"
local clock = require("clock") local fiber = require("fiber") local fio = require("fio") local log = require("log") local io = require("io") price_cfg = { products = { basic = { name = "PROD_BASIC", price = 0, min_users = 1, max_users = 1000, max_diagrams = 1000000, max_spaces = 10000, period_m...
local rpc = require 'vuci.rpc' local ucis = require 'ucis' local uci = require 'uci' local M = { ERROR_ENTRY_EXISTS = "Such entry in firewall already exists!" } M.delete = function(sid) local params = {} params.section = sid params.config = 'firewall' ucis.delete(params) end M.delete_rule = function(params...
frozenWhiteList = { [ 3 ] = true, [ 4 ] = true, [ 5 ] = true, [ 6 ] = true } function disableControls( args ) if ( not frozenWhiteList[ args.input ] ) then return false end end Network:Subscribe( "freeze.setStatus", function( state ) if ( not state and freezeEvent ) then Events:Un...
local quadtree = require "map.quadtree" local aoi = {} local object = {} local qtree local radius function aoi.init (bbox, r) qtree = quadtree.new (bbox.left, bbox.top, bbox.right, bbox.bottom) radius = r end function aoi.insert (id, pos) if object[id] then return end local tree = qtree:insert (id, pos.x, pos...
--[[ Darkshore -- Rabid Thistle Bear.lua This script was written and is protected by the GPL v2. This script was released by MikeBeck of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- MikeBec...
-- LuaJack example: selectpingpong.lua -- -- Shows the use of ringbuffers with select() in client threads. jack = require("luajack") jack.verbose("on") THREAD = [[ selectable = require("luajack.selectable") socket = require("socket") rbuf_in, rbuf_out = table.unpack(arg) -- create the 'selectable' object: r = sel...
miise = { feature_types = {}, registered_features = {}, } -- Feature Type Definition = { -- label = "String", -- symmetrical = false, -- range = { -- min = {x = 0, y = 0}, -- max = {x = 4, y = 4}, -- }, -- default = {x = 2, y = 2}, -- } miise.register_feature_type = function...
--local json = require 'dkjson' local DataSetCOCO,parent = torch.class('nnf.DataSetCOCO', 'nnf.DataSetDetection') function DataSetCOCO:__init(annFile) self.image_set = nil self.dataset_name = 'COCO' local timer = torch.Timer() local localtimer = torch.Timer() print('Preparing COCO dataset...') --[[ if ...
--[[ Filename: BaseMemoryAnalyzer.lua Written by: dbanks Description: Base class for a widget that displays data about memory usage. --]] --[[ Globals ]]-- local RowHeight = 20 local ValueWidthInPix = 100 local StdRowColor3 = Color3.new(0.25, 0.75, 0.75) local AltRowColor3 = Color3.new(0.25, 0.25, 0.75) local R...
Locales['es'] = { ['have_withdrawn'] = 'Has sacado ~y~x%s~s~ ~b~%s~s~', ['have_deposited'] = 'Has depositado ~y~x%s~s~ ~b~%s~s~', ['free_prop'] = 'Propiedad libre', ['property'] = 'Propiedad', ['enter'] = 'Entrar', ['move_out'] = 'Mudarse de propiedad', ['move_out_sold'] = 'Vender propiedad por <span styl...
-- -- vs2010_vcxproj.lua -- Generate a Visual Studio 201x C/C++ project. -- Copyright (c) 2009-2013 Jason Perkins and the Premake project -- premake.vstudio.vc2010 = {} local vc2010 = premake.vstudio.vc2010 local vstudio = premake.vstudio local project = premake.project local config = premake.config local filec...
local AltPrinter = function() local write = function(...) print(...) end return { write = write } end return AltPrinter
-- Initialize the pseudo random number generator math.randomseed(os.time()) math.random(); math.random(); math.random() -- Generate a random UUID function uuid() local seed={'e','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'} local tb={} for i=1,32 do table.insert(tb,seed[math.random(1,16)]) ...
class "SettingsMenu" { new = function (self) self.position = 0 self.x = 0.75 self.y = 0 self.width = 0.25 self.height = 1.0 self.openAndCloseSpeed = 1.0 self.childrenTransform = love.math.newTransform() self.isOpening = false self.isOpened = false self.isClosing = false self.currentPage ...
-- lib/server/players.lua -- functions for handling player data function BSU.RegisterPlayer(steamid, groupid) BSU.SQLInsert(BSU.SQL_PLAYERS, { steamid = BSU.ID64(steamid), groupid = groupid } ) end -- gets the data of all players in a group function BSU.GetPlayerDataByGroup(groupid) return B...
local system = require "system" local tcp = require "tcp" local http_status_msg = { [100] = "Continue", [101] = "Switching Protocols", [200] = "OK", [201] = "Created", [202] = "Accepted", [203] = "Non-Authoritative Information", [204] = "No Content", [205] = "Reset Content", [206] = "Partial Content", [30...
-- KEYS[1] = Counter key -- ARGS[1] = Expected value -- ARGS[2] = New value local currentValue = redis.call("GET", KEYS[1]) if currentValue == ARGV[1] then redis.call("SET", KEYS[1], ARGV[2]) return "t" else return "f" end
local parser = require 'parser' local core = require 'core' local buildVM = require 'vm' rawset(_G, 'TEST', true) function TEST(script) return function (expect) local pos = script:find('$', 1, true) local new_script = script:gsub('%$', '') local ast = parser:parse(new_script, 'lua', 'Lua 5...
local iptools = require ("iptools") -- local inspect = require('inspect') local mmdb = iptools.new_geoipdb() mmdb:load_asn_db("../curieproxy/config/maxmind/GeoLite2-ASN.mmdb") mmdb:load_city_db("../curieproxy/config/maxmind/GeoLite2-City.mmdb") mmdb:load_country_db("../curieproxy/config/maxmind/GeoLite2-Country.mmdb"...
require('level') local function giant_stat_gain_fn(creature_id, level) local is_pl = is_player(creature_id) if level % 7 == 0 then incr_str(creature_id, is_pl) end end local giant_race_stat_fn = giant_stat_gain_fn level.set_race_stat_gain_level_fn("09_giant", giant_race_stat_fn)
--[[ from Spring Wiki and source code, info about CollisionVolumeData Spring.GetUnitCollisionVolumeData ( number unitID ) -> number scaleX, number scaleY, number scaleZ, number offsetX, number offsetY, number offsetZ, number volumeType, number testType, number primaryAxis, boolean disabled Spring.SetUnitCollis...
local Vector3 = GLOBAL.Vector3 local containers = require("containers") local params = containers.params params.glassiccutter = { widget = { slotpos = { Vector3(-2, 25, 0), }, animbank = "ui_alterguardianhat_1x1", animbuild = "ui_alterguardianhat_1x1", pos = ...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may...
function simon(n) ui.removeTextArea(70, ROUND.chair[n].owner) if ROUND.gameMode.hell and ROUND.accumulated then ROUND.accumulated = nil addBlockPoint(ROUND.chair[n].owner) end local player = ROUND.chair[n].owner local img = tfm.exec.addImage(IMG.skin[ROUND.portal.side].misc.discoverWild, "!1000", ROUND.chair[n...
local super = require 'enemies/ai/rocketeer' local EdisonRocketeer = class("EdisonRocketeer", super) -- subclass seeker function EdisonRocketeer:initialize(entity) super.initialize(self, entity) self.reload_time = 2.0 self.next_spawn = game_time+6 self.next_fireball = game_time + 3 self.nextshot_time = 0 ...
local ImageSet = script.Parent local IconSize = require(ImageSet.Enum.IconSize) local getIconSize = require(ImageSet.getIconSize) return function(iconSizeEnum) assert(IconSize.isEnumValue(iconSizeEnum)) local size = getIconSize(iconSizeEnum) return UDim2.fromOffset(size, size) end
-- Copyright 2020 Dhiraj Wishal -- SPDX-License-Identifier: Apache-2.0 ---------- XAudio2 Tests project description ---------- project "XAudio2Tests" kind "ConsoleApp" cppdialect "C++17" language "C++" staticruntime "On" systemversion "latest" targetdir "$(SolutionDir)Builds/Tests/Binaries/$(Configuration)-$(P...
--[[ Contains tile data and necessary code for rendering a tile map to the screen. ]] require 'Util' require 'Flag' Map = Class{} TILE_BRICK = 1 TILE_EMPTY = -1 -- cloud tiles CLOUD_LEFT = 6 CLOUD_RIGHT = 7 -- bush tiles BUSH_LEFT = 2 BUSH_RIGHT = 3 -- mushroom tiles MUSHROOM_TOP = 10 MUSHROOM_BOTTOM = 11...
-- Bloxx you, my FastSpawn(tm) is FasterSpawn than your spawn -- DataBrain, 2019 local FastestSpawn = Instance.new("BindableEvent") FastestSpawn.Event:Connect(function(callback, argsPointer) callback(argsPointer()) end) local function createPointer(...) local args = { ... } return function() return unpack(args) ...
-------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. -- For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- -- -- ----------...
local lib = {} -- declare unit strings local signal_ids = { ['00:00'] = "LOW", ['00:01'] = "LOW>", ['20:00'] = "L_W", ['3F:3E'] = "HIGH<", ['3F:3F'] = "HIGH" } local f_run_frames = ProtoField.string("ess.run.frames", "[Frames]") local f_run_frame_B1 = ProtoField.uint8("ess.run.frame.B1", "B1", ba...
require('Comment').setup()
local calculation local copyTable = function (tab) local ret = {} for key, value in pairs(tab) do if (type(value) == "table") then ret[key] = table.copy(value) else ret[key] = value end end return ret end -- GUI variables local GUIInfo local GUIs = {} local resetCopyTextTimer addEven...
-- Constructor tests T.Fail(function() AttrConfig.new(42) end , "expects a string for its first argument") T.Pass(AttrConfig.new() , "can pass no value") T.Pass(AttrConfig.new("Foobar") , "can pass string") T.Pass(typeof(AttrConfig.new("Foobar"))...
local force = {} local fall = {} local alcohol = {} function randomChance(percent) assert(percent >= 0 and percent <= 100) return percent >= math.random(1, 100) end function getElementSpeed(theElement, unit) assert(isElement(theElement), "Bad argument 1 @ getElementSpeed (element expected, got " .. type(theE...
-- Simple script that makes the root visible or invisible when the global menu changes, only used on ChargeUpBar local ROOT = script:GetCustomProperty("Root"):WaitForObject() local wasVisible = true function Tick() if not _G.MENU_TABLE then return end local isVisible = (_G.CurrentMenu == _G.MENU_TABLE["NONE"...
local v,s,t,f = require("Vec2"),require("Size"),true,false return {"Array",{"Phyx.Rect","rect","Dynamic",v(0,0),0,v(0,-15),s(360,150),1,0.4,0.4,0,0,f,v(0,-10),f,f,0,{"Array",{"Phyx.SubRect",v(0,75),0,s(301,28),1,0.4,0.4,f,0}},"Model/duality.clip|d3",v(0,0)}}
local Class = require 'lib.hump.class' local Event = getClass 'wyx.event.Event' -- EntityDeathEvent -- local EntityDeathEvent = Class{name='EntityDeathEvent', inherits=Event, function(self, entityID, reason) if type(entityID) ~= 'string' then entityID = entityID:getID() end verify('string', entityID, reason) a...
local AddonName, Addon = ... local CheckButton = Addon:CreateClass('CheckButton') do local nextName = Addon:CreateNameGenerator('CheckButton') function CheckButton:New(options) local template if options.small then template = 'InterfaceOptionsSmallCheckButtonTemplate' else template = 'InterfaceOptionsChe...
-- Enable rainbow when entering buffer vim.cmd([[ autocmd BufEnter * :silent RainbowToggleOn ]])
local Promise = require(script.Parent.Parent.Parent.Promise) local TimeFunctions = require(script.Parent.Parent.Utility.TimeFunctions) local function PromiseChildOfClass(Parent: Instance, ClassName: string, Timeout: number?) return Promise.new(function(Resolve, Reject, OnCancel) local Child = Parent:FindFirstChildO...
require "stdlib/event/event" require "util/surface" Event.register(defines.events.on_player_dropped_item, function(e) local dropped_item = e.entity.stack.name if "stone-shovel" ~= dropped_item then return end local player = game.players[e.player_index] local position = {e.entity.position.x, e.entity.position.y} ...
-- Mock out globals local test = require "integration_test" local t_utils = require "integration_test.utils" local zigbee_test_utils = require "integration_test.zigbee_test_utils" local clusters = require "st.zigbee.zcl.clusters" local capabilities = require "st.capabilities" local json = require "dkjson" local Power...
TextBooks = {} local function onGameEditText(id, itemId, maxLength, text, writter, time) local textWindow = g_ui.createWidget('TextWindow', rootWidget) local writeable = (maxLength ~= #text) and maxLength > 0 local textItem = textWindow:getChildById('textItem') local description = textWindow:getChildById('des...
<div class="sharpness{% if wide then print( " wide" ) end %}">{% for i, sharp in ipairs( weapon.sharpness ) do printf( [[<div class="sharp%d" style="width: %dpx">&nbsp;</div>]], i, wide and sharp * 2 * SharpWidth or sharp * SharpWidth ) end if weapon.sharpnessp then print( [[<div class="p">]] ) for i, sharp...
object_tangible_furniture_flooring_metal_frn_flooring_metal_s03 = object_tangible_furniture_flooring_metal_shared_frn_flooring_metal_s03:new { } ObjectTemplates:addTemplate(object_tangible_furniture_flooring_metal_frn_flooring_metal_s03, "object/tangible/furniture/flooring/metal/frn_flooring_metal_s03.iff")
-- Booatable eLua image build configuration return { cpu = 'BONFIRE_ARTY_10', components = { sercon = { uart = 0, speed = 500000, buf_size=4096 }, romfs = false, shell = {advanced=true}, term = { lines = 25, cols = 80 }, xmodem= true, linenoise = { shell_lines=20, lua_lines=20 }, cints...
local class = require('src.Utils.MiddleClass'); local Logger = require('src.Utils.Logger'); local BranchNode = require('src.BranchNode'); local State = require('src.State'); local Transition = require('src.Transition'); local NodeRegistry = require('src.NodeRegistry'); --- The StateMachine is a composite node allowed...
local defs = { names = { gui = {} }, dicts = {}, pathes = {}, } defs.DEVELOPER_MODE = true defs.constants = { setting_frame_max_height = 700, trains_per_tick = 15, timeout_offset = 2, button_inner_width = {50, 200, 50}, button_outer_width = 325, id_label_width = 100, textbox_width = 80, } d...
fx_version 'cerulean' games { 'gta5' } description 'NPC-Fuel-Stations' version '1.0.0' --resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' client_script "@npc-scripts/client/errorlog.lua" ui_page 'html/ui.html' files { 'html/*', } client_script 'client/client.lua'
--[[ Copyright (c) 2014-2017 Chukong Technologies Inc. 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, modify, merge, pu...
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
-- A example "Hello world" Lua script print ("Hello world!")
local QuestLogMixin = {} local version, build, date, tocversion = GetBuildInfo() local isShadowlands = tonumber(build) > 35700 function QuestLogMixin:GetName() return "QuestLog" end function QuestLogMixin:Init() hooksecurefunc("QuestInfo_Display", function(...) self:OnQuestInfoDisplay(...) end) end function Quest...
local xx = 450; local yy = 385; local xx2 = 750; local xx3 = 0; local yy2 = 550; local ofs = 50; local ofs2 = 15; local drain = 1; local followchars = true; local allowCountdown = false function onStartCountdown() if not allowCountdown and isStoryMode and not seenCutscene then --Block the first countdown ...
product="CBSD" myversion="10.1.5a" if not workdir then print ( "no workdir" ) os.exit(1) end distdir="/usr/local/cbsd" subr= workdir .. "/nc.lua" nodenamefile= workdir .. "/nodename" settingstui= workdir .. "/settings-tui.subr" dialog= workdir .. "/dialog.subr" tools= workdir .. "/tools.subr" mdtools= workdir .. "/...
object_draft_schematic_furniture_furniture_guild_screen_cartridge_imp_1 = object_draft_schematic_furniture_shared_furniture_guild_screen_cartridge_imp_1:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_guild_screen_cartridge_imp_1, "object/draft_schematic/furniture/furniture_guild_screen...
setenv("foo","bar")
local utils = require('./utils') --todo wrap up so censor_table can be modified and saved/loaded local censor_table = { ['Language'] = { -- 'java', }, ['Bad'] = { 'assrape', '^rape', 'faggot', 'nigger', '^fag', 'fag$', }, ['Insults'] = { 'tard[^%s]*', 'assh[^%s]*', 'douche[^%s]+', }, ['Rude...
Util = require("util") Loop = require("loop") Camera = require("camera") UI = require("ui") World = require("world/world") --TODO implement a global maximum particle value WINDOW_WIDTH = 960 WINDOW_HEIGHT = 700 GAME_WIDTH = 480 GAME_HEIGHT = 350 local steps = 0 local initial = love.timer.getTime() function lov...
--[[ Copyright 2021 Todd Austin Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
-- Copyright 2004-present Facebook. All Rights Reserved. local server function luaunit:teardown() if server then server:destroy() end end function luaunit:testLuasocketServer() local SOCKET_SUCCESS = 1 local err, ret, client -- Create server, err = luasocket.create('localhost', 30118) self:assertN...
-- scheme: -- by: return { {88, 110, 117}, {}, -- secondary {253, 246, 227}, {88, 110, 227, 253, 246, 227}, {88, 110, 117}, {}, -- alt-cursor {}, -- highlight {}, -- label {}, -- warning {}, -- error {}, -- alert {}, -- reference {}, -- inactive {}, -- ui {0, 43, 54}, {220, 50, 47}, {133, 153, 0}, {181, 137, 0}, {38,...
return { { effect_list = { { type = "BattleBuffAddAttrRatio", trigger = { "onAttach" }, arg_list = { attr = "dodgeRate", number = 450 } }, { type = "BattleBuffAddAttr", trigger = { "onAttach" }, arg_list = { attr = "injureRatio", number = -0....
--[[ Per-Player Dictionary - Instance v1.0 by: standardcombo This script's job is only to check the local player and hooks up to the Per-player dictionary system if the local player is its owner. The template spawned with this script is responsible for transporting the networked data with its custom properti...
-- Server Objects includeFile("custom_content/building/restuss/restuss_faction_cantina.lua") includeFile("custom_content/building/restuss/restuss_guild_combat.lua") includeFile("custom_content/building/restuss/restuss_guild_commerce.lua") includeFile("custom_content/building/restuss/restuss_guild_theater.lua") includeF...