content
stringlengths
5
1.05M
local luatrace = require("luatrace") function a(n) print("wait") if n > 0 then return a(n-1) end end luatrace.tron() a(1) luatrace.troff()
return { ["drop-all-ipv6-iface-bytes"] = 106, ["drop-all-ipv6-iface-packets"] = 1, ["drop-ttl-zero-ipv4-bytes"] = 66, ["drop-ttl-zero-ipv4-packets"] = 1, ["hairpin-ipv4-bytes"] = 66, ["hairpin-ipv4-packets"] = 1, ["in-ipv6-bytes"] = 106, ["in-ipv6-frag-reassembly-unneeded"] = 1, ["in-ipv6-pac...
local module = {} local player = game:GetService("Players").LocalPlayer local gui = player.PlayerGui.gameUI.serverBrowser function module.open() end function module.init(Modules) local httpService = game:GetService("HttpService") local servers local serversDataValue local network = Modules.network gui.close.M...
function Tick(dt) print(Task.Wait(.08)) end
-- title: entity.lua -- author: Samy Bencherif -- desc: Parent class of all game entities local Object = require("libraries/classic/classic") local Player = require("entities/player") local Prop = require("entities/prop") local assets = require("libraries/cargo/cargo").init("assets") local GameTools = require("Gam...
local commands = {} local messagePrefix = "[SERVER]" local API_Constants = require(script:GetCustomProperty("API_Constants")) local AdminData = require(script:GetCustomProperty("AdminData")) ---------------------------------------------------------------------------------------------------------------- -- LOCAL HELPE...
local type = type local concat = table.concat local strategy = {} function strategy.load(session, cookie, key, keep_lock) local storage = session.storage local id = cookie.id local id_encoded = session.encoder.encode(id) local data, err if storage.open then data, err = session.storage:open...
local logger = require 'hj212.logger' local base = require 'hj212.calc.base' local mgr = require 'hj212.calc.manager' local types = require 'hj212.types' local flow = require 'hj212.calc.water.flow' local pollut = require 'hj212.calc.water.pollut' local water = base:subclass('hj212.calc.water') --[[ -- COU: cou of sa...
local curl = require "lcurl.safe" script_info = { ["title"] = "史莱姆", ["description"] = "http://www.slimego.cn/", ["version"] = "0.0.1", } function onSearch(key, page) local data = "" local c = curl.easy{ url = "http://www.slimego.cn/search.html?q=" .. pd.urlEncode(key) .. "&rows=20&page=" .. page, followloc...
local/me = game.Players.xSoulStealerx sel = false dist = 8 function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form) part.Parent = parent part.formFactor = form part.CanCollide = collide part.Transparency = tran part.Reflectance = ref part.Size = Vector3.new(x,y,z) part.BrickColor = BrickColor.new(...
registerNpc(362, { walk_speed = 250, run_speed = 1050, scale = 300, r_weapon = 1094, l_weapon = 0, level = 118, hp = 39, attack = 582, hit = 245, def = 618, res = 285, avo...
-- Camera Shaker -- Crazyman32 -- February 26, 2018 --[[ CameraShaker.CameraShakeInstance cameraShaker = CameraShaker.new(renderPriority, callbackFunction) CameraShaker:Start() CameraShaker:Stop() CameraShaker:Shake(shakeInstance) CameraShaker:ShakeSustain(shakeInstance) CameraShaker:ShakeOn...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] local COMMAND = Clockwork.command:New("ContSetName"); COMMAND.tip = "Set a contai...
--[[ Bookmarks GUI for Minetest Copyright (c) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com> Source Code: https://github.com/cornernote/minetest-bookmarks_gui License: BSD-3-Clause https://raw.github.com/cornernote/minetest-bookmarks_gui/master/LICENSE ]]-- -- expose api bookmarks_gui = {} -- filename boo...
data:extend( { ------------------------------------------------------------------------------ -- Technology -- ------------------------------------------------------------------------------ { type = "technology", name = "automated-construction-2...
-- Automation 4 demo script -- Macro that adds \be1 tags in front of every selected line local tr = aegisub.gettext script_name = tr"Add edgeblur" script_description = tr"A demo macro showing how to do simple line modification in Automation 4" script_author = "Niels Martin Hansen" script_version = "1" function add...
local Workspace = game:GetService("Workspace") local DebugVisualize = require(script.Parent.DebugVisualize) local CAST_COUNT = 32 -- TODO: use normals to get a better plane with fewer points -- http://www.ilikebigbits.com/blog/2015/3/2/plane-from-points local function planeFromPoints(points, weights) if #points < 3...
require 'tables' require 'sets' file = require 'files' config = require 'config' require 'strings' res = require 'resources' require 'generic_helpers' require 'parse_action_packet' require 'statics' _addon.version = '3.13' _addon.name = 'BattleMod' _addon.author = 'Byrth, maintainer: SnickySnacks' _addon.commands = {...
return {'agger','agglomeraat','agglomeratie','agglutinatie','agglutineren','aggravatie','aggregaat','aggregatie','aggregatieniveau','aggregatietoestand','aggregeren','aggregaatstoestand','agglomeratieraad','agglomeraten','agglomeraties','agglutinaties','agglutineerden','agglutineert','aggregaten','aggregatieniveaus','a...
-- ============================================================================= -- -- Filename: eCombatTextFilter.lua -- -- Description: Filters low healing numbers from the wow combat text. -- -- Author: Mathias Jost (mail@mathiasjost.com) -- -- ===============================================...
-- Radiation-shielded Lead Machine Chassis minetest.register_craft({ output = "elepower_nuclear:machine_block", recipe = { {"elepower_dynamics:induction_coil_advanced", "elepower_dynamics:graphite_ingot", "elepower_dynamics:induction_coil_advanced"}, {"elepower_dynamics:graphite_ingot", "elepower_dynamics:lead_b...
-- luacheck: std lua53 if _VERSION < 'Lua 5.3' then require ('compat53') end local Objects = {} local to_value = { -- Value; cap. [0] = '< i4 xxxx', [1] = '< f xxxx', [2] = '< f xxxx', [3] = '< z xxxx', } local to_modification = { -- Abilities, doodads, and upgrades. [true] = { -- Name; type; variation; da...
function AddTextEntry(key, value) Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"), key, value) end local config = { ["TITLE"] = "~r~ES_EXTENDED", ["SUBTITLE"] = "~p~Roll Play", ["MAP"] = "~b~Map", ["STATUS"] = "~g~Status", ["GAME"] = "~r~Exit", ["INFO"] = "~o~Info", ["SETTINGS"] = "~y~Se...
local Observable = require 'observable' local Observer = require 'observer' local Subscription = require 'subscription' local util = require 'util' --- @class Subject -- @description Subjects function both as an Observer and as an Observable. Subjects inherit all -- Observable functions, including subscribe. Values ca...
---@class RZSHunterCamp : zombie.randomizedWorld.randomizedZoneStory.RZSHunterCamp RZSHunterCamp = {} ---@public ---@return ArrayList|Unknown function RZSHunterCamp:getForestClutter() end ---@public ---@param arg0 IsoMetaGrid.Zone ---@return void function RZSHunterCamp:randomizeZoneStory(arg0) end
require 'torch' totem = {} local ondemand = {nn = true} local mt = {} --[[ Extends the totem package on-demand. A sub-package that has not been loaded when totem was initially required can be added on demand by defining the __index function of totem's metatable. Then the associated file is being included and the fu...
---This is the configuration file for modules that aren't quite ready for prime -- time yet. -- Any variable in the 'config' table in smb-psexec.nse can be overriden in the -- 'overrides' table. Most of them are not really recommended, such as the host, -- key, etc. overrides = {} --overrides.timeout = 40 modules...
-- this add-on simply adds an alternative UI that allows to start/stop/pause a simulation. This is not very useful, -- but illustrates how easily V-REP can be customized using add-ons execMode=... if (execMode==0) then uiHandles=simLoadUI('addOnDemoUi.ttb') if (#uiHandles==1) then simSetUIProperty(uiHandles[1...
local path = ConstEnum.icons .. "/iconnew/xxcs" data:extend({ { type = "sprite", name = "10101-sprite", filename = path .. "/10101.png", size = 128, }, { type = "sprite", name = "10102-sprite", filename = path .. "/10102.png", size = 128, ...
object_intangible_vehicle_landspeeder_ab1_pcd = object_intangible_vehicle_shared_landspeeder_ab1_pcd:new { } ObjectTemplates:addTemplate(object_intangible_vehicle_landspeeder_ab1_pcd, "object/intangible/vehicle/landspeeder_ab1_pcd.iff")
-- Edge Theme vim.g['edge_diagnostic_virtual_text'] = 'colored' vim.g['edge_menu_selection_background'] = 'green' vim.g['edge_better_performance'] = 1 vim.cmd('colorscheme edge') -- Indent blankline vim.cmd('highlight IndentBlanklineContextChar guifg=#deb974 gui=nocombine') require'indent_blankline'.setup { char =...
-- // Variables local AdorneeLibary = { Name = "Adornee" } -- // Libary Methods function AdorneeLibary.Sphere(TargetCFrame) local Object = Instance.new("Part") local Sphere = Instance.new("SphereHandleAdornment") -------------------------------------------- Object.Transparency = 1 Object.Parent =...
--[[********************************** * * Multi Theft Auto - Admin Panel * * client/admin_gui.lua * * Original File by lil_Toady * **************************************]] _guiprotected = {} function guiCreateHeader(x, y, w, h, text, relative, parent) local header = guiCreateLabel(x, y, w, h, text, re...
local beat = {} --- function beat.beattosec(absbeat, bpm) return ((absbeat - 1) * 60) / bpm end function beat.sectobeat(seconds, bpm) return seconds * (bpm / 60) + 1 end --- return beat
local ABOUT = { NAME = "openLuup.xml", VERSION = "2017.03.31", DESCRIPTION = "read Device / Service / Implementation XML files", AUTHOR = "@akbooer", COPYRIGHT = "(c) 2013-2017 AKBooer", DOCUMENTATION = "https://github.com/akbooer/openLuup/tree/master/Documentation", LICENSE ...
family("scheduler") local base = "/apps/M" prepend_path("PATH",pathJoin(base,"bin")) prepend_path("PATH",pathJoin(base,"sbin")) prepend_path("MANPATH",pathJoin(base,"share/man"))
require 'vm_instr' require 'vm_obj' require 'primitive' require 'stack' require 'util' local function panic( msg ) error( msg or "PANIC" ) end function run( instr_array ) local data_stack = stack_create() local call_stack = stack_create() local ip = 1 local vm = { panic = panic } while ip ...
--Before starting a new game write 6 or 7 in order to regulate the spawns (7 works also with flat and fractal). local mymapgenis = nssm.mymapgenis local mm = nssm.multimobs if (mymapgenis~=6) and (mymapgenis~=7) then mymapgenis = 7 end -- Spawning parameters if mm ~= 0 then if mymapgenis == 6 then -...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
object_tangible_loot_creature_loot_collections_space_engine_mark_05_qualdex = object_tangible_loot_creature_loot_collections_space_shared_engine_mark_05_qualdex:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_engine_mark_05_qualdex, "object/tangible/loot/creature/loot/collecti...
-- execute_pipeline -- -- Executes the given Redis commands as a Lua script. When an error occurs, the -- underlying exception is raised and execution stops. Supports executing -- registered Redis Lua scripts using EVALSHA. -- -- KEYS = { } -- ARGV = { can_replicate_commands, n_commands -- [, cmd_1_n_args, cmd...
--HeroInfo 1.2 --Plugin for HeroInfo by Tasyen --This Creates a TextArea which displays the name, the Extended tooltip of selected units and can show some of their skills. HeroInfo = {} -- TextArea HeroInfo.DescHeroNamePrefix = "|cffffcc00" --added before the Units Name HeroInfo.DescHeroNameSufix = "|r" ...
#!/usr/bin/env luvit local spawn = require('childprocess').spawn local execFile = require('childprocess').execFile local stream = require('..') local child = spawn("git", {"clone", "--recursive", "-b", "songgao/wip", "git://github.com/virgo-agent-toolkit/luvit-tape", "modules/tape"}) stream.Readable:new():wrap(child....
-- ppc ioctl differences local arch = { IOC = { SIZEBITS = 13, DIRBITS = 3, NONE = 1, READ = 2, WRITE = 4, }, ioctl = function(_IO, _IOR, _IOW, _IORW) return { FIOCLEX = _IO('f', 1), FIONCLEX = _IO('f', 2), FIOQSIZE = _IOR('f', 128, "off"), FIOASYN...
-- wasps nest minetest.register_node("dmobs:hive", { description = "Wasp Nest", tiles = {"dmobs_hive.png"}, groups = {crumbly=1, oddly_breakable_by_hand=1, falling_node=1, flammable=1}, on_destruct = function(pos, oldnode) minetest.add_entity(pos, "dmobs:wasp") minetest.add_entity(pos, "dmobs:wasp") minetest....
local _G = _G; local ABP_4H = _G.ABP_4H; local AceGUI = _G.LibStub("AceGUI-3.0"); local GetNumGroupMembers = GetNumGroupMembers; local GetRaidRosterInfo = GetRaidRosterInfo; local IsInRaid = IsInRaid; local UnitName = UnitName; local GetTime = GetTime; local GetServerTime = GetServerTime; local UnitClass = UnitClass; ...
-- The runner is responsible for executing a certain piece of logic on all entities of a certain filter -- filter: String - The name of the filter -- funct : Function - The function to be executed on all entities that pass a certain filter -- args : Table - Table of arguments for runner -- Return values: two bo...
local parser = require "testing.elimination_parser" local ll1 = require 'll1.ll1' local elimination = require 'll1.elimination' local config = ll1.configure(parser.grammar) print(config:pretty()) local new_config = elimination.eliminate_cycles(config) --print(new_config:pretty()) local no_rec = elimination.ind...
-- Lua调用C++ result = add(1, 2) print(result)
local utils = require 'utils' local nmap = utils.nmap local nnoremap = utils.nnoremap local buffers = {} function buffers.plugins(use) use 'qpkorr/vim-bufkill' end function buffers.configure() -- Buffer manipulation nmap('<C-d>', ':BD<CR>') -- Buffer navigation nmap('<localleader>bb', ':Telescope buffers<...
-- rFilter_Zork: init -- zork, 2016 ----------------------------- -- Variables ----------------------------- local A, L = ... --config container L.C = {} --player name and class L.C.playerName = UnitName("player") local _, playerClass = UnitClass("player") L.C.playerClass = playerClass --buff, debuff, cooldown, a...
object_tangible_collection_col_tatooine_vistas_marker_02 = object_tangible_collection_shared_col_tatooine_vistas_marker_02:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_col_tatooine_vistas_marker_02, "object/tangible/collection/col_tatooine_vistas_marker_02.iff")
(lp1 (ccopy_reg _reconstructor p2 (cpygments.token _TokenType p3 c__builtin__ tuple p4 (S'Text' p5 ttRp6 (dp7 S'subtypes' p8 c__builtin__ set p9 ((lp10 g2 (g3 g4 (g5 S'Symbol' p11 ttRp12 (dp13 g8 g9 ((ltRp14 sS'parent' p15 g6 sbag2 (g3 g4 (g5 S'Whitespace' p16 ttRp17 (dp18 g8 g9 ((ltRp19 sg15 g6 sbatRp20 sg11 g12 sg16 ...
local M_M = { __call = function(class, ...) return class.new(...) end } local O_M = { __len = function(o) return #o.heap end } local O_I = {} local M = {} M.new = function() local self = setmetatable({}, O_M) self.heap = {} return self end O_I.size = function(self) return #self.heap end O_I.isEmpty = f...
local disabled = {[425] = true, [520] = true, [476] = true, [464] = true, [430] = true, [432] = true, [447] = true} addEventHandler("onPlayerVehicleEnter", root, function(vehicle) local enabled = not disabled[getElementModel(vehicle)] if getElementType( source ) == "player" then toggleC...
#!/usr/bin/env tarantool box.cfg { listen = 3301, memtx_memory = 128 * 1024 * 1024, -- 128 Mb -- log = 'file:/tmp/tarantool.log', log_level = 6, } -- API user will be able to login with this password box.schema.user.create('api_user', { password = 'secret', if_not_exists = true }) -- API us...
wrk.method = "POST" wrk.body = '{"Name": "my task", "CreatedAt": "2018-11-28T11:58:26+02:00"}' wrk.headers["Content-Type"] = "application/json"
-- include useful files u_execScript("utils.lua") u_execScript("common.lua") u_execScript("commonpatterns.lua") u_execScript("nextpatterns.lua") u_execScript("evolutionpatterns.lua") u_execScript("ctpatterns.lua") math.random() -- this function adds a pattern to the timeline based on a key function addPattern(mKey) ...
print2(getFunction(edRenderChar)) function edRenderChar(c,n,xp,yp) if n==5 then drawLine(0,0,10000,10000) end colorGL(255,0,0) edStrokeCharacter(c,0,0) end setBufferName("hilitechar.lua")
Auctionator = { Debug = {}, Database = {}, Constants = {}, Utilities = {}, Events = {}, SlashCmd = {}, State = { Loaded = false, CurrentVersion = nil, LiveDB = nil, }, SavedState = {}, Search = { Categories = {}, CategoryLookup = {}, Filters = {}, }, Tooltip = {}, Loc...
----------------------------------- -- Area: Western Adoulin -- NPC: Gontrain -- Type: Standard NPC and Quest NPC -- Involved with Quest: 'Raptor Rapture' -- !pos 13 0 -143 256 ----------------------------------- require("scripts/globals/quests"); ----------------------------------- function onTrade(player,npc,trade)...
ITEM.name = "Restraints" ITEM.description = "These are used for restraining unsavory individuals" ITEM.model = "models/props_c17/suitcase_passenger_physics.mdl" ITEM.class = "weapon_cuff_elastic" ITEM.weaponCategory = "support" ITEM.width = 2 ITEM.height = 2 ITEM.price = 1250 ITEM.weight = 0.4 ITEM.iconCam = { ang ...
require('bustex') local f = require('f') local nil_gen = function () return nil end describe('functional', function () describe('iterators', function () describe('basic behaviour', function () it('should wrap an iterator triplet into a table', function () local wrapped = f.wrap(nil_gen,...
local Projectile = require('modules/Projectile') local MagicAirBend = class('MagicAirBend', Projectile) function MagicAirBend:initialize( options ) Projectile.initialize( self, options ) self.type = 'magicgood' self.speed = 120 self.bend_accel = 3 self.bend_speed = 0 self.magic_sound = love.a...
local cmpnvimlsp_ok, cmpnvimlsp = pcall(require, 'cmp_nvim_lsp') if not cmpnvimlsp_ok then return end local lspinstaller_ok, lspinstaller = pcall(require, 'nvim-lsp-installer') if not lspinstaller_ok then return end -- The nvim-cmp almost supports LSP's capabilities so You should advertise it to LSP servers.. loc...
local openssl = require'openssl' local io = require'io' local M = {} M["_VERSION"] = "LuaCrypto 0.3.1" M["_COPYRIGHT"] = "Copyright (C) 2014 GeorgeZhao"; M["_DESCRIPTION"] = "crypto is a high level Lua wrapper for OpenSSL based on lua-openssl"; -----------crypto------------------ function M.hex(s) lo...
modifier_ramza_white_mage_reraise_buff = class({}) function modifier_ramza_white_mage_reraise_buff:IsPurgable() return false end function modifier_ramza_white_mage_reraise_buff:GetTexture() return "omniknight_guardian_angel" end function modifier_ramza_white_mage_reraise_buff:IsBuff() return true end function modifier...
local Control = script.Parent local Core = Control.Parent local UIBlox = Core.Parent local Packages = UIBlox.Parent local Roact = require(Packages.Roact) local Cryo = require(Packages.Cryo) local Interactable = require(UIBlox.Core.Control.Interactable) local UIBloxConfig = require(Packages.UIBlox.UIBloxConfig) loca...
local utils = require("flutter-tools.utils") local path = require("flutter-tools.utils.path") local success, dap = pcall(require, "dap") if not success then utils.notify("nvim-dap is not installed!\n" .. dap, utils.L.ERROR) return end local fn = vim.fn local has = utils.executable local fmt = string.format local...
return {'thuis','thuisadres','thuisarbeid','thuisbaan','thuisbankieren','thuisbasis','thuisbehandeling','thuisbevallen','thuisbevalling','thuisbezorgen','thuisbezorging','thuisbioscoop','thuisblijfmoeder','thuisblijfster','thuisblijven','thuisblijver','thuisbrengen','thuisclub','thuiscomputer','thuisduel','thuisfluiter...
--[[ Module:Wrapper Author:DylanYang Time:2021-01-30 22:05:41 ]] local super = require("patterns.creational.builder.Packing") local _M = Class("Wrapper", super) function _M.public:Pack() return "Wrapper" end return _M
return function() local tt = tmr.create() table.insert(timers, tt) local ii = 0 local g,r,b clrs = {0, 12, 25, 100, 150, 230, 280} pulse = {0, 17, 63, 127, 191, 237, 255, 237, 191, 127, 63, 17, 0} tt:alarm(75, tmr.ALARM_AUTO, function() if pulse[ii%17] then g,r,b = leds.h...
return {'emoe','emolumenten','emoticon','emotie','emotiecultuur','emotieloos','emotionaliteit','emotioneel','emotioneren','emotievol','emons','emonts','emonds','emoes','emoties','emotievolle','emotioneelst','emotioneelste','emotionele','emotioneler','emoticons','emotieloze','emotioneels','emotioneerde'}
DefineClass.SelectionModeDialog = { __parents = { "UnitDirectionModeDialog" }, mode_name = "selection", drag_start_pos = false, drag_selection_class = false, drag_selection_obj = false, } function SelectionModeDialog:OnKbdKeyDown(virtual_key) local result = UnitDirectionModeDialog.OnKbdKeyDown(self, virtual_key)...
data:extend({ -- RRM Range 10 { type = "recipe", name = "rrm-range10", enabled = "true", ingredients = { {"iron-gear-wheel", 5}, {"copper-cable", 2}, {"iron-plate", 4} }, result = "rrm-range10" }, -- RRM Range 20 { type = "recipe", ...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [ResetGlobalProperties] "MENUICON" reset -- [INI file] [ApplicationManager] MenuIcon -- -- Description: -- Check that SDL correctly retrievs menuIcon from INI file in case ResetGlobalProperties -- is...
return { plugins = function(use) use("kana/vim-textobj-user") use("kana/vim-textobj-indent") use("kana/vim-textobj-entire") use("kana/vim-textobj-line") use("glts/vim-textobj-comment") use("terryma/vim-expand-region") use("andymass/vim-matchup") use("justinmk/vim-sneak") end, set...
--------------------------------------------------------------------------------------------------- -- Proposal: -- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0207-rpc-message-protection.md -- Description: -- Precondition: -- 1) App registered and activated, OnHMIStatus(FULL) -- 2) RPC doesn...
-- Copyright 2021 - Deviap (deviap.com) -- Management of colors. return { }
function TriggerNotification(DATA) SendNUIMessage({ createNew = true, data = DATA }) end
local P = {} local System = require 'System' local Target = require 'Target' local format = string.format local concat = table.concat local packages = {} local ninja = { supports_console_pool = true } local function check_ninja_features() local version = os.getenv('jagen_ninja_version') if not version th...
NewShipType = StartShipConfig() NewShipType.displayedName="$1518" NewShipType.sobDescription="$1519" NewShipType.maxhealth=getShipNum(NewShipType, "maxhealth", 18500) NewShipType.regentime=1500 NewShipType.minRegenTime=1500 NewShipType.sideArmourDamage = getShipNum(NewShipType, "sideArmourDamage", 1.2) NewShipType.rear...
Inspector = GuiElement:extend("Inspector"); function Inspector:init(parent, name, x, y, selector) Inspector.super.init(self, parent, name, x, y); self.selector = selector; self.default_loaders = { x = "text", y = "text" } end function Inspector:draw() local sk = self:get_skin(); sk:set_color("default"); ...
#!/usr/bin/env tarantool local tap = require('tap') local fio = require('fio') local has_popen, popen = pcall(require, 'popen') package.cpath = './?.so;' .. package.cpath local memcached = require('memcached') local test = tap.test('memcached benchmarks') if not has_popen then test:plan(0) os.exit(0) end tes...
-- Shows available tech trades in-game, in csv format -- Unlikely to have any trades in 4000 BC, so change this relative_save = "/Saves/Auto/Conquests Autosave 4000 BC.SAV" player = 1 bic.load_default() sav.load(install_path .. relative_save) -- Takes civ as a Lua 1-based index to lead function is_aliv...
compare = {"<", ">", "≤", "≥"} index = math.random(4) relat = compare[index] operat = {"+", "-"} ind = math.random(2) factor3 = math.random(10) + 4 factor2 = factor3 + 3 + math.random(10) choice = math.random(4) if (choice == 1) then sign2 = "*" sign1 = operat[ind] factor1 = math.random(15) + 4 ...
local GraffitiScript = {} GraffitiScript.Properties = { {name = "title", type = "string"}, {name = "text", type = "string"}, {name = "footer", type = "string"}, } --This function is called on the server when this entity is created function GraffitiScript:Init() end function GraffitiScript:ClientInit() local inpu...
local h = require("null-ls.helpers") local methods = require("null-ls.methods") local u = require("null-ls.utils") local client_id local get_client = function() for _, client in ipairs(vim.lsp.get_active_clients()) do if client.name == "tsserver" then return client end end end retu...
local Runner = require "nvim-test.runner" local jest = require "nvim-test.runners.jest" local mocha = Runner:init({ command = { "./node_modules/.bin/mocha", "mocha" }, file_pattern = "\\v(tests?/.*|test)\\.(js|jsx|coffee)$", find_files = { "{name}.test.{ext}" }, }, { javascript = jest.queries.javascript, typ...
package.path = "?.lua;test/lua/errors/?.lua" require 'args' -- arg types for language operator -- ========= unary operators: - # not -- unary minus - banner('unary -') negative = function(a) return - a end checkallpass('negative',{somenumber}) checkallerrors('negative',{notanumber},'attempt to perform arithmetic') ...
local BP1 = {} BP1.a0 = 0.010 BP1.amax = 0.025 BP1.H = 15.0 BP1.h = 3.0 BP1.Vp = 1e-9 BP1.rho0 = 2.670 BP1.b = 0.015 BP1.V0 = 1.0e-6 BP1.f0 = 0.6 function BP1:new(o) o = o or {} setmetatable(o, self) self.__index = self return o end function BP1:boundary(x, y, t) if x > 1.0 then return se...
require "util" require "config" table.tostring = nil table.tostring = function(thetable, custom) local string_parts = {} for k, v in pairs(thetable) do local value = v local value_type = type(v) if value_type == "table" then value = table.tostring(value, custom) elseif value_type == "string"...
local Classes = require "Classes" local Loader = Classes.class() function Loader:init(fileName) self.Assembly = LuaLoader:LoadAssembly(fileName) end function Loader:GetType(name) return LuaLoader:GetType(self.Assembly,name) end return Loader
--[[ Upbit Open API ## REST API for Upbit Exchange - Base URL: [https://api.upbit.com] - Official Upbit API Documents: [https://docs.upbit.com] - Official Support email: [open-api@upbit.com] OpenAPI spec version: 1.0.0 Contact: ujhin942@gmail.com Generated by: https://github.com/swagger-api/swagger-codeg...
--Level5: kinda like level 5 local storyboard = require( "storyboard" ) local widget = require( "widget" ) local sfx = require( "sfx" ) local scene = storyboard.newScene() local physics = require("physics"); local arrowdata = require( "arrowdata5" ) physics.start(); physics.setScale( 60 ) physics.set...
local tracedoc = require "tracedoc" local doc = tracedoc.new {} doc.a = false doc.b = { x = 1, y = 2 } doc.c = { a = 3, b = 4 } tracedoc.opaque(doc.c, true) local function map(str) return function (doc, v) print(str, v) end end local function add_b(doc, x, y) print("b.x+b.y=", x+y) end local function add_c(d...
local TXT = Localize{ [0] = " ", [1] = "Door", [2] = "Leave the Lincoln", [3] = "Chest", [4] = "Button", [5] = "Lever", [6] = "Vault", [7] = "Cabinet", [8] = "Switch", [9] = "", [10] = "Bookcase", [11] = "Power Restored", [12] = "", [13] = "", [14] = "You Successfully disarm the trap", [15] = "", [16] ...
local RicochetColor = Color(255,255,255,255) local RicochetIDOffset = 33 local RicochetMat = Material("effects/yellowflare") function EFFECT:Init(data) self.StartPos = data:GetOrigin() self.Dir=data:GetNormal() self.Dir:Normalize() self.Len=128 self.EndPos=self.StartPos+self.Dir*self.Len self.LifeTime = 0.1 ...
local netmod = luci.model.network local _, p for _, p in ipairs({"4g"}) do local proto = netmod:register_protocol(p) function proto.get_i18n(self) if p == "4g" then return luci.i18n.translate("LTE/HSPA+") end end function proto.is_installed(self) if p == "4g" then return (nixio.fs.glob("/lib/netifd/...
object_draft_schematic_furniture_furniture_table_heroic_exar_kun = object_draft_schematic_furniture_shared_furniture_table_heroic_exar_kun:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_table_heroic_exar_kun, "object/draft_schematic/furniture/furniture_table_heroic_exar_kun.iff")