content
stringlengths
5
1.05M
--~ print(arg[-1]) print(arg[-1]:match("(.*\\)")) local f = io.open('c:\\temp\\winlua-path.txt','w') if f then f:write(arg[-1]:match("(.*\\)")) f:close() else error('failed to find a writeable file.') end
--[[ MIT License Copyright (c) 2018 JWRR.COM git clone https://github.com/jwrr/lued.git 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 righ...
TestMeta54 = {} function TestMeta54:testClose() local flag = false local estr pcall(function() local test <close> = MetamethodTester:New(42, function(err) flag = true estr = err end) error("test error") end) lu.assertEquals(flag, true) lu.assertStrContains(estr, "test error") end
local oil = require "oil" oil.main(function() local orb = oil.init{ port = 2809 } orb:loadidlfile("hello.idl") local hello = { count = 0, quiet = true } function hello:say_hello_to(name) self.count = self.count + 1 local msg = "Hello " .. name .. "! ("..self.count.." times)" if not self.quiet then print(m...
local stalagmite_tall_assets = { Asset("ANIM", "anim/rock_stalagmite_tall.zip"), } local prefabs = { "rocks", "nitre", "flint", "goldnugget", "yellowgem", } SetSharedLootTable( 'stalagmite_tall_full_rock', { {'rocks', 1.00}, {'rocks', 1.00}, {'goldnugget', 1.00}, {'flint', 1.00...
-- Tranqualizable mobs: TRANQABLE_MOBS = {"Magmadar", "Flamegor", "Chromaggus", "Maws", "Princess Huhuran", "Hakkar the Soulflayer", "Gluth", "Death Talon Seether", "Qiraji Slayer"} -- Fire immune mobs: FIRE_IMMUNE_MOBS = {"Nefarian", "Onyxia", "Firemaw", "Ebonroc", "Flamegore", "Firelord", "Firewalker", "Fl...
require("lab1.z1") local path = 'K:\\hidden-name\\Teaching\\2016_Lua\\[Lab]\\Lecture .04.pdf' function unpath(path, iftest) local sep = package.config:sub(1,1) if iftest then sep ='\\' end local pattern_file = '%s*([^\\]+)%.([%w]+)%s*$' local pattern_path = '[^'..sep..'+'..sep..'%s*]*' local wor...
-- Game State thing for Mari0 2. Feel free to use it, MIT License local GameStateManager3 = class("GameStateManager3") GameStateManager3.reversedEvents = { mousepressed = true, cmdpressed = true } function GameStateManager3:initialize() self.activeStates = {} end function GameStateManager3:loadState(sta...
touchMoveWindow = nil touchMoveButton = nil addTouchMoveWindow = nil windowType = nil function init() windowType = g_settings.getBoolean('touchMove_isAdvanced') if windowType == nil then windowType = false end touchMoveButton = modules.client_topmenu.addRightGameToggleButton('touchMoveButton', tr('Touch ...
require "lang.Signal" require "specs.Cocos2d-x" require "Logger" Log.setLevel(LogLevel.Warning) local shim = require("shim.System") local AdConfig = require("royal.AdConfig") local AdUnit = require("royal.AdUnit") local ClickableAdUnit = require("royal.ClickableAdUnit") describe("ClickableAdUnit", function() loc...
local key = KEYS[1] --้™ๆตKEY๏ผˆไธ€็ง’ไธ€ไธช๏ผ‰ local limit = tonumber(ARGV[1]) --้™ๆตๅคงๅฐ local duration = ARGV[2] --่ฟ‡ๆœŸๆ—ถ้—ด๏ผŒ็ง’ local current = tonumber(redis.call('get', key) or "0") if current + 1 > limit then --ๅฆ‚ๆžœ่ถ…ๅ‡บ้™ๆตๅคงๅฐ return 0 else --่ฏทๆฑ‚ๆ•ฐ+1๏ผŒๅนถ่ฎพ็ฝฎ2็ง’่ฟ‡ๆœŸ redis.call("INCRBY", key,"1") redis.call("expire", key,duration) end retu...
--[[ PLAYER SPAWN POINT LIST revive_point(<map_id>, <x_pos>, <y_pos>); start_point(<map_id>, <x_pos>, <y_pos>); respawn_point(<map_id>, <x_pos>, <y_pos>); --]] respawn_point(23, 5036.317, 5085.889); start_point(23, 5096.349, 4905.918); respawn_point(23, 5348.228, 5061.663); respawn_point(23, 5327.193, 5400.283); respaw...
require("engine/test/bustedhelper") local gameapp = require("engine/application/gameapp") local coroutine_runner = require("engine/application/coroutine_runner") local flow = require("engine/application/flow") local manager = require("engine/application/manager") local input = require("engine/input/input") describe('...
--[[ Function to draw a gauge (health bar). You specify the starting point, width, and height. Also the name to show for the mouse-over window (eg. "HP). Author: Nick Gammon Date: 14 February 2010 --]] function gauge (win, -- miniwindow ID to draw in name,...
-------------------------------- -- @module PhysicsJointGroove -- @extend PhysicsJoint -- @parent_module cc ---@class cc.PhysicsJointGroove:cc.PhysicsJoint local PhysicsJointGroove = {} cc.PhysicsJointGroove = PhysicsJointGroove -------------------------------- --- Set the anchor point on body b. ---@param anchr2 v...
object_tangible_quest_kachirho_qst_bag = object_tangible_quest_shared_kachirho_qst_bag:new { } ObjectTemplates:addTemplate(object_tangible_quest_kachirho_qst_bag, "object/tangible/quest/kachirho_qst_bag.iff")
--[[ Public domain: Copyright (C) 2017 by Matthias Richter <vrld@vrld.org> 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 A...
local fnutils = require 'hs.fnutils' local screen = require 'hs.screen' local dimensions__proto = {} local dimensions__mt = { __index = dimensions__proto } function dimensions__proto:relative_to(position) if position._relative ~= nil then return position end return { w = position.w, ...
---@class VehicleScript.PhysicsShape : zombie.scripting.objects.VehicleScript.PhysicsShape ---@field public type int ---@field public offset Vector3f ---@field public rotate Vector3f ---@field public extents Vector3f ---@field public radius float VehicleScript_PhysicsShape = {} ---@public ---@return float function Veh...
function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end local townId = player:getStorageValue(Storage.AdventurersGuild.Stone) local destination = townId ~= -1 and Town(townId):getTemplePosition() or player:getTown():getTemplePosition() p...
--[[--ldoc desc @module paixing_1571_1 @author SeryZeng Date 2018-01-16 20:33:39 Last Modified by LucasZhen Last Modified time 2018-07-20 14:08:45 ]] local TongZhang = import ("..base.TongZhang") local M = class(TongZhang) M.description = [[ ไธ‰ๅธฆไธ€ 3ๅผ ็‰Œ็‚น็›ธๅŒ็š„็‰Œ+ไปปๆ„1ๅผ ๅ…ถๅฎƒ็‰Œ ]] function M:ctor(data, ruleD...
-- This file is auto-generated by shipwright.nvim local common_fg = "#A19DBA" local inactive_bg = "#201D31" local inactive_fg = "#E9E0E0" return { normal = { a = { bg = "#4F4970", fg = common_fg, gui = "bold" }, b = { bg = "#3A3554", fg = common_fg }, c = { bg = "#242136", fg = "#E1D4D4" }, }, insert = { a...
-- boundary conditions -- names are used to disambiguate between functions with different signatures -- as lua provides no way of inspecting the argument/return types of a function -- all coefficients are defined as time-dependent, though t can be left unused bcs = { [1] = { attrs = {3, 4, 7}, coef = function...
local curl = require "lcurl" -- How many times curl_multi_perform should be called before hitting of CURLPAUSE_CONT. -- (including curl_multi_perform that causes WriteFunction to pause writes, -- i.e. 1 means that CURLPAUSE_CONT will be performed immediately after pause.) local WAIT_COUNT = 15 local SIZE = ...
module("luci.controller.tinyfm", package.seeall) function index() entry({"admin", "nas"}, firstchild(), "NAS", 44).dependent=false entry({"admin", "nas", "tinyfm"}, template("tinyfm"), _("Tiny File Manager"), 55).dependent=true end
local reactor_interface = require("lib/reactor_interface") local useful_equipment = require("lib/useful_equipment")
local reducer = require('reducers/init') local createStore = require('createStore') store = createStore(reducer)
--[[ Simple regression test suite. Run with lua5.3.exe TestSuite.lua Command line options: lua5.3.exe TestSuite.lua [all | TEST_CASE_NAME] ]]-- local test_cases = { 'BasicTest', 'LoggerTest', 'SmokeTest' } local unittest = require("test.Lib.UnitTest") local wanted_name = arg[1] or 'all' local new_global_names ...
--- Administration functions (deprecated). -- -- @module cartridge.lua-api.deprecated local fiber = require('fiber') local checks = require('checks') local errors = require('errors') local membership = require('membership') local pool = require('cartridge.pool') local confapplier = require('cartridge.confapplier') lo...
surface.CreateFont('BGN_SpeakingFont', { font = 'background_npcs_speaking_font', extended = false, size = 14, weight = 100, blursize = 0, scanlines = 0, antialias = true, underline = false, italic = false, strikeout = false, symbol = false, rotary = false, shadow = true, additive = false, outline = false...
-- hfset_nc - hash set first if not contained -- hfset_nc [hash_fields...] [hash, value] local nil_idx = nil local vals = redis.call('HMGET', ARGV[1], unpack(KEYS)) for i, val in pairs(vals) do if val == ARGV[2] then return {"present", vals} end if not val and not nil_idx then nil_idx = i end end if nil_idx ~= ni...
-- This is a management description. local policy = require('apicast.policy') local _M = policy.new('management') local management = require('apicast.management') local new = _M.new --- Initialize a management -- @tparam[opt] table config Policy configuration. function _M.new(config) local self = new(config) lo...
sb2.colors.mesecons = "#ffff00" sb2.colors.mesecons_on = "#ffff80" sb2.registerScriptblock("scriptblocks2:receive_mesecon_signal", { sb2_label = "When I Receive Mesecon Signal", sb2_explanation = { shortExplanation = "Starts a script after receiving a mesecon signal.", inputSlots = { {"Front", "What to do w...
object_tangible_furniture_all_frn_all_potted_plants_sml_s01 = object_tangible_furniture_all_shared_frn_all_potted_plants_sml_s01:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_potted_plants_sml_s01, "object/tangible/furniture/all/frn_all_potted_plants_sml_s01.iff")
function onCreate() makeAnimatedLuaSprite('daisy', 'daisy', 1400, -350); addAnimationByPrefix('daisy', 'danceLeft', 'daisy danceLeft', 12, false); addAnimationByPrefix('daisy', 'danceRight', 'daisy danceRight', 12, false); scaleObject('daisy', 0.85, 0.85); setScrollFactor('daisy', 0.95, 0.95); objectPlayAnimation('da...
require "strangepan.util.enum" MessageType = buildEnum( "BUNDLE", "CONNECT_INIT", "CONNECT_ACK", "CONNECT_ACK_ACK", "DISCONNECT", "PING", "ACK", "ACK_REQUEST", "ACK_REQUEST_RESET", "ENTITY_UPDATE")
#!/usr/bin/lua5.3 files = {} p = io.popen("find src/ -name \"*.vala\" | cut -d/ -f2-") while true do local i = p:read() if not i then break end files[#files+1] = i end p:close() function compare_files(a,b) local as = not not a:find("/",1,true) local bs = not not b:find("/",1,true) if not (as == bs) then re...
-- -- Majordomo Protocol broker -- A minimal implementation of http://rfc.zeromq.org/spec:7 and spec:8 -- -- Author: Robert G. Jakabosky <bobby@sharedrealm.com> -- require"zmq" require"zmq.poller" require"zmsg" require"zhelpers" require"mdp" local tremove = table.remove -- We'd normally pull these from config dat...
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ---------------------------...
function fib(n) if n <= 1 then return n else return fib(n - 2) + fib(n - 1) end end print(fib(35))
--[[ # None๏ผšๅŠ ้”ๆˆๅŠŸ # ๆ•ฐๅญ—n๏ผšn(ms)ๅŽ้”้‡Šๆ”พ --]] local write_key = 'write' local mode = redis.call('hget', KEYS[1], 'mode') if (mode == false) then redis.call('hset', KEYS[1], 'mode', 'write') redis.call('hset', KEYS[1], write_key, 1) redis.call('pexpire', KEYS[1], ARGV[1]) return nil end if (mode == 'read...
--[[ 2020-2022 Xalalau Xubilozo. MIT License https://xalalau.com/ --]] -- Generate random name function BS:Utils_GetRandomName() local name = string.ToTable("qwertyuiopsdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNM") local newName = "" local aux, rand for i = 1, #name do rand = math.random(#...
local select = require 'common.select' local proto = require 'common.protocol' local function parseAddress(address, client) if address:sub(1,1) == '@' then return { protocol = 'unix', address = address:sub(2), client = client, } end local ipv4, port = add...
local rhs_options = {} function rhs_options:new() local instance = { cmd = "", options = { noremap = false, silent = false, expr = false, nowait = false, }, } setmetatable(instance, self) self.__index = self return instance end function rhs_options:map_cmd(cmd_string) self.cmd = cmd_string re...
local shortport = require "shortport" local stdnse = require "stdnse" local libssh2_util = require "libssh2-utility" local rand = require "rand" description = [[ Returns authentication methods that a SSH server supports. This is in the "intrusive" category because it starts an authentication with a username which may...
local colors = require 'colors' local utils = require 'utils' local sceneManager = require 'src/sceneManager' local soundManager = require 'soundManager' local credits = {} local BUTTON_WIDTH = 130 local BUTTON_HEIGHT = 40 local BUTTON_RECTANGLE_X = 140 local selectSound = love.audio.newSource("assets/sfx/hit5.wav",...
----------------------------------- -- Area: Temenos -- Mob: Temenos Aern ----------------------------------- require("scripts/globals/limbus"); ----------------------------------- function onMobDeath(mob, player, isKiller) local mobID = mob:getID(); local mobX = mob:getXPos(); local mobY = mob:getYPos(); ...
function GM:PlayerNoClip( ply ) if( ply:PassedOut() ) then return false; end if( ply:Bottify() ) then return false; end if( !ply:IsAdmin() and !ply:IsEventCoordinator() ) then if( CLIENT and IsFirstTimePredicted() ) then GAMEMODE:AddChat( Color( 200, 0, 0, 255 ), "CombineControl.ChatNormal", "You nee...
return { hunklimit = 100 }
local event_index = 1 local event_container_index = 1 local event_id = 1 function NoobDKPHandleEvents(msg) print(NoobDKP_color .. "Handle Events: " .. msg) local syntax = "/noob event\n-add [timestamp][description]: adds an event/raid by the name of description created at timestamp. Creates new if not found. T...
client_script 'lscustoms.lua' server_script 'lscustoms_server.lua'
slot2 = "ChatManager" ChatManager = class(slot1) CHAT_TXT = "1" CHAT_EMOTION = "2" CHAT_VOICE = "3" CHAT_USUAL = "4" slot0 = 150 slot1 = 20 slot2 = "|||" ChatManager.ctor = function (slot0) slot0._voiceRecordingView = nil slot0._beginVoiceWorldPos = nil slot0._isCancel = false slot9 = false createSetterGetter(sl...
----------------------------------------- -- ID: 6053 -- Sandstorm Schema -- Teaches the white magic Sandstorm ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(99) end function onItemUse(target) target:addSpell(99) end
require("moonsc").import_tags() -- test that we can assign to any location in the datamodel. -- In this case, we just test that we can assign to a substructure -- (not the top level variable). This may not be the most idiomatic -- way to write the test return _scxml{ datamodel="lua", _datamodel{ _data{...
PLUGIN:set_global('Conditions') local stored = Conditions.stored or {} Conditions.stored = stored function Conditions:register_condition(id, data) stored[id] = data end function Conditions:get_all() return stored end require_relative 'sh_config' require_relative 'sv_plugin' function Conditions:OnPluginsLoaded(...
local old_PlayerDamage_damage_explosion = PlayerDamage.damage_explosion function PlayerDamage:damage_explosion(attack_data) if managers.player:has_category_upgrade("player", "explosion_resistance") and attack_data and attack_data.damage then attack_data.damage = attack_data.damage * managers.player:upgrade_...
local util = require(script.Parent.Util) local pluginError = util.pluginError local escapeString = util.escapeString local powers_of_10 = {} for i = 0, 10 do powers_of_10[i] = 10^i end local function round(n, prec) local pow = powers_of_10[prec] return math.floor(n * pow + 0.5) / pow end local function genEnu...
-- ESP-01 GPIO Mapping gpio0, gpio2 = 3, 4 i2c.setup(gpio0, gpio2, scl, i2c.SLOW) -- call i2c.setup() only once require("ds3231") second, minute, hour, day, date, month, year = ds3231.getTime(); -- Get current time print(string.format("Time & Date: %s:%s:%s %s/%s/%s", hour, minute, second, date, month, year)) -- D...
Script.ReloadScript( "Scripts/Entities/Boids/Birds.lua" ); Bats = { Properties = { Boid = { object_Model = "objects/characters/animals/bat/bat.cdf", }, Flocking = { FactorAlign = 0.5, -- Bat flocking behavior a bit more erratic FactorCohesion = 0.5, }, Movement = { SpeedMin = 2, -- Bat ...
--[[ PLUGIN-to-PLUGIN-INTERFACE (PPI) Author: Twisol Date: 3rd January 2010 Amendments: Nick Gammon Date: 8th January 2010 Example of use: SERVICE -- require PPI module require "ppi" -- exposed function function SomeMethodHere (a, b, c, d) -- do something with a, b, c, d return 1, 2, 3, 4 end -- notify ...
-- UpgradeGenerator.lua --[[ Creates the UpgradeBlockTypePalette out of JSON data of the Minutor project (https://github.com/mrkite/minutor/blob/master/definitions/vanilla_ids.json Parses the JSON into memory, then walks each block's "id" member and possibly the "variants" sub-member to read the block types. The name...
-- See LICENSE for terms local mod_EnableMod local function ModOptions(id) -- id is from ApplyModOptions if id and id ~= CurrentModId then return end mod_EnableMod = CurrentModOptions:GetProperty("EnableMod") end -- load default/saved settings OnMsg.ModsReloaded = ModOptions -- fired when Mod Options>Apply but...
local NAME = "MikkTSpace" local REPOSITORY = "https://github.com/tcoppex/ext-mikktspace.git" -- Set up if not fileExists("./.tmp/mikktspace/repository.txt") then print("[Dependencies] Setting " .. NAME .. " up...") if not os.execute("bash ../scripts/setup/mikktspace.sh") then error("[Dependencies] Ca...
--[[ Copyright [2019] [Kujoen - https://github.com/Kujoen] 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 agree...
local tier_tints = { {r=255, g=224, b=0, a=1}, {r=232, g=0, b=0, a=1}, {r=0, g=0, b=255, a=1}, {r=255, g=0, b=255, a=1}, {r=0, g=255, b=0, a=1} } -- tier 0 {r=112, g=84, b=0, a=1} buildM.generators.shops = function(recipe_data) local icons = {} icons[1] = { icon = "__Building_Materials__/graphics/icons/"..recipe_dat...
--่ ขๅŠจ็š„ๅฝฑ้ญ” local m=14060009 local cm=_G["c"..m] function cm.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TODECK) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetOperation(cm.activate) c:RegisterEffect(e1) --to deck local e2=Effect.CreateEffec...
local pnode = cat.require"module/game/scene/node/position_node" local base_graphics = cat.class("base_graphics",pnode){ fill_mode = "line", color = nil, } function base_graphics:__init__(fill_mode,x,y) pnode.__init__(self,x,y) self.fill_mode = fill_mode or "line" self.color = cat.color(255,255,255...
vim.api.nvim_exec([[ augroup FormatAutogroup autocmd! autocmd BufWritePost *.c,*.cpp,*.h,*.hpp,*.cxx,*.cc FormatWrite augroup END ]], true) require('formatter').setup({ filetype = { cpp = { -- clang-format function() return { exe = "clang-format", args = {"--a...
-------------------------------- auto refuel ---------------------------------- if turtle then fuelGot = mkIO(turtle.getFuelLevel) --fuelEnough = markIOfn("fuelEnough(nStep)")(mkIOfn(function(nStep) -- return turtle.getFuelLevel() >= nStep --end)) refuelFromBackpack = markIOfn("refuelFromBackpack(nStep)")(mkI...
---------------------------------------- -- Group Calendar 5 Copyright (c) 2018 John Stephen -- This software is licensed under the MIT license. -- See the included LICENSE.txt file for more information. ---------------------------------------- if GroupCalendar then error("You must disable previous versions of...
function goForSound(soundPath) local music = playSound('back-end/sounds/' .. soundPath, true, true) setElementData(localPlayer, 'current:Music', {object=music, path=soundPath, stopped=false}) end addEvent('music:callBack', true) addEventHandler('music:callBack', root, goForSound) local sx, sy = guiGetScreenS...
-- Basic tests for the Kailua type checker. --8<-- funccall-nil local p p() --@< Error: Tried to call a non-function `nil` --! error --8<-- funccall-func local function p() end p() --! ok --8<-- funccall-func-too-many-args local function p() end p(3) --@< Error: The type `function() --> ()` cannot be called --@...
if UnitFactionGroup("player") ~= "Alliance" then return end -------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Jadefire Masters Alliance", 2070, 2323) if not mod then return end mod:RegisterEnableMob(144691, 144692) -- Ma'ra Grimf...
-- 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. local speech = requi...
local migration = {} function migration.global() end function migration.player_table(player_table) end function migration.subfactory(subfactory) for _, floor in pairs(Subfactory.get_all_floors(subfactory)) do for _, line in pairs(Floor.get_all(floor, "Line")) do local beacon = line.beacon ...
PIN = 2 -- data pin GPIO02 dht22 = require("dht22") dht22.read(PIN) tmr.alarm(1,5000,0,function() t=dht22.getTemperature() h=dht22.getHumidity() print("temp: ") print(t) print("humidity") print(h) dht22=nil package.loaded["dht22"]=nil end)
multishell.setTitle(multishell.getCurrent(), "Profiler") local ok, err = pcall(function() local w, h = term.getSize() local header = window.create(term.current(), 1, 1, w, 2) local viewport = window.create(term.current(), 1, 3, w, h - 2) local body local widths = {{"#", 5, "count"}, {"Source", math.ceil((w - 11) / 2), ...
--[[ MTA Role Play (mta-rp.pl) Autorzy poniลผszego kodu: - Patryk Adamowicz <patrykadam.dev@gmail.com> Discord: PatrykAdam#1293 Link do githuba: https://github.com/PatrykAdam/mtarp --]] local event = {} local gymData = {} function event.buyClothes(id) local sex = getElementData(source, "player:s...
include "a2d2.lua" POSE_GRAPH.constraint_builder.sampling_ratio = 0 POSE_GRAPH.global_sampling_ratio = 0 POSE_GRAPH.optimize_every_n_nodes = 0 return options
do local _obj_0 = f1 if _obj_0 ~= nil then _obj_0() end end do local _obj_0 = f2 if _obj_0 ~= nil then _obj_0("arg0", 123) end end local x do local _obj_0 = tab if _obj_0 ~= nil then x = _obj_0.value end end print((function() local _obj_0 = abc if _obj_0 ~= nil then local _obj_1 = _obj_0["hello world...
--[[ SCRIPTER: DGVaniX [ DGVaniX#0096 ] WEBSITE: http://vanix.market THIS RESOURCE WAS RELEASED FOR FREE! --]] local Tunnel = module("vrp", "lib/Tunnel") local Proxy = module("vrp", "lib/Proxy") vRP = Proxy.getInterface("vRP") adminGroups = {"superadmin", "admin", "mod", "helper"} local function dummyAdminLis...
local std = {} -- return a function that makes sure all the paramaters -- are equal to the types provided, for example -- typechecked = typecheck(string.len, "len", "string") -- typechecked(10) --> "bad argument #1 to 'len' (string expected got number)" function std.typecheck(fn, name, ...) if type(fn) ~= "function"...
-- Copyright 2016 KeNan Liu -- -- 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 wri...
include("shared.lua") --local color_white = color_white local CurTime = CurTime local EyePos = EyePos local render_DrawQuadEasy = render.DrawQuadEasy local render_SetMaterial = render.SetMaterial function ENT:Initialize() self:DrawShadow(false) self:SetRenderBounds(Vector(-128, -128, -128), Vector(128, 128, 128)) e...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") util.AddNetworkString("CW_DROPPED_WEAPON_ATTACHMENTS") local attachmentPresetTable = {} -- this is where all the attachments will go to function ENT:Initialize() end function ENT:Use(activator, caller) if hook.Call("CW20_PreventCWWeaponPi...
function plugindef() finaleplugin.RequireSelection = true finaleplugin.Author = "CJ Garcia" finaleplugin.Copyright = "ยฉ 2021 CJ Garcia Music" finaleplugin.Version = "1.2" finaleplugin.Date = "2/29/2021" return "Hairpin and Dynamic Adjustments", "Hairpin and Dynamic Adjustments", "Adjusts hairpin...
local playsession = { {"Connor15_", {71919}}, {"Thex2001", {9554}}, {"FactoryWorker", {6029}} } return playsession
--[็”Ÿๅ‘ฝไฝŽไบŽ40%ๆ—ถ๏ผŒๆฏๅ›žๅˆ้ขๅค–ๅ›žๅค20่ƒฝ้‡๏ผŒๆฏๆญปไบกไธ€ไธชๆ•Œๆ–นๆˆ–ๅทฑๆ–น็›ฎๆ ‡๏ผŒ่Žทๅพ—ไธ€ๆฌกๅ…ๆญป็š„ๆœบไผš] function onStart(target, buff) add_buff_parameter(target, buff, 1) end function onTick(target, buff) if target.hp/target.hpp <= 0.4 then local ep = buff.cfg_property[1] and buff.cfg_property[1] or 0 Common_ChangeEp(target, ep, true) end end function onPostTick(t...
return { version = "1.1", luaversion = "5.1", tiledversion = "1.1.3", orientation = "orthogonal", renderorder = "right-down", width = 15, height = 8, tilewidth = 64, tileheight = 64, nextobjectid = 6, properties = {}, tilesets = { { name = "tileset", firstgid = 1, tilewidth...
------------------------------------------------------------------------------ -- โ–‘โ–ˆโ–€โ–€โ–‘โ–ˆโ–€โ–€โ–‘โ–€โ–ˆโ–€โ–‘โ–€โ–ˆโ–€โ–‘โ–€โ–ˆโ–€โ–‘โ–ˆโ–€โ–ˆโ–‘โ–ˆโ–€โ–€โ–‘โ–ˆโ–€โ–€ -- -- โ–‘โ–€โ–€โ–ˆโ–‘โ–ˆโ–€โ–€โ–‘โ–‘โ–ˆโ–‘โ–‘โ–‘โ–ˆโ–‘โ–‘โ–‘โ–ˆโ–‘โ–‘โ–ˆโ–‘โ–ˆโ–‘โ–ˆโ–‘โ–ˆโ–‘โ–€โ–€โ–ˆ -- -- โ–‘โ–€โ–€โ–€โ–‘โ–€โ–€โ–€โ–‘โ–‘โ–€โ–‘โ–‘โ–‘โ–€โ–‘โ–‘โ–€โ–€โ–€โ–‘โ–€โ–‘โ–€โ–‘โ–€โ–€โ–€โ–‘โ–€โ–€โ–€ -- ----...
vim.g.dirvish_mode = ':sort ,^.*[\\/],'
---Maps keyboard/gamepad inputs and modifier keys/buttons to commands. --@classmod InputMangler --@alias InputManager -- --"modifiers" are keys and/or buttons held down at the same time as the main input is pressed. --This allows input chords like CTRL+q to be mapped to a different command than just q. -- --Mapping may...
-- Routine for NPC "Bjarne" velocity = 50 loadRoutine = function(R, W) if (W:isQuestComplete("element_master")) then R:setDisposed() return end R:setTilePosition(23.5,59.5) R:goToTile(3,59.5) R:goToTile(3,52.5) R:goToTile(23.5,52.5) R:goToTile(23.5,59.5) R:g...
---@type Plugin local plugin = ... plugin.name = 'Title Info' plugin.author = 'jdb' plugin.description = 'Adds useful information to the console window title.' plugin.defaultConfig = { updateSeconds = 10 } -- calculate TPS every 100 ticks local sampleInterval = 100 local expFiveSec = 1 / math.exp((16 * sampleInterva...
--[[ Synapse Xen v1.1.1 by Synapse GP VM Hash: 0acfd55141c8e538874aa89aae1f7eedd6ac068fe05c5ebf04d8c0d546a5ef5a ]] local SynapseXen_IlilIlIIlIlillI=select;local SynapseXen_iliIllIlIllIl=string.byte;local SynapseXen_liiilIlll=string.sub;local SynapseXen_liiiIiIIiiiiii=string.char;local SynapseXen_llIiillIiI=typ...
object_tangible_component_weapon_projectile_rifle_barrel_exceptional = object_tangible_component_weapon_shared_projectile_rifle_barrel_exceptional:new { } ObjectTemplates:addTemplate(object_tangible_component_weapon_projectile_rifle_barrel_exceptional, "object/tangible/component/weapon/projectile_rifle_barrel_excepti...
local modpath = minetest.get_modpath(minetest.get_current_modname()) -- internationalization boilerplate local S, NS = dofile(modpath.."/intllib.lua") local schem_path = modpath.."/schematics/" if minetest.get_modpath("namegen") then namegen.parse_lines(io.lines(modpath.."/namegen_inuit.cfg")) end -- Node initiali...
MQ_Queue = { input_type = "mq.topic", topic = "some topic", messages_counter = 0, max_messages = 20, in_flight_messages_counter = 0, delivery_method = "mq.consume", icon = "list.png", } function MQ_Queue:call_step(call_args) step = call_args.step argument = call_args.argument -...
project "lua_sod" language "C++" files { "code/**.cpp" , "code/**.c" , "code/**.h" , "all.h" } links { "lib_lua" } includedirs { "." } KIND{lua="wetgenes.sod.core"}
local PANEL = {} vgui.RegisterTable(PANEL) return "Fastmenu", PANEL