content
stringlengths
5
1.05M
require("KeyCodes") --[[ Properties that will be exposed to c++ Currently only numeric values supported --]] Props = { XOffset = 0, YOffset = 1 } --[[ Called once a frame Params: Entity: the entity this script belongs to ts: The time (in seconds) since the last update --]] function OnUpdate(Entity, ts) local tr...
--[[ Copyright 2014 Sergej Nisin Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
module(..., package.seeall) local util = require "tundra.util" local native = require "tundra.native" local function mk_defvariant(name) return { Name = name; Options = {} } end local default_variants = { mk_defvariant "debug", mk_defvariant "production", mk_defvariant "release" } local default_subvariant...
function main(splash, args) assert(splash:autoload("https://code.jquery.com/jquery-2.1.3.min.js")) assert(splash:go(splash.args.url)) local version = splash:evaljs("$.fn.jquery") return 'JQuery version: ' .. version end
-- config model return { install_dir = home()..'/cwm/', start_plugs = 'auto' }
-- Implements a Sparse Tensor in CSC format local SparseTensor = torch.class('torch.SparseTensor') function SparseTensor:__init(data, offsets, shape) self.data = data or torch.Tensor() self.offsets = offsets self.shape = shape self.isSparse = true end function SparseTensor:clone() return torch.SparseTe...
--A lot of Thanks to iUltimateLP and his mod SimpleTeleporters for inspiration and for the use of His Code and graphics require("config") DIVIDER = 60 data:extend({ { type = "accumulator", name = "Teleporter_Beacon", icon = "__PersonalTeleporter__/graphics/icon.png", icon_size = 32, flags = {...
return require('packer').startup(function(use) -- Packer can manage itself use 'wbthomason/packer.nvim' -------------------------- plugins ------------------------------------------- -- nvim-tree use { 'kyazdani42/nvim-tree.lua', requires = 'kyazdani42/nvim-web-devicons' } -- bufferline use { ...
local M = {} M.config = function() -- CMP -- ========================================= lvim.builtin.cmp.sources = { { name = "nvim_lsp", max_item_count = 4 }, { name = "cmp_tabnine", max_item_count = 4 }, { name = "buffer", max_item_count = 3 }, { name = "path", max_item_count = 3 }, { name =...
local HttpService = game:GetService("HttpService") local Promise = require(script.Parent.Services.Promise) local function fetch() return Promise.new(function(resolve, reject) local status, response = pcall(HttpService.GetAsync, HttpService, "https://api.github.com/repos/va1kio/commander/tags") if s...
require("lualib_bundle"); __TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 1,["6"] = 4,["7"] = 4,["8"] = 6,["9"] = 6,["10"] = 6,["11"] = 6,["12"] = 6,["14"] = 6,["15"] = 7,["16"] = 8,["17"] = 10,["18"] = 11,["19"] = 13,["20"] = 6,["21"] = 15,["22"] = 15,["23"] = 17,["24"] = 18,["25"] = 17,["26"] ...
local LocalizationService = game:GetService("LocalizationService") local CoreGui = game:GetService('CoreGui') local Players = game:GetService("Players") -- Waiting for the player ensures that the RobloxLocaleId has been set. if Players.LocalPlayer == nil then Players:GetPropertyChangedSignal("LocalPlayer"):Wait() ...
local playsession = { {"Serennie", {992123}}, {"REDgalko", {628746}}, {"xaero54", {1007332}}, {"Zory", {25182}}, {"Terarink", {1006256}}, {"sasha21168", {213092}}, {"cipps", {214650}}, {"Dk-077", {720178}}, {"15944831778", {562805}}, {"JailsonBR", {922535}}, {"vad7ik", {479031}}, {"Nikkichu", {939152}}, {"...
object_mobile_dressed_meatlump_hideout_male_06 = object_mobile_shared_dressed_meatlump_hideout_male_06:new { } ObjectTemplates:addTemplate(object_mobile_dressed_meatlump_hideout_male_06, "object/mobile/dressed_meatlump_hideout_male_06.iff")
local Twig = require "orb:orb/metas/twig" local Header_M = {} local Header = Twig:inherit "header" Header_M.header = Header function Header.toMarkdown(header, scroll, skein) local phrase = ("#"):rep(header:select("level")():len()) scroll:add(phrase) for i = 2, #header do header[i]:toMarkd...
local callback = {} function callback.color(state, neighState, substance) local O = substance[1] local G = substance[2] local B = substance[3] local kind = state and state.kind local r,g,b,a local debugMode = love.keyboard.isDown('lctrl') or love.keyboard.isDown("1") or love.keyboard.isDown("2") or love.keyboard...
local Config = require('vgit.core.Config') return Config:new({ enabled = true, format = function(blame, git_config) local config_author = git_config['user.name'] local author = blame.author if config_author == author then author = 'You' end local commit_message = blame.commit_message ...
-- MOAI UI -- Copyright (c) 2012-2012 Klei Entertainment Inc. -- All Rights Reserved. local array = require( "modules/array" ) local mui_component = require( "mui/widgets/mui_component" ) local mui_defs = require( "mui/mui_defs" ) local mui_scroller = class( mui_component ) function mui_scroller:init( def ) mui_co...
-- See https://github.com/CelestialCartographers/Loenn/blob/master/src/fast_unpack.lua --[==[ Faster unpack for Lua 5.1. Uses a cache of functions which are each optimized for one specific number of varargs. Improves performance by up to two orders of magnitude in LuaJIT. Author: Vexatos MIT License Copyright (c)...
-- Copyright 2021 SMS -- License(Apache-2.0) include "deps/premake/solution_items.lua" workspace "math" architecture "x86_64" startproject "tests" flags "MultiProcessorCompile" configurations {"Debug", "Release"} solution_items { "README.md", "premake5.lua"} filter "configuration...
---------------------------------------- -- -- -- USEFUL ALIASES -- -- -- ---------------------------------------- local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local fn = vim.fn -- to call Vim functions e.g. ...
local account = require('account') local chat = require('core.chat') local command = require('core.command') local ffi = require('ffi') local io = require('io') local math = require('math') local memory = require('memory') local player = require('player') local scanner = require('core.scanner') local settings = require...
require('src/test') require('src/core') require('src/builtins') require('src/contextlib') require('src/objects') require('src/logging') require('src/string') require('src/system') fixture('app', function(monkeypatch) local calls = list() monkeypatch.setattr('appRun', function() calls:append('run') end) monkeyp...
local super = Class("KeyboardFocusManager", LuaObject, function() static.getCurrentKeyboardFocusManager = function() return LuaObject.getSingleton(static) end end).getSuperclass() KeyboardFocusManager.FORWARD_TRAVERSAL = 0 KeyboardFocusManager.BACKWARD_TRAVERSAL = 1 function KeyboardFocusManager:init() super.ini...
return function(self) self.processed_text = {} self.line_with_text.indents_obj.indent_chunk = self.indent_chunk self.line_with_text:init() self.line_with_text.indent = self.next_line_indent self.num_line_feeds = 0 end
function love.conf(t) t.releases = { title = "Going Home", author = "Brandon Blanker Lim-it", email = "flamendless8@gmail.com", homepage = "http:flamendless.github.com/brbl", description = "A Pixelated Survival Horror Game", version = "1.0.2" } t.window.width = 1024 t.window.height = 512 t.w...
local nvim = require'nvim' local load_module = require'tools'.helpers.load_module local set_mapping = nvim.mappings.set_mapping local hop = load_module'hop' if not hop then return false end hop.setup{} set_mapping{ mode = 'n', lhs = [[\]], rhs = "<cmd>lua require'hop'.hint_char1()<CR>", args =...
------------------------------------------------------------------------------- -- -- Date and time widget with calendar popup display for Awesome 3.5 -- Copyright (C) 2011-2016 Tuomas Jormola <tj@solitudo.net> -- -- Licensed under the terms of GNU General Public License Version 2.0. -- -- Description: -- -- This widge...
local random = Random.new() local function fillStoreSupply() local storeSupply = {} for i = 1, 10 do local ranVal = random:NextInteger(1,3) local item = (ranVal == 1 and "Fruit") or (ranVal == 2 and "Vegetable") or "Shoe" table.insert(storeSupply, item) end return storeSupply end local supplyTable = fillS...
local Draw = require("api.Draw") local Gui = require("api.Gui") local IInput = require("api.gui.IInput") local IUiLayer = require("api.gui.IUiLayer") local InputHandler = require("api.gui.InputHandler") local UiTheme = require("api.gui.UiTheme") local QuickMenuList = require("api.gui.QuickMenuList") local QuickMenuPr...
local utils = require('utils') local plugins ={ { paq = {'savq/paq-nvim', as = 'paq.nvim', opt = true}, setup = utils.require('plugins.paq').setup }, { paq = {'windwp/nvim-autopairs', as = 'autopairs.nvim'}, setup = utils.require('nvim-autopairs').setup }, { paq = {'norcalli/nvim-colorize...
scriptId = 'com.lloydtorres.imgur' scriptTitle = 'Imgur Connector' -- Lua script to enable browsing Imgur using the Myo. -- A lot of the code was taken from the Myo SDK docs. -- Variables fistMade = false -- Flags for holding fist referenceRoll = myo.getRoll() currentRoll = referenceRoll -- Effects function nextPi...
-- -- from src/crnd.c -- -- void init_rnd(unsigned long) to crnd; :init -- unsigned long irnd(void) to crnd; :irnd -- double rnd(void) to crnd; :rnd -- local M = require 'crnd' local crnd = M.crnd function p(m, n, crnd) for _=1,n do for _=1,m do io.write(("%10.7f"):format(crnd:rnd())) end io.write("\n"...
local ChainList = require 'init' ChainList.run();
local M = { } function M.locate() local location = vim.fn.getmousepos() if location.winid == 0 then if location.screenrow > vim.o.lines - vim.o.cmdheight then location.cmdline = true else location.statusline = true end location.winid = nil loca...
local packageName = "Chat Extensions" local logger = GPM.Logger( packageName ) if (CLIENT) then --[[------------------------------------------------------------------------- chat_sound - ConVar ---------------------------------------------------------------------------]] do ...
local http = require "luci.http" local sys = require "luci.sys" module("luci.pccontroller.myip", package.seeall) need_authentication = false function index() local myip = http.getenv('HTTP_X_FORWARDED_FOR') if not myip then myip = sys.getenv().REMOTE_ADDR end http.prepare_content('text/html') ht...
local home = {} local timer = 0 local color1 = 1 local color2 = 1 local color3 = 1 function home:update (dt) timer = timer + dt if timer > 0.3 then color1 = math.random() color2 = math.random() color3 = math.random() timer = 0 end end function home:keypressed (key) if key == 'escape' then ...
require("isolater/common/commonController"); require("hall/onlineSocket/onlineSocketManager"); require("common/nativeEvent"); require("util/TableLib"); require("hall/ranklist/socket/rankSocketProcesser"); require("hall/ranklist/data/rankListDataInterface"); require("hall/community/data/communityDataInterface"); ...
local PANEL = {} function PANEL:Init() self.AvatarButton = self:Add("DButton") self.AvatarButton:AlignLeft(18) self.AvatarButton:SetSize(32, 32) self.AvatarButton.DoClick = function() self.Player:ShowProfile() end self.Avatar = vgui.Create("AvatarImage", self.AvatarButton) self.Avatar:SetSize(32, 32) self.Avat...
package.path = "../?.lua;"..package.path -- Example showing how to create a disk image. local ffi = require("ffi") local gfs = require("lj2guestfs.guestfs_ffi") local UINT64_C = ffi.typeof("uint64_t") local int = ffi.typeof("int") local function main (argc, argv) --size_t i; local g = gfs.guestfs_create (); ...
-- aliom ignores infinte resources by default, so we need to tell it that we do want it to process oil function add_oil() for name,version in pairs(game.active_mods) do if name == "aliom" and remote.interfaces.aliom.add_resource then local ore_name = "crude-oil" local richness = {["none"] = 1, ["very-low"] =...
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local setlmgtfy = {} local mattata = require('mattata') local redis = require('libs.redis') function setlmgtfy:init() setlmgtfy.commands = mattata.commands(self.info....
#!/usr/bin/env lua local _G = _G local _VERSION = _VERSION local assert = assert local error = error local getmetatable = getmetatable local ipairs = ipairs local next = next local pairs = pairs local print = print local rawequal = rawequal...
--- -- This module takes care of the authentication used in SMB (LM, NTLM, LMv2, NTLMv2). -- -- There is a lot to this functionality, so if you're interested in how it works, read -- on. -- In SMB authentication, there are two distinct concepts. Each will be dealt with -- separately. There are: -- * Stored hashes -- * ...
local function onevent(ev, ...) local vv, r if stead.api_atleast(1, 6, 3) then vv, r = stead.call(game, ev, ...); if r == false then return vv, false end if vv == false then return nil, false end return vv end end local go = function (self, where, back, noenter, noexit, nodsc) local was = self.wh...
require("plugins.nvim-tree") require("plugins.nvim-lspconfig") require("plugins.nvim-lightbulb") require("plugins.nvim-cmp") require("plugins.nvim-lspconfig") require("plugins.nvim-dap") require("plugins.nvim-dap-ui") require("plugins.nvim-tree") require("plugins.nvim-tmux-navigation") require("plugins.gitsigns") requi...
-- It works only if x is even and y > 2. local brain = function (x, y, snake, food, synaptic_vesicle) local body = snake.get_body() local head = body[1] if synaptic_vesicle.neurotransmmitter == nil then synaptic_vesicle.neurotransmmitter = "left" end if synaptic_vesicle.neurotransmmitter == "left"...
local x, y = ... if editor then x = editor.x y = editor.y end return entity(1) { ["droptune.components.render.Sprite"] = { ["resource"] = "test.Textures.love-logo", }, ["droptune.components.Position"] = { ["x"] = x, ["y"] = y, ["rot"] = 0, }, }
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by wakfu. --- DateTime: 2020/8/4 17:58 --- local example = {} -- local json = require('module_tools.json') local Http = require('module_http.module_http') function example.get() local request = Http.new() local code, response = request:get("h...
----------------------------------- -- Ability: Third Eye -- Anticipates and dodges the next attack directed at you. -- Obtained: Samurai Level 15 -- Recast Time: 1:00 -- Duration: 0:30 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/status") ----------------------------...
return { summary = 'Clear the event queue.', description = 'Clears the event queue, removing any unprocessed events.', arguments = {}, returns = {} }
AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetCollisionGroup(COLLISION_GROUP_WORLD) local PhysObj = self:GetPhysicsObject() if IsValid(PhysObj) then PhysObj:Wake() end timer.Simple(30, function() if...
--MADE BY X9n (NOT THE SCRIPT) REGULAR SCRIPT: Go down to line 4 and put your name where it says "YOUR NAME HERE" and replace anything you want your name to be in line 4 where it says "YOUR NEW NAME HERE" local You = "Killbook" local head = workspace[You].Head:Clone() local model = Instance.new("Model",workspace) loc...
-- The Computer Language Benchmarks Game -- http://benchmarksgame.alioth.debian.org/ -- contributed by Mike Pall -- requires LGMP "A GMP package for Lua 5.1" -- with matrix optimization, courtesy of Wim Couwenberg local g, aux = {}, {} require "c-gmp"(g, aux) local add, mul, div = g.mpz_add, g.mpz_mul_si, g.mpz_tdiv_q...
--[[ ORIGINAL CODE https://github.com/DevTestingPizza/vSync REVAMPED BY Kalinka https://github.com/KalinkaGit/vSyncR ]]-- CurrentWeather = Config.StartWeather local baseTime = Config.BaseTime local timeOffset = Config.TimeOffset local freezeTime = Config.FreezeTime local blackout = Config.Blackout local newWea...
local Spell = { } Spell.LearnTime = 360 Spell.ApplyFireDelay = 0.4 Spell.Category = HpwRewrite.CategoryNames.Healing Spell.OnlyIfLearned = { "Episkey" } Spell.Description = [[ For maximum effect of the spell, the incantation had to be repeated thrice; firstly slowing the flow of blood to prevent death by ex...
if not modules then modules = { } end modules ['util-lua'] = { version = 1.001, comment = "companion to luat-lib.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", comment = "the strip code is written by Peter Cawley", copyright = "PRAGMA ADE / ConTeXt Development Team", license = ...
local EditorEntity = require("core.EditorEntity") local InputEvent = require("input.InputEvent") --------------------------------------------------------------------------------- -- -- @type CanvasTool -- --------------------------------------------------------------------------------- local CanvasTool = Class( Edit...
-- pastebin run fUqJGjit shell.run("pastebin get wPtGKMam git.lua") shell.run("./git.lua VHirtz CC-mastermind / API") shell.run("mv CC-mastermind/API/startup.lua /startup.lua")
local OVALE, Ovale = ... local OvaleSigil = Ovale:NewModule("OvaleSigil", "AceEvent-3.0") Ovale.OvaleSigil = OvaleSigil local OvaleProfiler = Ovale.OvaleProfiler local OvalePaperDoll = nil local OvaleSpellBook = nil local OvaleState = nil local ipairs = ipairs local tinsert = table.insert local tremove =...
local cfg = require("config").entity.toolman local core = require("core") local hexagon = require("hexagon") local buff = require("buff") local template = { health_cap = 1000, energy = 0, resistance = {}, } return function() local obj = core.new_character("entity.toolman", cfg.template, {{ name = "skill.toolman...
require "Build" require "Utils" require "../Helpers" local llvm = path.getabsolute(basedir .. "/../deps/llvm") -- Prevent premake from inserting /usr/lib64 search path on linux. GCC does not need this path specified -- as compiler automatically knows where to look for system libs. Insertion of this path causes issues...
-- Planet Region Definitions -- -- {"regionName", x, y, shape and size, tier, {"spawnGroup1", ...}, maxSpawnLimit} -- For circle and ring, x and y are the center point -- For rectangles, x and y are the bottom left corner. x2 and y2 (see below) are the upper right corner -- Shape and size is a table with the following ...
function onCreate() --Iterate over all notes for i = 0, getProperty('unspawnNotes.length')-1 do --Check if the note is a 5uaty if getPropertyFromGroup('unspawnNotes', i, 'noteType') == '5uaty' then setPropertyFromGroup('unspawnNotes', i, 'texture', '5UATY/BULLET5uaty_assets'); --Change texture end end --de...
local awful = require("awful") local gears = require("gears") local gfs = gears.filesystem local wibox = require("wibox") local beautiful = require("beautiful") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local helpers = require('helpers') local get_taglist = function(s) --...
local merge = pl.tablex.merge local fromHexAlpha = poon.utils.colors.fromHexAlpha local color = fromHexAlpha('#81ecec', 0.5) local endColor = fromHexAlpha('#00cec9', 0.5) local strokeColor = merge(color, { alpha=1 }, true) local rectanglePreview = hs.drawing.rectangle(hs.geometry.rect(0, 0, 0, 0)) rectanglePreview:se...
--[[-- request.register_mime_type( filename_extension, mime_type ) Registers a mime type for a given filename extension (case sensitive). --]]-- function request.register_mime_type(filename_extension, mime_type) request.configure(function() request._mime_types[filename_extension] = mime_type end) end
------------------------------------------------------------------------------- -- Load necessary libraries and files ------------------------------------------------------------------------------- require 'torch' require 'xlua' require 'optim' require 'nn' require 'nnx' require 'nngraph' require 'hdf5' require 'strin...
MathUtils = {} MathUtils.__index = MathUtils --- Utilities for math-related/algorithmic operations function MathUtils:create() local this = {} setmetatable(this, self) return this end --- Get the path from (fromX, fromY) to (toX, toY) that would result in a line. The path includes BOTH the starting -- point...
local Channelling = {} local sourceName = "channelling" local channelHistory = {} local currentChannelTarget = '' local currentChannelPower = 1 local currentChannelCount = 0 local function channel(args) send("channel "..currentChannelPower.. " "..currentChannelTarget) currentChannelCount = currentChannelCount +...
module 'mock' CLASS: MsgTarget () :MODEL{ Field 'targets' :array( Entity ) :ref(); } mock.registerComponent( 'MsgTarget', MsgTarget ) function MsgTarget:__init() self.targets = {} self.includeChildren = false end function MsgTarget:sendMsg( msg, data, source ) source = source or self for i, target in ipairs...
dofile('./config.lua') dofile('./msg.lua') dofile('./base.lua') Extensions = dofile('./Extensions.lua') patterns = dofile('./patterns.lua') function string:isgroup() return self:match('-100(%d+)') or false end function PreProccess(data) if (data._ == "updateNewMessage") then local msg = data.message local input_t...
local ngx_log = ngx.log local ngx_DEBUG = ngx.DEBUG local ngx_ERR = ngx.ERR local ngx_INFO = ngx.INFO local ngx_WARN = ngx.WARN local ngx_worker_pid = ngx.worker.pid local _M = { _VERSION = "0.0.1", worker = {}, cluster = {}, } local zedcup = require("zedcup") local GLOBALS = zedcup.globals() local DEBUG ...
local _, AddonToolkitModule = ... local _, AddonToolkit = AddonToolkitModule.AddOn(...) local _, Method = AddonToolkit.Module("Method") local format = import("string").format local ipairs = import("ipairs") local table = import("table") local pairs = import("pairs") local setmetatable = import("setmetatable") local ne...
aurum_hand = {} local function hand_dig(time) return {times = {[3] = time}, uses = 0, maxlevel = 0} end aurum_hand.def = { wield_image = "wieldhand.png", wield_scale = vector.new(1, 1, 2.5), tool_capabilities = { full_punch_interval = 0.9, max_drop_level = 0, groupcaps = { dig_handle = { times = { ...
function init() setName("Blur") setDesc("Blurs texture") setSize(100, 24+64+8+8+18+7+4) addOutput(24+32) addInput("Texture", 24+64+8+8) addParameter("Intensity", "Blur intensity", 24+64+8+8+18, 10, 0, 100, true) end function apply() tileSize = getTileSize() intensity = getValue(1, 0, 0...
object_tangible_painting_painting_corl_01 = object_tangible_painting_shared_painting_corl_01:new { } ObjectTemplates:addTemplate(object_tangible_painting_painting_corl_01, "object/tangible/painting/painting_corl_01.iff")
AddTask("Badlands", { locks={LOCKS.ADVANCED_COMBAT,LOCKS.MONSTERS_DEFEATED,LOCKS.TIER4}, keys_given={KEYS.HOUNDS,KEYS.TIER5, KEYS.ROCKS}, room_choices={ ["Lightning"] = 1, ["Badlands"] = 3, ["HoundyBadlands"] = 2, ["BarePlain"] = 1, ["BuzzardyBadlands"] = 2, }, room_bg=GROUND.DIRT, background...
function love.conf(t) t.identity = nil t.version = "0.10.2" t.console = false t.accelerometerjoystick = false t.externalstorage = false t.gammacorrect = false t.window.title = "PlaceTool" t.window.icon = nil t.window.width = 0 t.window.height = 0 t.window.borderless = false...
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 SourceSkyname = GetConVar("sv_skyname"):GetString() --We need the source of the maps original skybox texture so we can manipulate it. local SourceSkyPre = {"lf","ft","rt","bk","dn","up",} local SourceSkyMat = { Material("skybox/"..SourceSkyname.."lf"), Material("skybox/"..SourceSkyname.."ft"), Material("sky...
-- access_limit_frequency_token_bucket.lua local limit_frequency_token_bucket = require "limit_frequency_token_bucket" -- 对于内部重定向或子请求,不进行限制。因为这些并不是真正对外的请求。 if ngx.req.is_internal() then return end limit_frequency_token_bucket.incoming()
local utils = {} -- This function transform timestamp from sec/millisec into microseconds for Device2 format compatibility function utils.getTimestamp(timestamp) if not timestamp then return os.time(os.date("!*t")) * 1000000 elseif type(timestamp) ~= "number" then return os.time(os.date("!*t")) * 1000000 -- Could...
-- CONST.OPH version 1.10 -- Constants for OPL -- Last edited on 19 May 1997 -- (C) Copyright Psion PLC 1997 -- General constants -- 2022-01-18: Formatting and minor modifications by tomsci KTrue = -1 KFalse = 0 -- Special keys KKeyEsc = 27 KKeySpace = 32 KKeyDel = 8 KKeyTab = 9 KKeyEnter = 13 KGetMenu = 4150 KKeyUp...
local ingredient_dialog = {} toggle_ingredients_chat = true ingredient_said = false ingredient_dialog["pln_rt1_12"] = "Zutat hinzugefügt" --Comment out the parts of the script you dont want in chat by adding two dashes at the start of the line ingredient_dialog["pln_rt1_20"] = "Füge Salzsäure zu" --Commenting these par...
-------------------------------------------------------------------------------- -- modules that extend functionality of the table. -------------------------------------------------------------------------------- local M = {} -------------------------------------------------------------------------------- -- Returns t...
function love.conf(t) t.title = "miko lovejam intro" t.author = "miko" t.identity = "mario" t.screen.width = 800 t.screen.height = 600 end
local level = require "game/level" local camera = require "game/camera" local game = { dt = 0 } function game:load() for i = 1, #e do e.delete(i) end level:load("res/levels/0.png") res.sound.ambience:play() love.window.setMode(200, 500, {fullscreen=true, msaa=0}) self.camera = ca...
local util = require('util') local item = { type = "item", name = "train-scaling-stop", icon = "__train-scaling__/graphics/icons/train-scaling-stop.png", icon_size = 32, flags = {}, subgroup = "transport", order = "a[train-system]-cz[train-scaling-stop]", place_result = "train-scaling-stop", ...
--[=[ Useful utility functions involving CFrame values. @class CFrameUtils ]=] local UP = Vector3.new(0, 1, 0) local CFrameUtils = {} --[=[ Makes a CFrame look at a position and target with bias towards the upVector. ```lua -- orient a hypothetical gun such that it's relative to the root part's upVector loca...
local toolName = "TNS|Crossfire setup|TNE" ---- ######################################################################### ---- # # ---- # Copyright (C) OpenTX # -----# ...
--[[// https://github.com/Rerumu/Rerumu-Parser \\]]-- local Encode, Decode, Extract; local SetMeta = setmetatable; local Tostring = tostring; local Tonumber = tonumber; local Concat = table.concat; local Gsub, Sub = string.gsub, string.sub; local Match = string.match; local Type = typeof; local Beat = g...
local addon, ns = ... local UIP = UIParent local CF = CreateFrame local _G = _G local unpack = unpack local wipe = wipe print(addon.." loaded") local width = 600 local height = 300 -- content data func local function generateScrollChildData(scrollChild,maxx) local genv = getfenv(0) -- Collect the names of all po...
function start (song) print("Song: " .. song .. " @ " .. bpm .. " downscroll: " .. downscroll) end local defaultHudX = 0 local defaultHudY = 0 local tvX = 0 local tvY = 0 local defaultWindowX = 0 local defaultWindowY = 0 local lastStep = 0 --default positions -- changeBoyfriendCharacter('bf', 970, 350) -- chan...
require ("lib.lclass") require ("lib.yanecos.Processor") require ("src.data.TileData") require ("src.data.AnimationData") require ("src.data.TransformData") class "TileProcessor" ("Processor") function TileProcessor:TileProcessor (entityManager) self.em = entityManager self.intrests = { TileData:getClass (), } ...
collAgent:importAll() return true
-- GUI handler for Sign Placer. function init() self.signFolder = "PUT_SIGNS_HERE/" end -- Searches the folder with generated signs given by name function search(name) if pcall(function() root.assetJson("/"..self.signFolder..name.."/"..name.." [0,0].json") end) then widget.setText("lblWarning", "...
att.PrintName = "halo non precision weapon multiplier" att.Icon = Material("entities/tfa_hce_snow_objectiveflag.png", "smooth mips") att.Description = "Further triples headshot damage." att.Desc_Pros = { "pro.headshotdamage" } att.Desc_Cons = { } att.AutoStats = true att.Slot = "halo_passive" att.Hook_BulletHit =...
require "Math" local Object = require "Object" local Physics = require "Physics" GameObject = { -- Draw Variables -- sprite = nil, color = {255, 255, 255, 255}, -- Physics Variables -- collisions = 0, bounciness = -0.9, rigidBody = Physics.NONE, scaleX = scaleX or 1, scaleY = scaleY or...