content
stringlengths
5
1.05M
-- Copyright (c) 2018. tangzx(love.tangzx@qq.com) -- -- 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 ...
local mock_loop = require('spec.mock_loop') local test = require('luatest') local DEFAULT_CSV_ITEMS = { {insertText="dump()", label="dump() ", kind=2,}, {insertText="load()", label="load() ", kind=2,}, {insertText="iterate()", label="iterate() ", kind=2} } local DEFAULT_JSON_ITEMS = { {insertText="dec...
require("grid") local grid = Grid.new() local bestScoreFont = love.graphics.newFont("fonts/retro_font.TTF", 30) local currentScoreFont = love.graphics.newFont("fonts/retro_font.TTF", 55) function love.keyreleased(key) if key == "escape" or key == "q" then grid:saveScore() love.event.push("quit") ...
---@meta local resty_core_base = {} ---@param ... string function resty_core_base.allows_subsystem(...) end ---@param t table function resty_core_base.clear_tab(t) end ---@return userdata function resty_core_base.get_errmsg_ptr() end ---@return userdata function resty_core_base.get_request() end ---@return userdat...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { __is_kind_of = "XLabel", group = "PreGame", id = "MainMenuButtonText", PlaceObj('XTemplateWindow', { '__class', "XLabel", 'TextFont', "BuildMenuBuilding", 'TextColor', RGBA(255, 254, 171, 255), }), })
-- FIXME: Will overflow the stack. function ackermann (m, n) if m == 0 then return n + 1 end if n == 0 then return ackermann(m - 1, 1) end return ackermann(m - 1, ackermann(m, n - 1)) end print(ackermann(3, 11))
ICDP = {} ICDP.version = "1.17.1"; ICDP.author = "Nebula"; ICDP.modName = "iCDPlayersSV"; ICDP.OnClientCommand = function(module, command, player, args) if not isServer() then return end if module ~= "iCDPlayersSV" then return end; if command == "Say" then player:Say(args.saythis); end end Events.OnClientCo...
 -- Place this file into your %FARPROFILE%\Macros\scripts -- Show all windows list from all consoles local ConEmu = "4b675d80-1d4a-4ea9-8436-fdc23f2fc14b" Macro { area="Shell QView Info Tree Search Dialog Editor Viewer"; key="F12"; flags="NoSendKeysToPlugins"; description="ConEmu: Show all w...
-- bsu_init.lua by Bonyoze -- Makes all the shit work DIR = "bsu/" LIB_DIR = DIR .. "base/bsu_lib/" SV_DIR = DIR .. "server/" SH_DIR = DIR .. "shared/" CL_DIR = DIR .. "client/" MODULES_DIR = DIR .. "modules/" local lib = file.Find(LIB_DIR .. "*.lua", "LUA") -- bsu library files local sv = file.Find(SV_DIR .. "*.lua"...
local module = script local packages = module.Parent return { Checkbox = require(packages:WaitForChild("checkbox")), RadioButton = require(packages:WaitForChild("radiobutton")), Switch = require(packages:WaitForChild("switch")), TextLabel = require(packages:WaitForChild("textlabel")), IconLabel = require(packages:...
if not arg[1] then print ('Error: no interfaces file specified') return end if not arg[2] then print ('Error: no source file specified') return end local f = io.open (arg[1], 'r') local defs = f:read ('*all') f:close() f = io.open (arg[3], 'r') local src = f:read ('*all') f:close() local srcinputs = {} for...
-- -- Simple Platformer Game (C)opyright Heark 2014 -- -- Require Files require "system" -- Main function love.load() k = love.keyboard g = love.graphics a = love.audio love.graphics.getBackgroundColor(255, 255, 255) -- Loading Classes player.load() end player = {} function player.load() player.x = 5 player.y = ...
-- By Olivier Roques -- github.com/ojroques -------------------- VARIABLES ----------------------------- local fn, cmd, vim = vim.fn, vim.cmd, vim local o = vim.o local fmt = string.format local M = {} -------------------- OPTIONS ------------------------------- M.options = { theme = 'default', -- the theme...
local plugin = require("kong.plugins.base_plugin"):extend() local iputils = require "resty.iputils" local get_headers = ngx.req.get_headers local inspect = require "inspect" local FORBIDDEN = 403 -- cache of parsed CIDR values local cache = {} local plugin = {} plugin.PRIORITY = 990 plugin.VERSION = "1.0.0" loca...
local CRYPT = require "lcrypt" local sm3 = CRYPT.sm3 local hmac_sm3 = CRYPT.hmac_sm3 local sm2keygen = CRYPT.sm2keygen local sm2sign = CRYPT.sm2sign local sm2verify = CRYPT.sm2verify local hexencode = CRYPT.hexencode local base64encode = CRYPT.base64encode local base64decode = CRYPT.base64decode local sm4_cbc_encrypt ...
-------------------------------------- -------- HANDLER --------------------- -------------------------------------- local Handler = {} Handler.__index = Handler -- sets the information to show if there was an error function set_bad_request(handler) handler.content = '404 Not Found' handler.contentLength = ...
local HOME = os.getenv("HOME") local OA_PATH = HOME .. "/app/openarena-0.8.8/openarena.x86_64" local say say = function(text) if not text then return end print("saying ", text) local espeak_cmd = [[espeak --stdout -s200 -k18 -a50 -v female2 | play -t wav - \ gain 3 ]] do local _with_0 = io.popen(...
SPResearch= { { Name = "ScoutEMPAbility", RequiredResearch = "", RequiredSubSystems = "Research & FighterProduction", Cost = 500, Time = 35, DisplayedName = "$7732", DisplayPriority = 281, Description = "$7734", UpgradeType = Ability, TargetType = Ship, TargetN...
-- sdothum - 2016 (c) wtfpl -- X11 Desktop -- ═════════════════════════════════════════════════════════════════════════════ -- ....................................................................... Conky -- see bin/functions/conky/theme require 'cairo' LUARINGS=tonumber(io.popen('conky color LUARINGS'):read(), 16...
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
local awful = require("awful") local filesystem = require("gears.filesystem") local config_dir = filesystem.get_configuration_dir() local function run_once_pgrep(cmd) local findme = cmd local firstspace = cmd:find(" ") if firstspace then findme = cmd:sub(0, firstspace - 1) end awful.spawn.easy_async_with...
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
local M = { log = {}, } local function fprintf(level) return function(format, ...) if level == "DEBUG" and DEBUG then io.stderr:write(string.format(level .. ': ' .. format .. '\n', ...)) end end end M.log.error = fprintf 'ERROR' M.log.debug = fprintf 'DEBUG' return M
local M = {} M.config = function() O.lang.css = { virtual_text = true, formatter = { exe = "prettier", args = {}, }, lsp = { path = DATA_PATH .. "/lspinstall/css/vscode-css/css-language-features/server/dist/node/cssServerMain.js", }, } end M.format = function() vim.cmd "let...
return { env = env('APP_ENV', 'production'), locale = 'zh', fallback_locale = 'en', time_zone = "+8:00", -- UTC + 8 session_lifetime = 3600 * 24 * 30, --sec, here means a month session_refresh_time = 3600 * 24 * 7, --sec, here means a week max_request_per_second = 3000, -- thr...
local color_white = Color(255,255,255) local function give_swep( ply, wepname ) if ( not IsValid( ply ) ) then return end if ( wepname == nil ) then return end if ( not table.HasValue( DM.Config.GreenWeapon, wepname ) ) then if ( list.Get( 'Weapon' )[ wepname ] and not ply:Admin() ) then p...
local ffi = require 'ffi' local libpath = package.searchpath('libvisinf', package.cpath) if not libpath then return end require 'cunn' ffi.cdef[[ void SpatialStochasticPooling_updateOutput(THCState* state, THCudaTensor* input, THCudaTensor* output, THCudaTensor* indices, int kW, int kH, int dW, int dH, bool tra...
-- ============================= -- -- Copyright 2019 FiatAccompli -- -- ============================= -- -- Doing this with a ReplaceInGame script replacement rather than replacing InGame.lua -- because I like to play nice and this way it's compatible with anything that -- replaces InGame.xml (e.g. CQUI and base ga...
-- -- lcd_aqm0802a.lua -- -- how to use -- -- lcd_setup() -- lcd_print("ABCDEFGH01234567") -- -- https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_en#new_gpio_map i2c_scl = 2 -- IO4 i2c_sda = 1 -- IO5 -- AQM0802A - http://akizukidenshi.com/catalog/g/gP-06669/ i2c_dev_addr = 0x3e i2c_id = 0 i2c.se...
data:extend( { { type = "recipe", name = "shaft-mine", enabled = true, ingredients = { {"electric-mining-drill", 5}, {"steel-plate", 25}, {"electronic-circuit", 20}, {"stone-brick", 100}, }, result = "shaft-mine", energy_required = 10, }, { type = "item", name = "shaft-mine", icon ...
-- minetest/dye/init.lua -- To make recipes that will work with any dye ever made by anybody, define -- them based on groups. -- You can select any group of groups, based on your need for amount of colors. -- basecolor: 9, excolor: 17, unicolor: 89 -- -- Example of one shapeless recipe using a color group: -- Note: As...
local class = require "ecs.common.class" local entity_mgr = require "ecs.src.entity_mgr" local mt = class("entity_mgr") function mt:on_new(name) if mt.active == nil then mt.active = self end self.name = name self.systems = {} self.entity_mgr = entity_mgr:new() end function mt:add_system(sys) assert(sys.on_up...
--[[ Description Auto4 script written in Lua for subtitle editor Aegisub. Purpose is stated in the "script_description" variable. If you wonder why all the hassle with alignment etc., then the answer for you is this: because this way subs look more professional, as well as easier to read, at least for those accustom...
modifier_boss_charger_trampling = class(ModifierBaseClass) function modifier_boss_charger_trampling:OnCreated (keys) self:StartIntervalThink(0.01) end function modifier_boss_charger_trampling:OnIntervalThink() local charger = self:GetCaster() local hero = self:GetParent() if not hero or not hero.SetAbsOrigi...
bh_untrained_wielder_of_the_dark_side = Creature:new { objectName = "@mob/creature_names:untrained_wielder_of_the_dark_side", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "kun", faction = "", level = 250, chanceHit = 0.6, damageMin = 545, damageMax = 800, baseXp = 6288, baseHAM = 11000,...
local _, L = ... local Timer, GetTime = CreateFrame('Frame'), GetTime -- Borrowed fixes from Storyline :) local LINE_FEED_REPLACE, LINE_BREAK_REPLACE do local LINE_FEED, CARRIAGE_RETURN = string.char(10), string.char(13) LINE_FEED_REPLACE = LINE_FEED .. '+' LINE_BREAK_REPLACE = LINE_FEED .. CARRIAGE_RETURN .. LINE_...
local objects = { --Maxime createObject ( 14590, 2296.8999, 1706.69995, 1106.19995, 0, 0, 0 ,1 ), createObject ( 1569, 2299.93311, 1686.09998, 1100.90002 , 0, 0, 0 ,1 ), createObject ( 1569, 2299.93262, 1686.09961, 1103.40002 , 0, 0, 0 ,1 ), createObject ( 1569, 2299.80005, 1685.64001, 1105.09998 , 0, 0, 0 ,1 ), ...
local log = require "dm.log" local job = require "dm.job" -- Default configuration for the source. local defaults = { -- Maximum number of issues to fetch. limit = 100, } local source = {} source.__index = source function source:new() return setmetatable({ cache = {}, }, self) end -- Check whether the s...
project "signtool" uuid "89b3630f-5728-4902-8258-d4dbc532e185" language "C++" location ( "../../build/" .. mpt_projectpathname ) vpaths { ["*"] = "../../" } mpt_projectname = "singtool" dofile "../../build/premake/premake-defaults-EXE.lua" dofile "../../build/premake/premake-defaults.lua" includedirs...
local SEARCH_PROVIDER_LAYOUT = { { headerTemplate = "AuctionatorStringColumnHeaderTemplate", headerParameters = { "price" }, headerText = AUCTIONATOR_L_RESULTS_PRICE_COLUMN, cellTemplate = "AuctionatorPriceCellTemplate", cellParameters = { "price" }, }, { headerTemplate = "AuctionatorStrin...
-- CONFIGURATION -- Set to true to enable on startup yalt.show = false -- Key to toggle yalt. yalt.key_toggle = "f1" -- Set x and or y to put in specific spot. Default centers the yalt. yalt.x = nil yalt.y = nil -- Set to nil for fullscreen with padding. yalt.w = love.graphics.getWidth()*0.6 yalt.h = love.graphics.get...
-- -- vs2010_nuget.lua -- Generate a NuGet packages.config file. -- Copyright (c) 2016 Jason Perkins and the Premake project -- premake.vstudio.nuget2010 = {} local p = premake local vstudio = p.vstudio local nuget2010 = p.vstudio.nuget2010 local cs2005 = p.vstudio.cs2005 -- -- These functions take the package...
local ffi = require("ffi") -- core types ffi.cdef[[ typedef uint32_t dev_t; ]] ffi.cdef[[ /* * udev - library context * * reads the udev config and system environment * allows custom logging */ struct udev; struct udev *udev_ref(struct udev *udev); struct udev *udev_unref(struct udev *udev); struct udev *udev_...
require "vm_accuracy_test_common" require "luavm.bytecode" require "luavm.dynarec" for test in iterateTests() do if test:sub(-4,-1) == ".lua" then local f,a,r = getTest(test) print("running "..test) local dyncode = table.concat( dynarec.compile(bytecode.load(string.dump(f))) ,"\n") print(dyncode) local...
data:extend{ { type = "armor", name = "tiny-armor", icon = "__Tiny_Start__/graphics/icons/tiny-power-armor.png", icon_size = 32, flags = {"goes-to-main-inventory"}, resistances = { { type = "physical", decrease = 3, percent = 20 }, { type = "a...
local a = 1 + 2 * 3 / 6 local bunch, go, here a, bunch, go, here = another, world func(arg1, arg2, another, arg3) local we here, we = function() end, yeah local the, different the, different = function() return approach end, yeah dad() dad(lord) hello(one, two)(); (5 + 5)(world) fun(a)(b) fun(a)(b) fun(a)(b, bad(hell...
---------------------------------------- -- Sassilization -- http://sassilization.com -- By Sassafrass / Spacetech / LuaPineapple ---------------------------------------- UNIT.Name = "Ballista" UNIT.Model = "models/mrgiggles/sassilization/ballista.mdl" UNIT.Iron = 30 UNIT.Food = 25 UNIT.Gold = 5 UNIT.Supply...
#!/usr/bin/env luajit -- The MIT License (MIT) -- Copyright (c) 2016 Ruairidh Carmichael - ruairidhcarmichael@live.co.uk -- 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 restrict...
local cjson = require "cjson.safe" local helpers = require "kong.plugins.rewrite.helpers" local mapTo = helpers.mapTo local isempty = helpers.isempty local log = helpers.log local req_set_uri = ngx.req.set_uri local req_set_uri_args = ngx.req.set_uri_args local req_set_header = ngx.req.set_header local req_read_body ...
--[[------------------------------------------------------------------- Custom Model Override ---------------------------------------------------------------------]] GM.PlayerModelOverride = { [TEAM_ZOMBIES] = { Model("models/player/aliendrone.mdl") } } --[[-------------------------------------------------------...
local mock_time = require("deftest.mock.time") local eva = require("eva.eva") return function() describe("Eva Timers", function() local id = "test.id" local data = "data string" before(function() eva.init("/resources/tests/eva_tests.json") mock_time.mock() mock_time.set(0) end) after(function() ...
---@module CookS ---@copyright Lilith Games, Avatar Team ---@author Yen Yuan local CookS, this = ModuleUtil.New('CookS', ServerBase) ---初始化函数 function CookS:Init() this:DataInit() end function CookS:DataInit() this.foodNum = #world.FoodLocation:GetChildren() this.potFree = true this.curFoodNum = 0 ...
scm = { logicops = {['>'] = true, ['<'] = true, ['>='] = true, ['<='] = true, ['='] = true, ['~='] = true, }, arithmops = {['+'] = true, ['-'] = true, ['*'] = true, ['/'] = true, ['//'] = true }, compile = function( t, l ) local l = l or 1 if type( t ) == 'table' then if t[1] == 'lambda' then return ('fu...
--[[ File: round.lua Author: toneo Realm: Server Round module. Handles starting/finishing rounds. ]]-- GM.RESULT_DRAW = 0 GM.STATE_STOPPED = 0 GM.STATE_PREROUND = 1 GM.STATE_RUNNING = 2 GM.STATE_POSTROUND = 3 -- Which round we're on GM.RoundNumber = 0 GM.RoundState = GM.STATE_STOPPED GM.PostRoundTime = 5 GM....
description = [[ Attemts to find valid sid for tcp modbus server. ]] --- -- @usage -- nmap --script modbus-enum.nse --script-args='functionId=8, aggressive=true, data="00 AA BB CC"' -p 502 <host> -- -- @args functionId - modbus request function id. Valid function codes are 1-247 -- @args aggressive - boolean value...
-- LYNNA CITY/VILLAGE function lynna() return destroy_bush_flute() or has("echoes") end function ambi_palace() return (destroy_bush_flute() or has("echoes")) and (destroy_bush() and has("mermaidsuit")) or has("ages") end function ambi_palace_hard() return ambi_palace() or -- guard skip (has("satchel") and has(...
kBlueColor = Color(0, 0.5117, 1, 1) kRedColor = Color(1, 0.2941, 0, 1)
-- scaffolding entry point for filament return dofile("filament.lua")
local POTIONS = {7588, 7589} function onUse(cid, item, fromPosition, itemEx, toPosition) doTransformItem(item.uid, POTIONS[math.random(1, table.maxn(POTIONS))]) doSendMagicEffect(fromPosition, CONST_ME_MAGIC_RED) return true end
-- This will be called after data-updates.lua
if not redux then redux = {} end if not redux.modules then redux.modules = {} end require("prototypes.modules") require("prototypes.recipe") require("prototypes.item-groups")
--[[---------------------------------------------------------------------------- Application Name: InspectorP_FirstSteps Summary: Sample application to InspectorP_FirstSteps Tutorial. How to Run: This sample contains several scripts which are part of the InspectorP_FirstSteps tutorial. Each script can ...
local utils = require("heirline.utils") local M = {} M.colours = { white = "#b5bcc9", grey_fg = "#737D87", short_bg = "#34393D", red = "#EF949C", red_dark = "#B34B4B", green = "#B0E5CA", green_pale = "#839C8F", nord_blue = "#9aa8cf", yellow = "#fbdf90", yellow_pale = "#B39E67", purple = "#9F78E1", statusli...
--------------------------------------------- -- Slowga --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/msg") --------------------------------------------- function onAbilityCheck(play...
----------------------------------- -- Area: Xarcabard -- Mob: Cursed Weapon -- Note: PH for Barbaric Weapon ----------------------------------- local ID = require("scripts/zones/Xarcabard/IDs") require("scripts/globals/regimes") require("scripts/globals/mobs") ----------------------------------- function onMobDeath(...
hanadak_ancient = Creature:new { objectName = "@mob/creature_names:hanadak_ancient", socialGroup = "hanadak", faction = "", level = 41, chanceHit = 0.44, damageMin = 345, damageMax = 400, baseXp = 4097, baseHAM = 9300, baseHAMmax = 11300, armor = 0, resists = {30,30,-1,200,200,200,-1,-1,-1}, meatType = "me...
local Engine = require("trip.Engine") function love.load(arg) love.physics.setMeter(1) love.event.pump() -- Prevent freeze in LÖVE 11.3 love.mouse.setRelativeMode(true) local resources = {} engine = Engine.new(resources, {}) end function love.update(dt) engine:update(dt) end function love.draw() engi...
local comm = require "comm" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local table = require "table" description = [[ Checks an IRC server for channels that are commonly used by malicious botnets. Control the list of channel names with the <code>irc-botnet-ch...
Guidelime.registerGuide([[ [N20-30 Phelx's Shadowfang Keep (BFD) Guide] [D Phelx's guide to acquiring all SFK quests. There are 3 total all are exclusive to the Horde.] [GA Horde] [O] Quests can be obtained from [XP16 16] with 2 requiring [XP18 18]. [O] This guide starts from Undercity. Travel to the Apotheca...
print("Loading lua file") print("CTEST_FULL_OUTPUT") testapp = { initScene = function (self) print("In initScene") end, preFrame = function (self) print("In preFrame - Stopping kernel") vrjKernel.stop() end } print("App delegate defined, now creating OsgAppProxy") app = vrjApp.OsgAppProxy() print ("Now ...
local ts_utils = require('nvim-treesitter.ts_utils') local tsm_utils = require('ts-manipulator.utils') local A = {} local valid_node_types = { "argument_list", "arguments", "parameter_list", "parameters", } local function table_has_val(tab, val) for _, tabval in ipairs(tab) do if tabval =...
local Installer = {} Installer.__index = Installer function Installer.new() local job_factory = require("optpack.lib.job_factory").new() local git = require("optpack.lib.git").new(job_factory) local tbl = { _git = git } return setmetatable(tbl, Installer) end function Installer.already(directory) return vim...
--load the matrix and the 3D lib local dream = require("3DreamEngine") love.window.setTitle("Alpha Blend Example") love.mouse.setRelativeMode(true) --settings local projectDir = "examples/AlphaBlending/" --settings dream.renderSet:setRefractions(true) dream:setSky(love.graphics.newImage(projectDir .. "sky.hdr"), 0.25...
Timer = { killOnFinish = true, timeRemaining = 0, finished = false, callbackObject = nil, callbackFunction = nil } function Timer:new(Time, CallbackObject, CallbackFunction, Persistant) s = {} setmetatable(s, self) self.__index = self General.activeState:add(s) if Persistant ~= nil then s.killOnFinish ...
-- The function get_name() should return a single string that is the name of the puzzle. -- function get_name() return "SEQUENCE PEAK DETECTOR" end -- The function get_description() should return an array of strings, where each string is -- a line of description for the puzzle. The text you return from get_descriptio...
local config = require "src/config" local sha1 = require 'src/sha1' local cjson = require "cjson" local redis = require "resty.redis" local session = require "src/session" local red = redis:new() local ok, err = red:connect(config.redis_host, config.redis_port) if not ok then ngx.say(config.redis_failed_co...
local Prop = {} Prop.Name = "Hospital" Prop.Government = true Prop.Doors = { Vector( -5399.000000, -3074.000000, -13897.781250 ), Vector( -5535.000000, -3426.000000, -13898.000000 ), Vector( -5834.000000, -3706.000000, -13900.000000 ), Vector( -378.000000, -5886.000000, -13838.000000 ), Vector( -226.000000, -5658....
local triangle = { lifespan = 1.5, auto_collision = true, gravity = 0, } function triangle:init () self:attach('image', 'bullet') end function triangle:update () self.velocity.x = self:mirror().x * self.timer:seconds() * 10 self:move() end function triangle:collide (with) self:damage_once(with, ...
local Plugin = script.Parent.Parent.Parent local Constants = require(Plugin.Core.Util.Constants) local Libs = Plugin.Libs local Cryo = require(Libs.Cryo) local Rodux = require(Libs.Rodux) local Utility = require(Plugin.Core.Util.Utility) local t = require(Libs.t) local HttpService = game:GetService("HttpService") ...
-- use { -- "sainnhe/gruvbox-material", -- config = function() -- require("colorschemes.gruvbox_material") -- end -- } vim.g.gruvbox_material_background = "hard" vim.g.gruvbox_material_better_performance = 1 -- vim.g.gruvbox_material_transparent_background = 1 vim.g.gruvbox_material_foreground = "original" vim.g....
do --- table 1 local t=setmetatable({}, {__newindex=function(t,k,v) rawset(t, k, 100-v) end}) for i=1,100 do t[i] = i end for i=1,100 do assert(t[i] == 100-i) end for i=1,100 do t[i] = i end for i=1,100 do assert(t[i] == i) end for i=1,100 do t[i] = nil end for i=1,100 do t[i] = i end for i=1,1...
-- BLIPS: see https://wiki.gtanet.work/index.php?title=Blips for blip id/color local Tools = module("vrp", "lib/Tools") -- TUNNEL CLIENT API -- BLIP -- create new blip, return native id function tvRP.addBlip(x,y,z,idtype,idcolor,text) local blip = AddBlipForCoord(x+0.001,y+0.001,z+0.001) -- solve strange gta5 madn...
---@meta local resty_core_phase={} resty_core_phase.version = require("resty.core.base").version return resty_core_phase
--[[ pbInfo - Locales/lang.Swedish.lua v0.51 by p.b. a.k.a. novayuna released under the Creative Commons License By-Nc-Sa: http://creativecommons.org/licenses/by-nc-sa/3.0/ thx to Forsoki for the translation! -- commented lines need translations ]] pbInfo.Locale["Messages"]["DESCRIPTION"] = "pbInfo shows a too...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Administrator. --- DateTime: 2020/8/27 0027 下午 10:15 --- local m = {}; local bx1 = require("bx_lua"); function m.getHPCounter() return bx1.getHPCounter(); end function m.getHPFrequency() return bx1.getHPFrequency(); end --- create vector...
Transform=class({ ctor=function(self,data) if data~=nil then self.position=Vector3:new(data.position[1],data.position[2],data.position[3]) self.localRotation=Quaternion:Euler(Vector3:new(data.rotation[1],data.rotation[2],data.rotation[3])) self.scale=Vector3:new(data.scal...
-- 草莓Dâu Tây 's Type Fx Vert -- Edit by Effector Cmy local tr = aegisub.gettext include("karaskel.lua") script_name = tr"Xóa dấu pinyin" script_description = tr"A demo macro showing how to do simple line modification in Automation 4" script_author = "Niels Martin Hansen" script_version = "1" local pinyin = {"á", "ǎ...
--[[ * MOCK framework for Moai * Copyright (C) 2012 Tommo Zhou(tommo.zhou@gmail.com). All rights reserved. * * 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 *...
MathBase = class(BenchmarkBase, function(a, writer, printToConsole) BenchmarkBase.init(a, writer, printToConsole) a.iterrations = 200000000 a.ratio = 0.5 end) function MathBase:doMath(i, li) local rev = 1.0 / (i + 1.0) return math.abs(i) * math.acos(rev) * math.asin(rev) * math.atan(rev) + ...
----------------------------------- -- Area: Castle Oztroja -- NPC: _47o -- !pos -155.228 21.500 -140.000 151 ----------------------------------- function onTrigger(player,npc) npc:openDoor(6) end function onEventUpdate(player,csid,option) end function onEventFinish(player,csid,option) end
-- @module modutram.grid.Column local Column = {} function Column:new(o) o = o or {} local initialModule = o.initialModule if not initialModule then error ('Column MUST have a initialModule property') end o.gridX = initialModule:getGridX() o.xPos = initialModule:getXPosInC...
-- The MIT License (MIT) -- Copyright (c) 2015-2021 Daurnimator -- 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 rights to use, copy, modify,...
--# selene: allow(almost_swapped, divide_by_zero, duplicate_keys, empty_if, global_usage, if_same_then_else, ifs_same_cond, multiple_statements, mismatched_arg_count, parenthese_conditions, roblox_incorrect_color3_new_bounds, roblox_incorrect_roact_usage, shadowing, incorrect_standard_library_use, suspicious_reverse_lo...
------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------- local generalLoaded = false local PlayingAnim = false local testPED = nil ------------------------------------------------...
MenuPool = setmetatable({}, MenuPool) MenuPool.__index = MenuPool function MenuPool.New() local _MenuPool = { Menus = {} } return setmetatable(_MenuPool, MenuPool) end function MenuPool:AddSubMenu(Menu, Text, Description, KeepPosition, KeepBanner) if Menu() == "UIMenu" then local Item = UIMenuItem.New(tostrin...
local util = require("bogster.util") local theme = require("bogster.theme") local M = {} function M.colorscheme() util.load(theme.setup()) end return M
local patch_id = "OVERRIDE_AGENT_INDEX_FN" if rawget(_G, patch_id) then return end rawset(_G, patch_id, true) print("Loaded patch:"..patch_id) local fields_that_use_original = { "faction_id", } local old_index_fn = Agent.__index Agent.__index = function(self, k) if rawget(self, "original_agent") then ...
eco_mapgen = {} local MP = minetest.get_modpath("eco_mapgen") dofile(MP .. "/info.lua") dofile(MP .. "/mapgen.lua") dofile(MP .. "/render_mapblock.lua") dofile(MP .. "/count_resources.lua") dofile(MP .. "/get_biome_data.lua") dofile(MP .. "/restore.lua") dofile(MP .. "/biome.lua") dofile(MP .. "/biomes/grass.lua") d...
function Writer(val) local buff = {} if val then if type(val) == "table" then buff=val elseif type(val) == "string" then buff={} for i=1, #val do buff[#buff+1]=val:sub(i,i) end else buff={} end else buff={} end local function intLenght(d) for i=1, 7 do local v = 2^i local v1 = ...
--************************ --name : SINGLE_AS_CM_02.lua --ver : 0.1 --author : Kintama --date : 2004/09/09 --lang : en --desc : terminal mission --npc : --************************ --changelog: --2004/09/09(0.1): Added description --************************ function DIALOG() NODE(0) G...