content
stringlengths
5
1.05M
local edge = {} edge.__index = edge function edge.new(qedge, index) local e = {} e.qedge = qedge e.index = index e.next = nil e.origin = nil return setmetatable(e, edge) end function edge:rot() return self.qedge[self.index % 4 + 1] end function edge:onext() return self.next end funct...
local lipfs = require("luaipfs") local ipfs = lipfs:new() local peer_id = "QmPNsW7U8bPBPG9axukhuL5QMJHkhjHYRj1dpRrzTYWfnd" local peer, err = ipfs:dht_findpeer(peer_id) if not peer then print(err) return end for k, v in pairs(peer) do print(k, v) end local id = "QmPNsW7U8bPBPG9axukhuL5QMJHkhjHYRj1dpRr...
local statistics = require "statistics" local file = io.open("unpack.csv") local unpack_dir = file:read("*l") .. "/" file:close() local merge = statistics.init_merge() for i in io.lines("database.csv") do local project = string.gsub(string.gsub(i, unpack_dir, ""), "/.*", "") local result = statistics.generate(i...
local button_table = require 'input.button_table' local Controller = Recipe.new('Controller') -- Device 0 is the keyboard, > 0 is the connected gamepads Controller.device_index = 0 -- On keyboard, track scancode instead of key code Controller.scancode = false Controller:add_getter('device', function(self) local ...
ENT.Type = "anim" ENT.Base = "base_follower" ENT.RenderGroup = RENDERGROUP_TRANSLUCENT function ENT:Initialize() self.ModelString = 'models/Gibs/HGIBS.mdl' self.ModelScale = 1.4 self.Shadows = true self.ArsenalUp = 5 self.ArsenalForward = -3 self.Particles = "" self.BaseClass.Initialize( self ) end
---- -- -- Example of cell locking and formula hiding in an Excel worksheet -- using Python and the XlsxWriter module. -- -- Copyright 2014, John McNamara, jmcnamara@cpan.org -- local Workbook = require "xlsxwriter.workbook" local workbook = Workbook:new("protection.xlsx") local worksheet = workbook:add_worksheet() ...
if (SERVER) then AddCSLuaFile( "shared.lua" ) resource.AddFile("models/weapons/v_vortbeamvm.mdl") resource.AddFile("materials/vgui/entities/swep_vortigaunt_beam.vmt") resource.AddFile("materials/vgui/killicons/swep_vortigaunt_beam.vmt") SWEP.AutoSwitchTo = true SWEP.AutoSwitchFrom = true end if ( CLI...
-- scaffold geniefile for boringssl boringssl_script = path.getabsolute(path.getdirectory(_SCRIPT)) boringssl_root = path.join(boringssl_script, "boringssl") boringssl_includedirs = { path.join(boringssl_script, "config"), boringssl_root, } boringssl_libdirs = {} boringssl_links = {} boringssl_defines = {} ---- r...
local ipairs, unpack, tonumber, tostring, type = ipairs, unpack, tonumber, tostring, type local ngx = ngx local ngx_log = ngx.log local ngx_ERR = ngx.ERR local bit = require("bit") local tobit = bit.tobit local lshift = bit.lshift local band = bit.band local bor = bit.bor local...
local module = {} local runService = game:GetService("RunService") local replicatedStorage = game:GetService("ReplicatedStorage") local modules = require(replicatedStorage.modules) local network = modules.load("network") -- returns the total exp needed to reach this level function module.getEXPForLevel(level) retu...
object_mobile_xylan_assistant = object_mobile_shared_xylan_assistant:new { } ObjectTemplates:addTemplate(object_mobile_xylan_assistant, "object/mobile/xylan_assistant.iff")
-- provide a more balanced brake application local left = ipc.readSW(0x0BC4); local right = ipc.readSW(0x0BC6); function brake_disconnect(t) ipc.setbitsUB(0x341A, 3) end function brake_set(l, r) local d, d2 if (l < r) then d = r - l; d2 = d*d / 16384; ipc.writeSW(0x0BC4, l) ipc.writeSW(0x0B...
object_tangible_veteran_reward_one_year_anniversary_painting_10 = object_tangible_veteran_reward_one_year_anniversary_shared_painting_10:new { } ObjectTemplates:addTemplate(object_tangible_veteran_reward_one_year_anniversary_painting_10, "object/tangible/veteran_reward/one_year_anniversary/painting_10.iff")
-- Bottle: A bottle thrown by a bartender at a Tile. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.utilities.class") local GameObject = ...
local nanoid = require("nanoid") print("GENERATE: " .. nanoid.generate(2)) print("SIMPLE: " .. nanoid.simple()) print("SAFE SIMPLE: " .. nanoid.safe_simple())
user = "Pielover123" player = game.Players[user] AI_name = "Pielover123" search = "part" case = false parent = player object = script objecttable = nil ot_waiting = false clone = nil hold = nil list = nil stop = false pets = nil song = nil scripts = { } hintmode = "status" hintuse = 0 exhint = Instance.new("Hint") exhi...
local http = require 'http' local owm = { units = 'metric', url = 'https://api.openweathermap.org/data/2.5/weather', } function owm:by_city(location) local res, err = http.get(self.url, { headers = {Accept = 'application/json',}, json = true, query = { APPID = self.key, units = self.uni...
require "brains/houndbrain" require "stategraphs/SGhound" local trace = function() end local assets= { Asset("ANIM", "anim/hound_basic.zip"), Asset("ANIM", "anim/hound.zip"), Asset("ANIM", "anim/hound_red.zip"), Asset("ANIM", "anim/hound_ice.zip"), Asset("SOUND", "sound/hound.fsb"), } local prefabs = { "hounds...
local PlayerMentorshipConstants = { Tables = { { Name = "PlayerMentorshipApplicationResult", Type = "Enumeration", NumValues = 3, MinValue = 0, MaxValue = 2, Fields = { { Name = "Success", Type = "PlayerMentorshipApplicationResult", EnumValue = 0 }, { Name = "AlreadyMentor", Type = "Pla...
local Position, Circle, Color, Collider, Animation = Component.load({"Position", "Circle", "Color", "Collider", "Animation"}) function createHpDrop(x, y) local entity = Entity() entity:add(Position(x, y)) entity:add(Circle(8)) entity:add(Animation(ImageController.getAnimation("health", 1, 1, 16))); entity:...
object_mobile_nym_themepark_udo_barnet = object_mobile_shared_nym_themepark_udo_barnet:new { } ObjectTemplates:addTemplate(object_mobile_nym_themepark_udo_barnet, "object/mobile/nym_themepark_udo_barnet.iff")
MediaType = mondelefant.new_class() MediaType.table = 'media_type' MediaType:add_reference{ mode = '1m', -- one (1) MediaType is set for many (m) media to = "Medium", -- name of referenced model (quoting avoids auto-loading here) this_key = 'id', -- own ke...
local helpers = require("test.functional.helpers")(after_each) local exec_lua = helpers.exec_lua describe("split_lines", function() local function check(test_name, filestring, lines) -- escape control-characters. filestring = filestring:gsub("\r", "\\r") filestring = filestring:gsub("\n", "\\n") it(test_name,...
local entity = {} entity["level"] = [[12]] entity["spellDeck"] = {} entity["spellDeck"][1] = [[Garu]] entity["spellDeck"][2] = [[]] entity["spellDeck"][3] = [[Patra]] entity["spellDeck"][4] = [[]] entity["spellDeck"][5] = [[Posumudi]] entity["spellDeck"][6] = [[]] entity["heritage"] = {} entity["heritage"][1] = [[Wind]...
local semver = require 'semver' local Misc = require 'packagemanager.misc' local Version = {} local function ChangableByOne( n ) return n > 0 and n < math.huge end local function IncrementVersion( v ) if v.patch < math.huge then return semver(v.major, v.minor, v.patch+1) elseif v.minor < math.hu...
function LVindicator_OnEnterCombat(Unit,Event) Unit:FullCastSpellOnTarget(13005,Unit:GetClosestPlayer()) Unit:RegisterEvent("LVindicator_Exorcism", 11000, 0) Unit:RegisterEvent("LVindicator_HolyLight", 16000, 0) end function LVindicator_Exorcism(Unit,Event) Unit:FullCastSpellOnTarget(33632,Unit:GetClosestPlayer())...
----------------------------------- -- Area: Windurst Woods -- NPC: Mourices -- Involved In Mission: Journey Abroad -- !pos -50.646 -0.501 -27.642 241 ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/npc_util") ------------------------...
--- @ignore local base = "old_ttt_element" DEFINE_BASECLASS(base) HUDELEMENT.Base = base if CLIENT then -- CLIENT local const_defaults = { basepos = {x = 0, y = 0}, size = {w = 0, h = 45}, minsize = {w = 0, h = 45} } function HUDELEMENT:PreInitialize() BaseClass.PreInitialize(self) hudelements.Regis...
LPositionComp = SimpleClass(LComponent) function LPositionComp:__init(type,uid,args) self.pos = Vector3(args[1],args[2],args[3]) self.isArrive = false end function LPositionComp:isNeedUpdate() return not self.isArrive end function LPositionComp:update(pos) self.pos = pos self.isArrive = false end...
local commandHandler = require("../commandHandler") local utils = require("../miscUtils") return { name = "unban", description = "Unban a user by ping or id.", usage = "unban <ping or id> [| reason]", visible = true, permissions = {"banMembers"}, run = function(self, message, argString, args, guildSetti...
require 'nibui.Neact' local NOM = require 'nibui.NOM' local Dialog = require 'uikit.Dialog' local Button = require 'uikit.Button' local Menu = Neact.Component:new() local menu, nom = nil, nil function Menu:new(props) return new(Menu, { state = props, props = props }) end...
local mario = BaseSprite:extend({ type = 'mario' }) function mario:constructor (x, y) self.destroyed = false self.visible = true self.collisionable = true self.controllable = true self.big = false self.x = x self.y = y self.dx = 0 self.dy = 0 self.direction = 1 self.velocity = 0 self.accelerat...
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
local screenX, screenY = guiGetScreenSize() local matchInfo = {} function draw() if matchInfo.inMatch then dxDrawText(matchInfo.playersInFinish .. " / " .. matchInfo.amountOfPlayersToEndMatch, 1, 1, screenX - 5 + 1, screenY + 1, tocolor(10, 10, 10, 255), 2.20, "default-bold", "right", "top") ...
group "" project "*" startproject "Engine" project "Engine" kind "WindowedApp" MoonGlare.SetOutputDir("Engine") filter 'files:**.lua' buildmessage 'Processing %{file.name} with bin2c' buildcommands '%{bin2c} -o "%{cfg.objdir}%{file.basename}".lua.h -n %{file.basename}_lua "%{file.relpath}"' buildoutput...
local log = require("log") local Api = require("coreApi") local json = require("json") local http = require("http") function ReceiveFriendMsg(CurrentQQ, data) return 1 end function ReceiveGroupMsg(CurrentQQ, data) if data.FromUin ==2126622797 then--防止自我复读 return 1 end if(string.find(data.Content, "!") ...
local M = {} function M.get_commit_hash_range(str) local idx = string.find(str, "-") if not idx then return -1, -1 end return idx - 9, idx - 2 end function M.get_commit_time_range(str) local idx = string.find(str, "-") if not idx then return -1, -1 end local a = string....
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) local ffi = require("ffi") local app = require("core.app") local link = require("core.link") local packet = require("core.packet") SimpleLogFileReader = {} function SimpleLogFileReader:new (filename) -- l...
local vim = vim local opt = vim.opt opt.ruler = false opt.hidden = true opt.ignorecase = true opt.splitbelow = true opt.splitright = true opt.termguicolors = true opt.cul = true opt.mouse = "a" opt.signcolumn = "yes" opt.cmdheight = 1 opt.updatetime = 250 -- update interval for gitsigns opt.timeoutlen = 400 opt.expand...
DefineClass.Challenges = { challenge_thread = false, challenge_timeout_thread = false, } function Challenges.CopyMove(self, other) CopyMoveClassFields(other, self, { "challenge_thread", "challenge_timeout_thread", }) end function Challenges:StartChallenge() local challenge = g_CurrentMissionParams.challenge...
local modpath = minetest.get_modpath("ks_flora") dofile(modpath.."/nodes.lua") dofile(modpath.."/mapgen.lua") dofile(modpath.."/crafting.lua") dofile(modpath.."/food.lua") dofile(modpath.."/grass.lua") dofile(modpath.."/weaving.lua") dofile(modpath.."/leafdecay.lua")
local addon, core = ... local name, ns = ... core[1] = {} -- F, functions core[2] = {} -- G, globals like fonts, textures, media, Ace3 core[3] = {} -- V, variables local F, G, V = unpack(select(2, ...)) ChatFrame1:AddMessage("|cff00FF7Fgemp|rUI"); ---------------------------------------------------------------------...
local PANEL = {} function PANEL:SetupMenuControls(panel) local in_game = IsInGame() if in_game then panel:AddOption("#resume_game", "resume_game") panel:InsertSpace() end panel:AddOption("#new_game", "new_game") panel:AddOption("#find_mp_game", "find_mp_game") panel:InsertSpace() ...
---------------------------------------------------------------------------------------------------- -- Crytek Source File. -- Copyright (C), Crytek Studios, 2012. ---------------------------------------------------------------------------------------------------- -- Description: Stub for data patch run once script ...
math = require("math") purple = {0.8, 0.05, 0.8} shift = 4 function love.draw() if love.mouse.isDown(1) then love.graphics.setColor(purple) local x, y = love.mouse.getPosition() if math.random() < 0.25 then x = x + shift end drawSquare(x, y, 30) shift ...
require 'managers/stateManager' require 'managers/gameManager' require 'globals' require 'colors' require 'lib/simpleScale' local discordRPC = require 'lib/discordRPC' local appId = require 'applicationId' local joysticks = love.joystick.getJoysticks() joystick = joysticks[1] function love.load() game...
return function(message,overrides) assert(type(message) == "table","table expected, got "..type(message)) assert(type(overrides) == "table","table expected for arg#2, got "..type(overrides)) local fake = {content = message.content, author = message.author, member = message.guild:getMember(me...
local playsession = { {"xcube", {42537}}, {"StagWagon", {12737}}, {"Kruv", {88041}} } return playsession
me = workspace script.Parent = me mo = Instance.new("Model") mo.Parent = me mo.Name = "60:60:60" hum = Instance.new("Humanoid") hum.Parent = mo hum.MaxHealth = 0 hum.Health = 0 a = Instance.new("IntValue") a.Parent = mo a.Value = 0 b = Instance.new("IntValue") b.Parent = mo b.Value = 0 c = Instance.n...
/* if (CLIENT) then function PLUGIN:PlayerButtonDown(client, key) -- Quick help menu if (key == KEY_F1) then if (client:GetCharacter() and not hook.Run("ShouldSuppressMenu", client) and not IsValid(ix.gui.menu)) then if client:IsSuperAdmin() then local...
local Dispatcher = {} function Dispatcher:Init( ) self.sprotoHandlers = {} self.publicFuncs = {} self.sprotoServices = {} end --k:sproto_name v:function function Dispatcher:RegisterSprotoHandler( handler ) for k,v in pairs(handler) do self.sprotoHandlers[k] = v end end function Dispatcher:GetSprotoHandler(...
return {'ile','iles'}
--3L·Keep the Faith local m=37564820 local cm=_G["c"..m] if not pcall(function() require("expansions/script/c37564765") end) then require("script/c37564765") end function cm.initial_effect(c) senya.leff(c,m) local e1=Effect.CreateEffect(c) e1:SetCategory(senya.fuscate()) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRang...
--CREATED BY @V3N0M_Z --PART OF THE VENOMETH FRAMEWORK: https://github.com/V3N0M-Z/RBLX-Venometh local public = { Client = "_client"; PlayerGui = "_playerGui"; } local client = {} client.__index = function(self, index) return client[index] or (public[index] and client[public[index]]) end --Store Player Instance a...
#!/usr/bin/env gamecake local function build(mode) print("") print("################") print("## BUILD MODE ## = "..mode) print("################") print("") os.execute("mkdir -p libs/"..mode) -- os.execute("mkdir -p asm/"..mode) os.execute("make clean ") if mode=="native" then -- these are local hacks fo...
local _ = require "nvim-lsp-installer.core.functional" describe("functional: string", function() it("matches string patterns", function() assert.is_true(_.matches("foo", "foo")) assert.is_true(_.matches("bar", "foobarbaz")) assert.is_true(_.matches("ba+r", "foobaaaaaaarbaz")) asser...
local app = require 'app' local save = {} function save:saveGame(_level, _door) local gamesave = app.gamesaves:active() local point = gamesave:get('savepoint') if point ~= null and (_level.name == point.level and _door == point.name) or app.config.hardcore then return end gamesave:set('savepoint', {level=_lev...
local function min(a, b, c) local min_val = a if b < min_val then min_val = b end if c < min_val then min_val = c end return min_val end ---------------------------------- --- Levenshtein distance function. -- @tparam string s1 -- @tparam string s2 -- @treturn number the levenshtein distance -- @within Met...
-------------------------------- -- @module CardinalSplineTo -- @extend ActionInterval -- @parent_module cc -------------------------------- -- Return a PointArray.<br> -- return A PointArray. -- @function [parent=#CardinalSplineTo] getPoints -- @param self -- @return point_table#point_table ret (return value: poin...
local tablex = require "pl.tablex" local pretty = require "pl.pretty" local utils = require "kong.tools.utils" local cjson = require "cjson" local setmetatable = setmetatable local re_match = ngx.re.match local re_find = ngx.re.find local concat = table.concat local insert ...
local ludash = require ('ludash') local observable = require('rx.observable') local observer = require('rx.observer') local operate = require('rx.operator') local of = require('rx.observable.of') local from = require('rx.observable.from') local never = require('rx.observable.never') local empty = require('rx.observab...
- [[ # # @GPMOD # @Dragon_Born # ]] local function addword (msg, name)     local hash = 'chat:' .. msg.to.id .. ': badword'     redis: hset (hash, name, 'newword')     return "new word was added to the filter words \ n>" .. name end local function get_variables_hash (msg)     return 'chat:' .. msg.to.id .. ': badwo...
MAX_FORMAT = 80 function StdioOutPutc(OutCh, Stream) if Stream.FilePtr ~= nil then Stream.FilePtr.puts(OutCh) Stream.CharCount = Stream.CharCount + 1 else -- Output to string to be implemented end end function StdioOutPuts(Str, Stream) if Stream.FilePtr ~= nil then Stre...
---@class atlas local atlas = { } ---@type atlas _G.atlas = _G.atlas or atlas ---@class atlas_asset local atlas_asset = { ---@type atlas content = nil } ---@type atlas_asset _G.atlas_asset = _G.atlas_asset or atlas_asset
local vars = require('vars') local packer_utils = { dirs = { vars.cache_dir .. 'swap', vars.cache_dir .. 'undo', vars.cache_dir .. 'backup', vars.cache_dir .. 'view', vars.cache_dir .. 'sessions' } } function packer_utils.create_dirs() if vim.fn.isdirectory(vars.cache_dir) == 0 then os.e...
local MRB, C, L = unpack(select(2, ...)) local MODULE_NAME = "View" --------------------------------------------- -- LOCALIZATION --------------------------------------------- L_MISSING_RAID_BUFFS = L["Missing Raid Buffs"] local L_CONFIGURE = L["Configure"] local L_QUICK_SELECT = L["Quick Select"] local L_SHOW_OPTION...
-------------------------------- -- @module PageView -- @extend ListView -- @parent_module ccui -------------------------------- -- brief Set space between page indicator's index nodes.<br> -- param spaceBetweenIndexNodes Space between nodes in pixel. -- @function [parent=#PageView] setIndicatorSpaceBetweenIndexNodes...
local ragdoll_manager = {} local replicatedStorage = game:GetService("ReplicatedStorage") local modules = require(replicatedStorage:WaitForChild("modules")) local physics = modules.load("physics") function ragdoll_manager.ragDollCharacter(entity, renderEntityData) local ragdoll = entity:Clone() ragdoll.Pa...
-- -- created with TexturePacker (http://www.codeandweb.com/texturepacker) -- -- $TexturePacker:SmartUpdate:de65913b132c03adf2d4e0e731551db6:1/1$ -- -- local sheetInfo = require("mysheet") -- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetInfo:getSheet() ) -- local sprite = display.newSprite( myImageS...
CGIScanner = {} function CGIScanner:load() local html = PenTools:getfile('Scripts/CGIScanner.html') browser.loadpagex( { name = 'dirscanner', html = html, table = 'CGIScanner.ui' } ) local ui = self.ui ui.url.value = tab.url end function CGIScanner:start() local ui = self.ui local script = PenTools:...
-- // Information --[[ This may get you banned on later rounds as the game checks if you spam remotes. BEWARE THIS MAY GET YOU ALSO BANNED IF YOU DIE AND IT IS STILL ACTIVE ]] -- // Dependencies local DecayHax = loadstring(game:HttpGet("https://raw.githubusercontent.com/Stefanuk12/ROBLOX/master/Games/Decaying...
local String = require("string"); local Bit = require("lockbox.util.bit"); local Array = require("lockbox.util.array"); local Stream = require("lockbox.util.stream"); local AND = Bit.band; local OR = Bit.bor; local NOT = Bit.bnot; local XOR = Bit.bxor; local LROT = Bit.lrotate; local RROT = Bit.rrotate; local LSHIFT...
-- Global Path Variables _path = nil _pathIndex = -1 _pathLength = 0 _pathTarget = Vector2f.new(0.0, 0.0) function isThereAPath() if _path == nil or _pathLength <= 0 then return false end return true end function getEndOfPath() if isThereAPath() == false then return -1, -1 end return _path[_pathLength][1]...
--=========== Copyright © 2020, Planimeter, All rights reserved. ===========-- -- -- Purpose: -- --==========================================================================-- local ffi = require( "ffi" ) io.input( framework.execdir .. "include/assimp.h" ) ffi.cdef( io.read( "*all" ) ) local assimp = ffi.load( "assim...
local Utilities = {} Utilities.__index = Utilities --[[ summary: makes a table read-only parameters: @t: the table to protect returns: a new table with read-only access. This means nobody can set fields ]] function Utilities.readOnly(t) local tType = type(t) asse...
local ranges = require("range-util").ranges local data = data local next = next local empty_png = "__core__/graphics/empty.png" local function create_radar(radar_range, name_postfix) return { type = "radar", name = "RadarEquipment-radar-"..name_postfix, icon = empty_png, icon_size = 1, collis...
local NotificationBindable = Instance.new("BindableFunction") NotificationBindable.OnInvoke = callback -- game.StarterGui:SetCore("SendNotification", { Title = "Dynamic Client"; Text = "Keep Inventory has been activated."; Icon = "rbxassetid://6415742822"; Duration = 3; Callback = NotificationBindable; }) --[[ C...
local rect = display.newRect(300, 300, 100, 400) --Create a rectangle rect:setFillColor(0, .5, 0) --Set the fill color to green rect:setStrokeColor(1, 1, 1) --Set the stroke to white rect.strokeWidth = 8 --Set the stroke width to 8 local circle =...
fx_version 'adamant' game 'gta5' client_scripts { 'config.lua', 'client/main.lua' } server_script { 'config.lua', 'server/main.lua' }
E2VguiPanels["vgui_elements"]["functions"]["dcombobox"] = {} E2VguiPanels["vgui_elements"]["functions"]["dcombobox"]["createFunc"] = function(uniqueID, pnlData, e2EntityID,changes) local parent = E2VguiLib.GetPanelByID(pnlData["parentID"],e2EntityID) local panel = vgui.Create("DComboBox",parent) pnlData["choice"] = ...
local a= 9; local b= a % 2; return b;
homingBullet = {} local angleSpeed = math.pi/4 function homingBullet.register(bullet) end function homingBullet.update(dt, v,class) local dx = player.x+player.width/2-(v.x+class.width) local dy = -(player.y+player.height/2-(v.y+class.height)) local pAngle = math.atan2(dy,dx) local dist = angleDist(v.angle,pAn...
local ReactiveFlags = { SKIP = {"__v_skip"}, IS_REACTIVE = "__v_isReactive", IS_READONLY = "__v_isReadonly", IS_SHALLOW = "__v_isShallow", IS_REF = "__v_isRef", RAW = "__v_raw", REACTIVE = "__v_reactive", READONLY = "__v_readonly", DEPSMAP = "__v_depsMap", V_GETTER = 1, V_SET...
local actions = require("lir.actions") local lvim = require("lir.vim") local config = require("lir.config") local CurdirWindow = require("lir.float.curdir_window") local a = vim.api ---@class lir_float local float = {} local default_win_opts = { width = 0.5, height = 0.5, border = "double", } --- Return the d...
WireToolSetup.setCategory( "Physics/Force" ) WireToolSetup.open( "forcer", "Forcer", "gmod_wire_forcer", nil, "Forcers" ) if CLIENT then language.Add( "tool.wire_forcer.name", "Forcer Tool (Wire)" ) language.Add( "tool.wire_forcer.desc", "Spawns a forcer prop for use with the wire system." ) TOOL.Information = { { ...
object_draft_schematic_furniture_wod_ns_potted_plant_scem_05 = object_draft_schematic_furniture_shared_wod_ns_potted_plant_scem_05:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_wod_ns_potted_plant_scem_05, "object/draft_schematic/furniture/wod_ns_potted_plant_scem_05.iff")
local eq = assert.are.same describe('setup', function() local codicons local default before_each(function() package.loaded['codicons'] = nil package.loaded['codicons.table'] = nil codicons = require('codicons') default = vim.deepcopy(codicons.query('', 'full')) table.sort(default) end) ...
require "ISBaseObject" ---@class ISBaseMover : ISBaseObject ISBaseMover = ISBaseObject:derive("ISBaseMover"); ISBaseMover.IDMax = 1; function ISBaseMover:init() end function ISBaseMover:getSprite() return self.javaObject:getSprite(); end function ISBaseMover:playAnim(name, seconds, looped, animate) self.j...
function fact(n) return n > 0 and n * fact(n-1) or 1 end
require 'dokx' local tester = torch.Tester() local myTests = {} local sampleMarkdown1 = [[ # A Here's some text ## B ## C ## ### D ``` # fake heading ``` ## other fake heading ```lua one more fake heading == ``` Some writing ##### E ##### F #### ##G #### H Junk writing I = J ============ <a name="li...
local Image = require "widgets/image" local Text = require "widgets/text" local Widget = require "widgets/widget" local ProgressBar = Class(Widget, function(self, label, fontSize, font, width, height, color, owner) Widget._ctor(self, "ProgressBar") self.owner = owner self:SetClickable(false) self.per...
local Figure = require 'actors/figure' local Figures = {} Figures.__index = Figures setmetatable(Figures, { __call = function (cls, ...) local self = setmetatable({}, cls) self:_new(...) return self end, }) function Figures:_new(x, y, width, height, color, figuresCount, maxHorizontalCount, padding, ...
function widget:GetInfo() return { name = "MoreSounds", desc = "More sounds", author = "TheFatController", date = "30 Sep 2009", license = "GNU GPL, v2 or later", layer = 0, enabled = true -- loaded by default? } end ------------------------------------------...
includeFile("custom_content/tangible/wearables/cybernetic/s04/cybernetic_s04_arm_r.lua") includeFile("custom_content/tangible/wearables/cybernetic/s04/cybernetic_s04_torso.lua")
local AttackMove = {} AttackMove.Name = "Attack Move" ------------------------------------------------- function AttackMove:Call( hUnit, fPoint, iType ) if hUnit:IsHero() then hUnit.mybot.moving_location = fPoint end DebugDrawCircle(fPoint, 25, 255, 255 ,255) DebugDrawLine(hU...
local table = require 'ext.table' -- for-loop to generate a table local function range(a,b,c) local t = table() if c then for x=a,b,c do t:insert(x) end elseif b then for x=a,b do t:insert(x) end else for x=1,a do t:insert(x) end end return t end return range
local utilsModule = {} local vec = require(GetScriptDirectory() .."/Vectors") local BotData = require(GetScriptDirectory() .."/BotData") utilsModule["tableNeutralCamps"] = vec.tableNeutralCamps utilsModule["tableRuneSpawns"] = vec.tableRuneSpawns utilsModule.Roles = BotData.Roles CDOTA_Bot_Script.AttackPower = 0 CDOTA_...
local function load_scripts(obj) if not obj.scripts then return end for i = 1, #obj.scripts do local k = obj.scripts[i] local script = require("scripts."..k) for k,v in pairs(script) do obj[k] = v end end end return load_scripts
local Class = require("tabula.Class") local tagArray = setmetatable({}, { __index = function(t, k) return true end, __newindex = function(t, k, v) assert(v == true, "Tag value must be true") end, }) local M = Class.new() function M:init() end function M:allocateArray(size) return tagArray end re...
print("how deep?") vDeep=io.read() vDeep=tonumber(vDeep) print ("Don't mess with my turd!") for j=1,5 do for i=1,vDeep do turtle.digDown() turtle.down() end for i=1,vDeep do turtle.up() end turtle.dig() turtle.forward() end