content
stringlengths
5
1.05M
function onStartCountdown() if difficulty < 2 then function onStepHit() setScore(0) setRatingPercent(0) setProperty('health', 2); end makeLuaSprite('casual', 'V/fucking-casual/bg', -0,0) makeAnimatedLuaSprite('dumbass', 'V/fucking-casual/hard', 750, 550) luaSpriteAddAnimationByPrefix('dumbass',...
--[[ ======================================================================== " _________.__ .___ ___. .__ .___ " / _____/| |__ _____ __| _/____\_ |__ |__| ____ __| _/______ " \_____ \ | | \\__ \ / __ |/ _ \| __ \| |/ \ / __ |/ ___/ " / \| Y ...
#!/usr/bin/env gt --[[ Copyright (c) 2014 Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2014 Genome Research Ltd Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appea...
function parse_doc(raw_docs, file_name) -- Get documentation local doc_tbl = { content = trim(raw_docs), anchors = { tags = {}, titles = {} }, title = nil, title_rno = 0 } local rows = doc_tbl.content:split("\n") for row_no,row in ipairs(rows) do if (row:match("^#")) then doc_tbl.title = tri...
local AtlasLoot = _G.AtlasLoot local SlashCommands = {} AtlasLoot.SlashCommands = SlashCommands local AL = AtlasLoot.Locales -- lua local assert, type, select, print = assert, type, select, print local str_lower, str_format, str_split = string.lower, string.format, string.split local tbl_remove, unpack, pairs = table....
require 'setup/setup' local dummy = { dummy = "dummy" } -- we fulfill or reject with this when we don't intend to test against it local other = { other = "other" } -- a value we don't want to be strict equal to local sentinel = { sentinel = "sentinel" } -- a sentinel fulfillment value to test for with strict equality ...
local has_epic = minetest.get_modpath("epic") local function teleport_to_spawn(name) if has_epic and epic.get_state(name) then -- no teleporting while on a quest minetest.chat_send_player(name, "i'm sorry i can't do that dave") return end local player = minetest.get_player_by_name(name) player:setpos({ x=...
local multiply_adds = true local M = {} local OpCounter = torch.class('OpCounter', M) function OpCounter:__init(model, opt) if torch.type(model) == 'nn.DataParallelTable' then model = model:get(1) end self.model = model self.op_count = op_count self.op_used = op_used self.opt = opt end function OpCou...
local colors = require("vscode.colors") local theme = {} theme.load_syntax = function() local c = colors.generate() local syntax = { -- GROUP, FOREGROUND, BACKGROUND, ATTRIBUTE, SPECIAL Normal = { c.vscFront, c.vscBack, 'none', nil}, ColorColumn = { nil, c.vscCursorDarkDark, 'none', nil}, Cursor = { c.vscCur...
------------------------------------------------------------------------------- -- ElvUI Chat Tweaks By Crackpot (US, Thrall) -- Based on functionality provided by Prat and/or Chatter ------------------------------------------------------------------------------- local Module = ElvUI_ChatTweaks:NewModule("Achievement F...
local match_at = require'tools.string'.match_at local subject local function set_subject(str, pos, pattern) local pattern = pattern or "[%w_]+" subject = match_at(str, pos, pattern) end local function assert_chunk_is(string, startpos, endpos, chunk) local chunk = chunk or string it("has the correct string", f...
--[[ cargBags: An inventory framework addon for World of Warcraft Copyright (C) 2010 Constantin "Cargor" Schomburg <xconstruct@gmail.com> cargBags is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2...
-------------------------------------------------------------------- -- This file was automatically generated by ProjectGenerator -- which is tooling part the build system designed for GUCEF -- (Galaxy Unlimited Framework) -- For the latest info, see http://www.VanvelzenSoftware.com/ -- -- The contents of this file...
local M = {} M.HIRATE = "HIRATE" M.OTHER = "OTHER" M.KY = "KY" M.KA = "KA" M.HI = "HI" M["2"] = "2" M["4"] = "4" M["6"] = "6" M["8"] = "8" M["10"] = "10" local sfen = { HIRATE = "lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL b - 1", KY = "lnsgkgsn1/1r5b1/pppppppp...
--@name Threaded Child Script
local Gate = { [1] = createObject(5779, -96.087005615234, -52.888311004639, 3.6868686676025, 0, 0, 70.559594726563 ), } exports.pool:allocateElement(Gate[1]) local GatePass = "ohayena123" local open = false local busy = false local function ResetBusyState() busy = false end local function closeDoor(theP...
---------------------------------------- -- -- Copyright (c) 2015, Hadriel Kaplan -- -- author: Hadriel Kaplan <hadrielk@yahoo.com> -- -- This code is licensed under the MIT license. -- -- Version: 1.0 -- ------------------------------------------ -- prevent wireshark loading this file as a plugin if not _G['pcapng_te...
function try(t) local code = t[1]; local result, err = pcall(code); if err ~= nil then local exception_type = string.match(err, "Exception %[([%a]+)%] occured"); if t[exception_type] then return t[exception_type](err), err; elseif t["_"] then return t["_"](err...
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 02/12/2017 -- Time: 14:56 -- To change this template use File | Settings | File Templates. -- local s = {} s.update = function() local player = core.filter.get("player") if player == nil then return end local camera = core.filter.get("ca...
--[[ Copyright (C) 2018 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope th...
local lunajson = require("lunajson") local json = {} function json.encode(lua_value) return lunajson.encode(lua_value) end function json.decode(json_string) return lunajson.decode(json_table) end return json
local mod = get_mod("FailLevelCommand") -- luacheck: ignore get_mod mod.SETTING_NAMES = { LOSE_HOTKEY = "LOSE_HOTKEY", WIN_HOTKEY = "WIN_HOTKEY", RESTART_HOTKEY = "RESTART_HOTKEY", } local mod_data = { name = "Fail/Win/Restart Level", description = mod:localize("mod_description"), is_togglable = false, } mod_da...
------------------------------------------------------------------------------ -- Test groups. -- Copyright © 2013–2015 Peter Colberg. -- Distributed under the MIT license. (See accompanying file LICENSE.) ------------------------------------------------------------------------------ require("strict") pcall(require, ...
local util = require("tests.test_util") describe("treesitter go", function() it("parses all symbols correctly", function() util.test_file_symbols("treesitter", "./tests/treesitter/go_test.go", { { kind = "Function", name = "fn_1", level = 0, lnum = 3, col = 0, ...
--[[ ORIGINAL CODE Script Created by CEEBS YouTube: https://www.youtube.com/channel/UCQvB8QBknoS1jYgwpYGQrQg Twitter: https://twitter.com/OnlyCeebs Really appreciate all the support you have given me, so thank you! CHANGES Modified by Squire 2021 ]]-- local INVENTORY_SIZE = 16 local MAIN_LOOP_INTERVAL = 300 lo...
local args = {...} local file = fs.open(args[1],"r") print(file.readAll());
--[[ Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved @file PassidJudge.lua @author sunnnychan@gmail.com @date 2016/03/12 11:27:24 @brief passid judge ]]-- local BDLOG = require('lua.bdlib.BdLogWrite') local setmetatable = setmetatable local tonumber = tonumber local tostring = tostring local Method = require(...
local ok, kommentary = pcall(require, "kommentary.config") if not ok then vim.notify "Could not load Kommentary" return end kommentary.configure_language("default", { prefer_single_line_comments = true, }) kommentary.configure_language("html", { single_line_comment_string = "auto", multi_line_comment_string...
local config, FILE_PATH = ... -- Sort config menus local configCnt = 0 for i, value in ipairs(config) do for ii, value2 in ipairs(config) do if i == value2.o then value.z = ii value2.o = nil end end configCnt = configCnt + 1 end -- Load config data local fh = io.open(FILE_PATH .. "config.dat", "r") if fh...
require "lfs" require "_util" local data = dofile("_buildConfig.lua"); local outputDir = ...; outputDir = outputDir or "..\\fo\\"; local foFilename = "..\\printbw.fo"; --Parameters local params = {} --params["body.start.indent"] = "2pc"; params["paper.type"] = "USLetter"; params["body.start.indent"] = "0pt"; --para...
local colors = { cyan = '#95E6CB', green = '#BAE67E', red = '#FF3333', white = '#C7C7C7', yellow = '#FFA759', } require('lualine').setup { options = { icons_enabled = false, theme = 'ayu_mirage', component_separators = '', }, sections = { --lualine_a = {'g:coc_status'}, lualine_b = { 'branch', ...
local M = {} local PREFIX = "■ " local PREFIX_LENGTH = #PREFIX function M.collect() local items = {} for _, diagnostic in ipairs(vim.diagnostic.get(0)) do local path = vim.api.nvim_buf_get_name(diagnostic.bufnr) local desc = PREFIX .. diagnostic.message table.insert(items, { value = diagnostic.m...
Physical = require("entities.core.physical") PhysBox = class("PhysBox", BaseEntity) PhysBox.spritesheet = SpriteSheet:new("sprites/box_generic.png", 32, 32) PhysBox.image = loadImage("sprites/doorcrate.gif"):getData() function PhysBox:initialize(x, y, w, h) BaseEntity.initialize(self) self.width = 32 se...
MailLooter = MailLooter or {} local ADDON = MailLooter ADDON.UI = ADDON.UI or {} local UI = ADDON.UI UI.currentLoot = false local filterConvertion = { ['ava'] = {1, ADDON.Core.MAILTYPE_AVA}, ['hireling'] = {1, ADDON.Core.MAILTYPE_HIRELING}, ['store'] = {1, ADDON.Core.MAILTYPE_STORE}, ['cod']...
--TODO:Change if same action is greatest use it again require "Constants" require "Inputs" require "NeuralNetwork" require "Pools" require "SaveStates" require "Forms" require "Timeout" require "SQL" require "Test" function InitializeStats() local statsFile=io.open("Stats".. tostring(forms.getthreadNum()) .. ".csv"...
-- spritelib-start charselection={width=2,spriteIDs={12,13,30,31}} cursoreraser={width=2,spriteIDs={72,73,86,87}} cursorhanddown={width=2,spriteIDs={70,71,84,85}} cursorhand={width=2,spriteIDs={40,41,55,56}} cursorpen={width=2,spriteIDs={68,69,82,83}} cursorpointer={width=2,spriteIDs={38,39,53,54}} cursortext={width=2,...
-- manage a pool of active and inactive objects -- supply a constructor or metatable to populate new objects -- maintain references to active and inactive objects -- copyright 2016 Samuel Baird MIT Licence local table = require("table") local io = require("io") local class = require("core.class") local pairs, ipairs,...
--[[ Copyright 2019 Teverse @File scale.lua @Author(s) Jay --]] TOOL_NAME = "Scale" TOOL_ICON = "fa:s-expand-arrows-alt" TOOL_DESCRIPTION = "Use this to resize primitives." local toolsController = require("tevgit:create/controllers/tool.lua") local function onToolActivated(toolId) end local functio...
if ngx.var.flag == 0 then return end -- 引入lua所有api local cjson = require "cjson" local producer = require "resty.kafka.producer" -- 定义kafka broker地址,ip需要和kafka的host.name配置一致 local broker_list = { { host = KAFKA_HOST, port = KAFKA_PORT }, } -- 定义json便于日志数据整理收集 local log_json = {} --log_json["u...
local composer = require( "composer" ) local scene = composer.newScene() function scene:create( event ) local sceneGroup = self.view end -- show() function scene:show( event ) local sceneGroup = self.view local phase = event.phase if ( phase == "will" ) then i18n = require('lib.i18n.init') i18n.load(requ...
local hotkey = require 'hs.hotkey' local window = require 'hs.window' local position = import('utils/position') local monitors = import('utils/monitors')() local function module_init() local mash = config:get("arrows.mash", { "cmd", "ctrl", "alt" }) local keys = config:get("arrows.keys", { UP = "top",...
-- This file is under copyright, and is bound to the agreement stated in the EULA. -- Any 3rd party content has been used as either public domain or with permission. -- © Copyright 2016-2017 Aritz Beobide-Cardinal All rights reserved. if ARCSlots then util.AddNetworkString( "ARCSlots_Admin_GUI" ) ARCSlots.Comman...
local V = { Name = "GMC Vandura", Class = "prop_vehicle_jeep", Category = "TDM Cars", Author = "TheDanishMaster, freemmaann, Ubisoft", Information = "A drivable GMC Vandura by TheDanishMaster", Model = "models/tdmcars/gmcvan.mdl", KeyValues = { vehiclescript = "scripts/vehicles/tdmcar...
local fs = require 'bee.filesystem' local platform = require 'bee.platform' local home = fs.path(platform.OS == "Windows" and os.getenv 'USERPROFILE' or os.getenv 'HOME') local vscode = (function() local type = arg[2] if not type then return ".vscode" end if #type < 10 then return ".vsc...
return {'landbouwschap','landstorm','landwacht','lancaster','lanceerbasis','lanceerbuis','lanceerinrichting','lanceerinstallatie','lanceerplaats','lanceerplatform','lanceerprijs','lanceerraket','lanceervenster','lanceren','lancering','lancet','lancetbladig','lancetvisje','lancetvormig','land','landaanwinning','landaanw...
-- Original by Palagius : https://oc.cil.li/index.php?/topic/1426-ae2-level-auto-crafting/ -- Modfied by Dalden 2018-07-28 -- - Store crafting result object to check for status -- - If crafting job is not yet finished from previous cycle then skip this cycle -- Modified by Gladox114 2019-03-30 http...
slot0 = class("BackyardMainMediator", pm.Mediator) slot0.END_DRAG_SHIP = "BackyardMainMediator:END_DRAG_SHIP" slot0.CANCEL_SHIP_MOVE = "BackyardMainMediator:CANCEL_SHIP_MOVE" slot0.FURNITURE_POS_CHNAGE = "BackyardMainMediator:FURNITURE_POS_CHNAGE" slot0.FURNITURE_DIR_CHANGE = "BackyardMainMediator:FURNITURE_DIR_CHANGE"...
require("utilities/dota_data_strings") function vectorEqual(actualLocation, targetLocation, tolerance) local nearBy = (math.abs(actualLocation[1]-targetLocation[1]) < tolerance and math.abs(actualLocation[2]-targetLocation[2]) < tolerance and math.abs(actualLocation[3]-targetLocation[3]) ...
local M = {} function M.config() local actions = require("telescope.actions") require("telescope").setup({ defaults = { mappings = { i = { ["<C-k>"] = actions.move_selection_previous, ["<C-j>"] = actions.move_selection_next, ...
return require('lib.oop.generated.effect')
--[[ language file for: EN Translater: snoopycurse Licence: http://creativecommons.org/licenses/by-nc-sa/3.0/ $Rev: 134 $ ]] SRC_Texts = {}; SRC_Texts = { ["Stats"] = { ["DEX_TO_DPS"] = "dexterity to DPS", ["DEX_TO_PHYDEF"] = "dexterity to physical defense", ["DEX_TO_PHYATT"] = "dexterity to ph...
----------------------- --- Made By EN#5467 --- ----------------------- ESX = nil local PlayerData = {} local uitgeklokt = false local heeftbus = false local blip = {} local heeftGereedschap = false Gereedschap2 = 0 bus = nil Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSha...
local M = {} M.config = { cmd = { 'vscode-json-language-server', '--stdio' }, filetypes = { 'json', 'jsonc' }, settings = { json = { schemas = { { fileMatch = { 'package.json' }, url = 'https://json.schemastore.org/package.json', }, { fileMatch = { ...
-- -- Created by IntelliJ IDEA. -- User: zhaojun -- Date: 17/1/22 -- Time: 上午10:50 -- To change this template use File | Settings | File Templates. --日志文件上传模块 local _util = require "lightning.util" --- util.lua local upload = require "resty.upload" ...
describe("Validation with between rule", function() local between = require("rules.between") local valid_inputs = { {2, 1, 3}, {"3", 1, 3}, {5, 1, 10}, {-10, -20, 0}, } local invalid_inputs = { {0, 1, 10}, {-1, 1, 10}, {true, 1, 10}, {false, 1, 10}, {nil, 1, 10}, {{}, ...
-- pacman -S haskell-language-server require('lspconfig').hls.setup{}
ggun_enabled = {} function togglePlayerGravityGun(player,on) if not (isElement(player) and getElementType(player) == "player") then return false end if on ~= true and on ~= false then return false end if ggun_enabled[player] == (on == true) then return false end ggun_enabled[player] = on == true if on then setE...
local Scala = require "core.Quantizer.Scala" local Signal = require "Signal" local Card = require "Card" local FileSystem = require "Card.FileSystem" local Path = require "Path" local builtins = { ["12-TET"] = { 100, 200, 300, 400, 500, 600, 700, 800, 900, 100...
music = { thread = love.thread.newThread("musicloader_thread.lua"), toload = {}, loaded = {}, list = {}, list_fast = {}, pitch = 1, } music.stringlist = table.concat(music.toload, ";") function music:init() self.thread:start() end function music:load(musicfile) -- can take a single file string or an array of ...
require('level') -- Rovers live off the land, and gain a sixth sense about danger that -- keeps them alive. local function rover_stat_gain_fn(creature_id, level) if level % 5 == 0 then incr_agi(creature_id, is_player(creature_id)) end end -- Set up the rover functions. local rover_class_stat_fn = rover_stat_g...
local test1 = 1/0 local test2 = 0/0 print(test1) -- inf print(test2) -- -nan / luajit:nan / lua5.1:-nan local function test() print( 1 % 0 ) -- lua5.3:error attempt to perform 'n%0' / luajit:nan / lua5.1:-nan end local ok, err = xpcall(test, debug.traceback) -- it would be error in lua5.3+ print(ok) print(er...
Image = Shape:extend() function Image:new(x, y, speed, path) Image.super.new(self, x, y, speed) -- Circly things self.path = path self.image = love.graphics.newImage(path) end function Image:draw() love.graphics.draw(self.image, self.x, self.y) end
local __exports = LibStub:NewLibrary("ovale/scripts/ovale_paladin_spells", 80000) if not __exports then return end local __Scripts = LibStub:GetLibrary("ovale/Scripts") local OvaleScripts = __Scripts.OvaleScripts __exports.register = function() local name = "ovale_paladin_spells" local desc = "[8.1] Ovale: Pala...
function getHorseName(horsenode) local name = ""; local namenode = horsenode.getChild("name"); if namenode then name = namenode.getValue(); end if name == "" then name = "- Unnamed -"; end return name; end function openHorseSheet(horsenode) if horsenode and horsenode.isOwner() then local ho...
-- This is a little fake actor class meant for displaying lines of a log. -- It's placed inside Def, but it's actually just an ActorFrame with some -- children and special commands. -- LogDisplay listens for several messages that control its behavior. -- The name given to the LogDisplay is added to the name of the m...
local utils = require "lumina.utils" describe("encode string", function() it("failes to encode too long string", function() local s, e = utils.encode_string( string.rep("*", 65536) ) end) end)
local this = {} --------------------------------------------------------------------------------- -- Public Functions --------------------------------------------------------------------------------- -- Show static model this.Show = function( staticModelData ) if( this._IsStaticModel( staticModelData ) == false ) th...
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Structures\Alien\Shell\shared.lua -- - Dragon -- SHELL local originalShellOnInitialized originalShellOnInitialized = Class_ReplaceMethod("Shell", "OnInitialized", function(self) InitMixin(self, Infestation...
minetest.register_chatcommand("bx_login", { params = "<username> <access_token>", description = "Login with an existing user and access_token or check the current login", func = function(name, param) if not minetest.check_player_privs(name, { blockexchange = true }) and not minetest.check_player_privs(name, { ...
-- Example of point class made after reading a lua tutorial -- point class local Pt = { } Pt.x = 0 Pt.y = 0 -- constructor Pt.new = function (self, object) object = object or {} -- Use provided table, or create new one setmetatable(object, self) -- Assign meta table self.__index = self -- return Pt value...
local present, treesitter_configs = pcall(require, "nvim-treesitter.configs") if not present then vim.notify "Could not load nvim-treesitter.configs" return end treesitter_configs.setup { highlight = { enable = true, use_languagetree = false }, refactor = { highlight_definitions = { enable = true }, h...
-- Copyright 2021-2022 Michael Zhang <probezy@gmail.com> -- Licensed to the public under the MIT License. local http = require "luci.http" local uci = require "luci.model.uci".cursor() local sys = require "luci.sys" local fs = require "nixio.fs" -- local cpolar = require "luci.model.cpolar" local i18n = require "luci....
state_generation = Gamestate.new() local char = nil local state = nil --TODO: remove local panel_top = love.graphics.newImage("res/panel_top.png") local panel = love.graphics.newImage("res/panel.png") local panel_bottom = love.graphics.newImage("res/panel_bottom.png") local titlebar = love.graphics.newImage("res/tit...
----------------------------------- -- Area: Port Bastok -- NPC: Rafaela -- Standard Info NPC ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:startEvent(22); end; function onEventUpdate(player,csid,option) end; function onEventFinish(player,csid,o...
function start (song) print("Song: " .. song .. " @ " .. bpm .. " downscroll: " .. downscroll) end local defaultHudX = 0 local defaultHudY = 0 local defaultWindowX = 0 local defaultWindowY = 0 local lastStep = 0 function update (elapsed) local currentBeat = (songPos / 1000)*(bpm/60) end function beatHit...
object_mobile_vehicle_vehicle_atxt = object_mobile_vehicle_shared_vehicle_atxt:new { templateType = VEHICLE, decayRate = 15, -- Damage tick per decay cycle decayCycle = 600 -- Time in seconds per cycle } ObjectTemplates:addTemplate(object_mobile_vehicle_vehicle_atxt, "object/mobile/vehicle/vehicle_atxt.iff")
for i=1, ARGV[1],1 do redis.call("lpush", KEYS[1], math.random()); end return true
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) -- INTERLINK: packet queue optimized for inter-process links -- -- An “interlink” is a thread safe single-producer/single-consumer queue -- implemented as a ring buffer with a memory layout that is carefully -- o...
local function test() local t local r0 = 123.0 local r1 = 123.1 local r2 = 123.2 local r3 = 123.3 local r4 = 123.4 local r5 = 123.5 local r6 = 123.6 local r7 = 123.7 local r8 = 123.8 local r9 = 123.9 for i=1,1e7 do t = r0 t = r1 t = r2 t =...
return { __location = nil, "Server.Services.GameSetupService", -- Responsible for initial setup of the game. This is the first thing that should be called. "Server.Services.PlayerSetupService", -- Service used to provide setup for the player and their character }
local do_log = function(sErr) local msg = "" msg = msg .. "==== " .. os.date("%Y-%m-%d %H:%M:%S") .. " ====" msg = msg .. "\n" .. sErr msg = msg .. "\n========= [TLG ERR] =========\n\n" log_fe(msg) file.Append("ggram/logs/errors.txt", msg) -- debug.Trace() end local log_error = function(token, method, paramete...
----------------------------------------------- -- sword.lua -- Represents a sword that a player can wield or pick up -- Created by NimbusBP1729 ----------------------------------------------- -- -- Creates a new sword object -- @return the sword object created return{ hand_x = 1, hand_y = 41, frameAmt = 8...
local backends = require("aerial.backends") local config = require("aerial.config") local util = require("aerial.util") local M = {} M.add_change_watcher = function(bufnr, backend_name) if not bufnr or bufnr == 0 then bufnr = vim.api.nvim_get_current_buf() end local event = config.update_events if type(con...
local _, NeP = ... local LAD = LibStub("LibArtifactData-1.0") --[[ ARTIFACT CONDITIONS! Only submit ARTIFACT specific conditions here. KEEP ORGANIZED AND CLEAN! -------------------------------------------------------------------------------------------------------------- ----------------------------------...
local AreEqual, Exists, Replace, IsTrue, IsFalse local CustomEventTrigger = "CAERDONITEM_TESTS_DATA_LOADED" local Tests local frame if IsAddOnLoaded("WoWUnit") then frame = CreateFrame("frame") AreEqual, Exists, Replace, IsTrue, IsFalse = WoWUnit.AreEqual, WoWUnit.Exists, WoWUnit.Replace, WoWUnit.IsTrue, WoWUn...
require('plugins') local keymap = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } -- Leader keymap('n', '<Space>', '<NOP>', opts) vim.g.mapleader = ' ' -- Easier indenting keymap('v', '<', '<gv', opts) -- reselect after indent left keymap('v', '>', '>gv', opts) -- reselect after indent right...
ITEM.name = "MAC-10" ITEM.description = "The Military Armament Corporation Model 10, officially abbreviated as 'M10' or 'M-10', and more commonly known as the MAC-10, is a compact, blowback operated machine pistol that was developed by Gordon B. Ingram in 1964. It is chambered in 9x19mm." ITEM.model = "models/weapons/e...
--- 导入需要的模块 local modbus_slave = require 'modbus.slave.skynet' local modbus_request = require 'modbus.pdu.request' local modbus_response = require 'modbus.pdu.response' local data_pack = require 'modbus.data.pack' local data_unpack = require 'modbus.data.unpack' local csv_tpl = require 'csv_tpl' local data_block = req...
--3L·破月 local m=37564841 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 e6=Effect.CreateEffect(c) e6:SetDescription(aux.Stringid(m,0)) e6:SetType(EFFECT_TYPE_IGNITION) e6:SetProperty(EF...
------------------------------------------------- ------------------------------------------------- -------------------𝙍𝙮𝙖𝙣ᵈᵉᵛ----------------------- --------- https://discord.gg/ArRrGB29 ----------- ------------------------------------------------- ------------------------------------------------- Config = {} Co...
local t = Def.ActorFrame {}; local gc = Var("GameCommand"); local max_stages = PREFSMAN:GetPreference( "SongsPerPlay" ); local index = gc:GetIndex(); local c = 0; if index == 0 then c = 1; elseif index == 1 then c = 1; elseif index == 2 then c = 0; elseif index == 3 then c = 0; elseif index == 4 then c = 0; end l...
util.AddNetworkString("printChat") local plymeta = FindMetaTable("Player") if not plymeta then ErrorNoHalt("[printchat] Could not find the `Player` metatable. Huh.\n") return end function plymeta:printChat(...) net.Start("printChat") local items = {...} -- Transfer the number of items net.WriteUInt(#items, 16...
Extension = {} Extension_mt = {} Extension_mt.__index = Extension Extension_mt.__type = "Extension" TableTypes["Extension"] = true function Extension:New(id) local mt = setmetatable({Hooks = {},Cmds = {},CTCP = {},ID = id,Bots = {}},Extension_mt) Extensions[id] = mt return mt end function Extension:Think()...
-- introduction to standard libraries -- introduction to the Love2d math Library --example math.random function love.load() x = 30 y = 50 end function love.draw() love.graphics.rectangle("line", x, y, 100, 10) end function love.keypressed(key) -- if space is pressed then... if key == "space" then -...
E2VguiPanels["vgui_elements"]["functions"]["dmodelpanel"] = {} E2VguiPanels["vgui_elements"]["functions"]["dmodelpanel"]["createFunc"] = function(uniqueID, pnlData, e2EntityID,changes) local parent = E2VguiLib.GetPanelByID(pnlData["parentID"],e2EntityID) local panel = vgui.Create("DModelPanel",parent) --i...
return { Main = function(Inputs) for Idx = 1, #Inputs[1] do if Inputs[1][Idx] == Inputs[2] then return Idx end end return -1 end }
local metadata = { plugin = { format = 'framework', staticLibs = { 'plugin_admobtapjoy' }, frameworks = { 'TapjoyAdapter', 'Tapjoy' } }, } return metadata
require 'diagnosticls-nvim'.setup { typescript = { formatter = require 'diagnosticls-nvim.formatters.prettier' } }
sptbl["bitcrush"] = { files = { module = "bitcrush.c", header = "bitcrush.h", example = "ex_bitcrush.c", }, func = { create = "ut_bitcrush_create", destroy = "ut_bitcrush_destroy", init = "ut_bitcrush_init", compute = "ut_bitcrush_compute", }, ...
--Exicitebike --Written by XKeeper --Shows various stats including a RAM map & speed require("x_functions"); if not x_requires then -- Sanity check. If they require a newer version, let them know. timer = 1; while (true) do timer = timer + 1; for i = 0, 32 do gui.drawbox( 6, 28 + i, 250, 92 - i,...