content
stringlengths
5
1.05M
{{/* Extremely simple and consise counting system. Recommended trigger: Regex trigger with `.*` trigger limited to your counting channel. */}} {{ deleteResponse 2 }} {{ $input := toInt .Message.Content }} {{ $current := dbIncr 0 "counting" 1 | toInt }} {{ $lastCounter := "" }} {{ with dbGet 0 "lastCounter" }} {{ $...
--[[__ _ / _| __ _ ___ ___ _ __ _ _ _ __ ___| |__ | |_ / _` |/ __/ _ \ '_ \| | | | '_ \ / __| '_ \ | _| (_| | (_| __/ |_) | |_| | | | | (__| | | | |_| \__,_|\___\___| .__/ \__,_|_| |_|\___|_| |_| |_| 2012 --]] local ActiveVideo = nil VideoSettings = nil ...
-- make changes here local config = { SEND_KEY = "SHJKDGKASJDHSKLADG&@%&DSKLJAHLBDKBA<SBD", title = "RANDOM KILL LIST", webaddress = "http://rkl.semklauke.de" } local voteFrame = {} local function sendTraitorVote(vote) if type(vote) == "boolean" then net.Start("RKL_TraitorVoted") net....
-- VARIABLES =================================================================== local areaOfEffect = 5 local areaCollider = nil origKDmg = 0 origDmgM = 0 origDmgR = 0 origIntAtk = 1.0 -- FUNCTIONS =================================================================== function Constru...
--[=[ @class GameConfigCommandServiceClient ]=] local require = require(script.Parent.loader).load(script) local GameConfigCmdrUtils = require("GameConfigCmdrUtils") local Maid = require("Maid") local RxStateStackUtils = require("RxStateStackUtils") local Rx = require("Rx") local GameConfigCommandServiceClient = {}...
-- Auto-generated code below aims at helping you parse -- the standard input according to the problem statement. -- --- -- Hint: You can use the debug stream to print initialTX and initialTY, if Thor seems not follow your orders. -- lightX: the X position of the light of power -- lightY: the Y position of the light of...
local lu = require 'luaunit' local headers = require 'http.headers' local Request = require 'tulip.pkg.server.Request' local Response = require 'tulip.pkg.server.Response' -- Stream mocks a lua-http Stream object for tests. local Stream = {__name = 'test.Stream', connection = {version = 1.1}} Stream.__index = Stream ...
local fileout = love.filesystem.newFile("programwalkout.txt","w") programwalk = {} local toPrint = false function programwalk.start(outputMode) if outputMode == "print" then toPrint = true end debug.sethook(lineDebugFunction , "l") end function programwalk.stop() debug.sethook() fileout:close() end local ...
-------------------------------------------------------------------------------- -- Init file for ESP8266 temperature sensor -- AUTHOR: Jakub Cabal <jakubcabal@gmail.com> -- LICENCE: The MIT License (MIT) -- WEBSITE: https://github.com/jakubcabal/esp8266_temp_sensor -----------------------------------------------------...
--[[ diagram-generator – create images and figures from code blocks. This Lua filter is used to create images with or without captions from code blocks. Currently PlantUML, GraphViz, Tikz, and Python can be processed. For further details, see README.md. Copyright: © 2018-2020 John MacFarlane <jgm@berkeley.edu>, ...
local configs = require 'lspconfig/configs' local util = require 'lspconfig/util' local server_name = "sqlls" local root_pattern = util.root_pattern(".sqllsrc.json") configs[server_name] = { default_config = { filetypes = {"sql", "mysql"}; root_dir = function(fname) return root_pattern(fname) or vim....
if CLIENT then return end ENT.Type = "brush" function ENT:Initialize() self:SetTrigger(true) self.Entities = {} end function ENT:IsTouchedBy(ent) return table.HasValue(self.Entities, ent) end function ENT:StartTouch(ent) if not self:PassesTriggerFilters(ent) then return end table.insert(self.Entities, ent) ...
local table = require "loop.table" local SortedMap = require "loop.collection.SortedMap" local freenode = { false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false...
function MainApp(root) dofile(root .. "objects/CommonFunctions.lua") dofile(root .. "objects/LoadPeripherals.lua") dofile(root .. "objects/Communicator.lua") dofile(root .. "GUI/GUIMessages.lua") dofile(root .. "controller/DataController.lua") dofile(root .. "programs/Configuration.lua") self ...
-- /home/jannis/Projekte/ReactorControl/reactor_control.lua TURBINE_DEFAULT_FLUID_CONSUMPTION = 2000 TURBINE_MINIMUM_RUNTIME = 1800 REACTOR_MAX_TEMPERATURE = 500 REACTOR_MAX_FLUID_STORED = 14000 REACTOR_WAIT_POWERUP = 15 REACTOR_JUMP_THRESHOLD = 500 REACTOR_JUMP_HEIGHT = 5 local modem = peripheral.wrap("bottom") mode...
function EFFECT:Init( data ) local TargetEntity = data:GetEntity() if ( !TargetEntity || !TargetEntity:IsValid() ) then return end self.Entity:SetModel(TargetEntity:GetModel()) self.Entity:SetPos(TargetEntity:GetPos()) self.Entity:SetAngles(TargetEntity:GetAngles()) self.AV=255 end /*----...
local playsession = { {"toddrofls", {539941}}, {"J-Put", {2580}}, {"rlidwka", {276780}}, {"TheLemur", {374892}}, {"liquidblue", {528196}}, {"HYPPS", {501484}}, {"Kamyk", {50257}}, {"Zymoran", {519141}}, {"facere", {470138}}, {"LeeFactor", {466659}}, {"paczcz", {443234}}, {"PogomanD", {333719}}, {"Mordalfus...
-- p is percentage running from 0 to 1 -- $e is exression from easing -- result is percentrage from 0 to 1 -- start easing at 80%, linear before -- log and research that flux.easing["quadout_edge"]=function(p) p = 1-p -- out -- linear first if p>0.2 then return 1-p end -- bug: this switch chages coor...
local function swap_gate_node(pos,name,dir) local node = core.get_node(pos) local meta = core.get_meta(pos) local meta0 = meta:to_table() node.name = name node.param2=dir core.set_node(pos,node) meta:from_table(meta0) end local function addGateNode(gateNodes, pos) gateNodes[#gateNodes+1] = vector.new(pos) end ...
----------------------------------------------------------------------------- -- Defines functions for searching Saci data. -- -- -- (c) 2007, 2008 Yuri Takhteyev (yuri@freewisdom.org) -- License: MIT/X, see http://sputnik.freewisdom.org/en/License ----------------------------------------------------------------------...
local class = require('class') local itemDB = require('itemDB') local Util = require('util') local device = _G.device local Adapter = class() function Adapter:init(args) if args.side then local inventory = device[args.side] if inventory then Util.merge(self, inventory) end end end functi...
----------------------------------- -- Ability: Activate -- Calls forth your automaton. -- Obtained: Puppetmaster Level 1 -- Recast Time: 0:20:00 (0:16:40 with full merits) -- Duration: Instant ----------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/glo...
script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.UI.Visible = not script.Parent.Parent.UI.Visible end)
AddCSLuaFile() AddCSLuaFile("sh_sounds.lua") include("sh_sounds.lua") SWEP.magType = "pistolMag" SWEP.PrintName = "Ruger Mk3" CustomizableWeaponry:registerAmmo(".22LR", ".22LR Rounds", 5.6, 15.6) if CLIENT then SWEP.DrawCrosshair = false SWEP.CSMuzzleFlashes = true SWEP.IconLetter = "y" killicon.Add( "khr_...
require("rrpg.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); function newfrmAMZ2_3_1() __o_rrpgObjs.beginObjectsLoading(); local obj = gui.fromHandle(_obj_newObject("form")); local self = obj; local s...
local config = require("sshfs.config") local M = {} M.commands = { getAllHosts = "cat $HOME/.ssh/config", getAllConnections = "mount -t fuse.sshfs", unmountFolder = function(path) return "fusermount -u " .. path end, mountHost = function(params) params.dflt_path = params.dflt_path or "/" --optinal arg para...
---------------------------- -- SSBase -- -- Created by Skeyler.com -- ---------------------------- include('shared.lua') language.Add("ent_smokegrenade", "Grenade") function ENT:Initialize() self.Bang = false end function ENT:Draw() self.Entity:DrawModel() end function ENT:Think() if (self.Ent...
local LrDialogs = import 'LrDialogs' require 'Category' require 'Base' Categories = Base:new({ categories = {} }) function Categories.convertCategories(node) categories = Categories:new() local count = node:childCount() for i = 1, count do Category.convertCategory( node:childAtIndex( i ), categories...
local _eosLoaded, _eos = pcall(require, "eli.os.extra") local _util = require "eli.util" local _os = { ---#DES os.EOS --- ---@type boolean EOS = _eosLoaded } return _eosLoaded and _util.merge_tables(_os, _eos) or _os
SRL={{["Angles"]=Angle(0,0,0),["Position"]=Vector(-886.51391601563,54.708332061768,0.03125),["Class"]="pb_spawn"},{["Angles"]=Angle(0,0,0),["Position"]=Vector(112.20214080811,284.85668945313,160.03125),["Class"]="prop_blocker"},{["Angles"]=Angle(0,0,0),["Position"]=Vector(76.758613586426,284.42376708984,160.03125),["Cl...
philosopherConvoTemplate = ConvoTemplate:new { initialScreen = "init", templateType = "Lua", luaClassHandler = "philosopherConvoHandler", screens = {} } init = ConvoScreen:new { id = "init", leftDialog = "", -- Determined and set by convo handler stopConversation = "true", options = {} } philosopherConvoTempla...
---@class LuaTimedAction : zombie.characters.CharacterTimedActions.LuaTimedAction ---@field _table KahluaTable ---@field public statObj Object[] LuaTimedAction = {} ---Overrides: --- ---update in class BaseAction ---@public ---@return void function LuaTimedAction:update() end ---Overrides: --- ---start in class BaseA...
if tostring(game.RobloxReplicatedStorage.GetServerVersion:InvokeServer()) == "0.395.0.324413" then loadstring(game:HttpGet("https://pastebin.com/raw/Mjryt8Mm"))() else warn("Patched") end
-- Functions: ------------------------------------------------------- function model.readInfo() -- Read all the data stored in the model local data=sim.readCustomDataBlock(model.handle,model.tagName) if data then data=sim.unpackTable(data) else data={} end -- All the data store...
local fs = require('foundation.fs').fs function entries(path) end return { entries = entries }
local lfs = require 'lfs' local cjson = require 'cjson.safe' local app_port = require 'app.port' local app_base = require 'app.base' local pair_serial = require 'pair_test.serial' local pair_ms = require 'pair_test.master_slave' local pair_pp = require 'pair_test.ping_pong' --- 注册对象(请尽量使用唯一的标识字符串) local app = app_base...
return { _type_ = 'DesignDrawing', id = 1110020011, learn_component_id = { 1020609024, }, }
CAMI.RegisterPrivilege({ Name = "Helix - Ability to set needs", MinAccess = "admin" }) properties.Add("ixSetPrimaryNeeds.Nourishment", { MenuLabel = "#Set Nourishment", Order = 450, MenuIcon = "icon16/cake.png", Filter = function(self, entity, client) return CAMI.PlayerHasAccess(client, "Helix - Ability to s...
dofile("./common.lua") dofile("./cel-tools.lua") dofile("./layer-tools.lua") function init(plugin) -- if app.version <= Version("1.2.0") then -- return -- end ------------------------------------------------------------------------------ -- Cels Popup Menu ------------------------...
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*- -- vim: ts=4 sw=4 ft=lua noet --------------------------------------------------------------------- -- @author Daniel Barney <daniel@pagodabox.com> -- @copyright 2014, Pagoda Box, Inc. -- @doc -- -- @end -- Created : 20 Nov 2014 by Daniel Barney...
--- A sample program that uses the scheduler to do stuff. --require "strict" --look for packages one folder up. package.path = package.path .. ";;;../../?.lua;../../?/init.lua" local lumen = require 'lumen' local sched = lumen.sched local selector = require 'lumen.tasks.selector'.init({service='nixio'}) local proxy =...
local defs = require("usb_defs") local format = string.format local function hex2(v) return format("0x%02x", v) end local function hex4(v) return format("0x%04x", v) end --============================================ local function errorDescStr(d, ix) local t = {} t[#t + 1] = "S" t[#t + 1] = format("Undeciphe...
require'nvim-treesitter.configs'.setup { ensure_installed = "maintained", sync_install = true, highlight = { enable = true }, incremental_selection = { enable = true }, textobjects = { enbale = true } }
--[[ Copyright (c) 2009-2016, Hendrik "Nevcairiel" Leppkes < h.leppkes@gmail.com > All rights reserved. ]] local Mapster = LibStub("AceAddon-3.0"):GetAddon("Mapster") local L = LibStub("AceLocale-3.0"):GetLocale("Mapster") local MODNAME = "GroupIcons" local GroupIcons = Mapster:NewModule(MODNAME, "AceEvent-3...
SEND_BANKRUPT_CONFIG = 0x0005; --获取破产数据信息 RESPONSE_BANKRUPT_CONFIG = 0x0006; --回复用户破产数据信息请求 SEND_BANKRUPT_MONEY = 0x0009; --用户请求破产 RESPONSE_BANKRUPT_MONEY = 0x0010; --返回用户破产请求 SEND_BANKRUPT_COUNT = 0x0015; --用户请求获取破产次数 RESPONSE_BANKRUPT_COUNT = 0x0016; --返回用户破产次数
--[[ Name: "cl_locker.lua". Product: "HL2 RP". --]] local PANEL = {}; -- Called when the panel is initialized. function PANEL:Init() self:SetTitle("Locker"); self:SetBackgroundBlur(true); self:SetDeleteOnClose(false); -- Called when the button is clicked. function self.btnClose.DoClick(button) self:Close(); ...
-- A float-valued setting with optional upper and lower bounds. local Float = require('settings.Raw'):subclass { min = -math.huge; max = -math.huge; } function Float:set(val) val = tonumber(val) if not val then return end self.value = val:bound(self.min, self.max) return self.value end return Float
#!/usr/bin/env tarantool box.cfg { listen = os.getenv('TARANTOOL_PORT') } box.schema.user.create(os.getenv('TARANTOOL_USER_NAME'), { password = os.getenv('TARANTOOL_USER_PASSWORD'), if_not_exists = true }) box.schema.user.grant(os.getenv('TARANTOOL_USER_NAME'), 'read,write,execute', 'universe', nil, { if...
return { talon_clone_lab = { acceleration = 0, brakerate = 0, buildangle = 1024, buildcostenergy = 1050, buildcostmetal = 485, builder = true, buildinggrounddecaldecayspeed = 3000, buildinggrounddecalsizex = 5, buildinggrounddecalsizey = 4, buildinggrounddecaltype = "talon_clone_lab_aopla...
loadstring([[ --~transiate~-- for i,v in next,workspace:children''do if(v:IsA'BasePart')then me=v; bbg=Instance.new('BillboardGui',me); bbg.Name='stuf'; bbg.Adornee=me; bbg.Size=UDim2.new(2.5,0,2.5,0) --bbg.StudsOffset=Vector3.new(0,2,0) tlb=Instance.new'TextLabel'; tlb.Text='666 666 6...
CompMod:ChangeTech(kTechId.BuildTunnelEntryOne, {[kTechDataMaxExtents] = Vector(1.2, 0.3, 1.2)}) CompMod:ChangeTech(kTechId.BuildTunnelEntryTwo, {[kTechDataMaxExtents] = Vector(1.2, 0.3, 1.2)}) CompMod:ChangeTech(kTechId.BuildTunnelEntryThree, {[kTechDataMaxExtents] = Vector(1.2, 0.3, 1.2)}) CompMod:ChangeTech(kTechId....
-- Copyright (c) Sony Computer Entertainment America LLC. -- All rights Reserved. -- -- Dependencies -- include "lua-5.1.4.lua" -- -- Premake build script for the lua 5.1.4 library -- sdk_project "lua-5.1.4_compiler" sdk_build_location ".." sdk_kind "ConsoleApp" configurations { sdk.DEBUG, sdk.RELEASE } platf...
super = require("puremvc.patterns.mediator.Mediator") ---@class Framework.core.mvc.GameMediator:Mediator GameMediator = class("Framework.core.mvc.GameMediator", super) GameMediator.NAME = "" function GameMediator:ctor() self.class.NAME = self.__cname super.ctor(self, self.__cname) end function GameMediator:sh...
require 'animation' local imageFile local frames = { bike = { side = 44, up = 144, down = 119 }, biking = { side = 169, up = 19, down = 194 }, stand = { side = 218, up = 94, down = 69 }, walk = { side = 293, ...
set = {1, 1, 2, 2, 2, 2, 5, 5, 5, 5} fact = lib.math.random_shuffle(set) jimenilac = 1 for i = 1,4 do jimenilac = jimenilac * fact[i] end if (jimenilac == 10 or jimenilac == 100) then jimenilac = jimenilac * 2 end if (jimenilac < 50) then jbrojilac = jimenilac + math.random(50 - jimenilac) else j...
local Serialization = {} --# Constants local MODULE_FORMAT = [[ -- This is an automatically generated Lua module. Take care when editing it. return %s ]] local TABLE_FORMAT = [[ { %s %s}]] local TABLE_ITEM_FORMAT = '%s%s = %s,' local INDENT_PREFIX = ' ' local KEY_TYPE_ERROR = 'unsupported key type %q' local SCHE...
local gc = Var "GameCommand"; local string_name = gc:GetText(); local string_expl = THEME:GetString(Var "LoadingScreen", gc:GetName() .. "Explanation"); local ColorTable = LoadModule("Theme.Colors.lua")( LoadModule("Config.Load.lua")("SoundwavesSubTheme","Save/OutFoxPrefs.ini") ); return Def.ActorFrame { GainFocusComm...
local host = arg[1] or '127.0.0.1' local port = arg[2] or 514 local InitWriter = [[ return require 'log.writer.list'.new( require 'log.writer.console'.new() ,require 'log.writer.net.udp'.new('%{udp_cnn_host}', %{udp_cnn_port}) ,require 'log.writer.net.zmq'.new('%{zmq_cnn_host}') ) ]] local...
local map = {} local tick_timer = 0 local tick_timer_max = 2 map.effect = false if map.effect then map.back = 0.9 map.front = 0.2 else map.back = 1 map.front = 1 end function map.load() map.map = {} for y=1, 25 do if not map.map[y] then map.map[y] = {} end for x=1, 40 do local char = " "...
slot0 = class("BackyardFurnitureVO") slot0.FLOOR = 1 slot0.WALL_DIR_ALL = 2 slot0.WALL_DIR_RIGHT = 4 slot0.WALL_DIR_LEFT = 3 slot0.INTERACTION_LOOP_TYPE_ALL = 1 slot0.INTERACTION_LOOP_TYPE_LAST_ONE = 2 slot0.getWallDir = function (slot0) if slot0.y - slot0.x >= 1 then return BackYardConst.BACKYARD_WALL_DIR_LEFT el...
slot0 = class("WSAtlasBottom", import("...BaseEntity")) slot0.Fields = { rtBg = "userdata", transform = "userdata", btnBoss = "userdata", btnOverview = "userdata", btnCollection = "userdata", rtButton = "userdata", wsTimer = "table", comSilder = "userdata", twId = "number", btnShop = "userdata" } slot0.EventU...
#!/opt/local/bin/lua local xml_ast = [=[<?xml version="1.0" encoding="UTF-8"?> <ns1:basic_ast xmlns:ns1="http://test_example.com">hello world</ns1:basic_ast>]=] mhf = require("schema_processor") basic_ast = mhf:get_message_handler("basic_ast", "http://test_example.com"); local content, msg = basic_ast:from_xml(xml_...
local t = Def.ActorFrame{}; local title = "NO!"; local SubTitle; local Artist; local charter={}; local BPM={"???","???"}; local Time; local CEN; if GAMESTATE:IsCourseMode() then CEN = GAMESTATE:GetCurrentCourse():GetCourseEntries() end title = GAMESTATE:IsCourseMode() and GAMESTATE:GetCurrentCourse():GetDisplayFullTi...
data:extend({ { type = "string-setting", setting_type = "runtime-per-user", default_value = "red-green", name = "wire-box-tool-mode", allowed_values = { "red-green", "red-only", "green-only" }, } })
--[[ Name: mailtruck.lua For: TalosLife By: TalosLife ]]-- local Job = {} Job.ID = 7 Job.Enum = "JOB_MAIL" Job.TeamColor = Color( 255, 100, 160, 255 ) Job.Name = "Carteiro" Job.Cat = "Civis" Job.Text = [[TEste de 1 linha teste de 2 linhas teste de 3 linhas TEste de 1 linha teste de 2 linhas teste de 3 linhas ...
function vRP.admin_coords(user_id) if user_id and vRP.hasPermission(user_id, permissions.player.coords) then return vRPclient.getPosition(user_id) end end function vRP.admin_kick(user_id, target_id, reason) if user_id and vRP.hasPermission(parseInt(user_id), permissions.player.kick) then lo...
local option = { } local blips = { } local vehicleData = { } local sx, sy = guiGetScreenSize ( ) local rSX, rSY = sx / 1280, sx / 1024 local Vehicles = guiCreateWindow( (sx-(rSX*470))-5, (sy-(rSY*260))-5, rSX*466, rSY*260, "Vehicles", false) local cars = guiCreateGridList((rSX*11), (rSY*28), (rSX*274), (rSY*220), false...
require 'Scripts/premake-config' settings = { } settings.workspace_name = 'Razix' settings.bundle_identifier = 'com.Pikachuxxx' outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- Current root directory where the global premake file is located root_dir = os.getcwd() -- Using the command line to get...
-- Author: Neel Basak -- Github: https:/github.com/Neelfrost -- File: init.lua -- Colorscheme SCHEME = "nightlamp" -- Language servers SERVERS = { "pyright", "sumneko_lua", "omnisharp", "html", "cssls", "eslint", "emmet_ls" } -- Treesitter parsers PARSERS = { "comment", "python", "lua", "c_sharp", "html", "css", "ja...
local nativeutils = {} -- helpers for native rust libraries local accesslog = require "lua.accesslog" local log_request = accesslog.envoy_log_request local cjson = require "cjson" function nativeutils.trim(s) return (string.gsub(s, "^%s*(.-)%s*$", "%1")) end function nativeutils.startswith(str, arg) i...
-- Shared GUI components for any interfaces (Concert and Androad) local draw = require("OCX/OCDraw") local width, height = require("driver").gpu.getResolution() local lib = {} function lib.getWidth() return width end function lib.getHeight() return height end function lib.lerp(t, a, b) return t * b + (1 - t) * a...
natures_bloom = { cast = function(player) local aethers = 625000 local magicCost = 200 if (not player:canCast(1, 1, 0)) then return end if player.magic < magicCost then player:sendMinitext("Your will is too weak.") return end player:sendAction(6, 25) player.magic = player.magic - magicCost ...
-------------------------------- -- @module RelativeBox -- @extend Layout -- @parent_module ccui -------------------------------- -- @overload self, size_table -- @overload self -- @function [parent=#RelativeBox] create -- @param self -- @param #size_table size -- @return RelativeBox#RelativeBox ret...
<<<<<<< HEAD ---------------------------------------------------------------------------------------- --five.lua Creates object shaped like the number 5 ---------------------------------------------------------------------------------------- local five = { object = nil, originalColor = { Red = 0, Green = 0, Bl...
local _SYS = {} -- ERRORS: local er = require('lib/error') _SYS = er.errify(_SYS, { ['E_CORE_PIDNOEXIST'] = 'No such PID', ['E_CORE_NOACTORS'] = 'All actors have halted', ['E_CORE_NOPIDS'] = 'PID count exhausted', }) -- Host constants: _SYS.HOST_OC = "OpenComputers" _SYS.HOST_CC = "Com...
local helper = require("thetto.lib.testlib.helper") describe("git/status source", function() before_each(helper.before_each) after_each(helper.after_each) it("can show status files", function() helper.new_file("test_file") helper.sync_open("git/status", {opts = {insert = false}}) assert.exists_pa...
return require("lapis.db.postgres.model")
--[[ MIT License Copyright (c) 2019 SotADB.info 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, publish, ...
 distraction = { link = sprite('zeldal.png'), enemy = sprite('zeldae.png'), } function distraction:reset() self.y = math.random(50, 800); self.fear = nil end function distraction:draw(time) local origtime = time; time = math.floor(time * 5); local x = -100 + time*50 local i = (time) % 4 local pos = { 0,...
-- -- 用于在 Windows 系统下安装 Node.lua 运行环境,包括可执行文件及相关的 Lua 模块 -- Install the Node.lua runtime environment. -- Include executables and related Lua module. -- local luv = require('luv') local lutils = require('lutils') local function updatePackagePath() local cwd = luv.cwd() local path = package.path path = path .. '...
local beautiful = require("beautiful") local textbox = require("wibox.widget.textbox") local underline = require("widgets.underline") local brightness_daemon = require("daemons.brightness") local signal_name = brightness_daemon.signal_name local brightness = {} local function new(args) local color = beautiful.w...
-- Gets a msgpacked root and returns it as JSON local mp = redis.call('GET', KEYS[1]) local v = cmsgpack.unpack(mp) local js = cjson.encode(v) return js
local WORLD_WG = "Wintergrasp" local WORLD_TB = "Tol Barad" local BG_BFG = "The Battle for Gilneas" local BG_TP = "Twin Peaks" local BG_AB = "Arathi Basin" local BG_WG = "Warsong Gulch" local BG_WGA = "Silverwing Hold" local BG_WGH = "Warsong Lumber Mill" local BG_EOTS = "Eye of the Storm" local BG_AV = "Alterac Valley...
#!/usr/local/bin/lua site={}; site["key"] = "www.lua.org"; print(site["key"]); print(site.key); print(site[1]);
local modpath = minetest.get_modpath("mcl_small_3d_plants") -- -- 3D Carrots -- for i=1, 7 do local texture, sel_height if i < 3 then sel_height1 = -0.4375 texture = "farming_carrot_1.png" texture1 = "mcl_small_3d_plants_carrot_1.png" elseif i < 5 then sel_height1 = -0.375 texture = "farming_carrot_2.png...
--[[ ========================================================================== Teleport.lua ========================================================================== ]]-- local _G = _G local AddOnName, _ = ... local AddOn = _G[AddOnName] -- Libs --local LibStub = _G.LibStub --local L = LibStub("AceLocale-3.0"):G...
require "util" -- Belts lanes have 4 slots: yellow 36 ticks, red 18 ticks, blue 12 ticks -- Ticks to clear a slot 9, 4.5, 3 -- Splitters/underground 2 slots: need twice the tick rate -- Red splitter/underground do some magic -- cuase technically they should have a gap -- Should take 9 ticks for 2 items to clear...
local PlayerStorage = require(game:GetService("ServerScriptService").Server:WaitForChild("PlayerStorage")) local GuiSystem = require(game:GetService("ServerScriptService").Server:WaitForChild("GuiSystem")) local CregicalSystem = require(game:GetService("ServerScriptService").Server:WaitForChild("CregicalSystem")) -- De...
if #arg == 0 then io.write[[ Creates a Makefile to build the DDLParser library as well as a test, template based code generator. Usage: lua createmk.lua <platform> [ -I path ]... [ -L path ]... Where <platform> can be mingw, linux, msvc-x86 or msvc-x64. If your Lua and AStyle development files are not in th...
--[[ chaos in a leaking faucet time between drips is modeled with a logistic map --]] require "include/protoplug" t = 0 r = 1 speed = 1 state = 0.1 interval = 0 function plugin.processBlock(s, smax) for i = 0,smax do local out = 0 t = t + 1 if(t > interval) then t = t - inter...
local function lprint(...) local str = "" for i = 1, select("#", ...) do local c = select(i, ...) if c == "" then c = "#" end if i == 1 then str = c else str = str .. " " .. c end end debug_print(str) return str end local function ltype(...) local str = "" for i = 1, select("#", ...) do if i =...
META="Mod4+" ALTMETA="" ioncore.set{ dblclick_delay=250, kbresize_delay=15000, } ioncore.set{ opaque_resize=true, warp=true } dopath("cfg_defaults") dopath("cfg_notioncore") dopath("cfg_kludges") dopath("cfg_layouts") ioncore.defshortening("[^:]+: (.*)(<[0-9]+>)", "$1$2$|$1$<...$2") dopath("mod_query") ...
Locales['es'] = { ['invoices'] = 'Facturas', ['invoices_item'] = '%s$', ['received_invoice'] = 'Has ~r~recibido~s~ una multa', ['paid_invoice'] = 'Has ~g~pagado~s~ una multa de ~r~%s$~s~', ['no_invoices'] = 'No tienes ninguna factura para pagar en este momento', ['received_payment'] = 'Has ~g~recibido~s~ un...
local addon, ns = ... local cfg = ns.cfg if not cfg.embeds.rChat then return end FloatingChatFrame_OnMouseScroll = function(self, dir) if(dir > 0) then if(IsShiftKeyDown()) then self:ScrollToTop() else self:ScrollUp() end else if(IsShiftKeyDown()) then self:ScrollToBottom() els...
--[[ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: 20220523 Generated by: https://openapi-generator.tech ]] --[[ Unit tests for openapiclient.api.contest_effect_api Automatically generated by openapi-generator (...
function foo(a,b,c) return a,b,c end function bar(a, ...) print(a); return ... end local x,y,z = bar("aaaa",foo()) print(x,y,z)
local spawnPositions = { {1284.7861328125,-781.845703125,1084.0078125,89.691009521484}, {1263.892578125,-769.5361328125,1084.0078125,85.933624267578}, {1249.8505859375,-788.9677734375,1084.0078125,183.69694519043}, {1265.8759765625,-795.158203125,1084.0078125,355.23461914062}, {1283.2607421875,-788.9775390625,1084.0148...
local K, C, L, _ = select(2, ...):unpack() if C.Tooltip.Enable ~= true or C.Tooltip.ArenaExperience ~= true then return end local _G = _G local format = string.format local pairs, tonumber = pairs, tonumber local select = select local CreateFrame = CreateFrame local InCombatLockdown = InCombatLockdown local Achieveme...
--(Luc Bloom) http://lua-users.org/wiki/SimpleRound ---@param v number ---@return number function math.sign(v) return (v >= 0 and 1) or -1 end --(Luc Bloom) http://lua-users.org/wiki/SimpleRound ---@overload fun(v:number):number ---@param v number ---@param bracket number ---@return number function math.round(v, b...
---@generic K ---@param a K ---@param b table<K, K> ---@return K function globalFunction(a, b) ---@type K local genericTypedVar = a return genericTypedVar end ---@generic K ---@param a K ---@param b table<K, K> ---@return K local function localFunction(a, b) ---@type K local genericTypedVar = a ...