content
stringlengths
5
1.05M
---@class ContributionCollector C_ContributionCollector = {} function C_ContributionCollector:Close() end ---@param contributionID number function C_ContributionCollector:Contribute(contributionID) end ---@return number contributionID function C_ContributionCollector:GetActive() end ---@param contributionID number...
local Obj = {} Obj.__index = Obj setmetatable(Obj, {__call = function (cls, ...) return cls.New(...) end }) function Obj.New(ttsObject) print("hi") local self = setmetatable({}, Obj) if type(ttsObject) == "string" then ttsObject = getObjectFromGUID(ttsObject) end self.ttsObj = ttsObject return se...
require'nvim-treesitter.configs'.setup({})
require("__5dim_core__.lib.energy.generation-accumulator") local speed = 5 local modules = 2 local energy = 300 local emisions = 10 local techCount = 450 -- Electric furnace 01 genAccumulators { number = "01", subgroup = "energy-accumulator", craftingSpeed = speed, moduleSlots = modules, energyUsa...
----------------------------------- -- Area: Xarcabard -- Mob: Lost Soul -- Note: PH for Timeworn Warrior ----------------------------------- local ID = require("scripts/zones/Xarcabard/IDs") require("scripts/globals/regimes") require("scripts/globals/mobs") ----------------------------------- function onMobDeath(mob...
-- https://github.com/jgm/pandoc/issues/2106#issuecomment-371355862 function Span(el) if el.classes:includes("todo") then return { pandoc.RawInline("latex", "\\textcolor{red}{\\textbf{TODO: }"), el, pandoc.RawInline("latex", "}") } end end
function PS_EnemyAttack(toplayer, toptag, index, etype, elayer) local atk, apatk, hpregainatk = game.GetEnemyATK(etype, elayer/CCZ_eLayer_01); local hp, ap, sp = game.GetHPAPSP(); hp = hp - atk; ap = ap - apatk; if hp < 0 then hp = 0; end if ap < 0 then ap = 0; end game.SetHPAPSP(hp, ap, sp); ...
------------ -- Classic Lua 5.1 module. -- Description here ---- module 'two' --- answer to everything. function answer () return 42 end
local Native = require('lib.stdlib.native') ---@class Dialog : Agent local Dialog = class('Dialog', require('lib.stdlib.oop.agent')) ---destructor ---@return void function Dialog:destructor() --@debug@ checkobject(self, Dialog, 'destructor', 'self') --@end-debug@ return Native.DialogDestroy(getUd(self)) end ...
local inventory = require(script.inventory) local equipped = require(script.equipped) local stats = require(script.stats) local toolbar = require(script.toolbar) return function(state,action) state = state or {} -- server TODO: break this into two reducers? if action.type == "PLAYER_ADD" then -- load save...
-- Persistent Data local multiRefObjects = { } -- multiRefObjects local obj1 = { ["cartService"] = { [1] = { ["octopusHostDir"] = "/data/Project/octopus_orig/bin/unix/../../sites/extensions"; ["extensionDir"] = "/data/Project/octopus_orig/bin/unix/../../sites/extensions/shop"; ["extension"] = 8; }; [2]...
PlazaRedPacketMainCcsView = class("PlazaRedPacketMainCcsView") PlazaRedPacketMainCcsView.onCreationComplete = function (slot0) ClassUtil.extends(slot0, ZoomPopUpChildView, true, slot0, slot0.bg, slot0.view) slot0._spineErrorTime = 0.06666666666666667 end PlazaRedPacketMainCcsView.show = function (slot0, slot1, slo...
local ObjBaseUnit = require "objects.ObjBaseUnit" local ObjEnemy = Class.create("ObjEnemy", ObjBaseUnit) function ObjEnemy:init( ) -- init other data self.max_health = 100 self.health = 100 --initialize movement data self.maxJumpTime = 300 self.currentJumpTime = 0 self.jumpSpeed = 490 self.maxAirJumps = 1 se...
--[[ Netherstorm -- Phase Hunter.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- BlackHer0, ...
--[[ Element: Raid Role Icon Handles visibility and updating of `self.RaidRole` based upon the units party assignment. Widget RaidRole - A Texture representing the units party assignment. This is can be main tank, main assist or blank. Notes This element updates by changing the texture. Example...
--[[ File: LuaNativeUIExampleLowLevel2.lua Author: Mikael Kindborg Description: This is a slightly modified version of LuaNativeUIExampleLowLevel.lua. The example shows how to attach event functions to widgets. This is done by calling: mosync.NativeUI:OnWidgetEvent(widgetHandle, eventFunction) To disable an e...
AddCSLuaFile( ) DEFINE_BASECLASS("base_aperture_field") local WireAddon = WireAddon or WIRE_CLIENT_INSTALLED ENT.PrintName = "Material Emancipation Grill" ENT.FieldColor = Color(120, 230, 255) ENT.InUnFizzable = true local FIELD_HEIGHT = 120 if WireAddon then ENT.WireDebugName = ENT.PrintName end function ENT...
local function areTablesEqual(a, b) local aKeys = Object.keys(a) local bKeys = Object.keys(b) if #aKeys ~= #bKeys then return false end local allKeys = Array.concat(aKeys, bKeys) for _, key in ipairs(allKeys) do if a[key] ~= b[key] then return false end en...
local core = l2df or require((...):match("(.-)core.+$") or "" .. "core") assert(type(core) == "table" and core.version >= 1.0, "Core.Entities.System works only with l2df v1.0 and higher") local Object = core.import "core.object" local System = Object:extend({ manager = { }, groups = { } }) return System
function init() self.signDirectiveStrings = config.getParameter("signData") self.lightFrames = config.getParameter("lightData") self.signLight = config.getParameter("signLight") self.signBacking = config.getParameter("signBacking") self.frameColors = config.getParameter("frameColors") storage.storedDirectiv...
local logger = require("scripts.logger") local uid = {} uid.chars = {"A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", ...
if not modules then modules = { } end modules ['node-acc'] = { version = 1.001, comment = "companion to node-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local nodes, node = nod...
ArkRoyal = Class{} function ArkRoyal:init() self.x = -400 self.y = 100 self.graphic = love.graphics.newImage('graphics/arkroyal-old.png') -- self.speed = 0.1 self.dx = 0 self.width = 500 self.height = 200 self.move = false end function ArkRoyal:update(dt) -- self.dx = self.dx - sel...
-- -- tests/actions/vstudio/vc2010/test_excluded_configs.lua -- Check handling of configurations which have been excluded from the build. -- Copyright (c) 2012-2013 Jason Perkins and the Premake project -- local suite = test.declare("vs2010_excluded_configs") local vc2010 = premake.vstudio.vc2010 -- -- Setup/teard...
getglobal game getfield -1 Workspace getfield -1 resources getfield -1 RemoteFunction getfield -1 InvokeServer pushvalue -2 pushstring requestTeam pushstring police pcall 3 0 0
module 'mock' local defaultScript = [[ --Builtin Variable: self = Target Entity/Component; time = current Time; ]] local scriptHeader = [[ local self = ... ]] local scriptTail = [[ ]] local scriptMT = { __index = _G } -------------------------------------------------------------------- CLASS: ScriptAnimatorKey (...
local rsp=[[{ "status": "OK", "message": "", "result": [ { "date": "20210210", "tradingDay": true }, { "date": "20210211", "tradingDay": false }, { "date": "20210212", "tradingDay": false }, { "date": "20210213", "tradingDay": false } ] }]] ngx.say(rsp)
local mod = get_mod("NeuterUltEffects") local pl = require'pl.import_into'() fassert(pl, "Neuter Ult Effects must be lower than Penlight Lua Libraries in your launcher's load order.") --- Disable blood splatters. mod:hook(World, "create_particles", function(func, world, particle_name, ...) if mod:get(mod.SETTING_NA...
#!/usr/bin/env tarantool test = require("sqltester") test:plan(1) -- Check that OP_NextIdEphemeral generates unique ids. -- test:execsql [[ CREATE TABLE T1(A INT PRIMARY KEY); CREATE TABLE T2(A INT PRIMARY KEY, B INT); INSERT INTO T1 VALUES(12); INSERT INTO T2 VALUES(1, 5); INSERT INTO T2 VALUES(2,...
local component = require("component") local net = {} --library table --[[Layer 1 implementation]] local drivers = {} --driver cache local devices = { --network devices ["by_address"] = {}, ["by_type"] = {} } net.drivers = drivers net.devices = devices function net.registerDevice(address, c_type, driver_path) ...
require("data/recycle-gases")
local tl = require("tl") local util = require("spec.util") describe("require", function() it("reports module not found", util.check_type_error([[ local notfound = require "modulenotfound" ]], { { y = 1, msg = "module not found: 'modulenotfound'" } })) it("for .tl files, complain if required mo...
-- AI Variables (These must be set here) -- _ready = false; targetAI = nil; mCharacter = nil; isAngry = nil; --IO (these are grabbed and sent to game after Execute) isAlerted = nil; --IO aiTarget = nil; --I (these are input only) aiTargetTable = nil; --I -- Inputs atkFeedbackTable = nil; atkRangeTable = nil;...
local Output = require('luatest.output.generic'):new_class() Output.BOLD_CODE = '\x1B[1m' Output.ERROR_COLOR_CODE = Output.BOLD_CODE .. '\x1B[31m' -- red Output.SUCCESS_COLOR_CODE = Output.BOLD_CODE .. '\x1B[32m' -- green Output.RESET_TERM = '\x1B[0m' function Output.mt:start_suite() if self.runner.seed then ...
GM.Version = "0.1.0" GM.Name = "Space Explorers" GM.Author = "The HellBox" DeriveGamemode("base") include("base/client/ship_state_update.lua") include("base/client/race_choose_menu.lua") include("base/client/draw_space_body.lua") include("base/client/ship_uis.lua") include("base/client/hud.lua") include("lib/draw.lu...
--[[ License : GLPv3, see LICENCE in root of repository Authors : Nikolay Fiykov, v1 --]] local nodemcu = require("nodemcu-module") enduser_setup = {} enduser_setup.__index = enduser_setup --- enduser_setup.manual is stock nodemcu API enduser_setup.manual = function(on_off) nodemcu.eus_manual = on_off end --- end...
local luadev = require('lua-dev').setup({ plugins = true, lspconfig = { settings = { Lua = { diagnostics = { globals = { 'vim', 'bufnr' }, }, }, }, }, }) return luadev
dofilepath("data:ui/newui/Styles/HWRM_Style/HWRMDefines.lua") dofilepath("data:ui/newui/Styles/HWRM_Style/ControlConstructors.lua") LAYOUT_MENU_CONNECTION_BUTTONS = { min_WH = { w = MAINMENU_BUTTON_WIDTH, h = STD_BUTTON_HEIGHT, wr = "scr", hr = "scr" }, } ConnectionType = { stylesheet = "HW2Styl...
function clamp(x,l,u) return max(l,min(x,u)) end function sign(x) if(x >= 0) then return 1 else return -1 end end function nsin(x) return sin(-x) end function atan3(x,y) return atan2(x,-y) end
appname="QQ闪照查看器" appver="1.0" appcode="1" appsdk="15" packagename="com.sz" debugmode=true user_permission={ "WRITE_EXTERNAL_STORAGE", }
-- led_sweep = coroutine.wrap( function() -- for i=1,255 do -- for j=1,255 do -- for k=1,255 do -- out = string.char(31, i, j, k) -- apa102.write(7,6,out) -- coroutine.yield() -- end -- end -- end -- end) max_bright = 255 function mod(a ,b) m=a-(a/b)*b return m end function normal(a) if a ...
local file_path = "sample.json" local file = io.open(file_path, "r") if not file then print("File '".. file_path .. "' not found!") return end local file_content = file:read "*all" io.close(file) local json = require("json") local obj = json:decode(file_content) local function join_strs(arr) local strs = {} ...
ENT.Type = "point" ENT.Base = "base_point" ENT.Items = { "ph_luckyball", "ph_devilball", "ph_ultpointball" } function ENT:Initialize() end function ENT:SetupDataTables() self:NetworkVar( "Int", 0, "SpawnEntity" ) self:NetworkVar( "Int", 1, "Amount" ) self:NetworkVar( "String", 0, "EntityName" ) end func...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) local condition = Condition(CONDITION_ENERGY) condition:setParameter(CONDITION_PARAM_DELAYED, 1) condition:...
local cfg = {} -- PCs positions cfg.pcs = { {1853.21, 3689.51, 34.2671}, {442.030609130859, -978.72705078125, 30.6896057128906}, {-448.97076416016,6012.4208984375,31.71639251709} } -- vehicle tracking configuration cfg.trackveh = { min_time = 150, -- min time in seconds max_time = 300, -- max time in secon...
local parser = require("moocscript.parser") local compile = require("moocscript.compile") describe("test success #continue", function() local mnstr=[[ i = 1 for i=1, 20, 1 { if i < 15 { continue } if i > 18 { continue }...
-- FUNCTIONAL require 'Q/UTILS/lua/strict' local Q = require 'Q' local sum_prod = require( 'Q/ML/LOGREG/lua/sum_prod' ) local test = {} test.t1 = function () local c1 = Q.mk_col ( {1, 2, 0, 2} , "I4") local c2 = Q.mk_col ( {3, 2, 1, 3} , "I4") local c3 = Q.mk_col ( {4, 1, 1, 1} , "I4") local X = {c1, c2, c3...
local hexagon = {} local function distanceBetween(x1, y1, x2, y2) return math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)) end local function drawHexagon(x, y, hexagonSize, pointyTopped) local vertices = {} if pointyTopped then table.insert(vertices, x) table.insert(vertices, y + h...
local spec = {} local cp = ... function spec.isCompatible(address) return cp.proxy(address).type == "openprinter" end function spec.getName() return "OpenPrinter Fuchas Driver" end function spec.getRank() return 1 end function spec.new(address) local out = nil local outbuf = "" printer = cp.proxy(address) f...
local utils = {} utils.readFile = function (fileName, base) if not base then base = system.ResourceDirectory; end local path = system.pathForFile(fileName, base) local file = io.open(path, "r") if not file then return nil; end local contents = file:read("*a") io.close(file) return contents end function tableP...
--------------------------------------------------------------------------------------------------- -- User story: Smoke -- Use case: GetPolicyConfigurationData -- Item: Happy path -- -- Requirement summary: -- [GetPolicyConfigurationData] SUCCESS: getting SUCCESS:SDL.GetPolicyConfigurationData() -- -- Description: -- ...
--[[ 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...
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/SmartDeviceLink/sdl_core/issues/1915 --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local common = requi...
--lost desert-- mewmew made this -- local simplex_noise = require 'utils.simplex_noise' simplex_noise = simplex_noise.d2 local event = require 'utils.event' local map_functions = require "tools.map_functions" local math_random = math.random local function shipwreck(position, surface) local wrecks = {"big-ship-wreck-1...
vim.api.nvim_set_keymap("n", "<leader>fn", "<cmd>DashboardNewFile<CR>", { noremap = true, silent = true }) vim.api.nvim_set_keymap("n", "<leader>db", "<cmd>Dashboard<CR>", { noremap = true, silent = true }) vim.api.nvim_set_keymap("n", "<leader>sl", "<cmd>SessionLoad<CR>", { noremap = true, silent = true }) vim.api.nvi...
----------------------------------- -- Area: Wajaom Woodlands -- NPC: Watisa -- Type: Chocobo Renter -- !pos -201 -11 93 51 ----------------------------------- require("scripts/globals/chocobo") ----------------------------------- local eventSucceed = 9 local eventFail = 10 function onTrade(player, npc, trade) en...
local ls = require "lovesnow" local harbor = require "lovesnow.harbor" require "lovesnow.manager" -- import ls.launch, ... local memory = require "lovesnow.memory" ls.start(function() local sharestring = tonumber(ls.getenv "sharestring" or 4096) memory.ssexpand(sharestring) local standalone = ls.getenv "standalone...
lvl1_table = {} lvl1_table["nothing"] = 1000 lvl1_table["item_flask"] = 200 lvl1_table["item_enchanted_mango"] = 200 lvl1_table["item_branches"] = 10 lvl1_table["item_tango"] = 10 lvl1_table["item_ward_observer"] = 1 lvl1_table["item_mantle"] = 1 lvl1_table["item_slippers"] = 1 lvl1_table["item_gauntlets"] = 1 lvl1_ta...
return function(_write) function write(...) local args = {} for k,v in pairs({...}) do args[k] = tostring(v) end _write(unpack(args)) end function write_esc(...) write(tostring(...):gsub("[\">/<'&]", { ["&"] = "&amp;", ["<"] = "&lt;", [">"] = "&gt;", ['"'] = "&quot;", ["'"] = "&#39;", ["/"] ...
setfenv(1, setmetatable({}, {__index=getfenv()})) local modules = require("tweaks").modules local ffi = modules.ffi local C = ffi.C local function jitable_unpack(t, i, j, ...) if j - i >= 5 then return jitable_unpack(t, i, j - 5, t[j], t[j-1], t[j-2], t[j-3], t[j-4], ...) end --if j - i >= 3 then return jitable_u...
local AddOn_Name, ns = ... local friendlyName = GetAddOnMetadata(AddOn_Name,"Title") local L = LibStub("AceLocale-3.0"):GetLocale(AddOn_Name,true) local defaultOptions = { global = { hideHelm = true, hideShoulders = false, hideBack = false, hideBelt = false, expandVariants ...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local quest = require "game.entities.quest" return quest:new{ title = "Deliver the Stuff", description = "You can take it over there!", image = "assets/images/gold-coins.p...
require('plugins.lsp-status').activate() local lsp_status = require 'plugins.lsp-status' local home = os.getenv 'HOME' -- The nvim-cmp almost supports LSP's capabilities so You should advertise it to LSP servers.. local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities = require('cmp_nvim_lsp')....
local utils = require "kong.tools.utils" local Errors = require "kong.dao.errors" local schemas_validation = require "kong.dao.schemas_validation" local validate = schemas_validation.validate_entity return setmetatable({}, { __call = function(_, schema) local Model_mt = {} Model_mt.__meta = { __schema ...
local TroopFunctions = import('/mods/DilliDalli/lua/AI/DilliDalli/TroopFunctions.lua') local Translation = import('/mods/DilliDalli/lua/AI/DilliDalli/FactionCompatibility.lua').translate local CreatePriorityQueue = import('/mods/DilliDalli/lua/AI/DilliDalli/PriorityQueue.lua').CreatePriorityQueue local PROFILER = impor...
------------------------------------------------------------------------------- -- PhysObj functions. ------------------------------------------------------------------------------- SF.PhysObjs = {} --- PhysObj Type -- @shared local physobj_methods, physobj_metatable = SF.RegisterType("PhysObj") local wrap, unwrap = ...
local screens = require "lib.screens" local fuiorc = require "fuior.compiler" local fui = require "fuior.runtime" local function game() fuiorc.compile("/fuior/src/test.fui")(fui.new()) local wait_for_transition = screens.replace("game") print("Screen loaded") wait_for_transition() print("Screen transition f...
---------------------------------------------------------------- -- Copyright (c) 2013 Klei Entertainment Inc. -- All Rights Reserved. -- SPY SOCIETY. ---------------------------------------------------------------- local PITCH_SHIFT_FFT = 256 local array = include( "modules/array" ) ----------------------------------...
local currentVault RegisterCommand("vault",function(source,args) local ped = PlayerPedId() local cds = GetEntityCoords(ped) for k,v in pairs(cfg.homesChests) do local distance = Vdist(cds,v.coords) if distance <= 2.0 then chestTimer = 3 if vrpServer.checkIntPermissionsVault(k) then ...
local monsters = {} local fishfrogmanthing = { name = "fishfrogmanthing", description = "Half fish, half frog, half man-thing, this proud warrior race of amphibious extraterrestrials fled their homeworld and tries to eke out a meager existence on ours.", symbol = "F", types={"animal","intelligent","swimmer"}, ...
--[[ The contents of this file are subject to the Common Public Attribution License Version 1.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://ultimate-empire-at-war.com/cpal. The License is based on the Mozilla Public License Versio...
--- The environment file. -- @module crit.env -- @todo local sys_config = require "crit.sys_config" local function load_from_resource() local file = sys.load_resource(sys.get_config("crit.env_file", "/_env/env.lua")) if not file then return {} end local chunk, error = loadstring(file or "") if not chunk then ...
function AddVulkan() defines { "MODULE_VULKAN" } includedirs { "$(VULKAN_SDK)/include" } postbuildcommands { } links { "$(VULKAN_SDK)/lib/vulkan-1.lib" } end function AddGLM() defines { "MODULE_GLM" } includedirs "$(SolutionDir)/ThirdParty/glm/" filter {} end func...
allianceGUI = { tabs = {} } function centerWindow(window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(window,x,y,false) end function table.copy(tab) local ret = {} for key, value in pairs(tab) do ...
local M = {} local util = require 'core.util' function M.thread_run(thi) local fns = {} function fns.async_read() local uid = api_thread_respond(thi, '') api_thread_respond(thi, util.sync_read(uid)) end function fns.async_write() local uid = api_thread_respond(th...
WebClient = {}; luanet.load_assembly("log4net") local types = {}; types["log4net.LogManager"] = luanet.import_type("log4net.LogManager"); types["System.Net.WebClient"] = luanet.import_type("System.Net.WebClient"); types["System.Text.Encoding"] = luanet.import_type("System.Text.Encoding"); types["System.Xml.Xm...
ENT.Base = "sent_sakarias_scar_base" ENT.Type = "anim" ENT.PrintName = "UAZ Van" ENT.Author = "Prof.Heavy" ENT.Category = "Call of Duty 4" ENT.Information = "" ENT.AdminOnly = false ENT.Spawnable = false ENT.AdminSpawnable = false ENT.AddSpawnHeight = 50 ENT.ViewDist = 200 ENT.ViewDistUp = 10 ENT.NrOfSeats = 2 ENT.N...
pg = pg or {} pg.enemy_data_statistics_362 = { [50000043] = { cannon = 75, reload = 150, speed_growth = 0, cannon_growth = 0, rarity = 3, air = 160, torpedo = 0, dodge = 11, durability_growth = 240000, antiaircraft = 190, luck = 15, reload_growth = 0, dodge_growth = 156, hit_growth = 210, ...
---@param t table local function set_hl(t) for name, val in pairs(t) do vim.api.nvim_set_hl(0, name, val) end end local color = require("OneDark-Pro.color") local hl = { -------------------------- -- :h highlight-default -- -------------------------- --ColorColumn = {}, --Conceal = {}, Cursor = ...
--[[ FTP library Copyright (C) 2010-2020 Christophe Delord http://cdelord.fr/bl/bonaluna.html BonaLuna is based on Lua 5.3 Copyright (C) 1994-2017 Lua.org, PUC-Rio Freely available under the terms of the MIT license. --]] function FTP(url, user, password) local ftp = {} local t = socket.url.parse(url) ...
-- @define insert(t, v) t[#t + 1] = v -- @define insert(t, v, i) table.insert( t, i, v ) -- @define pop_bottom(t) table.remove( t, 1 ) -- not used as they break the linter :/ --/ @define foreach(x) for i = 1, #x do --/ @define foreach(i, x) for i = 1, #x do --/ @define foreach(i, v, x) for i = 1, #x do local v = x[i]...
--- === cp.ui.Splitter === --- --- Represents an `AXSplitter`. local require = require local ax = require "cp.fn.ax" local Element = require "cp.ui.Element" local Splitter = Element:subclass("cp.ui.Splitter") --- cp.ui.Splitter.VERTICAL_ORIENTATION <string> -...
puck_counter = class({}) LinkLuaModifier("modifier_puck_counter_banish", "abilities/heroes/puck/puck_counter/modifier_puck_counter_banish", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_puck_counter_charges", "abilities/heroes/puck/puck_counter/modifier_puck_counter_charges", LUA_MODIFIER_MOTION_NONE) function p...
-- Copyright 2022 philh30 -- -- 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 writ...
--BeatFever fileparser module --Contains ".osu" file parsing functions local moduleName = "[FileParser]" noteCount = 1 local fileLines = {} --Where we'll hold the current osu file data. parser = {} local fileLoaded = nil local ObjectTypes = {HitCircle = 1, Slider = 2, NewCombo = 4, Spinner = 8} function parser.load...
ITEM.name = "Kitchen Knife" ITEM.description = "An old, pre-war looking Knife. " ITEM.model = "models/weapons/tfa_nmrih/w_me_kitknife.mdl" ITEM.class = "tfa_nmrih_kknife" ITEM.weaponCategory = "melee" ITEM.flag = "v" ITEM.width = 2 ITEM.height = 1 ITEM.bDropOnDeath = true ITEM.iconCam = { ang = Angle(-0.23955784...
-- SilentsReplacement -- init -- August 12, 2021 --[[ Client.OnPlayerFling : Signal () Client.OnPlayerHardGroundLand : Signal () Client.Start() --> nil [] Client.Stop() --> nil [] Client.IsStarted() --> boolean [IsStarted] Client.IsStopped() --> boolean [IsStopped] ]] local Client = { _isStarted =...
---@meta ---@class cc.ControlSlider :cc.Control local ControlSlider={ } cc.ControlSlider=ControlSlider ---* ---@return float function ControlSlider:getMaximumAllowedValue () end ---@overload fun(cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite):self ---@overload fun(cc.Sprite:cc.Spr...
math.randomseed( os.time() ) local from = 1 local to = 100 local rand = math.random( from, to ) local guess = 0 local guesses = 0 repeat print("Guess the number: ") guesses = guesses + 1 guess = tonumber( io.read() ) if guess > rand then print("Too high!") elseif guess < rand then print("Too low!"...
--[[ Copyright (c) 2018, Vsevolod Stakhov <vsevolod@highsecure.ru> 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 ...
return function(world) return function(scene, dt) for entity in pairs(scene:entities_with('velocity', 'position', 'size', 'one_way_platform_position', 'on_ground')) do local collisions local resolved_x, resolved_y local dx = entity.velocity.x * dt local dy = entity.velocity.y * dt ...
--[[ © 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 cwStaticEnts = cwStaticEnts; local Clockwork = Clockwork; --Called when the...
local XBar = _G.XBar local setDate, setOnline, setFormat local Clock={ ["start"]=GetTime(),["hour"]=0,["mins"]=0,["game"]="00:00",["total"]="00:00",["update"]=0, } local function Indicator(duration,remaining) if remaining>0 then XBarClock_B_Icon:SetCooldown(duration,remaining) end end local function TimeFormat(m...
--[[---------------------------------------------------------------------------- KwUtils.lua Utility functions for Lightroom Keywords -------------------------------------------------------------------------------- Copyright 2016 Lowell "LoweMo / LoMo" Montgomery https://lowemo.photo Latest version: http...
require 'nn' require 'nngraph' require 'hdf5' require 'data-entail.lua' require 'models/models-entail.lua' require 'models/model_utils.lua' cmd = torch.CmdLine() -- data files cmd:text("") cmd:text("**Data options**") cmd:text("") cmd:option('-data_file','data/entail-train.hdf5', [[Path to the training *.hdf5 file]]...
LinkLuaModifier('modifier_is_in_offside', 'modifiers/modifier_offside.lua', LUA_MODIFIER_MOTION_NONE) LinkLuaModifier('modifier_offside', 'modifiers/modifier_offside.lua', LUA_MODIFIER_MOTION_NONE) LinkLuaModifier('modifier_onside_buff', 'modifiers/modifier_onside_buff.lua', LUA_MODIFIER_MOTION_NONE) modifier_is_in_of...
local process = require("process") --Initialize coroutine library-- local _coroutine = coroutine -- real coroutine backend _G.coroutine = {} package.loaded.coroutine = _G.coroutine for key,value in pairs(_coroutine) do if type(value) == "function" and value ~= "running" and value ~= "create" then _G....
local M = {} local fn = vim.fn local api = vim.api local utils = require('hlslens.utils') local win_mids = {} function M.add_hl(winid, start_p, end_p, higroup) winid = winid == 0 and api.nvim_get_current_win() or winid M.clear_hl() local s_lnum, s_col = unpack(start_p) local e_lnum, e_col = unpack(e...
vim.g.nvim_tree_icons = { default = "", symlink = "", git = { unstaged = "", staged = "", unmerged = "", renamed = "", untracked = "", deleted = "", ignored = "", }, } vim.g.nvim_tree_ignore = { ".git", ".cache", ".node_modules", } vim.g.nvim_tree_root_folder_modifie...
local n1 = { name = "default:ice" } local n2 = { name = "stairs:slab_snowblock", param2 = 2 } local n3 = { name = "air" } local n4 = { name = "stairs:stair_outer_snowblock", param2 = 1 } local n5 = { name = "stairs:stair_outer_snowblock" } local n6 = { name = "stairs:stair_inner_straw", param2 = 3 } local n7 = { name =...