content
stringlengths
5
1.05M
local HelpText = [[ HotSwap allows objects in the game tree to be "marked", running them as plugins when Studio's run mode is enabled. When HotSwap is enabled and active, each marked object is treated as a Plugin object, and all descendant Scripts are run in a plugin-like environment. As an exception, if a marked obje...
function onEvent() function onUpdate(elapsed) if curStep == 0 then started = true end songPos = getSongPosition() local currentBeat = (songPos/5000)*(curBpm/60) doTweenY('opponentmove', 'dad', -100 - 150*math.sin((currentBeat+12*12)*math.pi), 2) doTweenX('disruptor2', 'dis...
local blacklist = { "path-scan", "tile-scan", "unit-scan", "unitdata-scan", "zone-scan", -- aai programmable structures "big_brother-surveillance-center", "big_brother-surveillance-small", -- big brother "or_radar", -- cargo ships (oil rig radar) "creative-mod_super-radar", "creative-mod_super-radar-2",...
--@ commonstargets commons control planarvector quadraticintercept getbearingtopoint evasion --@ dodgeyaw avoidance waypointmove -- Cruise Missile AI DodgeAltitudeOffset = nil CruiseIsClosing = false CruiseArmed = false CruiseDetonationTime = nil CruiseSpeedSamples = {} CruiseSpeedIndex = 0 CruiseSpeedMax = -math.hug...
--[[ Mirana AI ]] require( "ai/ai_core" ) function Spawn( entityKeyValues ) thisEntity:SetContextThink( "AIThink", AIThink, 0.25 ) behaviorSystem = AICore:CreateBehaviorSystem( { BehaviorNone, BehaviorShootArrow, BehaviorRunAway } ) end function AIThink() -- For some reason AddThinkToEnt doesn't accept member f...
-- -- Author: zhong -- Date: 2016-12-31 09:41:59 -- local CreateLayerModel = class("CreateLayerModel", ccui.Layout) local ExternalFun = appdf.req(appdf.EXTERNAL_SRC .. "ExternalFun") local cmd_private = appdf.req(appdf.CLIENT_SRC .. "privatemode.header.CMD_Private") function CreateLayerModel:ctor(scene) ExternalFu...
-- inculdes local Prompt = require 'prompt' local Timer = require 'vendor/timer' local controls = require('inputcontroller').get() local Gamestate = require 'vendor/gamestate' return { width = 24, height = 48, nocommands = 'I only take commands from a laser lotus above level 7 or the Great Buddha himself!', a...
local _, ADDONSELF = ... local L = ADDONSELF.L ADDONSELF.print = function(msg) DEFAULT_CHAT_FRAME:AddMessage("|CFFFF0000<|r|CFFFFD100MiraiLedger|r|CFFFF0000>|r"..(msg or "nil")) end local function GetMoneyStringL(money, separateThousands) local goldString, silverString, copperString; local gold = floor(money /...
function sorting( a, b ) return a[1] < b[1] end tab = { {"C++", 1979}, {"Ada", 1983}, {"Ruby", 1995}, {"Eiffel", 1985} } table.sort( tab, sorting ) for _, v in ipairs( tab ) do print( unpack(v) ) end
--忘却の海底神殿 function c43889633.initial_effect(c) aux.AddCodeList(c,22702055) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --instant(chain) local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(43889633,1)) e2:SetProperty(E...
PLUGIN.name = "Farming System" PLUGIN.author = "DrodA & AleXXX_007" PLUGIN.desc = "New Brand Farming System." function PLUGIN:SaveData() local savedTable = {} for k, v in ipairs(ents.GetAll()) do if (v:GetClass() == "nut_culture") then table.insert(savedTable, { pos = v:GetPos(), ang = v:GetAngles(), ...
Properties = GuiElement:extend("Properties") function Properties:init(parent, name) GuiElement.init(self, parent, name, 0, 0); self.inputs = {}; -- Table that stores the elements that give the properties self.p = {}; -- The table of properties extracted from the different elements self.add = true; -- Indicates i...
QuickMenu = QuickMenu or class() QuickMenu._menu_id_key = "quick_menu_id_" QuickMenu._menu_id_index = 0 function QuickMenu:new( ... ) return self:init( ... ) end function QuickMenu:init( title, text, options, show_immediately ) QuickMenu._menu_id_index = QuickMenu._menu_id_index + 1 self.dialog_data = { id = Q...
--[[ .______ ______ _______. _______. ____ ____ _______. .______ __ ___ ____ ____ _______ .______ _______. | _ \ / __ \ / | / | \ \ / / / | | _ \ | | / \ \ \ / / | ____|| _ \ / | | |_) ...
minetest.register_on_joinplayer(function(player) minetest.after(0, function(name) local unreadflag = false if mail.messages[name] then for _, message in ipairs(mail.messages[name]) do if message.unread then unreadflag = true end end end if unreadflag then minetest.show_formspec(name, "mai...
local class = require "xgame.class" local window = require "xgame.window" local Align = require "xgame.ui.Align" local UILayer = require "xgame.ui.UILayer" local SWFNode = require "xgame.swf.SWFNode" local swf = require "xgame.swf.swf" local SWFUI = class("SWFUI", UILayer) function SWFUI:ctor() ...
local w3xparser = require 'w3xparser' local mpq_path = require 'mpq_path' local lni = require 'lni' local lml = require 'lml' local progress = require 'progress' local lang = require 'lang' local proxy = require 'proxy' local slk = w3xparser.slk local txt = w3xparser.txt local ini = w3xparser.ini local pairs ...
--- A Compound composed of @{MiniConsole}s and tabs that can be echoed to. -- One @{MiniConsole} is displayed at a time. The tabs are used to switch the active @{MiniConsole}. -- @classmod Chat local Background = require("vyzor.component.background") local Base = require("vyzor.base") local Box = require("vyzor.compou...
require("engine/test/bustedhelper") describe('pico8api', function () describe('camera', function () after_each(function () camera() end) it('should the camera to a floored pixel-perfect position', function () camera(5.1, -11.5) assert.are_same({5, -12}, {pico8.camera_x, pico8.camera_...
function onBeatHit() if curBeat == 32 then setProperty('defaultCamZoom', 0.7); doTweenAlpha('lightTween', 'vignette2', 0, 1, 'circOut') end end function onStartCountdown() makeLuaSprite('vignette2', 'vignette', 0, 0) setScrollFactor('vignette2', 0, 0) setObjectCamera('vignette2', 'hud') addLuaSpri...
local TYPE="double" --define the type for computations local root=love.filesystem.getSourceBaseDirectory() return { runtime={ initial_pop_size=10, max_pop_size=math.huge,--the maximum size the population will grow to. If this size is hit, the weakest members of the population will all be killed off each epoch. math.h...
--[[ Name: cl_init.lua For: SantosRP By: TalosLife ]]-- include "shared.lua" function ENT:Initialize() self.m_vecScreenPos = Vector( -10.6, -12.68, 17.174713 ) self.m_angScreenAng = Angle( 0, 90, 76.45 ) self.m_vecCamPos = Vector( 4.881836, 0.503906, 12.813683 ) self.m_angCamAng = Angle( 13.858, -179.99, 0 ) ...
nut.crafting = nut.crafting or {} nut.crafting.list = nut.crafting.list or {} function nut.crafting.loadFromDir(directory) for k, v in ipairs(file.Find(directory.."/*.lua", "LUA")) do local niceName = v:sub(4, -5) CRAFTING = nut.crafting.list[niceName] or {} if (PLUGIN) then CRAFTING.plugin = PLU...
--Libromancer Bonded --Script by Lyris12 local s,id,o=GetID() function s.initial_effect(c) aux.AddCodeList(c,45001322,101108087) --ritual summon aux.AddRitualProcGreater(c,aux.FilterBoolFunction(Card.IsSetCard,0x17c),LOCATION_HAND,nil,nil,false,s.extraop) end function s.filter(c) return c:IsCode(45001322) ...
-- This is the optimized version. local Queue = {} Queue.ClassName = "Queue" Queue.__index = Queue function Queue.new() return setmetatable({ Head = nil; Tail = nil; }, Queue) end function Queue:Push(Value) local Entry = { Value = Value; Next = nil; } local Tail = self.Tail if Tail ~= nil then Tail....
return { name = 'HintingMode', description = 'True Type hinting mode.', constants = { { name = 'normal', description = 'Default hinting. Should be preferred for typical antialiased fonts.', }, { name = 'light', description = 'Results in...
local Nightmare = {} local Theme = require'nightmare.theme' local highlight = function(group, color) local fg = color.fg and 'guifg=' .. color.fg or 'guifg=NONE' local bg = color.bg and 'guibg=' .. color.bg or 'guibg=NONE' local style = color.style and 'gui=' .. color.style or 'gui=NONE' lo...
require "app.hotfix.hotfix"
circle_gizmo_mat = { passes = { base = { queue='opaque', shader="debug", --depthTest=false, --Don't use depth test false otherwise it doesn't render because of the skydome depthFunc='always', topology='lines' } }, }
print(const) print('tos',tos()) s = slice() --~ mt = debug.getmetatable(s) --~ print(mt,mt.__index) print("slice index",s[2],#s) m = mapr() print("map index",m.one,#m) m.four = '4' print(m.four,#m ) print(gotslice{10,20,30}) st = structz() print("struct fields", st.Name,st.Age) print("calling method",st.Method("h"),...
--[[ Copyright (c) 2015 Frank Edelhaeuser This file is part of lua-mdns. 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...
ITEM.name = "Самогон из мандрагоры" ITEM.desc = "Уникальный алкоголь." ITEM.force = 90 ITEM.thirst = 15 ITEM.quantity = 3
--- @class GISave --- The object used in the saverestore, mainly in saverestore.AddSaveHook. --- It allows you to write blocks directly into the save game files used by Half-Life 2 save system when such save is being saved. local GISave = {} --- Ends current data block started with ISave:StartBlock and returns to t...
local Inventory, super = Class() function Inventory:init() self.storage_for_type = {} self.storage_enabled = true self:clear() end function Inventory:clear() self.storages = {} self.stored_items = {} end function Inventory:addItem(item, ignore_convert) if type(item) == "string" then ...
local ffi = require "ffi" local C = ffi.C local ffi_gc = ffi.gc local ffi_new = ffi.new local ffi_str = ffi.string local floor = math.floor require "resty.openssl.include.bn" local crypto_macro = require("resty.openssl.include.crypto") local format_error = require("resty.openssl.err").format_error local _M = {} local...
local handler = require("handler") local services = require("services") services.call("backend") handler.writeStatus(200) handler.writeBody("from LUA!")
--------------------------------------------------------------------------- -- -- A circular progressbar wrapper. -- -- If no child `widget` is set, then the radialprogressbar will take all the -- available size. Use a `wibox.container.constraint` to prevent this. -- -- -- @author Emmanuel Lepage Vallee &lt;elv1313@gma...
cc = cc or {} cc.WEBSOCKET_OPEN = 0 cc.WEBSOCKET_MESSAGE = 1 cc.WEBSOCKET_CLOSE = 2 cc.WEBSOCKET_ERROR = 3 cc.WEBSOCKET_STATE_CONNECTING = 0 cc.WEBSOCKET_STATE_OPEN = 1 cc.WEBSOCKET_STATE_CLOSING = 2 cc.WEBSOCKET_STATE_CLOSED = 3
--binding to the DynASM encoding engine. --Written by Cosmin Apreutesei. Public Domain. local ffi = require'ffi' local bit = require'bit' local arch = ffi.arch if arch == 'x64' then arch = 'x86' end --same linker for x64 local C = ffi.C local M = {C = C} M._VERSION = 10300 ffi.cdef[[ enum { DASM_S_OK = 0x0...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local host = module:get_host(); local welcome_text = module:get_option("welcome_message") or "Hello $usern...
local function handleBranch(line, branch) local key, value = line:match("^# branch%.(%w+) (.*)") if not key then return end if key == "oid" then branch.id = value elseif key == "head" then branch.name = value elseif key == "upstream" then branch.upstream = value elseif ke...
bakedanuki_futatsuiwas_curse = class({}) LinkLuaModifier( "modifier_bakedanuki_futatsuiwas_curse", "custom_abilities/bakedanuki_futatsuiwas_curse/modifier_bakedanuki_futatsuiwas_curse", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- -- Ability Phase Start fu...
-- Copyright (C) idevz (idevz.org) local utils = require "motan.utils" local consts = require "motan.consts" local singletons = require "motan.singletons" local setmetatable = setmetatable local tab_concat = table.concat local tab_insert = table.insert local tab_sort = table.sort local _M = { _VERSION = "0.1.0" }...
SWEP.Base = "draconic_gun_base" SWEP.HoldType = "ar2" SWEP.Category = "Draconic: Extras" SWEP.PrintName = "Ma5" SWEP.WepSelectIcon = "vgui/entities/drchalo_ma5d" SWEP.Manufacturer = "Misriah Armory" SWEP.InfoName = "Assault Rifle" SWEP.InfoDescription = "The MA5 is a variant of the MA5 series that has mi...
-- An Elepower Mod -- Copyright 2018 Evert "Diamond" Prants <evert@lunasqu.ee> local modpath = minetest.get_modpath(minetest.get_current_modname()) elefarm = rawget(_G, "elefarm") or {} elefarm.modpath = modpath dofile(modpath.."/treecutter.lua") dofile(modpath.."/craftitems.lua") dofile(modpath.."/nodes.lua") dofil...
pg = pg or {} pg.enemy_data_statistics_68 = { [101011] = { cannon = 45, reload = 150, speed_growth = 0, cannon_growth = 1100, pilot_ai_template_id = 10001, air = 0, rarity = 2, dodge = 11, torpedo = 64, durability_growth = 12000, antiaircraft = 66, reload_growth = 0, dodge_growth = 156, hit...
Script.ReloadScript("scripts/gamerules/SinglePlayer.lua"); function GameRulesSetStandardFuncs(gamerules) if (not gamerules) then return; end; gamerules.actionableEntityList = {} -- ///////// Server/Client ///////// if (not gamerules.Server) then gamerules.Server={}; end; if (not gamerules.Client) then ...
if script.active_mods["repair-fish"] then script.on_event(defines.events.on_player_used_capsule, function(event) if event.item.name == "raw-crab" then local player = game.get_player(event.player_index) local selected = player.selected if selected and selected.health then selected.health ...
local Env = require "Env" local SpottedControl = require "SpottedStrip.Control" local Class = require "Base.Class" local ply = app.SECTION_PLY local MondrianMenu = Class {} MondrianMenu:include(SpottedControl) function MondrianMenu:init(left, bottom, width, height) SpottedControl.init(self) self:setClassName("Mon...
CC_CONTENT_SCALE_FACTOR = function() return cc.Director:getInstance():getContentScaleFactor() end CC_POINT_PIXELS_TO_POINTS = function(pixels) return cc.p(pixels.x/CC_CONTENT_SCALE_FACTOR(), pixels.y/CC_CONTENT_SCALE_FACTOR()) end CC_POINT_POINTS_TO_PIXELS = function(points) return cc.p(points.x*CC_CONT...
local function laser_turret_extension(inputs) return { filename = "__BzztyFloors__/graphics/entities/exposed-turret/gun-start.png", priority = "medium", width = 32, height = 32, frame_count = inputs.frame_count and inputs.frame_count or 15, line_length = inputs.line_length and inputs.line_leng...
local config = {} -- Reads the config.json file and returns a parsed config object -- If the config file doesn't contain a valid JSON it'll return false function config.read() local parsedJson if file.open("config.json", "r") then local status status, parsedJson = pcall(sjson.decode, file.read()) if not stat...
-- Copyright (C) Kong Inc. local access = require "kong.plugins.basic-auth.access" local BasicAuthHandler = { PRIORITY = 1001, VERSION = "2.2.0", } function BasicAuthHandler:access(conf) access.execute(conf) end return BasicAuthHandler
pg = pg or {} pg.activity_month_sign = { { id = 1, resign_count = 0, day_and_drop = { { 5, 10000 }, { 10, 10000 }, { 15, 10000 } }, front_drops = { { 5, 1, 1, 100 }, { 10, 1, 1, 100 }, { 15, 1, 1, 100 ...
--[[ zhCN.lua @Author : DengSir (tdaddon@163.com) @Link : https://dengsir.github.io ]] local L = LibStub('AceLocale-3.0'):NewLocale('tdBattlePetScript', 'zhCN') if not L then return end L.ADDON_NAME = '小宠物战斗脚本' L['Auto'] = '自动' L['Create script'] = '创建脚本' L['Debugging script'] = '调试脚本' L['Debuggin...
----------------------------------- -- Area: Southern Sandoria -- NPC: Estiliphire -- Type: Event Sideshow NPC -- !pos -41.550 1.999 -2.845 230 -- ----------------------------------- local ID = require("scripts/zones/Southern_San_dOria/IDs"); require("scripts/globals/settings"); require("scripts/globals/quests"); ---...
return { ABEncoder = { Encode = 3671, MoveLeft = 3673, MoveRight = 3674, Decode = 3672 }, AiriJPSdkMgr = { get_isPlatform = 3071, get_channelUID = 8087, callSdkApi = 8088, GoLoginScene = 3073, set_isPlatform = 3072, get_inst = 3069, get_loginType = 3070 }, AiriJPSdkMgrWrap = { get_ANDROID_A...
pg = pg or {} pg.enemy_data_statistics_220 = { [12600188] = { cannon = 60, reload = 150, speed_growth = 0, cannon_growth = 0, pilot_ai_template_id = 80000, air = 0, rarity = 1, dodge = 0, torpedo = 120, durability_growth = 2550, antiaircraft = 0, reload_growth = 0, dodge_growth = 0, hit_gro...
--[[ Project: SA Memory (Available from https://blast.hk/) Developers: LUCHARE, FYP Special thanks: plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses. Copyright (c) 2018 BlastHack. ]] local shared = require 'SAMemory.shared' shared.require 'C2dEffect' shared.require 'CTaskTim...
-- Renegade (U) [!].nes -- Written by sleepy - Shawn M. Crawford -- 6 January 2014 -- Displays Player Coordinates, HP, and Enemy HP stats on screen. The -- HP stats follow the characters. local function text(x,y,str) if (x >= 0 and x <= 255 and y >= 0 and y <= 240) then gui.text(x,y,str); end; end; ...
package.path = "C:/Users/nightshade/Desktop/aconitum/assets/scripts/entities/?.lua;" .. package.path package.path = "./assets/scripts/entities/?.lua;" .. package.path package.path = "C:/Users/nightshade/Desktop/aconitum/assets/scripts/?.lua;" .. package.path package.path = "./assets/scripts/?.lua;" .. package.path pac...
require "SvgWriter" require "vmath" require "Viewport" require "SubImage" require "GridAxis" require "_utils" local imageSize = vmath.vec2(500, 300); local subImages = SubImage.SubImage(1, 1, imageSize.x, imageSize.y, 0, 0); local coordSize = 10; local coordWidth = coordSize * (imageSize.x / imageSize.y); local vp ...
local Import = { -- Identifiers given by packages to identify the code they have loaded there, put the identifiers you want to import here (see package docs to know what they use?) --"code_loader_tester", } local function IsImportAllowed(Import_identifier) for i, v in ipairs(Import) do if v == Import_...
-- ================ -- PRE-REQUIRE UTIL -- ================ -- Created by datwaft <github.com/datwaft> -- Returns the result of requiring a module, if it fails it returns nil ---@return any return function(...) local status, lib = pcall(require, ...) if status then return lib end return nil end
--[[ ModuleName : Path : area.lua Author : jinlei CreateTime : 2020-08-09 08:08:46 Description : --]]
SQL:Execute( "CREATE TABLE IF NOT EXISTS keybinds (steamid VARCHAR, key INTEGER, command VARCHAR)") function SimulateCommand(args, sender) Events:Fire("PlayerChat", {player=sender, text=args}) -- if string.sub(args,1,1) ~= "/" then -- Chat:Broadcast(sender:GetName()..": "..args, Color(255, 255, 255)) -- This ...
object_building_kashyyyk_eqp_monitorscreen_text_s02 = object_building_kashyyyk_shared_eqp_monitorscreen_text_s02:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_eqp_monitorscreen_text_s02, "object/building/kashyyyk/eqp_monitorscreen_text_s02.iff")
local TITLE_COLOR = tocolor(196, 196, 196, 96) local VEH_ALPHA = 102 local BLIP_SIZE = 1 local BLIP_COLOR = {150, 150, 150, 50} #USE_INTERPOLATION = true #DEBUG = false #if(DEBUG) then VEH_ALPHA = 0 #end Playback = Class('Playback') Playback.count = 0 Playback.map = {} -- Note: Don't use onClientMapS...
-- Slash Commands RegisterCommand('newposse', function(source, args, rawCommand) local playerId = source Helpers.Packet(playerId, 'posse:OpenCreate', nil) end, false) RegisterCommand('posse', function(source, args, rawCommand) local playerId = source Helpers.Packet(playerId, 'posse:Open', nil) ...
-- gauges: Adds health/breath bars above players -- -- Copyright © 2014-2019 4aiman, Hugo Locurcio and contributors - MIT License -- See `LICENSE.md` included in the source distribution for details. local hp_bar = { physical = false, collisionbox = {x = 0, y = 0, z = 0}, visual = "sprite", textures = {"20.png"}, -...
local S = technic.getter technic.register_recipe_type("grinding", { description = S("Grinding") }) function technic.register_grinder_recipe(data) data.time = data.time or 3 technic.register_recipe("grinding", data) end local recipes = { -- Dusts {"mcl_core:coal_lump", "technic:coal_dust 2"}, {"mcl_core...
local C = require "generators.examplescommon" local harness = require "generators.harness" local types = require "types" local makeStereo = require "stereo_core" require "common".export() --local SADRadius = 4 local SADWidth = 8 --local SearchWindow = 64 local OffsetX = 20 -- we search the range [-OffsetX-SearchWindow...
object_tangible_tcg_series7_garage_display_vehicles_landspeeder_v35 = object_tangible_tcg_series7_garage_display_vehicles_shared_landspeeder_v35:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series7_garage_display_vehicles_landspeeder_v35, "object/tangible/tcg/series7/garage_display_vehicles/landspeeder_v35...
local vim = vim local util = require 'completion.util' local opt = require 'completion.option' local M = {} local function setup_case(prefix, word) local ignore_case = opt.get_option('matching_ignore_case') == 1 if ignore_case and opt.get_option('matching_smart_case') == 1 and prefix:match('[A-Z]') then ignor...
modifier_sona_crescendo_celerity = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_sona_crescendo_celerity:IsHidden() return false end function modifier_sona_crescendo_celerity:IsDebuff() return false end function modifier_sona_crescen...
cflags{ '-D HAVE_HIDDEN', '-D HAVE_STDARG_H', '-D HAVE_UNISTD_H', '-D _LARGEFILE64_SOURCE', } lib('libz.a', { 'adler32.c', 'crc32.c', 'deflate.c', 'infback.c', 'inffast.c', 'inflate.c', 'inftrees.c', 'trees.c', 'zutil.c', 'compress.c', 'uncompr.c', 'gzclose.c', 'gzlib.c', 'gzread.c', 'gzwrite.c', }...
LootDropPool = ZO_Object:Subclass() local tinsert = table.insert local tremove = table.remove function LootDropPool:New() return ZO_Object.New( self ) end function LootDropPool:Initialize( create, reset ) self._create = create self._reset = reset self._active = {} self._inactive = {} ...
ulx.teams = {} function ulx.populateClTeams( teams ) ulx.teams = teams for i=1, #teams do local team_data = teams[ i ] team.SetUp( team_data.index, team_data.name, team_data.color ) end end
local PATH = (...):gsub('%.[^%.]+$', '') local Array = require(PATH..".lds.array") local Ffi = require("ffi") local Component = { components = {}, nextMask = 1, } function Component.new(struct) local type = Ffi.typeof("struct {"..struct.."}") local size = Ffi.sizeof(type) local entities = Ar...
function description() return "Copies the page URL into the command bar" end function run() windex = focused_window_index() webdex = focused_webview_index(windex) url = webview_uri(windex, webdex) set_command_field_text(windex, url) end
---@class ServerOptions.BooleanServerOption : zombie.network.ServerOptions.BooleanServerOption ServerOptions_BooleanServerOption = {} ---@public ---@return ConfigOption function ServerOptions_BooleanServerOption:asConfigOption() end ---@public ---@return String function ServerOptions_BooleanServerOption:getTooltip() ...
local constants = require "kong.constants" local _M = {} function _M.execute(conf) local api_time = ngx.ctx.proxy_ended_at - ngx.ctx.proxy_started_at ngx.header[constants.HEADERS.PROXY_TIME] = ngx.now() * 1000 - ngx.ctx.started_at - api_time ngx.header[constants.HEADERS.API_TIME] = api_time end return _M
-- Internal defs -- initial 'roam' package -- registries roam = { on_tick_registry = {}, on_move_registry = {}, } -- Registrars function roam.register_on_tick (callback) table.insert(roam.on_tick_registry, callback) end function roam.register_on_tick (callback) table.insert(roam.on_move_registry, cal...
require'nvim-tree'.setup { view = { width = 50 }, actions = { open_file = { quit_on_open = true } } }
nuclear.debug.log("--fuel") data:extend({ { type = "fuel-category", name = "uranium-mix" }, { type = "fuel-category", name = "plutonium-mix" }, { type = "fuel-category", name = "thorium-mix" } })
local condaEnv = 'tensorflow-hvd-2.4.0' help([[ Tensorflow deep learning library for Python For more help see: https://docs.csc.fi/apps/tensorflow/]]) family("python_ml_env") depends_on("gcc/9.1.0") depends_on("hpcx-mpi/2.4.0") depends_on("cuda/11.0.2") local condaRoot = '/appl/soft/ai/miniconda3' local envRoot = ...
package.path = "../?.lua;" .. package.path require("tests/mock") local tables = require("tables") local HELLO_MSG = "Hello!" local WORLD_MSG = "What up world!" ----------------------------------------------------------------------------------------------------------------------- describe("copy", function() it("ret...
--[[------------------------------------------------------ dub.LuaBinder ------------- Test basic binding with the 'simple' class. --]]------------------------------------------------------ local lub = require 'lub' local lut = require 'lut' local should = lut.Test('dub.LuaBinder - simple', {coverage = false})...
data:extend( { { type = "recipe", name = "empty-fuel-cell-recipe", icon = graphics .. "empty-fuel-cell.png", icon_size = 64, mipmap_count = 4, category = "crafting", energy_required = 20, enabled = false, order = "a", subgroup = "fuel-c...
workspace "Toast" architecture "x64" startproject "Toaster" configurations { "Debug", "Release", "Dist" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" IncludeDir = {} IncludeDir["ImGui"] = "Toast/vendor/imgui" IncludeDir["directxtk"] = "Toast/ven...
local g = vim.g local vimp = require("vimp") g.committia_hooks = {} -- Scroll the diff window from insert mode -- Map <A-n> and <A-p> vimp.imap({ "buffer" }, "<A-n>", "<Plug>(committia-scroll-diff-down-half") vimp.imap({ "buffer" }, "<A-p>", "<Plug>(committia-scroll-diff-up-half)")
--start module local db = {} local lfs = require "lfs" local os = require "os" local csv = require "csv" local homeFolder = os.getenv("HOME") local storageFolder = "/.hslm" ------------------------------------------------------------------------------- --------------------------------------------------------------...
local id = "AppleCake.Thread" return { outStreamID = id..".Out", infoID = id..".Info", dict = { -- dictionary for string.buffer "command", "buffer", "name", "start", "finish", "args", "scope", "Memory usage", "process_name", "thread_name", "thread_sort_index", }...
--[[ Log.lua ======= Write logs and have them accessible in server. TODO ]] local Log = {} local strict = require(script.Parent.Parent.strict) local DEFAULT_LOG_INTERVAL = 30 local function reverseTable(table) local result = {} for index = 1, math.floor(#table / 2) do result[index]...
object_tangible_loot_creature_loot_kashyyyk_loot_outcast_tool_03 = object_tangible_loot_creature_loot_kashyyyk_loot_shared_outcast_tool_03:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_outcast_tool_03, "object/tangible/loot/creature_loot/kashyyyk_loot/outcast_tool_03.iff")
fx_version 'adamant' game 'gta5' author 'Xanoor1#8111 (https://discord.gg/nj8DuncnJx)' description 'Advent Calendar' version '1.0' client_scripts { 'config.lua', 'client.lua' } server_scripts { '@async/async.lua', '@mysql-async/lib/MySQL.lua', 'config.lua', 'server.lua' } ui_page 'html/ui.html' files { ...
local Class, Table, getters, setters, newFunc = _Inherit(Instance, "ReplicatedStorage") Class.new = function () return newFunc() end return Class
local TS = _G[script] return function(relativeTo, ...) return TS.import(script, relativeTo, ...) end
CAbstractKeys = class(CBaseObject, function (self, copyfrom) self.funcs = {}; if( type(copyfrom) == "table" ) then self.funcs = copyfrom.funcs; end end ); function CAbstractKeys:loadKeys() local filename = seekDir("settings.xml"); self:loadSettings(filename, bot.Gamedirectory, bot.Keybindfile); end funct...
module(..., package.seeall) function onCreate(params) view = View { scene = scene, layout = { VBoxLayout { align = {"center", "center"}, padding = {10, 10, 10, 10}, } }, children = {{ Button { name =...