content
stringlengths
5
1.05M
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("game.rules.fog_of_war.selectors", function() local Selectors = require "game.rules.fog_of_war.selectors" local Position = require "game.rules.world.position" desc...
object_tangible_furniture_all_frn_all_trophy_mutant_acklay = object_tangible_furniture_all_shared_frn_all_trophy_mutant_acklay:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_trophy_mutant_acklay, "object/tangible/furniture/all/frn_all_trophy_mutant_acklay.iff")
---@meta resty_core_exit={} resty_core_exit.version="0.1.17" return resty_core_exit
--[[ LootSecretary by Annasia Core.lua Contains core elements of the addon ----------- TODO/Notes The whole addon https://etherpad.openstack.org/p/PL_council ]] local LootSecretary = LibStub("AceAddon-3.0"):NewAddon("LootSecretary", "AceConsole-3.0", "AceEvent-3.0") local libwin = LibStub("LibWindow-...
local beer = require('beer-song') describe('beer-song', function() it('prints an arbitrary verse', function() local expected = '8 bottles of beer on the wall, 8 bottles of beer.\nTake one down and pass it around, 7 bottles of beer on the wall.\n' local result = beer.verse(8) assert.are.equal(expected, re...
-------------------------------------------------------------------------- -- GTFO_FF_WOD.lua -------------------------------------------------------------------------- --[[ GTFO Friendly Fire List - Warlords of Draenor Author: Zensunim of Malygos ]]-- -- ********************* -- * Blackrock Foundry * -- ************...
local skynet = require "skynet" require "skynet.manager" local logger = require "logger" local Match = {} local match_queue = {} --local class = require "class" --local CRoom = class() --房间信息 local DOUNIU = {} local MAX_PLAYER = 5 local max_room_idx = 1000 local room_queue = {} --待机房 local running_room_queue = {} -...
--[[ name: cl_main.lua ]]-- local MAT_NOTIFY = Material( "materials/seth_area/notification.png" ) local MAT_POINT = Material( "materials/seth_area/point.png" ) --[[------------------------------------------------------------------------- Name: Frame ---------------------------------------------------------...
-- Copyright (C) 2017-2020 DBotThePony -- 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, publis...
-- define all language properties Transaltion by Baavoz local lang = { common = { welcome = "Tervetuloa serverille paina K avataksesi menu.~n~", no_player_near = "~r~Ei pelaajia lähellä.", invalid_value = "~r~Virheellinen arvo.", invalid_name = "~r~Virheellinen nimi.", not_found = "~...
local Modules = script.Parent.Parent.Parent local Roact = require(Modules.Roact) local StudioThemeAccessor = require(script.Parent.StudioThemeAccessor) local function Checkbox(props) local state = Enum.StudioStyleGuideModifier.Default if props.Disabled then state = Enum.StudioStyleGuideModifier.Disabled elseif p...
StaticLibrary { Name = "docking_system", Env = { CPPPATH = { "include", }, }, Sources = FGlob { Dir = "core", Extensions = { ".c", ".h", ".s", ".m" }, Filters = { { Pattern = "[/\\]windows[/\\]"; Config = { "win32-*", "win64-*" } }, { Pattern = "[/\\]macosx[/\\]"; Config = "mac*-*" }, { Pattern = "...
---@meta ---@class cc.ScaleTo :cc.ActionInterval local ScaleTo={ } cc.ScaleTo=ScaleTo ---@overload fun(float:float,float:float,float:float):self ---@overload fun(float:float,float:float):self ---@overload fun(float:float,float:float,float:float,float:float):self ---@param duration float ---@param sx float ---@para...
local co local function update(self, delta) --SCREENMAN:SystemMessage(delta) if coroutine.status(co) ~= "dead" then coroutine.resume(co) end end local barMaxHeight = 200 local barCurMaxValue = 0 local maxMSD = 40 local MSDTable = {} for i = 1, maxMSD+1 do MSDTable[i] = 0 end local song = GAMESTATE:GetCurrentSon...
index_valuemd5_mapping_tbl = {} valuemd5_index_mapping_tbl = {} DEBUG = false DISPLAY_BYTES = 120 NOTE_PREFIX = "note_" INDEX_FILENAME = "index" function debug_print(fmt, ...) local t = {...} if DEBUG then print(fmt, unpack(t)) end end function dump_indexs() for key, md5_tbl in pairs(index_va...
--ZW-天風精靈翼 --Script by XyLeN function c100278025.initial_effect(c) c:SetUniqueOnField(1,0,100278025) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100278025,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_H...
Object = {} -- Metamethods function Object:__call(...) return self:new(...) end -- Constructor function Object:__new() end -- Static Methods function Object.__cast(o, m) setmetatable(o, m) m.__index = m m.__call = Object.__call return o end -- Methods function Object:new(...) local o = {} Object.__...
-- Copyright (C) 2020-2022 Dmitrii Maximenko <d.s.maximenko@gmail.com> -- Use of this source code is governed by an MIT-style -- license that can be found in the LICENSE file or at -- https://opensource.org/licenses/MIT ffi = require("ffi") ffi.cdef[[ void sb_event_start(int thread_id); void sb_event_stop(int thread...
pg = pg or {} pg.activity_skirmish_event = { [101] = { event = "1242017", name = "P1-演习", type = 1, id = 101, task_id = 16500, award_display = {} }, [102] = { event = "1250031", name = "P2-护航", type = 2, id = 102, task_id = 16501, award_display = {} }, [103] = { event = "FENGBAOQIANXI3", ...
turtle.select(1) while true do while not turtle.detect() do turtle.forward() local slot = turtle.getSelectedSlot() if turtle.getItemCount(slot) < 1 then turtle.select(slot+1) end if not turtle.detectDown() then turtle.placeDown() end end local slot = turtle.getSelectedSlot() if turtle.ge...
local assets = require "src/common/assets" local sceneManager = require 'src/common/sceneManager' local dictionary = require 'src/common/dictionary' local drawUtils = require 'src/common/drawUtils' local globals = require 'src/common/globals' local colors = require 'src/common/colors' local buttonManager = (require 's...
local old_print, old_printError = print, printError local function log(x) local a = fs.open("log.txt", "a") a.writeLine(x) a.close() end local function print(msg) old_print(msg) log(msg) commands.say(msg) end local function printError(msg) old_printError(msg) log(msg) commands.say(msg) end --- Waits for one...
local async = require('lualine.async') local git_branch local get_git_branch = async:new({ cmd = 'git branch --show-current', on_stdout = function(_, data) if data then git_branch = data:gsub('\n', '') end end, on_stderr = function (_, data) if data then if data:find("fatal: not a git ...
--[[ Copyright 2020 Manticore Games, 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, publish, d...
-- math.lua: math-related utilities -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) local math_ceil, math_floor = math.ceil, math.floor -- -- Drops fractional part of a number -- -- trunc(1.x) --> 1 -- trunc(-1.x) --> -1 -- -- ceil(1.x) --> ...
local capi = { client = client , mouse = mouse , screen = screen , keygrabber = keygrabber,} local setmetatable = setmetatable local ipairs = ipairs local util = require( "awful.util" ) local client = require( "awful.client" ) local alayout = require( "awful.layout" )...
------------------------------------------------------------------------------ -- -- This file is part of the Corona game engine. -- For overview and more information on licensing please refer to README.md -- Home page: https://github.com/coronalabs/corona -- Contact: support@coronalabs.com -- -----------------...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local NP = E:GetModule('NamePlates') local LSM = E.LSM --Lua functions --WoW API / Variables local UnitHealth = UnitHealth local UnitIsUnit = UnitIsUnit local UnitHealthMax = UnitHealthMax --[[ Target Glow Style Op...
DantariVillageScreenPlay = ScreenPlay:new { numberOfActs = 1, } registerScreenPlay("DantariVillageScreenPlay", true) function DantariVillageScreenPlay:start() if (isZoneEnabled("dantooine")) then self:spawnMobiles() end end function DantariVillageScreenPlay:spawnMobiles() spawnMobile("dantooine", "dantari_bat...
return { PlacesList = "PlacesList", PeopleList = "PeopleList", GameDetailMore = "GameDetailMore", PurchaseGame = "PurchaseGame", PurchaseGameRobuxShortfall = "PurchaseGameRobuxShortfall", LeaveRobloxAlert = "LeaveRobloxAlert", ConfirmSignOut = "ConfirmSignOut", PremiumMigrationNotice = "PremiumMigrationNotice",...
local clipboard = require('clipboard') local command = require('command') local math = require('math') local memory = require('memory') local unicode = require('unicode') local paste = command.new('paste') local max_chat_size = 0x96 paste:register(function() local chat = memory.chat_input if not chat.open t...
include("Scripts/Interactable.lua") include("Scripts/Objects/PlaceableObject.lua") ------------------------------------------------------------------------------- PortalStone = PlaceableObject.Subclass("PortalStone") ------------------------------------------------------------------------------- function PortalStone:...
return { { effect_list = { { type = "BattleBuffAddAttr", trigger = { "onAttach", "onRemove" }, arg_list = { attr = "injureRatio", number = 0.08 } }, { type = "BattleBuffAddAttr", trigger = { "onAttach", "onRemove" }, arg_list = { attr = ...
if CLIENT then SWEP.PrintName = "Hemotoxin Gun" SWEP.Author = "TFlippy" SWEP.Slot = 6 -- add 1 to get the slot number key SWEP.Icon = "tflippy/vgui/ttt/icon_hemotoxin" SWEP.ViewModelFOV = 55 SWEP.ViewModelFlip = false SWEP.CSMuzzleFlashes = true SWEP.EquipMenuData = { type = "Gun", desc = "A gas pistol...
Config = {} Config.Locale = 'en' Config.DrawDistance = 100.0 Config.MarkerColor = { r = 120, g = 120, b = 240 } Config.EnableOwnedVehicles = true -- If true then it will set the Vehicle Owner to the Player who bought it. Config.ResellPercentage = 75 -- Sets the Resell Percentage | Example: $100 Car will resell fo...
local pos = vector.new() local rot = 0 local shortenText(txt, length) local shortened = #txt > 8 return (txt:sub(1, (shortened and 8) or -1) .. ((shortened and "...") or "")):replace(" ", "_") end local getRotVector = function() return ({ vector.new(1, 0, 0), vector.new(0, 0, 1), v...
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 01/03/2019 -- Time: 20:00 -- To change this template use File | Settings | File Templates. -- return function(line, route_count, capacity) local train_ID = GET_ID() return { isTrain = true, line = line, capacity = capacity or 1, ...
local Bag = {} -- Keeps adding order only when no child has been removed. function Bag:add(child) self[#self+1] = child end function Bag:remove(child) local last = #self for i, v in ipairs(self) do if child == v then if i < last then self[i] = self[last] end self[last] ...
return { summary = 'Types of physics joints.', description = [[ Represents the different types of physics Joints available. ]], values = { { name = 'ball', description = 'A BallJoint.' }, { name = 'distance', description = 'A DistanceJoint.' }, { name = 'hin...
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local Roact = require(Modules.Packages.Roact) local UIBlox = require(Modules.Packages.UIBlox) local withStyle = UIBlox.Style.withStyle local ImageSetButton = UIBlox.Core.ImageSet.Button local ImageSetLabel = UIBlox.Core.ImageS...
mainrule_flag = 1 function mainrule_updating() if mainrule_flag == 1 then objectivePrimary = Objective_Add("$3005", OT_Primary) Objective_AddDescription(objectivePrimary, "$3006") Subtitle_Message_Handler("$3007", 2, "data:sound\\speech\\allships\\emperor\\CHALLENGE_DESTROYMOTHERSHIPS_2", Univers...
return { id = 100, value = "导出", }
-- spritelib-start cursorhanddown={width=2,spriteIDs={97,98,129,130}} cursorhand={width=2,spriteIDs={15,16,53,54}} cursorhelp={width=2,spriteIDs={101,102,133,134}} cursorpointer={width=2,spriteIDs={13,14,51,52}} cursortext={width=2,spriteIDs={17,18,55,56}} instrumentbutton1down={width=2,spriteIDs={571,572,616,617}} ins...
--[[ Mining power is 3, same as electric miner Mining Speeds, for reference, burner is 0.35, electric is 0.5 ]]-- local animation_speed = 60 local vehicle = { type = "car", name = "harvester", icon = "__Red-Alert-Harvester__/graphics/icons/harv_icon.png", icon_size = 32, ...
addEventHandler("onColShapeHit", LV, function (ele, matchingDimension) if (not ele or not isElement(ele)) then return end if (ele.type == "player" and matchingDimension) then --outputDebugString("Entered LV") triggerEvent("onPlayerEnterLV", ele) end end ) addEventHandler("onColShapeLeave", LV, function ...
local class = require "class" return class "State" { __init__ = function(self) self.resolution = GetResolution() self.titleFont = Font("Silkscreen", 36, 1, false) self.uiFont = Font("Silkscreen", 14, 1, false) end, enter = function(self) end, leave = function(self) end, dr...
-- -- Author: wangdi -- Date: 2016-02-11 21:19:47 -- local Buff = import("src/app/view/Buff.lua") local BossEnemy = class("BossEnemy", import("src/app/view/BaseEnemy")) BossEnemyType = {} BossEnemyType.kTiny = 0 BossEnemyType.kBig = 1 function BossEnemy:ctor() BossEnemy.super.ctor(self) self:pos() if math.random(...
---@<error descr="Alias 'CircularAlias1' circularly references itself.">alias CircularAlias1 string | CircularAlias2</error> ---@<error descr="Alias 'CircularAlias2' circularly references itself.">alias CircularAlias2 number | CircularAlias1</error> ---@<error descr="Alias 'CircularGenericAlias1' circularly references...
local telescope = require('telescope') telescope.setup({ defaults = { -- Default configuration for telescope goes here: -- config_key = value, -- .. -- layout_config = { -- prompt_position = "top" -- } }, pickers = { -- Default configuration for builtin pickers goes here: -- pic...
Class = require 'class' require 'Ball' require 'Paddle' require 'AiPaddle' require 'Menu' require 'PauseMenu' require 'Powerup' WINDOW_WIDTH = 1000 WINDOW_HEIGHT = 560 fonts = { ['retroS'] = love.graphics.newFont('assets/fonts/Retro_Gaming.ttf', 16), ['retroL'] = love.graphics.newFont('assets/fonts/Retro_Gam...
local b4={}; for k,_ in pairs(_ENV) do b4[k]=k end package.path = '../src/?.lua;' .. package.path local _=require"tricks" local the=require"the" local go, ok, oo, eg = _.go, _.ok, _.oo, {} local the = require"the" local THINK = require"THINK" local ABCD = require"ABCD" function eg.thing(tst, abcd) abcd = AB...
local class = require 'middleclass' -- クラス:ヒットポイント local HitPoint = class 'HitPoint' -- 組み込み HitPoint:include(require 'Class') HitPoint:include(require 'Clamp') HitPoint:include(require 'Readonly') -- 初期化 function HitPoint:initialize(t) self:initializeClamp(t) end return HitPoint
pfUI:RegisterSkin("Options - Sound", "vanilla:tbc", function () local rawborder, border = GetBorderSize() local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel() -- Compatibility local SoundOptionsFrameHeaderText, NUM_CHECKBOXES, NUM_SLIDERS if SOUND_OPTIONS then -- tbc SoundOption...
-- luacheck: globals describe it expect return function() local function helper() expect(1).to.never.equal(2) end describe("from within a describe block", function() it("helpers should be able to access expect", function() helper() end) end) end
#!/usr/bin/env lua -- This file is part of MXE. -- See index.html for further information. -- build-pkg, Build binary packages from MXE packages -- Instructions: http://mxe.redjohn.tk -- Requirements: MXE, lua, tsort, fakeroot, dpkg-deb. -- Usage: lua tools/build-pkg.lua -- Packages are written to `*.tar.xz` files. ...
local function init() --Load all styles getAllStyles() --Debug testing if(DEBUG) then end end addEventHandler("onClientResourceStart", resourceRoot, init)
local time = 0 local update_time = tonumber(minetest.setting_get("3d_armor_update_time")) if not update_time then update_time = 1 minetest.setting_set("3d_armor_update_time", tostring(update_time)) end armor = { player_hp = {}, elements = {"head", "torso", "legs", "feet"}, formspec = "size[8,8.5]button[0,0;2,0.5;...
local make = vim.api.nvim_set_keymap function make_map(mode, def_opts) return function (from, to, opts) local newopts = vim.tbl_extend('force', def_opts or {}, opts or {}) vim.api.nvim_set_keymap(mode, from, to, newopts) end end return { noremap = make_map('', {noremap = true}), ...
pg = pg or {} pg.enemy_data_statistics_354 = { [15102503] = { cannon = 115, reload = 150, speed_growth = 0, cannon_growth = 0, base = 535, air = 188, durability_growth = 0, dodge = 0, antiaircraft = 0, speed = 120, luck = 0, reload_growth = 0, dodge_growth = 0, icon = "jiguan_tu", antiair...
local cutils = require 'libcutils' local qmem = require 'Q/UTILS/lua/qmem' local function reset() local data_dir = qmem.q_data_dir assert(cutils.isdir(data_dir)) local meta_file = data_dir .. "/q_meta.lua" -- note .lua suffix local aux_file = data_dir .. "/q_aux" -- note *NO* .lua suffix cutils.delete(me...
local console = { cmdList = {}, currentListInd = 0, txtCmdLine = nil, mtlOutput = nil, hold_caret = false, } if (not loadstring) then loadstring = load end --------------------- Command History --------------------- function iup.ConsoleKeyUpCommand() if #console.cmdList > 0 then if console.c...
-- Горячие клавиши для Neovim -- Author: Daniil Shilo -- Email: crckhd10@gmail.com -- License: MIT -- Переменные local map = vim.api.nvim_set_keymap -- Метод, для назначения новых комбинаций -- Настройки vim.g.mapleader = ' ' ...
--[[ JSON4Lua example script. Demonstrates the simple functionality of the json module. ]]-- json = require('json') -- Object to JSON encode test = { one='first',two='second',three={2,3,5} } jsonTest = json.encode(test) print('JSON encoded test is: ' .. jsonTest) -- Now JSON decode the json strin...
-- luacheck: globals vim require("astronauta.keymap") local mapper = function(opt) vim.keymap.nnoremap { opt.lhs or opt[1], function() (opt.fn or opt[2])(opt.arg or opt[3] or {}) end } end --mapper{"<C-M-p>", cv2.project} --mapper{"<C-f>", cv2.cd} --mapper{"<C-p>", cv2.files} --mapper{"<C-g>", cv2.dirty} ...
-- Create the Dimensional Ore resource -- local resource_autoplace = require("resource-autoplace") -- Resource -- local dmOR = {} dmOR.name = "DimensionalOre" dmOR.type = "resource" dmOR.flags = {"placeable-neutral"} dmOR.order="a" dmOR.tree_removal_probability = 1 dmOR.tree_removal_max_distance = 32 * 32 dmOR.minabl...
--̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷ -- في حال تبدل اسم الملف مارح يشتغل السكربت --̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷-̷ RegisterNetEvent("B3-Afk:webhook") -- Webhook AddEventHandler("B3-Afk:webhook", function(Value, ValueTwo, Decimal) local date = os.date() local connect = { { ...
-- Developer: sbx320 -- License: MIT -- Github Repos: https://github.com/sbx320/lua_utils --// classlib --|| A library providing several tools to enhance OOP with MTA and Lua --\\ SERVER = triggerServerEvent == nil CLIENT = not SERVER DEBUG = DEBUG or false function enew(element, class, ...) -- DEBUG: Validate that...
local anim8 = require 'vendor/anim8' local Gamestate = require 'vendor/gamestate' local window = require 'window' local fonts = require 'fonts' local camera = require 'camera' local sound = require 'vendor/TEsound' local Player = require 'player' local state = Gamestate.new() local Character = require 'character' loca...
-- -- 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 ...
-- transforms unit (by number) into another creature, choice given to user. Syntax is: unitID tickamount maxsize namefilter. A size of 0 is ignored. A length of 0 is also ignored. If no filter, all units will be sorted. A filter of ALL will also work with all units. local script = require('gui.script') function transf...
--RasPegacy v0.1 --Graph Display Child gl.setup(720, 446) util.resource_loader{ "boost.png", "opress.png", "gothic.ttf", } local lines = {} local last = 0 function splitme(str) local splitted = {} last = 0 for par in string.gmatch(str, "[^\n]") do splitted[#splitted + 1] = par ...
local type_map = {} local original_type = type local function register_type(obj, name) -- make sure that this name has not been used before for k, v in pairs(type_map) do assert(v ~= name) end type_map[obj] = name return true end -- Luacheck complains: "setting read-only global variable type" -- Howeve...
data:extend( { { type = "font", name = "trainTaxi-small", from = "default", size = 13 }, { type ="font", name = "trainTaxi-small-bold", from = "default-bold", size = 13 } }) data.raw["gui-style"].default["trainTaxi_frame"] = { type = "frame_styl...
Config = {} Config.DrawDistance = 100.0 Config.MarkerType = 1 Config.MarkerSize = { x = 1.5, y = 1.5, z = 1.0 } Config.MarkerColor = { r = 50, g = 50, b = 204 } Config.EnablePlayerManagement = true Config.EnableArmoryManagement ...
---------------------------------------------------------------------------------------------------- -- Handle add-on configuration -- --get the engine & Add-on local Engine = select(2,...); local AddOn = Engine.AddOn; --load libraries local AceConfig = LibStub("AceConfig-3.0"); local AceConfigDialog = LibStub("AceCo...
--[[ Cloud Manager API This API allows access to Cloud Manager programs, pipelines, and environments by an authorized technical account created through the Adobe I/O Console. The base url for this API is https://cloudmanager.adobe.io, e.g. to get the list of programs for an organization, you would make a GET requ...
local util = require"harmonize.util" local help = util.help local config = require"harmonize.storage.config" local commands = {} local function setConfig(key, value) config.load() local p = util.split(key, "\\.") local currObj = config.config for k = 1, (#p - 1) do if type(currObj[p[k]]) ~= "table" then cur...
local factory = nnst.ApproximationNormalizatorFactory local tests = torch.TestSuite() function tests.ApproximationNormalizatorFactory_NoneNormalize() local n = factory:none() tester:eq(n:normalize(2), 2) end function tests.ApproximationNormalizatorFactory_MultiplicativeInverseNormalize() local n = factor...
-- local screenW, screenH = guiGetScreenSize() customTitleW = guiCreateWindow(0.23, 0.21, 0.54, 0.58, "AuroraRPG ~ Custom Titles", true) guiWindowSetSizable(customTitleW, false) guiSetAlpha(customTitleW, 0.00) guiSetVisible(customTitleW, false) --[[customTitleGridlist = guiCreateGridList(0.01, 0.05, 0.97, 0.55, true,...
-- http://www.esp8266.com/viewtopic.php?f=19&t=771 -- Scan for I2C devices id=0 sda, scl = 2, 1 -- initialize i2c, set pin1 as sda, set pin0 as scl i2c.setup(id,sda,scl,i2c.SLOW) for x=0,5 do for i=0,127 do i2c.start(id) resCode = i2c.address(id, i, i2c.TRANSMITTER) i2c.stop(id) if resCode == true then p...
-- 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. -- An action is o...
----------------------------------- -- Area: Valkurm Dunes -- NPC: Beastmen_s_Banner -- !pos -116.204 4.000 -113.608 104 ----------------------------------- local ID = require("scripts/zones/Valkurm_Dunes/IDs"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc...
local const = require("lib.constants") local player_settings = require("globals.player-settings") local common = require("lib.common") local player_data_default = { hud_collapsed = false, hud_size = {width = 250, height = 300}, hud_location = {x = 0, y = 0}, search_text = "", elements = {}, settings = player_set...
-- モジュールとして読み込む場合は最初に空のテーブルを作成して、最後にこれをreturnする。 local stage = {} -- framesに指定されたフレーム数だけ待つ。 local function Wait(frames) for i = 1, frames do coroutine.yield() end end -- フレーム数frames毎にenemyオブジェクトから自機狙い弾を生成する。 local function ShootPer(id, frames, enemy) local MaxFrames = 120 for i = 0, MaxFrames do if i % frames...
data.raw.character["character"].inventory_size = 100 data.raw.character["character"].light = {{minimum_darkness = 0.3, intensity = 0.9, size = 40}}
--------------------------------------------------------------------------------- -- -- Prat - A framework for World of Warcraft chat mods -- -- Copyright (C) 2006-2018 Prat Development Team -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public Licen...
ITEM.name = "Семена помидора" ITEM.model = "models/items/jewels/purses/big_purse.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.desc = "Небольшой мешочек с семенами помидора." ITEM.PlantModel = "models/aoc_trees/aoc_lowveg19.mdl" ITEM.BadGathering = {"seed_tomato"} ITEM.CommonGathering = {"seed_tomato","tomato"} ITEM.MasterG...
-- ================== -- LunarVim built-in -- ================== -- -- Dasboard require("plugins.dashboard").config() -- Lualine require("plugins.lualine").config() -- Nvim-tree require("plugins.nvim-tree").config() -- Debug (DAP) require("plugins.dap").config() -- Treesitter require("plugins.treesitter").config() -- B...
local StaticObjectsProperties = require("app.properties.StaticObjectsProperties") local StaticObject = require("app.map.StaticObject") local MapConstants = require("app.map.MapConstants") local EditorConstants = require("editor.EditorConstants") local ToolBase = require("editor.ToolBase"...
preferredtoolarchitecture "x86_64" filter { "action:vs2017" } if _OPTIONS["win10"] then systemversion "10.0.16299.0" end filter {} filter { "platforms:x86" } system "Windows" architecture "x86" filter { "platforms:x86_64" } system "Windows" architecture "x86_64" filter { "platforms:arm" } syst...
--[[ The MIT License (MIT) Copyright (c) 2014 David Mentler 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, merg...
slot0 = require("protobuf") module("p70_pb") SC_70000 = slot0.Descriptor() slot2 = slot0.FieldDescriptor() CS_70001 = slot0.Descriptor() slot3 = slot0.FieldDescriptor() slot4 = slot0.FieldDescriptor() SC_70002 = slot0.Descriptor() slot5 = slot0.FieldDescriptor() CS_70003 = slot0.Descriptor() slot6 = slot0.FieldDescri...
---@class AttachedLocations : zombie.characters.AttachedItems.AttachedLocations ---@field protected groups ArrayList|Unknown AttachedLocations = {} ---@public ---@return void function AttachedLocations:Reset() end ---@public ---@param arg0 String ---@return AttachedLocationGroup function AttachedLocations:getGroup(ar...
local bzCore = require("bz_core"); local misc = require("misc"); local OOP = require("oop"); local bzObjects = require("bz_objects"); local Class = OOP.Class; local Decorate = OOP.Decorate; local Meta = OOP.Meta; local getClassRef = OOP.getClassRef; local getClass = OOP.getClass; local copyTable = OOP.copy...
set_languages("cxx20") set_policy("check.auto_ignore_flags", false) target("ejdb") set_kind("shared") add_defines("_XOPEN_SOURCE=500","_GNU_SOURCE") add_files("src/*.c") --add_includedirs("/usr/local/include/luajit-2.1/") add_links("ejdb2-2","iowow-1","facilio-1","pthread","m","c")
local vicsek = {} vicsek.name = "Vicsek Flake" local wd,ht local limit = 5 local size = 200 local saltireSet = {} local crossSet = {} local function genSaltire(step,px,py) if not saltireSet[step] then saltireSet[step] = {} end table.insert(saltireSet[step],{px,py}) table.insert(saltireSet[step],{px + 2*...
--[[ Copyright (c) 2019 igor725, scaledteam released under The MIT license http://opensource.org/licenses/MIT ]] local ec = {} EC_SKY = 0 EC_CLOUD = 1 EC_FOG = 2 EC_AMBIENT = 3 EC_DIFFUSE = 4 time_presets = { night = { [EC_DIFFUSE] = newColor(0x80, 0x90, 0xA0), [EC_AMBIENT] = newColor(0x68, 0x68, 0x...
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end if ( CLIENT ) then SWEP.PrintName = "Grenade Launcher" SWEP.Author = "TFA, Servius" SWEP.ViewModelFOV = 50 SWEP.Slot = 2 SWEP.SlotPos = 3 end SWEP.HoldType = "ar2" SWEP.Base = "tfa_swsft_base_servius" SWEP.Category = "TFA Star Wars" SW...
Entity = Object:extend() function Entity:new() self.x = 10 self.y = 10 self.speed = 100 self.radius = 50; end function Entity:load() end function Entity:update(dt) end function Entity:draw() love.graphics.circle("line", self.x, self.y, self.radius, 8) end
local strict = {} strict.defined = {} -- used to define a global variable function global(t) for k, v in pairs(t) do strict.defined[k] = true rawset(_G, k, v) end end function strict.__newindex(t, k, v) error("cannot set undefined variable: " .. k, 2) end function strict.__index(t, k) if not stric...