content
stringlengths
5
1.05M
class = {} -- Stores all classes by function, for creating their objects or deriving from them. Calls to a class ctor DONT take args. Change values with the setters/getters after localizing the object call. If you want to derive a class, just make a class like normal, but after you pass a table, pass it the class nam...
name = 'cool-test-project' lua = '5.3.2' dependencies = { 'lua == 5.3', 'chain == 1.0-1' } dev_dependencies = { 'mach >= 4.4-1', 'busted >= 2.0.rc11-0' } scripts = { test = 'busted', demo = [[lua -e "require 'src.test'(print)"]] }
--------------------------------------------- -- Healing Ruby --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/msg") --------------------------------------------- function onAbilityChec...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local packet = require("core.packet") local lib = require("core.lib") local counter = require("core.counter") local siphash = require("lib.hash.siphash") local metadata = require("apps.rss.metadata") lo...
local uv = require 'couv' local exports = {} exports['timer'] = function(test) local onceCbCalled = 0 function onceCb(handle) print(string.format("ONCE_CB %d", onceCbCalled)) test.ok(handle) test.ok(not handle:isActive()) onceCbCalled = onceCbCalled + 1 handle:close() end local repeat1Cb...
TUTORIALS['en'][#TUTORIALS['en'] + 1] = { name = "Console", contents = { {type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/chat_window.png"}, {type = CONTENT_TYPES.TEXT, value = "1 - Chat Channels - Here you will find the communication channels to which you are connected\n\n2 - Message Box ...
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmNovoPersonagem() local obj = GUI.fromHandle(_obj_newOb...
local ff = {} -- from https://github.com/rrthomas/lua-stdlib/blob/origin/src/lcs.lua --- Longest Common Subsequence algorithm. -- After pseudo-code in <a -- href="http://www.ics.uci.edu/~eppstein/161/960229.html">lecture -- notes</a> by <a href="mailto:eppstein@ics.uci.edu">David Eppstein</a>. -- Find common subseq...
local image = ImageView() -- 这个图片的路径就在文件夹image中 image:setImageUrl("file://image/auxiliary.png") image:width(48) image:height(48) image:setGravity(Gravity.CENTER) window:addView(image)
-- -- Copyright 2017 Alibaba Group -- License: MIT -- Website: https://alibaba.github.io/LuaViewSDK -- User: tuoli -- Date: 17/4/5 -- Navigation:title("GitHub详情") local meta = object:new() function meta:onCreate(args) self.web = WebView() self.web:frame(0, 0, sys.contW, sys.contH) self.web:loadUrl(args.u...
project "googletest" kind "StaticLib" language "C++" targetdir "%{prj.location}/%{cfg.buildcfg}_%{cfg.architecture}" includedirs { "../../../external_dependencies/googletest/googletest/include", "../../../external_dependencies/googletest/googletest", } files { ...
--[[ ########################################################## S V U I By: Munglunch ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select ...
return {'hongaar','hongaars','hongaarse','hongaarstalig','hongarije','hongerwinter','hongkong','hongkonger','hongkongs','hond','hondenasiel','hondenbaan','hondenbeet','hondenbelasting','hondenbezitter','hondenbrokken','hondenbrood','hondenclub','hondendokter','hondendrol','hondenfluitje','hondenfokker','hondengeblaf','...
require("bigJayB.PlaceSwap.mcm") local config = require("bigJayB.PlaceSwap.config") -- swap positions with npcs. local function swapPcs(ref) -- gets player current cell local current_cell = tes3.getPlayerCell() -- get copy of the player's position local player_pos = tes3.mobilePlayer.position:copy() -- get copy o...
-- Item bags local bags = {} bags[0] = {english = 'Inventory', access = 'Everywhere'} bags[1] = {english = 'Safe', access = 'Mog House'} bags[2] = {english = 'Storage', access = 'Mog House'} bags[3] = {english = 'Temporary', access = 'Situational'} bags[4] = {english = 'Locker', access = 'Mog House...
-- made by Morten and CapsAdmin pac.webaudio = pac.webaudio or {} local webaudio = pac.webaudio webaudio.Streams = webaudio.Streams or {} webaudio.Streams.LastStreamId = 0 webaudio.Streams.Streams = {} function webaudio.Streams.CreateStream(url) --url = url:gsub("http[s?]://", "http://") if not url:find("ht...
--[[ Wrapper around a single network. ]] local Network, parent = torch.class('onmt.Network', 'nn.Container') function Network:__init(net) parent.__init(self) self.net = net self:add(net) end function Network:set(net) self.modules = { net } self.net = net end function Network:updateOutput(input) self.outp...
local oop = require("diffview.oop") local M = {} ---@class Event ---@class EEvent ---@field FILES_STAGED Event local Event = oop.enum({ "FILES_STAGED", }) ---@class EventEmitter ---@field listeners table<Event, function[]> local EventEmitter = oop.Object EventEmitter = oop.create_class("EventEmitter") ---EventEm...
local Object = require "core.object" local Highlighter = require "core.doc.highlighter" local core = require "core" local syntax = require "core.syntax" local config = require "core.config" local common = require "core.common" local Doc = Object:extend() local function split_lines(text) local res = {} for line ...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "Approved Milk"; ITEM.model = "models/props_junk/garbage_milkcarton002a.mdl"; ITEM.width = 1; ITEM.height = 2; ITEM.description = "A large carton of well-sealed full-cream cow's milk."; ITEM.category = "Ci...
local extMetatable = { __index = Ext, __newindex = function (t, k, v) if k == "GetHitChance" or k == "StatusGetEnterChance" then Ext.RegisterListener(k, v) Ext.PrintError("Setting Ext." .. k .. " is deprecated") else Ext.PrintError("Couldn't set Ext." .. k .. ": Please avoid extending the Ext ta...
local Server = require('server') local Engine = require('../') local http_stack_layers http_stack_layers = function() return { Server.use('route')({ { 'GET /$', function(self, nxt) return self:render('public/index.html', self.req.context) end } }), Engine('/e...
require("cfg.lsp") require("cfg.signs") require("cfg.line") require("cfg.telescope")
function getResourceHandlingList ( resource ) resource = validateResourcePointer ( resource ) if not resource then if DEBUGMODE then error ( "Invalid resource at getResourceHandlingList!", 2 ) end return false end return list end function saveHandlingToResource...
---- -- Tests for the xlsxwriter.lua xml writer class. -- -- Copyright 2014-2015, John McNamara, jmcnamara@cpan.org -- require "Test.More" local utility = require "xlsxwriter.utility" local expected local got local caption local color plan(4) ---- -- Test color conversions. -- color = 'blue' caption = string.fo...
require "autodeconstruct" function msg_all(message) if message[1] == "autodeconstruct-debug" then table.insert(message, 2, debug.getinfo(2).name) end for _,p in pairs(game.players) do p.print(message) end end global.debug = false remote.add_interface("ad", { debug = function() global.debug = not...
local stub = require("luassert.stub") describe("config", function() local c = require("null-ls.config") local register = stub(require("null-ls.sources"), "register") local reset = stub(require("null-ls.sources"), "reset") after_each(function() register:clear() reset:clear() c...
description = [[ Attempts to exploit a remote command execution vulnerability in misconfigured Dovecot/Exim mail servers. It is important to note that the mail server will not return the output of the command. The mail server also wont allow space characters but they can be replaced with "${IFS}". Commands can also b...
local factory = require 'factories.lt_factory' return factory.createLevelApi{mapName = 'lt_horseshoe_color', color = true}
local FriendList = { Name = "FriendList", Type = "System", Namespace = "C_FriendList", Functions = { { Name = "AddFriend", Type = "Function", Arguments = { { Name = "name", Type = "string", Nilable = false }, { Name = "notes", Type = "string", Nilable = true }, }, }, { Name = "Add...
registerNpc(346, { walk_speed = 200, run_speed = 700, scale = 140, r_weapon = 1064, l_weapon = 0, level = 95, hp = 27, attack = 399, hit = 213, def = 301, res = 346, avoid...
local mpv_scripts_dir_path = os.getenv("HOME") .. "/.config/mpv/scripts/" function load(relative_path) dofile(mpv_scripts_dir_path .. relative_path) end load("mpvSockets/mpvSockets.lua")
local omar = 1 if true then print (omar) end print(225/2)
-- Petit script pour démarrer le mode configuration WIFI du NodeMCU print("\n wifi_cnf_start.lua zf180824.2000 \n") print("\nwifi config http://192.168.4.1\n") dofile("wifi_get_ip.lua") enduser_setup.start()
--[[ local lspconfig = require("lspconfig")
local event = require('cmp.utils.event') local autocmd = require('cmp.utils.autocmd') local feedkeys = require('cmp.utils.feedkeys') local config = require('cmp.config') local types = require('cmp.types') local keymap = require('cmp.utils.keymap') local misc = require('cmp.utils.misc') local api = require('cmp.utils.ap...
return Def.Quad{ InitCommand=cmd(Center;FullScreen;diffuse,color("0,0,0,0");); OnCommand=cmd(linear,0.3;diffusealpha,0.75); };
local math2d = require("math2d") local BulletBase = class("BulletBase") BulletBase.FLAG_NORMAL = 0 BulletBase.FLAG_FROM_SKILL = 1 function BulletBase:ctor(source, target, sprite, delay) self.source_ = source self.target_ = target self.sprite_ = sprite self.delay_ = checknumber(delay) ...
-- load lualine and plenary vim.api.nvim_exec([[ set rtp+=. set rtp+=../plenary.nvim ]], false)
-- Keybase Name reSolver example -- -- WireHub can assign names to peers through a private network configuration -- file. It does not provide any native decentralized name resolver to find the -- key of a peer given its name. This is considered out of the scope of WireHub, -- as many solutions exist and depend on the r...
require 'image' require 'nn' function originalToNormalized(s) local prune = false if s:size(1) == 37 then local t = torch.zeros(38) t[{{2,38}}] = s s = t prune = true end o = s:clone() -- class 1 (already normalized) local sum = s[2] + s[3] + s[4] if math.abs(sum - 1.0) > ...
function Save(level, health, lives) file = io.open("save.lua", "w") file:write("return { \n") file:write("\tlevel = ", level, ",", "\n") file:write("\thealth = ", health, ",", "\n") file:write("\tlives = ", lives, "\n") file:write("}") file:close() end Save(20, 10, 2) --[[gameData = require("save") print("Loade...
CaerdonConsumable = {} CaerdonConsumableMixin = {} --[[static]] function CaerdonConsumable:CreateFromCaerdonItem(caerdonItem) if type(caerdonItem) ~= "table" or not caerdonItem.GetCaerdonItemType then error("Usage: CaerdonConsumable:CreateFromCaerdonItem(caerdonItem)", 2) end local itemType = CreateFromMixins...
local fs = require('fs') local pathjoin = require('pathjoin') local stat = fs.statSync local pathJoin = pathjoin.pathJoin local isWindows = pathjoin.isWindows local FFMPEG local pre = isWindows and '' or './' local exe = isWindows and 'ffmpeg.exe' or 'ffmpeg' local sep = isWindows and ';' or ':' local function exist...
local utils = assert(require 'mistress.utils') local inspect = assert(require 'mistress.inspect') local _M = utils.module() _M.Connection = utils.Object:inherit() function _M.Connection:init () self.fd = nil self._finalizers = {} end function _M.Connection:add_finalizer (finalize) table.insert(self._finalizers, ...
local HTTP = {} function HTTP:urlhash(str) local strlen = #str local blocks = 4 local hash = "" local memblock = {} if strlen < blocks then blocks = 1 end local lastInc = 0 for i = 1, blocks do local pos = math.floor((i / blocks) * strlen) memblock[i] = util.C...
local ipairs = ipairs local pairs = pairs local type = type local require = require local pcall = pcall local string_lower = string.lower local lor = require("lor.index") local function load_plugin_api(plugin, api_router, store) local plugin_api_path = "orange.plugins." .. plugin .. ".api" local ok, plugin_ap...
include( "sh_ksm.lua" ) if SERVER then for k,v in pairs( KSM.Sounds ) do resource.AddSingleFile( "sound/"..tostring(v) ) end end hook.Add( "PlayerSpawn", "KillstreakModifierSpawn", function( ply ) ply.streak = 0 end ) hook.Add( "PlayerDeath", "KillstreakModifierDeath", function( vic, inf, ply ) if vic ...
local included = pcall(debug.getlocal, 4, 1) local T = require("test") local json = require("json") local expect = T.expect --# = json --# :toc: --# :toc-placement!: --# --# JSON encoding and decoding of Lua values. --# --# toc::[] --# --# == *json.encode*(_Any_) -> _String_ --# Encode value to JSON. --# --# === Argume...
solution "flare" configurations { "Debug", "Release" } configuration "Debug" flags { "Symbols" } dofile("flare.lua")
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { group = "Infopanel Sections", id = "ipSubsurfaceDeposit", PlaceObj('XTemplateTemplate', { '__context_of_kind', "SubsurfaceDeposit", '__template', "Infopanel", 'Description', T{7419, --[[XTemplate ipSubsurfaceDeposit Desc...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by wangman. --- DateTime: 2021/8/3 15:10 --- ---@class AMapDataType ---@field Normal number ---@field SlowDown number ---@field Block number AMapDataType = {} AMapDataType.Normal = 0 AMapDataType.Block = 1 AMapDataType.SlowDown = 2 ---@class AMapDat...
--------------------------------------------------------------------------- --- Dwindle and spiral layouts -- -- @author Uli Schlachter &lt;psychon@znc.in&gt; -- @copyright 2009 Uli Schlachter -- @copyright 2008 Julien Danjou -- -- @module awful.layout -------------------------------------------------------------------...
--[[ * 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 *...
--[[ "name": "fast-filter-fill", "title": "Fast Filter Fill", "author": "Keryja, SeaRyanC", "contact": "http://github.com/keryja/", "homepage": "https://mods.factorio.com/keryja/fast-filter-fill", "description": "Quickly duplicate filter settings in Cargo Wagons and other filterable containers",...
-- Displays detailed information about unit caps when the user mouses over the units menu dofilepath("data:ui/newui/Styles/HWRM_Style/HWRMDefines.lua") function RulesToClone(MyInteger, MyTextA, MyTextB) return { type = "Frame", name = "frmNameRules", autosize = 1, arrangetype = "horiz", ; -- Title to clo...
Cannon = Class { __includes=TargetedTower, init = function(self, gridOrigin, worldOrigin) self.towerType = "CANNON" TargetedTower.init(self, animationController:createInstance(self.towerType), gridOrigin, worldOrigin, constants.STRUCTURE.CANNON.WIDTH, constan...
local NRT = {} local sentosctable = {} function NRT:open(filepath) local file,err = io.open(filepath,"wb") self.file = file if not self.file then error(err) end self.filepath = filepath end function NRT:sendBundle(msg,time) assert(self.file) assert(time>=0) if not self.closed then local kSecondsToOSCunits = ...
local printf = function(fmt, ...) MsgN(string.format(fmt, ...)) end class = {} class.Registered = {} local function checkfield(tbl, key, def) tbl[key] = tbl[key] or def if not tbl[key] then error(string.format("The key %q was not found!", key), 3) end return tbl[key] end function class.Get...
local guideFashion = {} function guideFashion:Start() self:initData() self:initUi() end function guideFashion:initData() self.cfg = module.guideLayerModule.GetFashionCfg() self.quest = module.QuestModule.Get(self.cfg.finishQuest) end function guideFashion:initUi() self.view = CS.SGK.UIReference.S...
-------------------------------------------------------------------------------- -- 81-707 controller panel -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See license.txt for additional...
--- -- FDMM MOOSE Additions Module. -- @module FDMM_MOOSEAdditions env.info("---FDMM_MOOSEAdditions Start---") assert(routines, 'MOOSE not initialized.') do -- FDMM_MOOSEAdditions --- Distance between two points (2 dimensional). -- Gets distance in meters squared between two points in 2 dimensions (no altitude)....
--|————————————————————————————————————————————————————————————————————————————————————————| --| DESCRIPTION --|————————————————————————————————————————————————————————————————————————————————————————| -- Contributors: RiftTalon --[[ Runs the entire minimap system. --]] --|———————————————————————————————————————————...
local alpha = require("alpha") local dashboard = require("alpha.themes.dashboard") local function footer() local version = vim.version() local print_version = "v" .. version.major .. "." .. version.minor .. "." .. version.patch local datetime = os.date("%Y/%m/%d %H:%M:%S") return print_version .. ' ' .. datet...
--[[ TheNexusAvenger Loads the game commands and types. --]] local ServerScriptService = game:GetService("ServerScriptService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local NexusAdminAPI = require(ServerScriptService:WaitForChild("NexusAdmin")) local NexusAdminTypes = ReplicatedStorage:WaitFo...
project "SOIL2" kind "StaticLib" language "C++" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bint/" .. outputdir .. "/%{prj.name}") files { "srcs/etc1_utils.c", "srcs/image_DXT.c", "srcs/image_helper.c", "srcs/SOIL2.c" } filter "system:windows...
-- Returns the greatest numeric key in a table. function xdecor.maxn(T) local n = 0 for k in pairs(T) do if k > n then n = k end end return n end -- Returns the length of an hash table. function xdecor.tablelen(T) local n = 0 for _ in pairs(T) do n = n + 1 end return n end -- Deep copy of a table. Borrowed f...
-------------------------------------------------------------------- -- This file was automatically generated by ProjectGenerator -- which is tooling part the build system designed for GUCEF -- (Galaxy Unlimited Framework) -- For the latest info, see http://www.VanvelzenSoftware.com/ -- -- The contents of this file...
workspace "OpenDireEngine" architecture "x64" configurations { "Debug", "Release" } startproject "OpenDireEngine" outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" IncludeDir = {} IncludeDir["GLFW"] = "OpenDireEngine/vendor/GLFW/include" IncludeDir["Glad"] = "OpenDireEngine/vendor/Glad/include" ...
Multishot_dbBlacklist = { [16803] = true, -- Naxxramas: DeathKnight Understudy (Razuvious "adds") [15930] = true, -- Naxxramas: Feugen (Thaddius pre-event) [15929] = true, -- Naxxramas: Stalagg (Thaddius pre-event) [32933] = true, -- Ulduar: Left Arm (Kologarn's arms) [32934] = true, -- Ulduar: Right Arm...
local ReflectionDatabase = require(script.Parent.ReflectionDatabase) local CanonicalProperty = require(script.Parent.CanonicalProperty) local patches = { Part = { Size = { type = {type = "data", name = "Vector3"}, tags = {}, canSave = true, canLoad = true, }, Color = { type = {type = "data", name...
function splitargs(args) local retval = {} local spat, epat, buf, quoted = [=[^(['"])]=], [=[(['"])$]=] for str in args:gmatch("%S+") do local squoted = str:match(spat) local equoted = str:match(epat) local escaped = str:match([=[(\*)['"]$]=]) if squoted and not quoted and not equoted then b...
--[[ # csv : utilities DARE, Copyright (c) 2017, Tim Menzies All rights reserved, BSD 3-Clause License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright not...
--[[ LuCI - Lua Configuration Interface - amule support Copyright 2016 maz-1 <ohmygod19993@gmail.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 ]]...
-- add tasks for _, taskpath in ipairs(os.dirs("*")) do -- add task local taskname = path.basename(taskpath) task(taskname) -- on run on_run(function () -- imports import("core.base.option") import("core.base.task") import("core.project.conf...
-- Copyright (c) 2021 wzhengsen -- 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, distr...
return LoadFont("Common Normal") .. { };
addEvent('onReceiveSMS',true) addEventHandler('onReceiveSMS',root, function (pMessage) local memoMessage = getPlayerName( source ) .." -> Me: ".. pMessage .."\n" local chatBoxMessage = "[PM FROM: ".. getPlayerName( source ) .. "]: "..pMessage if not ( exports.densettings:isPlayerBlacklisted(source) ) then -- if ...
local index = pages.addContent(PAGE_MUSIC, "Little Gremlin - EP", "little-gremlin") local page = pages.content[index] page.desc = "Little Gremlin is my first EP! Little Gremlin is about a city overrun by monsters. All the songs were written in a little under a year. I started the EP after my computer got a virus and I ...
require "behaviours/wander" require "behaviours/faceentity" require "behaviours/chaseandattack" require "behaviours/panic" require "behaviours/runaway" local MAX_CHASE_TIME = 6 local WANDER_DIST_DAY = 20 local WANDER_DIST_NIGHT = 5 local RUN_AWAY_DIST = 6 local STOP_RUN_AWAY_DIST = 12 local START_FACE_DIST = 14 loca...
-- Custom local META_EventsAPI = require(script:GetCustomProperty("META_EventsAPI")) local EventKey = script.parent:GetCustomProperty("Key") if not EventKey then warn("Script must be a child of an Event") return end -- Settings local ResourceName = script:GetCustomProperty("ResourceName") local Multiplier = ...
local out = "" function write(...) local arg = {...} for i, v in ipairs(arg) do out = out .. tostring(v) end end function item_count(node) local count = 0 for k, v in pairs(node) do count = count + 1 end return count end function traverse_table(node) write("{") loc...
local pdist = {} return pdist
require("mod-gui") function story_init_helpers(story) story.helpers = make_helpers(story) end function make_helpers(story) local helpers = {} helpers.story_points_by_name = {} helpers.story_branches = {} for story_index, data in pairs(story) do if (story_index ~= "update-functions") then helpers.s...
--!strict -- Symbol -- Stephen Leitnick -- December 27, 2020 --[[ symbol = Symbol.new(id: string [, scope: Symbol]) Symbol.Is(obj: any): boolean Symbol.IsInScope(obj: any, scope: Symbol): boolean --]] local CLASSNAME = "Symbol" local Symbol = {} Symbol.__index = Symbol function Symbol.new(id: any, scope: a...
local process = require("process") local shell = require("shell") local buffer = require("buffer") local command_result_as_code = require("sh").internal.command_result_as_code local pipe = {} local _root_co = assert(process.info(), "process metadata failed to load").data.coroutine_handler -- root can be a coroutine o...
local monster_config = {} return monster_config
-- This class derives from lib.bridge.base and implements a "learning -- bridge" using a Bloom filter (provided by lib.bloom_filter) to -- store the set of MAC source addresses of packets arriving on each -- port. -- -- Two Bloom storage cells called mac_table and mac_shadow are -- allocated for each port connected to ...
ngx.header["Content-Type"] = "application/json;charset=UTF-8" local cjson = require('cjson.safe') local jencode = cjson.encode local system_conf = require "config.init" local denycc_rate_conf = system_conf.denycc_rate_conf local ngxshared = ngx.shared local denycc_conf = ngxshared.denycc_conf local confi...
-- Copyright 2018 Sadkit local inertia = require("inertia") local picture = display.newRect( 50, 50, 150, 50 ) picture.strokeWidth = 3 picture:setFillColor( 0.5 ) picture:setStrokeColor( 1, 0, 0 ) local function onNewFrame() inertia.moveTo(picture, 200, 400, 4, 60) inertia.rotate(picture, 4000, 60) end Run...
return { tllinsulator = { acceleration = 0.1, amphibious = 1, brakerate = 0.05, buildcostenergy = 88394, buildcostmetal = 6645, builder = false, buildpic = "tllinsulator.dds", buildtime = 75000, canattack = true, canguard = true, canmove = true, canpatrol = true, canstop = 1, ...
require "config" local function createCoalOilPlantItem() data:extend( { { type = "item", name = "fusion-oil-plant", icon = "__fupower__/graphics/icons/fusion-oil-plant.png", flags = {"goes-to-quickbar"}, subgroup = "fusion-buildings", place_result = "fusion-oil-plant", ...
-- dofile('./lua/plugins.lua') require('plugins') -- require 'impatient' local g = vim.g local cmd = vim.cmd local o, wo, bo = vim.o, vim.wo, vim.bo local utils = require 'config.utils' local opt = utils.opt local autocmd = utils.autocmd local map = utils.map -- Leader/local leader g.mapleader = [[ ]] g.maplocalleader...
return require 'rewrite_url_captures'
BOT_MODE = true include("shared.lua") include("sv_commands.lua") include("sv_convar.lua") include("sv_config.lua") include("sv_player.lua") include("sv_language.lua") include("sv_message.lua") include("sv_classmanager.lua") include("sv_roundmanager.lua") include("sv_eventmanager.lua") include("sv_infectionmanager.lua"...
-- generate amazon v4 authorization signature -- https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html -- Author: jeffry L. paragasu@gmail.com -- Licence: MIT local resty_sha256 = require 'resty.sha256' local hmac = require 'resty.hmac' local str = require 'resty.string' local aws_key, aws_secret,...
-- Incubator nutrients and failure. minetest.register_craftitem("mt_future:embryo", { description = "Failed cloning experiment", -- "Indistinct animal embryo" was perhaps a bit trashy :) inventory_image = "mt_future_embryo.png", -- actually a piglet :) on_use = minetest.item_eat(-2), groups = {food_meat_raw =...
-- The Computer Language Benchmarks Game -- http://shootout.alioth.debian.org/ -- contributed by Mike Pall local function A(i, j) local ij = i+j-1 return 1.0 / (ij * (ij-1) * 0.5 + i) end local function Av(x, y, N) for i=1,N do local a = 0 for j=1,N do a = a + x[j] * A(i, j) end y[i] = a end end ...
------------------------------------------------------------------------------- --[Planner Pin Panel (helmod)]-- ------------------------------------------------------------------------------- local Gui = require('__stdlib__/stdlib/event/gui') local lib = require('__PickerAtheneum__/utils/lib') local function pick_hel...
pyke_syndicate_criminal = Creature:new { objectName = "", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "death_watch", pvpFaction = "death_watch", faction = "", level = 300, chanceHit = 100, damageMin = 6500, damageMax = 8050, specialDamageMult = 1.5, baseXp = 15000, baseHAM = 95000, ...