content
stringlengths
5
1.05M
------------------------------------------------------------------------------- -- Mob Framework Mod by Sapier -- -- You may copy, use, modify or do nearly anything except removing this -- copyright notice. -- And of course you are NOT allow to pretend you have written it. -- --! @file stop_and_go.lua --! @brief moveme...
-- Light-weight, flexible object for cleaning up connections, instances, etc. -- @documentation https://rostrap.github.io/Libraries/Events/Janitor/ -- @source https://raw.githubusercontent.com/RoStrap/Events/master/Janitor.lua -- @rostrap Janitor -- @author Validark local FastSpawn = require(script.Parent.Util.FastSpa...
workspace ("Primordial") location("./") defines "_CRT_SECURE_NO_WARNINGS" configurations { "Debug", "Release" } platforms "x64" includedirs { os.getenv("CappuccinoPath") .. "/Cappuccino/include", os.getenv("CappuccinoPath") .. "/Externals/fmod/include", os.getenv("CappuccinoPath") .. "/...
require("turtle") local crt = require("chartmap") local cmp = require("complex") local col = require("colormap") io.stdout:setvbuf("no") local W , H = 800, 800 local dX, dY = 1 , 1 local gAlp = 200 local intX = crt.New("interval","WinX", -50, 50, 0, W) local intY = crt.New("interval","WinY", -50, 50, H, 0) local ...
local IList = require("api.gui.IList") local ISettable = require("api.gui.ISettable") local ListModel = class.class("ListModel", {IList, ISettable}) function ListModel:init(items) self.items = items self.selected = 1 self.chosen = false self.changed = true self:set_data() end function ListModel:set_d...
require("rust-tools").setup({ tools = { autoSetHints = true, runnables = { use_telescope = true }, inlay_hints = { show_parameter_hints = true }, hover_actions = { auto_focus = true }, }, server = { flags = { debounce_text_changes = 150 } }, })
local http = require 'http' local luis = { url_template = "https://%s.api.cognitive.microsoft.com/luis/v2.0/apps/%s", } local required_keys = { app_id = true, region = true, key = true, } function luis:format_url() return string.format(self.url_template, self.region, self.app_id) end function luis:predict...
Order = Order or {} --- @internal --- @param self --- @param config table --- @field onExecution function the callback when the order is started to being executed. Gets the `OrderObject` and the `CpuShip` or `Fleet` that executed the order. --- @field onCompletion function the callback when the order is completed....
keyboard = {} function keyboard.pressed(key) keyboard[key] = true end function keyboard.released(key) keyboard[key] = false end
return { tag = 'random', summary = 'Get the random seed.', description = 'Get the seed used to initialize the random generator.', arguments = {}, returns = { { name = 'seed', type = 'number', description = 'The new seed.' } } }
-- This is the entry-point to your game mode and should be used primarily to precache models/particles/sounds/etc GAME_VERSION = "0.1" require('internal/logging') CustomNetTables:SetTableValue("info", "version", { value = GAME_VERSION }) local mode = "" if IsInToolsMode() then mode = "Tools Mode" elseif GameRules:...
GM.ItemEditor = nil GM.ItemEditorSettings = {} GM.ItemEditorSettings.CurrentEditingSlot = nil GM.ItemEditorSettings.CurrentEditingItemModel = 1 GM.ItemEditorSettings.CurrentEditingVector = Vector(0, 0, 0) GM.ItemEditorSettings.CurrentEditingAngle = Angle(0, 0, 0) GM.ItemEditorSettings.CurrentEditingMat = nil GM.ItemEdi...
NumPixels = 64 Interval = 0.2 HeaderBytes = 2 function Cerealize_Send(s) for i=1, strlen(s) do Cerealize.buf[#Cerealize.buf + 1] = strbyte(s, i) end Cerealize.buf[#Cerealize.buf + 1] = strbyte('\n') end function Cerealize_Tick(self) local bufferBytes = Cerealize.buf -- remove as many bytes from the buffer as ...
-- Bitbucket Pull Requests monitor module for Hammerspoon -- v0.5 local inspect = require 'inspect' -- This isn't *required* but helps with debugging. Remove this line if you don't have this file. -- TODO: -- Updated x time ago (currently displays 'updated at time'). Not sure if this is really possible... -- Don't ...
-- Création du menu -- RMenu.Add("Job", "Mobil", RageUI.CreateMenu("", "Menu métier", nil, nil, "root_cause", "Banner"), true) RMenu:Get("Job", "Mobil").Closed = function() RageUI.CloseAll() InMenu = false end RMenu.Add("Job", "Mobil_Society", RageUI.CreateSubMenu(RMenu:Get("Job", "Mobil"),"", "Gestion")) RMenu...
ELONA.i18n:add { material = { _0 = { name = "Garbage", desc = "Just garbage.", }, _1 = { name = "Casino chip", desc = "Chips used in casinos.", }, _40 = { name = "100 Yen coin", desc = "Foreign money.", }, _41 = { ...
-- Resolvedor de Division Sintetica -- Por Jose_Varela -- Inicializa todo lo que utilizaremos para -- el proceso. local TablasParaTomar, ValorPorMultiplicar, Resultado, FuturosValores local NumeroSerie = 1 local SeriesCompletadas = {}; local TablaOriginal = "" --[[ Esto ya tomará en cuenta que ya resolviste la par...
AddCSLuaFile() pk_pills.register("citizen_m", { printName = "Male Citizen", type = "ply", voxSet = "citm", default_rp_cost = 600, options = function() return { { model = "models/Humans/Group01/male_01.mdl" }, { model = "mod...
local cmark = require 'cmark' local Utils = require 'packagemanager/documentation/utils' local Markdown = require 'packagemanager/documentation/markdown' local Processor = {} Processor.__index = Processor Processor.nodeFilter = {cmark.NODE_HEADING} local function MakeFragmentId( str ) str = string.lower(st...
-- Test for joining lines with marks in them (and with 'joinspaces' set/reset) local helpers = require('test.functional.helpers')(after_each) local feed = helpers.feed local clear = helpers.clear local insert = helpers.insert local expect = helpers.expect local feed_command = helpers.feed_command describe('joining l...
require("base") require("appearance") require("plugins")
require 'torch' require 'image' require 'pl' -- this is somehow responsible for lapp working in qlua mode require 'paths' ok, DISP = pcall(require, 'display') if not ok then print('display not found. unable to plot') end ADVERSARIAL = require 'adversarial' DATASET = require 'dataset' NN_UTILS = require 'utils.nn_utils'...
Hooks:PreHook(Setup, "init_managers", "post_hook_init_managers_sora_hud", function(self, managers) local SoraHUD = NepgearsyHUDReborn tweak_data.chat_colors[1] = SoraHUD:GetOption("SoraPeerOneColor") tweak_data.chat_colors[2] = SoraHUD:GetOption("SoraPeerTwoColor") tweak_data.chat_colors[3] = SoraHUD:GetO...
local _, ns = ... local B, C, L, DB, P = unpack(ns) local S = P:GetModule("Skins") local _G = getfenv(0) local ipairs, pairs= ipairs, pairs local function reskinButtons(self, buttons) for _, key in ipairs(buttons) do local bu = self[key] if bu then B.Reskin(bu) else P:Debug("Unknown: %s", key) end end...
C_ClassColor = {} ---@param className string ---@return ColorMixin classColor ---[Documentation](https://wow.gamepedia.com/API_C_ClassColor.GetClassColor) function C_ClassColor.GetClassColor(className) end
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 01/12/2018 -- Time: 12:54 -- To change this template use File | Settings | File Templates. -- -- Left side: draw ship -- right side: draw context menu based on last click. local RX, RY, RS = 20, 80, 64; local funcs = {} local selected funcs.drawLeft = function...
--!A cross-platform build utility based on Lua -- -- 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...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local long_opts = { help = "h", example = "e", ["print-header"] = "H", time = "t", input = "i", ["ring-size"] = "...
local headers = require 'luxure.headers' local statuses = require 'luxure.status' local Error = require 'luxure.error'.Error ---@class Response --- ---An outgoing HTTP response to send data on ---@field public headers Headers The HTTP headers for this response ---@field public body string the contents of the response ...
local config = {} function config.get_selection_rules(rules) local result = {} for key, value in pairs(rules) do result[key] = value end return result end return config
local settings_key = KEYS[1] local incr = ARGV[1] return redis.call('hincrby', settings_key, 'reservoir', incr)
-- Copyright (c) 2012 Robert G. Jakabosky <bobby@sharedrealm.com> -- -- 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,...
--Timers personnelles hvtimer3=tmr.create() hvtimer4=tmr.create() hvtimer5=tmr.create() hvtimer6=tmr.create() hvtimer7=tmr.create() --Connexion du nodemcu au réseau wifi.sta.connect() tmr.alarm(hvtimer3, 1000, tmr.ALARM_AUTO , function() if wifi.sta.getip() == nil then print("Connecting to AP...") else ...
require("nmg") require("table") input = "inputs/day7.txt" function new_dag_node() return { blocks = {}, blocked_by = {}, assigned = false } end function contains_node(dag, step_id) for index, value in pairs(dag) do if step_id == index then return true end end return false end function construct_da...
PDF = {} PDF.new = function() local pdf = {} -- instance variable local page = {} -- array of page descriptors local object = {} -- array of object contents local xref_table_offset -- byte offset of xref table local catalog_obj -- global catalog object local pages_obj -- global pages object local procset_ob...
local PLUGIN = PLUGIN PLUGIN.name = "Special Sale" PLUGIN.author = "gumlefar" PLUGIN.desc = "Special items spot sale plugin" PLUGIN.priceModifier = 1.5 PLUGIN.dailySaleCount = 2 PLUGIN.weeklySaleCount = 3 PLUGIN.artifacts = { --"makarov" "battery", /*"bloodsuckerjaw", "boarhoof", "burershand", "chimerasclaw", ...
local style = require('core.style') local config = require('core.config') local callback = require('core.callback') local function get_line_spaces(doc, idx, dir) local text = doc.lines[idx] if not text then return 0 end local s, e = text:find("^%s*") if e == #text then return get_line_spaces(doc...
local parser = require "sprotoparser" local core = require "sproto.core" local print_r = require "print_r" local sp = parser.parse [[ .Person { name 0 : string id 1 : integer email 2 : string .PhoneNumber { number 0 : string type 1 : integer } phone 3 : *PhoneNumber } .AddressBook { person 0 : *Person(id...
local DIYLib = {} DIYLib.mult = function (a,b) return a * b end DIYLib.div = function (a,b) return a / b end DIYLib.add = function (a,b) return a + b end DIYLib.sub = function (a,b) return a - b end DIYLib.multadd = function (a,b) return DIYLib.mult(a,b) + DIYLib.add(a,b) end DIYLib.divsub = function (a,b) return DIYLi...
--[[ Copyright (c) 2013 Juan Carlos González Amestoy 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, merge, publi...
-- See LICENSE for terms local PlaceObj = PlaceObj local T = T -- add some descriptions local SafeTrans, library_around -- use rawget so game doesn't complain about _G if rawget(_G, "ChoGGi") then SafeTrans = ChoGGi.ComFuncs.Translate library_around = true else local _InternalTranslate = _InternalTranslate local ...
object_intangible_pet_beast_master_bm_peko_peko_mount = object_intangible_pet_beast_master_shared_bm_peko_peko_mount:new { } ObjectTemplates:addTemplate(object_intangible_pet_beast_master_bm_peko_peko_mount, "object/intangible/pet/beast_master/bm_peko_peko_mount.iff")
#!/usr/bin/env lua -- Script: gameloop.lua -- A game loop example. Shows how GLFW can be used to implement a game loop from which -- the multiple tasks that make up the game (graphics rendering, physics updates, AI -- updates, etc) are executed at different rates. local glfw = require("moonglfw") -- Create the windo...
local ftp = require "ftp" local shortport = require "shortport" local stdnse = require "stdnse" description = [[ Sends FTP SYST and STAT commands and returns the result. The canonical SYST response of "UNIX Type: L8" is stripped or ignored, since it is meaningless. Typical FTP response codes (215 for SYST and 211 for...
local String = require(game:GetService("ReplicatedStorage").Utilities.String) local function removeAllComments(source, removeBlankLines) -- Note: only supports removing line comments (but does properly respect block strings) -- removeBlankLines: if true, the resulting string will have all blank lines removed, except ...
project "Sandbox" kind "ConsoleApp" language "C++" cppdialect "C++17" staticruntime "on" targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") files { "src/**.h", "src/**.cpp" } includedirs { "%{wks.location}/Hazel/vendor...
function onCreate() --Iterate over all notes for i = 0, getProperty('unspawnNotes.length')-1 do if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'warning_note' then setPropertyFromGroup('unspawnNotes', i, 'texture', 'notes/warning_note'); setPropertyFromGroup('unspawnNotes', i, 'noteSplashHue', ...
--@ commonstargets commons componenttypes -- ShieldManager module ShieldAlwaysOn = ShieldActivationAngle >= 180 -- Re-do in terms of cosine ShieldActivationAngle = math.cos(math.rad(ShieldActivationAngle)) LastShieldCount = 0 ShieldActivationTimes = {} function ShieldManager_SetShield(I, Index, State) if ShieldAc...
local utils = require("utils") local generate = { func = function(msg) local bangumi, mark, number = msg.text:match("/generate%s*(%S.-)([@#])([%d%.]+)") local notice = "searching..." local ret = bot.sendMessage(msg.chat.id, notice, nil, nil, nil, msg.message_id) local query = utils....
local M = {} -- the required plugins are stored here M.plugins = {} -- the plugins configurations set in visrc.lua local plugins_conf = {} -- the dir where we store plugins on disk local plugins_path = nil -- we store commands in an array of tables {name, func, desc} local commands = {} -- set custom path and add ...
local expect = dofile("rom/modules/main/cc/expect.lua").expect local make_package = dofile("rom/modules/main/cc/require.lua").make local multishell = multishell local parentShell = shell local parentTerm = term.current() if multishell then multishell.setTitle(multishell.getCurrent(), "shell") end local bExit = f...
return {'peccadille','pech','pechdienst','pechlamp','pechstrook','pechverhelping','pechvogel','pectine','pectoraal','pectorale','pecunia','pecuniair','pechdag','pechduivel','pechgeval','pechhulp','pechler','pechtold','pecannoten','peccadilles','pechdiensten','pechgevallen','pechlampen','pechvogels','pecuniaire','pector...
package.path = package.path .. ";/home/ruin/build/elonafoobar/runtime/data/script/?.lua" package.path = package.path .. ";/home/ruin/build/elonafoobar/runtime/profile/_/mod/core/?.lua" local function load_data() Elona = { require = function() return {} end } _MOD_NAME = "core" data = require "kernel...
-- Download Manager -- Part of Live Simulator: 2 -- See copyright notice in main.lua local TAG, input = ... local love = require("love") local socket = require("socket") local log = require("logging") require("love.event") require("love.timer") local function pushEvent(name, ...) return love.event.push...
ITEM.name = "Eye" ITEM.model ="models/nasca/etherealsrp_artifacts/eye.mdl" ITEM.description = "This artifact looks like an eye." ITEM.longdesc = "Emits a moderate amount of radiation. Locally accelerates the body's metabolism, boosting the production of blood clots and scar tissue. Increased production of endorphins; a...
--[[--ldoc desc @module paixing_template @author SinChen Date 2018-01-09 19:35:02 Last Modified by SinChen Last Modified time 2018-03-02 16:47:30 ]] local template = [==[ local CardBase = import("..base.CardBase") local M = class(CardBase) M.description = [[ 功能描述说明: ]] function M:ctor(data,rule...
local BaseInstance = import("./BaseInstance") local InstanceProperty = import("../InstanceProperty") local UITextSizeConstraint = BaseInstance:extend("UITextSizeConstraint", { creatable = true, }) UITextSizeConstraint.properties.MaxTextSize = InstanceProperty.typed("number", { getDefault = function() return 100 ...
-- is_in_blacklist 中对限流 key 的黑名单设置 -- _M table 中 key 为需要设置为黑名单的 key ,值为非 nil 的任意值 local _M = {} -- 示例:将需要拉黑的 key ratelimiter:gz:/_dev_api/blocked:axiaoxin:127.0.0.1 放入 table _M["ratelimiter:gz:/_dev_api/blocked:_dev_axiaoxin:127.0.0.1"] = 1 return _M
ROT=require 'rotLove/rotLove/rotLove' tiles = { floor = 1, wall = 2, escape = 3, } tile_images = { love.graphics.newImage("assets/floor.png"), love.graphics.newImage("assets/wall.png"), love.graphics.newImage("assets/escape.png"), } Map = { width = 20, height = 20, grid = nil, ...
local Dungeons = LibStub("AceAddon-3.0"):GetAddon("BestInSlotRedux"):NewModule("BfaDungeons") local dungeonTierId = 80000 local bonusIds = { bonusids = { [1] = {3524}, [2] = {3524}, [3] = {3524}, [4] = {4786, 6536, 1637} }, difficultyconversion = { [1] = 1, --Dungeon Normal [2] = 2, --Du...
require("plugins") require("settings") require("configs") require("mappings")
squidBasics= [[speed=0.0125 jumpSpeed=0.04666 minimapColor=8 gravity=0.002666 animUp=102 animDown=103 animLand=100,101,100 animCrouch=100,101 animWalk=96,97,98,99 ]] tankBasics= [[speed=0.0075 jumpSpeed=0.035 minimapColor=8 gravity=0.0015 animWalk=80,81,82 animCrouch=83,84 animLand=84,83,80 animUp=85,86,87 animDown=85...
local _={} local _lastIdByName={} local savePath local _pow local _serialize local _deserialize _.init=function(pow) _pow=pow local saveDir=pow.saveDir if saveDir==nil then saveDir="" end savePath=saveDir.."id" _serialize=pow.serialize _deserialize=pow.deserialize _.load() end _.new=function(name) a...
-------------------------------- -- @module EaseQuadraticActionIn -- @extend ActionEase -- @parent_module cc ---@class cc.EaseQuadraticActionIn:cc.ActionEase local EaseQuadraticActionIn = {} cc.EaseQuadraticActionIn = EaseQuadraticActionIn -------------------------------- --- ---@param action cc.ActionInterval ---@...
local Clockwork = Clockwork; Clockwork.advertisement = Clockwork.kernel:NewLibrary("Advertisement"); Clockwork.advertisement.stored = {}; -- A function to add an advertisement. function Clockwork.advertisement:Add(text, delay, color) assert(type(text) == "string", "The advertisement argument is not a string."); ass...
local QuestModule = require "module.QuestModule" local npcConfig = require "config.npcConfig" local function CheckNeedQuest(needQuest) local index = nil for i,v in pairs(needQuest) do local k=tonumber(v) if k ~= 0 then local quest = QuestModule.Get(k) print("zoezeo",k,sprinttb(quest)) if quest==ni...
Config = {} Config.GroupName = nil -- DO NOT TOUCh Config.playerRank = nil Config.TimeOut = 1000 -- MARKERS REFRESHING IN MS Config.possibleMarkerNames = { 'stash', 'management' } -- CORNERS Config.LowDrugs = { { drug = 'crack_pooch', price = 20, price2 = 25 }, -- CRACK { drug = 'bagofdope', price =...
EditorRandom = EditorRandom or class(MissionScriptEditor) function EditorRandom:create_element() EditorRandom.super.create_element(self) self._element.class = "ElementRandom" self._element.values.amount = 1 self._element.values.amount_random = 0 self._element.values.ignore_disabled = true end function EditorRa...
function OnUpdate(table, index) local s = table[index] return s end function Maths(a, b, c) return a * b + c end function Object(object) object.m_prop = 0 object.Setter(object.m_prop + 1) end function VecTest(a, b, c) local t = { a, b, c } return t end function TestCallback() return ...
data:extend { { type = 'font', name = 'nano-button-font', from = 'default', size = 8 } } local style = data.raw['gui-style'].default style.nano_frame_style = { type = 'frame_style', parent = 'frame', maximal_height = 33, minimal_height = 33, top_padding = 0,...
package.path = "?.lua;../?.lua" local input = require "input" local utils = require "utils" function parse(str) local t = {} for i in string.gmatch(str, "%S+") do utils.array_append(t, i) end return t end function read_next(t) local val = t[#t] t[#t] = nil -- Consume the entry return val end function parse_tre...
local ffi = require("ffi") ffi.cdef[[ void init_lzdgen(uint64_t seed); void lzdg_generate_data(void *ptr, size_t size, double ratio, double len_exp, double lit_exp); ]] local lzdg=ffi.load("./liblzdgen.so") lzdg.init_lzdgen(0); function gen_data(len,ratio,lexp,mexp) local buf = ffi.new("char[?]", len) lzdg.lzd...
--[[ A utility used to create a function spy that can be used to robustly test that functions are invoked the correct number of times and with the correct number of arguments. This should only be used in tests. ]] local assertDeepEqual = require(script.Parent.assertDeepEqual) local function createSpy(inner) loc...
-- Description: Manages the global UI for storage networks. require "cores.lib.string-utils" require "cores.lib.gui-helper" -- Constructs and returns the NetworkOverviewGUI return function(BaseGUI) local NetworkOverviewGUI = { NeedsTicks = true, TicksBetweenUpdates = 60.0 * 5.0 } setmetatab...
-- Copyright (c) 2020-2021 shadmansaleh -- MIT license, see LICENSE for more details. -- Credit: itchyny(lightline) -- License: MIT License local style = vim.g.ayucolor or 'dark' return require('lualine.themes.ayu_' .. style)
--[[ I'm aware that this is some proper shitty code, i really couldn't be bothered to learn classes for- lua seeing as i really do hate lua... Why would you use a prototype language!?!?! >:C ]] function onTick() -- Grab the variable inputs from the game local toggleClutch = input.getNumber(1) l...
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISCraftAction : ISBaseTimedAction ISCraftAction = ISBaseTimedAction:derive("ISCra...
-- lcd.lua local config = require "config" local wpilib = require "wpilib" module(...) if config.features.lcd then local lcd = wpilib.DriverStationLCD_GetInstance() local lineConstants = { wpilib.DriverStationLCD_kUser_Line1, wpilib.DriverStationLCD_kUser_Line2, wpilib.DriverStationLC...
local setmetatable = setmetatable local type = type local ok, new_tab = pcall(require, "table.new") if not ok then new_tab = function (narr, nrec) return {} end end local _M = new_tab(0, 32) _M._VERSION = '1.0.0' local mt = { __index = _M } local _keys = { 'instanceId', 'hostName', 'app', 'ipAddr', ...
local function ToggleHudElement(name, state) if name == "Hud" then game.hud:Show(state) end if name == "Radar" then game.hud:RadarShow(state) end if name == "Speedometer" then game.hud:SpeedometerShow(state) end end local function ToggleHudElementMenu(nam...
local M = {} local helpers = require "null-ls.helpers" local methods = require "null-ls.methods" local hover = methods.internal.HOVER M.dictionary = helpers.make_builtin { name = "dictionary", method = hover, filetypes = { "text", "markdown" }, generator = { fn = function(_, done) local cword = vim.f...
local ffi = require("ffi") local core_string = require("core_string_l1_1_0") local fun = require("fun")() local iterators = require("msiterators") local striter = iterators.striter ffi.cdef[[ typedef struct rgb32 { int r:8; int g:8; int b:8; } rgb32_t ]] local src = "big\0boy\0baby\0bear\0bounces\0basketballs\0b...
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games return { ["DeterminationPhysicalDamageReduction"] = { affix = "", "(5-8)% additional Physical Damage Reduction while affected by Determination", statOrderKey = "3863", statOrder = { 3863 }, level = 1, group = "AuraBonus", weigh...
local t = require( "taptest" ) local asinh = require( "asinh" ) local round = require( "round" ) t( round( asinh( -2.5 ), 9 ), -1.647231146 ) t( round( asinh( 10 ), 8 ), 2.99822295 ) t()
local tl = require("tl") describe("record", function() it("can overload functions", function() local tokens = tl.lex([[ global love_graphics = record print: function(text: string, x: number, y: number, r: number, sx: number, sy: number, ox: number, oy: number, kx: number, ky:number) ...
local tabsize = 4 -- vim.cmd[[ filetype plugin indent on ]] vim.o.background = "dark" vim.o.shortmess = 'atIW' vim.o.hidden = true vim.o.whichwrap = "b,s,<,>,[,],h,l" vim.o.pumheight = 16 vim.o.fileencoding = "utf-8" vim.o.cmdheight = 1 vim.o.splitbelow = t...
----------------------------------------------------------------- ----------------------------------------------------------------- -- MASS EFFECT: UNIFICATION Map Manager Script by Aaron Gilbert -- Build 31203/06 -- Screen Names: Marth8880, GT-Marth8880, [GT] Marth8880, [GT] Bran -- E-Mail: Marth8880@gmail.com -...
local component = require("component") local event = require("event") local serialization = require("serialization") require("util") require("libevent") require("checkarg") local function compress(t) checktable(t) return serialization.serialize(t) end local function decompress(x) checkstring(x) return...
local state = {} function state:new() return lovelyMoon.new(self) end function state:load() end function state:close() end function state:enable() end function state:disable() end function state:update(dt) end function state:draw() love.graphics.print("Love Joust", 400, 300) love.graphics.print("Press ...
local FanXinDef = {} local DEF = {} local VALUE = {} FanXinDef.def = DEF FanXinDef.value = VALUE DEF.TIAN_HU_GY = 0x1--天胡 DEF.DI_HU_GY = 0x2--地胡 DEF.QING_LONG_BEI_GY = 0x3--青龙背 DEF.QING_QI_DUI_GY = 0x4--清七对 DEF.LONG_QI_DUI_GY = 0x5--龙七对 DEF.QING_DA_DUI_GY = 0x6--清大对 DEF.QING_YI_SE...
-- -- Copyright (c) 2017, Jesse Freeman. All rights reserved. -- -- Licensed under the Microsoft Public License (MS-PL) License. -- See LICENSE file in the project root for full license information. -- -- Contributors -- -------------------------------------------------------- -- This is the official list of Pixel Visi...
function EFFECT:Init(data) self.ShotStart = data:GetStart() self.ShotEnd = data:GetOrigin() -- ws = worldspace self:SetRenderBoundsWS(self.ShotStart, self.ShotEnd) self.HitBox = data:GetMagnitude() self.Duration = data:GetScale() or 0 self.EndTime = CurTime() + self.Duration self.Fa...
register_outcome{ text = "Helpful Blackhole", subtext = "It's trying its best", unknown = true, comment = "todo", rarity = 10, apply = function() local x, y = get_player_pos() local black_hole = EntityLoad("data/entities/projectiles/deck/black_hole.xml", x, y) EntityAddComponent( black_...
loadstring(game:HttpGet('http://pastebin.com/raw/xQD5Gx5L', true))()
--- === hs.console === --- --- Some functions for manipulating the Hammerspoon console. --- --- These functions allow altering the behavior and display of the Hammerspoon console. They should be considered experimental, but have worked well for me. -- make sure NSColor conversion tools are installed require("hs.drawi...
-------------------------------- -- @module ShaderCache -- @extend Ref -- @parent_module cc ---@class cc.ShaderCache:cc.Ref local ShaderCache = {} cc.ShaderCache = ShaderCache -------------------------------- --- Remove all unused shaders. ---@return ccb.ShaderCache function ShaderCache:removeUnusedShader() end ---...
--[[ Config for plugin, hoob3rt/lualine.nvim See https://github.com/hoob3rt/lualine.nvim --]] require('lualine').setup({ options = {theme = 'github'}, sections = { lualine_c = { { 'filename', path = 1 } } } -- 1: Relative path })
return {'lbgo'}
-- Settings and command line parser local weight_loss_delta = {1, 5, 3} cmd = torch.CmdLine() cmd:option('-delta1', weight_loss_delta[1], 'lambda_SI') cmd:option('-delta2', weight_loss_delta[2], 'lambda_SV') cmd:option('-delta3', weight_loss_delta[3], 'lambda_SF') cmd:option('-exprate', 0.2, 'expand ratio for the bou...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] CDrugCookJob = {} function CDrugCookJob:constructor() addEven...