content
stringlengths
5
1.05M
--- Editor module --- Editor class. Inherit to create custom Editors -- @type Editor Editor = LCS.class{} --- Editor constructor. Make sure you invoke this in your custom editor -- @see Editor.Finalize -- @usage -- MyEditor = Editor:extends{} -- function MyEditor:init() -- Editor.init(self) -- -- rest of code...
module 'mock' -------------------------------------------------------------------- CLASS: ThreadDataTask ( ThreadTask ) :MODEL{} function ThreadDataTask:__init( filename ) self.filename = filename end function ThreadDataTask:onExec( queue ) if not self.filename then return false end local buffer = MOAIDataBuffer...
--[[BASE]]-- MySQL = module("vrp_mysql", "MySQL") local Tunnel = module("vrp", "lib/Tunnel") local Proxy = module("vrp", "lib/Proxy") vRP = Proxy.getInterface("vRP") vRPclient = Tunnel.getInterface("vRP","vrp_license") --[[LANG]]-- local Lang = module("vrp", "lib/Lang") local cfg = module("vrp", "cfg/base") local lan...
-- Wemo controller config -- Detect Wemo switch devices and confirm from user and save the host that the Wemo controller can use local u = require("LuaUPNP") local stat,msg local function listTestSave(devs) for i = 1,#devs do print("-------- DEVICE #"..i.."--------------") for l,m in pairs(devs[i]) do print...
local API_RE = require(script:GetCustomProperty("APIReliableEvents")) local API = {} local rectangles = {} local function pointsAreOnSameSideOfLine(point1, point2, A, B) -- point1 and point2 are on the same side of line AB return ((B - A) ^ (point1 - A)) .. ((B - A) ^ (point2 - A)) >= 0 -- scalar quadruple p...
object_tangible_loot_npc_loot_elect_module_wires = object_tangible_loot_npc_loot_shared_elect_module_wires:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_elect_module_wires, "object/tangible/loot/npc/loot/elect_module_wires.iff")
-- Scripts pour tester le sniffer de smartphone qui essaient de se connecter sur des AP WIFI -- source: https://nodemcu.readthedocs.io/en/dev/modules/wifi/#wifieventmonregister print("\n b.lua zf190119.1920 \n") --f= "set_time.lua" if file.exists(f) then dofile(f) end -- apzuzu6 38:2c:4a:4e:d3:d8 zmac_adrs={} zma...
-- -- Component: Colors -- local Component = {} Component.__index = Component local function createComponent(propertyName) local self = setmetatable({}, Component) self.propertyName = propertyName self.gui = false self.visible = true self.element = false self.x = -1 self.y = -1 self.par...
local bitLib = require("plugin.bit" ) local band = bitLib.band local rshift = bitLib.rshift local PixelHitTest = class('PixelHitTest', false) function PixelHitTest.parse(ba) local t = {} ba:readInt() t.pixelWidth = ba:readInt() t.scale = 1.0 / ba:readByte() t.pixels = ba:readBuffer() return t end ...
-- Copyright 2021 Kafka-Tarantool-Loader -- -- 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...
--@name Texture Collector v4.5 --@author Vurv --@client -- Texture Collector v4.5 by Vurv on Discord (363590853140152321) -- Allows you to customize the pixel saving / file saving much more easily with an example of a compressed texture, that is ~200kb per 512x512 texture. -- Takes ~80 seconds to save all of the textu...
local FOLDER_NAME, private = ... local L = LibStub("AceLocale-3.0"):NewLocale(FOLDER_NAME, "ruRU", false) if not L then return end L["ALT_KEY"] = "Alt-" L["COLLAPSE_SECTION"] = "Свернуть" L["COLUMN_LABEL_REALM"] = "Сервер" L["CONTROL_KEY"] = "Ctrl- " L["EXPAND_SECTION"] = "Развернуть" L["LEFT_CLICK"] = "Левый клик" L...
-- Compiling plugin specifications to Lua for lazy-loading local util = require('packer.util') local log = require('packer.log') local fmt = string.format local config local function cfg(_config) config = _config end local feature_guard = [[ if !has('nvim-0.5') echohl WarningMsg echom "Invalid Neovim version for ...
-- Copyright (c) 2021 Kirazy -- Part of Artisanal Reskins: Bob's Mods -- -- See LICENSE in the project directory for license information. -- Check to see if reskinning needs to be done. if not (reskins.bobs and reskins.bobs.triggers.warfare.entities) then return end -- Make sure the gate exists local entity = data.ra...
local AccelerateDecelerate = {} AccelerateDecelerate.new = function(duration) return setmetatable( {duration = duration or 30}, { __index = function(self, frame) if frame > self.duration then return 1 end local t = frame / self.duration ...
--[[ 优点 1 实例控制 单例模式会阻止其他对象实例化其自己的单例对象副本,从而确保所有对象都访问唯一实例 2 灵活性 因为类控制了实例化过程,所以类可以灵活更改实例化过程 缺点 1 开销 虽然数量很少,但如果每次对象请求引用时都要检查是否存在类实例,将仍然需要一些开销。可以通过使用静态初始化解决此问题 2 可能的开发混淆 使用单例对象 尤其在类库中定义的对象 时,开发人员必须记住自己不能使用new关键字实例化对象。因为可能无法访问库源代码, 因此应用程序开发人员可能会意外发现自己无法直接实例化此类。 3 对象生存周期 不能解决删除单个对象的问题,在提供内存管理语言中,只有单例类能够导致实例被取消分配...
object_tangible_tcg_series1_decorative_indoor_garden_02 = object_tangible_tcg_series1_shared_decorative_indoor_garden_02:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series1_decorative_indoor_garden_02, "object/tangible/tcg/series1/decorative_indoor_garden_02.iff")
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Copyright 2016-2020 The Node.lua 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...
--[[ 3p8_computer Uses: multi-platform uses History: megaman lotto code enter system like chea codes. like the console, swag everywhere. Memes: chea code swag Todo: --3p8 mobile game will provide "blueprint lookup codes" for a "3d printer" --display fake, "contacting authorization server" "dispatc...
#!/bin/env luajit dofile("load_dslib.lua") local mmodules = dslib.mrequire("dslib:mmodules") -- TODO mmodules.exists("asd")
--- Compare --- lua_f tst_utf8lib.lua -- and --- lua.exe tst_utf8lib.lua | nkf32 for i,c in utf8.codes("あいうえお") do print(i,c,type(c),utf8.char(c)) end for c in string.gmatch("あいうえお",utf8.charpattern) do print(c) end
--- timer.seconds(n) -> sec --- Returns the number of seconds in seconds. function timer.seconds(n) return n end --- timer.minutes(n) -> sec --- Returns the number of minutes in seconds. function timer.minutes(n) return 60 * n end --- timer.hours(n) -> sec --- Returns the number of hours in seconds. function timer.ho...
position = {x = 48.6988410949707, y = 0.987667322158813, z = 15.5469074249268} rotation = {x = -2.75089792012295E-06, y = 270.011779785156, z = 0.0016060828929767}
-- lua filter for RST-like list-tables in Markdown. -- Copyright (C) 2021 Martin Fischer, released under MIT license if PANDOC_VERSION and PANDOC_VERSION.must_be_at_least then PANDOC_VERSION:must_be_at_least("2.11") else error("pandoc version >=2.11 is required") end -- Get the list of cells in a row. local r...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0216-widget-support.md -- -- Description: Check "OnHMIStatus" notifications for 1 app in case of changes of widget's level -- -- Precond...
t = require('ds18b20') port = 80 pin = 3 -- gpio0 = 3, gpio2 = 4 gconn = {} -- global variable for connection function readout(temp) local resp = "HTTP/1.1 200 OK\nContent-Type: text/html\nRefresh: 5\n\n" .. "<!DOCTYPE HTML>" .. "<html><body>" .. "<b>ESP8266</b></br>" for addr, temp in pairs(te...
-------------------------------------------------------------------------------- -- ViewCollection -------------------------------------------------------------------------------- IMPORT(Script.CLASS) IMPORT(Script.VIEWOBJECT) -------------------------------------------------------------------------------------- -- ...
-- Formatting local formatters = require "lvim.lsp.null-ls.formatters" formatters.setup { { exe = "goimports", -- args = {}, filetypes = { "go" }, }, } -- Linting local linters = require "lvim.lsp.null-ls.linters" linters.setup {} -- Debugging if lvim.builtin.dap.active then local ...
print("*************************LUA调用C# 泛型函数相关知识点*************************") local obj = CS.Lesson12() local child = CS.Lesson12.TestChild() local father = CS.Lesson12.TestFather() --支持有约束有参数的泛型参数 obj:TestFun1(child,father) obj:TestFun1(father,child) --Lua中不支持 没有约束的泛型参数 --obj:TestFun2(child) --Lua中不支持 有约束但是没有参数的泛型...
-- LOCAL local main = require(game.Nanoblox) local Qualifiers = {} local function isNonadmin(user) local totalNonadmins = 0 local totalRoles = 0 for roleUID, roleDetails in pairs(user.roles) do local role = main.services.RoleService.getRoleByUID(roleUID) if role.nonadmin == true then totalNonadmins = totalNon...
--[[ Custom component functions for lightline. Mainly LSP/diagnostics related. --]] local au = require("au") local comps = { opts = { signs = { edit = "+", lock = "-", git = "↨", error = "‼", warning = "!", filetype = "≡", spinner = {"-", "\\", "|", ...
-- Tests for bfs.lua local BFS = require 'bfs' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function same(t, p, comp) for k,v in ipairs(t) do if not comp(v, p[k]) then return false end end return true end ...
--[[ unknown_buyer mod for Minetest Copyright (C) 2018 Farooq Karimi Zadeh <farooghkarimizadeh at gmail dot com> Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies....
-- Simple helper function that provides model if it doesnt exist local function registerSent(class, data) list.Set("starfall_creatable_sent", class, data) end ---------------------------------------- -- Sent registering local checkluatype = SF.CheckLuaType -- Basic Gmod sents registerSent("gmod_balloon", {{ ["Model...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' this_is_a_map 'yes' data_file 'DLC_ITYP_REQUEST' 'stream/rdd_main.ityp' files { 'stream/rdd_airfield_hangers.ybn', 'stream/rdd_airfield_hangers.ydr', 'stream/rdd_axel_garage.ybn', 'stream/rdd_axel_garage.ydr', 'stream/rdd_bar.ybn', 'stream/rdd_...
package.loaded.wvolume = nil local module_path = (...):match("(.+)%.[^%.]+$") or "" local module = require(module_path .. "wvolume.main") return module
local drawableSprite = require("structs.drawable_sprite") local templeMirrorPortal = {} templeMirrorPortal.name = "templeMirrorPortal" templeMirrorPortal.depth = -1999 templeMirrorPortal.placements = { name = "temple_mirror_portal", } local frameTexture = "objects/temple/portal/portalframe" local curtainTexture ...
local mechanic = false local mechanicshop = {} mechanicshop = { ['x'] = -338.37,['y'] = -137.28,['z'] = 38.25,['h'] = 68.75, ['info'] = ' jajkaj' } doorleave = { ['x'] = -338.37,['y'] = -137.28,['z'] = 38.25 } local blipEn = false local upgrades = { [1] = "Extractors 5 Scrap Metal", -- increase speed 5% -- $1000 [...
local imagine = require('imagine') local log = require('log') local KEY_LIFETIME = 60 local function create(key, ...) box.space.key:insert({key, os.time(), ...}) end local function delete(key) box.space.key:delete({key}) end local function get(key) return box.space.key:select({key}) end local functio...
project "CppSharp.Parser.Bootstrap" SetupManagedProject() kind "ConsoleApp" language "C#" debugdir "." files { "Bootstrap.cs", "*.lua" } links { "CppSharp", "CppSharp.AST", "CppSharp.Generator", "CppSharp.Parser" } filter { "action:not netcore" } links { "System", "System.Core" } SetupParser(...
local skillValues = { plume = 10, ebony = 65, daedric = 80 } local newMaterials = { trama = { id = "_trama", description = "Trama Root", ingredients = { { id = "ingred_trama_root_01", count = 1 }, }, skillReq = skillValues.plume }, cork = { ...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' client_script 'SimpleCarHUD_cl.lua'
slot0 = require("protobuf") slot1 = require("common_pb") module("p24_pb") CS_24002 = slot0.Descriptor() SC_24003 = slot0.Descriptor() CS_24004 = slot0.Descriptor() SC_24005 = slot0.Descriptor() SC_24010 = slot0.Descriptor() CS_24011 = slot0.Descriptor() SC_24012 = slot0.Descriptor() GROUPINFO = slot0.Descriptor() CHA...
require 'src.globals' function love.directorydropped(path) end function love.draw() if use_effect then post_effect:draw(function() State.current():draw() end) else State.current():draw() end if DEBUG then local stats = love.graphics.getStats() loc...
function GM:SetupMove(ply, mv, cmd) if ply:isArrested() then mv:SetMaxClientSpeed(self.Config.arrestspeed) end return self.Sandbox.SetupMove(self, ply, mv, cmd) end function GM:StartCommand(ply, usrcmd) -- Used in arrest_stick and unarrest_stick but addons can use it too! local wep = ply:Ge...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] -- ####################################### -- ## Project: MTA i...
data:extend({ { type = "recipe", name = "autonomous-space-mining-drone", energy_required = 100, enabled = "false", ingredients = { {"satellite-bus", 30}, {"rocket-fuel", 200}, {"satellite-flight-computer", 50}, ...
local invalidPrefixes if SERVER then invalidPrefixes = { "cl_" } end if CLIENT then invalidPrefixes = { "sv_" } end local fileBlacklist = { "db", "vvd", "phy", "vtf", "vtx", "txt", "ztmp" } local function ProcessFolder( path, domain, handle, foldername ) local files, folders = file.Find( path .. "/*", domai...
----------------------------------- -- Area: Dynamis-Jeuno_[D] ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[tpz.zone.DYNAMIS_JEUNO_D] = { text = { }, mob = { }, npc = { }, } return zones[tpz.zone....
game = {} function game:init() self.canvas = love.graphics.newCanvas(CANVAS_WIDTH, CANVAS_HEIGHT) love.graphics.setDefaultFilter('nearest', 'nearest') self.background = love.graphics.newImage('assets/sprites/Backgrounds/bg.png') self.help = love.graphics.newImage('assets/sprites/hp/help.png') se...
camera = entity:extend() addobjects.register("megacam", function(v) if v.properties["checkpoint"] == globals.checkpoint then megautils.add(camera(v.x, v.y, v.properties["doScrollX"], v.properties["doScrollY"])) camera.once = false end end, -1) addobjects.register("megacam", function(v) if v.pr...
function renderGrantingTicket(gt) local html = string.format([[ <html> <body> <h1>Granting ticket</h1> <p id="key">%s</p> <p id="iv">%s</p> <p id="blob">%s</p> <p id="owner">%s</p> </body> </html>]], toHex(gt.key), toHex(gt.IV), toHex(gt.blob), gt.use...
pg = pg or {} pg.enemy_data_statistics_266 = { [13600304] = { cannon = 43, reload = 150, speed_growth = 0, cannon_growth = 2200, battle_unit_type = 60, air = 0, base = 126, dodge = 0, durability_growth = 70400, antiaircraft = 105, speed = 10, reload_growth = 0, dodge_growth = 0, luck = 0, ...
--- Class describes system Token object -- -- @classmod Token -- @pragma nostrip setfenv(1, require "sysapi-ns") require "token.token-windef" local stringify = require "utils.stringify" local Sid = require "sid" local ntdll = ffi.load("ntdll") assert(ntdll) local advapi32 = ffi.load("advapi32") assert(advapi32) local ...
----------------------------------- -- Area: Jugner Forest -- NPC: qm2 (???) -- Involved in Quest: Sin Hunting - RNG AF1 -- !pos -10.946 -1.000 313.810 104 ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) if player:getCharVar("sinHunting") == 4 then ...
local table = require("__flib__.table") local util = require("scripts.util") return function(recipe_book, dictionaries) for name, prototype in pairs(global.prototypes.lab) do -- Add to items for _, item_name in ipairs(prototype.lab_inputs) do local item_data = recipe_book.item[item_name] if item...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. aakuan_robe = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/wearables/robe/aakuan_robe.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {}, skillMods = {{"r...
RegisterClientScript() ENTITY.IsNetworked = true ENTITY.CollisionType = 2 ENTITY.PlayerControlled = false ENTITY.MaxHealth = 0 ENTITY.Properties = { { Name = "modelPath", Type = PropertyType.String, Default = "", Shared = true }, { Name = "offset", Type = PropertyType.FloatPosition3D, Default = Vec3(0, 0, 0), Share...
local cctest = require "Framework" local function deepCopy(t) local t2 = {} for k, v in pairs(t) do if type(v) == "table" then t2[k] = deepCopy(v) else t2[k] = v end end return t2 end local suite = cctest.newSuite "TestExpectations" "EXPECT_EQ_PASS" (function() EXPECT_EQ(10, 10)...
E2VguiPanels["vgui_elements"]["functions"]["dpropertysheet"] = {} E2VguiPanels["vgui_elements"]["functions"]["dpropertysheet"]["createFunc"] = function(uniqueID, pnlData, e2EntityID,changes) local parent = E2VguiLib.GetPanelByID(pnlData["parentID"],e2EntityID) local panel = vgui.Create("DPropertySheet",parent) --rem...
----------------------------------------- -- ID: 4186 -- Item: Airborne -- A goblin with a rainbow colored parasail rides in a downward spiral ----------------------------------------- function onItemCheck(target) return 0 end function onItemUse(target) end
-- Addon global local TheClassicRace = _G.TheClassicRace -- WoW API local CreateFrame, GetChannelList, GetNumDisplayChannels = _G.CreateFrame, _G.GetChannelList, _G.GetNumDisplayChannels -- Libs local LibStub = _G.LibStub local Serializer = LibStub:GetLibrary("AceSerializer-3.0") local AceComm = LibStub:GetLibrary("A...
resource.AddFile("sound/earthquake.mp3") util.PrecacheSound("earthquake.mp3") local next_update_time local tremor = ents.Create("env_physexplosion") tremor:SetPos(Vector(0,0,0)) tremor:SetKeyValue("radius",9999999999) tremor:SetKeyValue("spawnflags", 7) tremor:Spawn() if (SERVER) then CreateConVar("sv_earthquake...
Account = {} local mt = {__mode = "k"} local proxies = {} setmetatable(proxies, mt) function Account:new(o) local o = o or {} proxies[o] = {balance = 0} setmetatable(o, self) self.__index = self return o end function Account:deposit(v) proxies[self].balance = proxies[self].balance + v end function Accoun...
local I18N = require("core.I18N") I18N.add { keybind = { menu = { hint = "決定 [キーの変更] ", topics = { name = "名前", primary = "キー1", alternate = "キー2", joystick = "ジョイスティック", }, conflict = { text = "キー割り当ての衝突があります。",...
--[[This is a lua script for use in conky. You will need to add the following to your .conkyrc before the TEXT section: lua_load $HOME/.config/conky/LUA/Full_Conky_Smile_Battery_Gauge.lua (or wherever you put your luas) lua_draw_hook_pre conky_SmileBattery I am not even close to being a programmer. It couldn't ha...
local StringBuffer = require("string_buffer") -- TODO 親密度の実装 return { -- 「ねぇねぇ」と肩をたたく感じ。 { id = "0Poke", content = function(shiori, ref) return shiori:talk("m_Key", ref) end, }, -- 頭をなでなでする感じ。 { id = "0Headなで", content = function(shiori, ref) local __ = shiori.var if...
--GPU: Shapes Drawing. --luacheck: push ignore 211 local Config, GPU, yGPU, GPUVars, DevKit = ... --luacheck: pop local lg = love.graphics local VRamVars = GPUVars.VRam local SharedVars = GPUVars.Shared local RenderVars = GPUVars.Render local CalibrationVars = GPUVars.Calibration --==Varss Constants==-- local Unbin...
local snips = {} snips = { s({ trig = 'cha', name = 'Chapter', dscr = 'Insert a new chapter.' }, { t { '\\chapter{' }, i(1), t { '}\\label{cha:' }, l(l._1:gsub('[^%w]+', '_'):gsub('_*$', ''):lower(), 1), t { '}', '', '' }, }, { condition = conds.line_begin }), s({ trig = 'sec', name = 'Section', dscr = 'I...
-- Setup moonscript enviroment local moonscript = require('moonscript.base') local loadstring = moonscript.loadstring load = function(chunk, ...) if chunk:find('^%a+% *=') then chunk = 'export ' .. chunk end return loadstring(chunk, ...) end dofile = moonscript.dofile loadfile = moonscript.loadfile l...
-- -- Featherweight -- Very small functions that implement basic behaviors. -- -- Where applicable, I refer to tables like so: -- list: a table where integer keys between 1 and N are non-nil. -- object: a table with no expected ordering to keys -- local fw = {} --- first( a, b, [c...] ) -- Returns first non-nil...
----------------------------------------- -- Spell: Klimaform -- Increases magic accuracy for spells of the same element as current weather ----------------------------------------- require("scripts/globals/status") function onMagicCastingCheck(caster, target, spell) return 0 end function onSpellCast(caster,...
huurton_huntress = Creature:new { objectName = "@mob/creature_names:huurton_huntress", socialGroup = "huurton", faction = "", level = 28, chanceHit = 0.37, damageMin = 270, damageMax = 280, baseXp = 2914, baseHAM = 8200, baseHAMmax = 10000, armor = 0, resists = {15,15,15,140,200,-1,-1,-1,-1}, meatType = "m...
--[[ modulo textbox: responsável por implementar uma textbox simplíssima --]] local textboxModule = {} textboxModule.createTextbox = function(posX, posY, displayText) textbox = {} local posX = posX local posY = posY local displayText = displayText local enteredText = "" local banned_words = ...
--[[-- ui.submit{ name = name, -- optional HTML name value = value, -- HTML value text = value -- text on button } This function places a HTML form submit button in the active slot. Currently the text displayed on the button and the value attribute are the same, so specifying both a 'value' and a 'text' m...
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Ahkk Jharcham -- Quest 'Keeping Notes' -- !pos 0.1 -1 -76 50 ----------------------------------- require("scripts/globals/npc_util") require("scripts/globals/quests") ----------------------------------- function onTrade(player, npc, trade) ...
--[[------------------------------------------------------------------------------ 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 ...
Macro { area="Shell Info QView Tree"; key="Esc"; flags="EmptyCommandLine"; description="Use Esc to toggle panels on/off"; action = function() Keys('CtrlO') end; }
-- -- COINS PILES DEMO 1 - JVP -- plane = Plane(0,1,0) plane.col = "#111111" plane.friction=.7 v:add(plane) function coins_pile(coin_type,N,xp,zp) if(coin_type==1) then coin_width=7.0 coin_height=1.1 end if(coin_type==2) then coin_width=6.0 coin_height=1.0 end if(coin_type==3) then coin...
-- -- make_workspace.lua -- Generate a workspace-level makefile. -- Copyright (c) 2002-2015 Jason Perkins and the Premake project -- local p = premake local make = p.make local tree = p.tree local project = p.project -- -- Generate a GNU make "workspace" makefile, with support for the new platforms API. -- fun...
-- Run all enabled rc scripts. -- /boot/*rc was moved before /boot/*filesystem because -- 1. rc now loads in via the init signal -- 2. rc used to load directly -- Thus, for rc to load prior, it needs to register prior require("event").listen("init", function() dofile(require("shell").resolve("rc", "lua")) return fa...
--[[ --=====================================================================================================-- Script Name: Get Object Identity, for SAPP (PC & CE) Command Syntax: /getidentity on|off Point your crosshair at any object and fire your weapon. The mod will display the following information in the rcon co...
-- vim: ts=2 sw=2 sts=2 et : -- Testing Bins -- (c) 2021 Tim Menzies (timm@ieee.org) unlicense.org package.path = '../src/?.lua;' .. package.path local r=require local Lib,Bin,Num=r("lib"),r("bin"),r("num") do local n,xy,num=100,{},Num() for i=1,n do num:add(i) xy[#xy+1]= {i, i<n/3} end local d = num....
local ComponentGroup = {} return ComponentGroup
local a = { aaa = 1, bbb = 2 } local bbbb = setmetatable({}, {__index = a}) local b = { ccc = 1, ddd = 2 } local eeee = setmetatable(b, {}) local ffff = setmetatable(b, {__index = a})
local MIN_FUEL_LEVEL = 100; write("Dig up or down (u, d): ") local direction = read():lower() write("Dig to the left or right (l, r): ") local turn = read():lower() write("length: ") local length = tonumber(read()) write("width: ") local width = tonumber(read()) write("depth/height: ") local depth = tonumber(read()) ...
return function(ASS, ASSFInst, yutilsMissingMsg, createASSClass, re, util, unicode, Common, LineCollection, Line, Log, SubInspector, Yutils) local Align = createASSClass("Tag.Align", ASS.Tag.Indexed, {"value"}, {"number"}, {range={1,9}, default=5}) function Align:up() if self.value<7 then return self:a...
local robot = require("robot") local component = require("component") --[[ Start: invt: elec. wrench equipped and configurator in 1 pos: standing infront of redstone torch ]] while(true) do --remove: robot.select(1) robot.swing() --torch robot.forward() robot.suck() robot.use() --miner robot.forward() com...
slot0 = class("ResolveEquipmentLayer", import("..base.BaseUI")) slot0.getUIName = function (slot0) return "ResolveEquipmentUI" end slot0.setPlayer = function (slot0, slot1) slot0.player = slot1 end slot0.setEquipments = function (slot0, slot1) slot0.equipmentVOs = slot1 slot0:setEquipmentByIds(slot1) end slot0...
object_tangible_collection_reward_col_photo_durni_reward_01 = object_tangible_collection_reward_shared_col_photo_durni_reward_01:new { } ObjectTemplates:addTemplate(object_tangible_collection_reward_col_photo_durni_reward_01, "object/tangible/collection/reward/col_photo_durni_reward_01.iff")
my_config = config.app_switcher hs.application.enableSpotlightForNameSearches(true) function switchToApp(app_name, key_pressed) local application = hs.appfinder.appFromName(app_name) local window = application:allWindows()[1] window.focus() end for key in pairs(my_config.keys) do hs.hotkey.bind(my_config.mod...
data:extend( { { type = "bool-setting", name = "depleted-uranium", setting_type = "startup", default_value = true, }, { type = "bool-setting", name = "fluid-cleanup", setting_type = "startup", default_value = true, }, { type = "bool-setting", name = "MCP_enable_centrifuges", setting_type = "s...
ITEM.name = "Анабиотик (произведено в Зоне)" ITEM.category = "Медицина" ITEM.desc = "Экспериментальный медицинский препарат, позволяет пережить Выброс. \n\nХАРАКТЕРИСТКИ: \n-медикамент \n-вызывает долгое помутнение сознание \n\nПозволяет пережить выброс" ITEM.price = 3498 ITEM.exRender = false ITEM.weight = 0.12 ...
-- Copypasted from vanilla with an extra crash guard check -- Just in case my spawning code still spawns enemies without objectives function GroupAIStateBesiege:_perform_group_spawning(spawn_task, force, use_last) local nr_units_spawned = 0 local produce_data = { name = true, spawn_ai = {} } local group_ai_twea...
-- CLIENT CONFIGURATION config_cl = { joinProximity = 25, -- Proximity to draw 3D text and join race joinKeybind = 51, -- Keybind to join race ("E" by default) joinDuration = 30000, -- Duration in ms to allow players to join the race freezeDuration = ...
--幻想の黒魔導師 function c900901254.initial_effect(c) --xyz summon --aux.AddXyzProcedure(c,nil,7,2,c96471335.ovfilter,aux.Stringid(96471335,0)) c:EnableReviveLimit() aux.AddFusionProcCodeFun(c,(46986414),aux.FilterBoolFunction(Card.IsRace,RACE_SPELLCASTER),1,false,false) --spsummon fusion condition local e1=Effect.Crea...
-- -- Copyright (c) 2018 Milos Tosic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- function addProject_3rdParty_lib(_name, _libFiles, _exceptions) if _ACTION == nil then return end group ("3rd") project ( _name ) _exceptions = _exceptions or false _includes = _include...
SWEP.Base = "weapon_maw_base" SWEP.Slot = 4 SWEP.PrintName = "XM1014" SWEP.HoldType = "ar2" SWEP.ViewModel = "models/weapons/v_shot_xm1014.mdl" SWEP.WorldModel = "models/weapons/w_shot_xm1014.mdl" SWEP.Primary.Sound = "Weapon.Fire_xm1014" SWEP.Primary.Recoil = 0.9 SWEP.Primary.Damage = 16 ...
--- Schematic serialization and deserialiation. -- @module worldedit.serialization worldedit.LATEST_SERIALIZATION_VERSION = 5 local LATEST_SERIALIZATION_HEADER = worldedit.LATEST_SERIALIZATION_VERSION .. ":" --[[ Serialization version history: 1: Original format. Serialized Lua table with a weird linked ...
local Days = { DayOne = require "solution.001", DayTwo = require "solution.002", DayThree = require "solution.003", } local meta_string = getmetatable("") meta_string.__index = function ( self, idx ) if (string[idx]) then return string[idx] elseif ( tonumber( idx ) ) then ...