content
stringlengths
5
1.05M
/** * Knuth-Morris-Pratt Algorithm for Pattern Matching */ class KMPMatch { /** * Finds the first occurrence of the pattern in the text. */ public int indexOf(byte[] data, byte[] pattern) { int[] failure = computeFailure(pattern); int j = 0; if (data.length == 0) return -1; ...
--- === SlidingPanels === --- --- Create sliding panels which can emerge from the sides of your monitor to display canvas and guitk element objects --- --- Also requires [hs._asm.guitk](https://github.com/asmagill/hammerspoon_asm/tree/master/guitk) version 0.1.4alpha or newer to be installed. GUITK is a candidate for...
--[[ ############################################################################## S V U I By: Munglunch ############################################################################## STATS:Extend EXAMPLE USAGE: Reports:NewReportType(newStat,eventList,onEvents,update,click,focus,blur) #############################...
function CreeAliens() local Aliens = {} Aliens.nombre = 0 Aliens.AjouteAlien = function() -- Variante de : function Aliens.AjouteAlien() Aliens.nombre = Aliens.nombre + 1 print("Module 3 / Il y a maintenant",Aliens.nombre,"aliens") end return Aliens end
local helpers = require("test.functional.helpers")(after_each) local exec_lua, feed = helpers.exec_lua, helpers.feed local ls_helpers = require("helpers") local Screen = require("test.functional.ui.screen") describe("selection", function() local screen before_each(function() helpers.clear() ls_helpers.session_s...
----------------------------------------- -- LOCALIZED GLOBAL VARIABLES ----------------------------------------- local ZGV = _G.ZGV local Class = {} local STRICT_CLASSES = false local allowed_nils local zginherits, type = table.zginherits, type ----------------------------------------- -- SAVED REFERENCES...
require("__5dim_core__.lib.trains.generation-locomotive") local speed = 1.2 local energy = 600 local weightWagon = 2000 local maxHealth = 1000 local techCount = 100 -- Electric furnace 01 genLocomotives { number = "01", subgroup = "trains-locomotive", maxSpeed = speed, maxPower = energy, weight = ...
debug_print("-" .. get_window_xid());
local t = Def.ActorFrame { -- splashy thing when you first start a song Name = "Splashy", DootCommand = function(self) self:RemoveAllChildren() end, Def.Quad { Name = "DestroyMe", InitCommand = function(self) self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y - 40):zoomto(400, 50):diffuse(getMainColor("highlight")...
map = { } function map:getBackground() return "maps/Prayer Blue/bg.jpg" end function map:getTitle() return "Prayer Blue" end function map:getDifficult() return "Easy" end function map:getPorter() return "FELT" end function map:getSong() return "maps/Prayer Blue/song.mp3" end function map:getLength() ...
local helper = {} function helper.sin(num) local sin, cos = fmath.sincos(num) return sin end function helper.cos(num) local sin, cos = fmath.sincos(num) return cos end function helper.pi() return fmath.tau() / 2fx end function helper.rad(deg) return fmath.tau() / 360fx * deg end fun...
object_draft_schematic_weapon_component_new_weapon_comp_elemental_electric = object_draft_schematic_weapon_component_shared_new_weapon_comp_elemental_electric:new { } ObjectTemplates:addTemplate(object_draft_schematic_weapon_component_new_weapon_comp_elemental_electric, "object/draft_schematic/weapon/component/new_we...
--[[ --MIT License -- --Copyright (c) 2019 manilarome --Copyright (c) 2020 Tom Meyers -- --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 ...
include('shared.lua') function ENT:Initialize() self.particle = CreateParticleSystem( self, "gazirovka", PATTACH_ABSORIGIN_FOLLOW, 0, Vector(0,0,32) ) self.RealModel = "models/monsters/zombie2.mdl" end function ENT:Draw() if (!self.particle and !self.particle:IsValid()) then self.particle = CreateParticleSystem...
local SCarErrorStr = "" local SCarErrorSvCol = Color( 0, 255, 0, 255 ) local SCarErrorClCol = Color( 0, 0, 255, 255 ) local SCarErrorCol = nil if (CLIENT) then SCarErrorCol = SCarErrorClCol elseif (SERVER) then SCarErrorCol = SCarErrorSvCol end CreateConVar("scar_showerrors", 0, { FCVAR_REPLICATED, FCVAR_ARCHIVE }...
rl.SetConfigFlags(rl.FLAG_VSYNC_HINT) rl.InitWindow(800, 450, "raylib [lua] example - repl") while not rl.WindowShouldClose() do rl.BeginDrawing() rl.ClearBackground(rl.RAYWHITE) rl.DrawText("Press [R] to go to REPL !", 260, 200, 20, rl.LIGHTGRAY) if rl.IsKeyDown(rl.KEY_R) then raylua.repl() ...
AddCSLuaFile( "autorun/client/bc_init.lua" ) local function runRecurse( dir, ext, f ) local files, dirs = file.Find( dir .. "/*", "GAME" ) if not files then return end for k, v in pairs( files ) do if string.match( v, "^.+%." .. ext .. "$" ) then f( dir .. "/" .. v ) end end...
local upload = {} local signing = require("luarocks.signing") local util = require("luarocks.util") local fetch = require("luarocks.fetch") local pack = require("luarocks.pack") local cfg = require("luarocks.core.cfg") local Api = require("luarocks.upload.api") upload.help_summary = "Upload a rockspec to the public ...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local lib = ReplicatedStorage.lib local PizzaAlpaca = require(lib.PizzaAlpaca) local Cmdr = require(ReplicatedStorage:WaitForChild("CmdrClient")) local CmdrContainer = PizzaAlpaca.GameModule:extend("CmdrContainer") function CmdrContainer:onStore(store)...
-- rMinimap: variables -- zork, 2019 ----------------------------- -- Variables ----------------------------- local A, L = ... L.addonName = A L.dragFrames = {} L.addonColor = "00FF3300" L.addonShortcut = "rmm" L.mediapath = "interface\\addons\\"..A.."\\media\\"
require('__stdlib__/stdlib/core') require('prototypes/signals/lamp-colors') require('prototypes/signals/alerts') require('prototypes/signals/power') require('prototypes/signals/more-signals') require('prototypes/signals/direction') require('prototypes/signals/math') require('prototypes/signals/punctuation') require('...
Postgres = { Async = {}, Sync = {}, Threaded = {} } local function safeParameters(params) if nil == params then return {[''] = ''} end assert(type(params) == "table", "A table is expected") assert(params[1] == nil, "Parameters should not be an array, but a map (key / value pair) inste...
local TileEngine = require "plugin.wattageTileEngine" local Utils = TileEngine.Utils -- Localize external function calls. local sqrt = math.sqrt local min = math.min local AnalogControlStick = {} AnalogControlStick.new = function(params) Utils.requireParams({ "parentGroup", "centerX", "cen...
-- ability0.lua -- The 1st special ability - Invincibility -- cost: 2 xp, duration: 15 seconds (timer) -- InvJection Imgs local invJectionImg = love.graphics.newImage("assets/ability/invJection(blue).png") local invJeHeight, invJeWidth = invJectionImg:getHeight(), invJectionImg:getWidth() local starImg = love.graphic...
--[[ Text: String Duration: Number Color: Color3 ClickFunction: String ("Close") OR Instance (RemoteFunction) Usage: [SendNotificationEvent]:FireClient(Player,{Text = "Example", Duration = 5, Color = Color3.fromRGB(250,50,50), ClickFunction = "Close"}) --]] local RS = game:GetService("ReplicatedStorage") l...
local colors = require("base46").get_colors "base_30" return { Feline = { fg = colors.grey_fg2, bg = colors.statusline_bg, }, FelineIcon = { fg = colors.statusline_bg, bg = colors.nord_blue, }, FelineIconSeparator = { fg = colors.nord_blue, bg = colors.grey, }, ...
--[[ Name: cop_cars.lua ]]-- local Car = {} Car.Make = "Audi" Car.Name = "Audi S4 Police" Car.UID = "s4_copaudi" Car.Job = "JOB_POLICE" Car.Desc = "" Car.Model = "models/tdmcars/emergency/aud_s4_pred.mdl" Car.Script = "scripts/vehicles/skyautos/m5_f90.txt" Car.FuellTank = 120 Car.FuelConsumption = 20 ...
local cos, sin = math.cos, math.sin local random = math.random local radians = math.rad local GLSystem = {} GLSystem.__index = GLSystem function GLSystem.new(self, obj) obj = obj or {} -- TURTLE STUFF: obj.x = obj.x or 0 obj.y = obj.y or obj.frame.height obj.currentangle = 0; obj.step = 20; obj.angle ...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- NDP address resolution (RFC 4861) -- This app uses the neighbor discovery protocol to determine the -- Ethernet address of an IPv6 next-hop. It's a limited -- implementation; if you need to route traffic to multiple IPv6 -- next-hops o...
local Plugin = SS.Plugins:New("Kill") // When player dies function Plugin.PlayerDeath(Player, Attacker, Player) local Check = Attacker:IsPlayer() if (Check) then if (Attacker != Player) then local Error = SS.Player.Immune(Player, Attacker) if not (Error) then SS.Warnings.Warn(Attacker, 1, "This is...
local Tunnel = module("vrp","lib/Tunnel") local Proxy = module("vrp","lib/Proxy") vRP = Proxy.getInterface("vRP") ----------------------------------------------------------------------------------------------------------------------------------------- -- PREPARE --------------------------------------------------------...
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISWashVehicle : ISBaseTimedAction ISWashVehicle = ISBaseTimedAction:derive("ISWas...
function PrisonSystem.Arrest(ply, time) -- Just demote the president if (ply:Team() == TEAM_PRESIDENT) or (ply:Team() == TEAM_VICE_PRESIDENT) then ply:changeTeam(TEAM_CITIZEN, true, true) xLogs.Log(xLogs.Core.Player(ply).." has been demoted to citizen as they were arrested as a (Vice) President.", "Prison") XYZ...
local WarCampaign = { Name = "WarCampaign", Type = "System", Namespace = "C_CampaignInfo", Functions = { { Name = "GetAvailableCampaigns", Type = "Function", Returns = { { Name = "campaignIDs", Type = "table", InnerType = "number", Nilable = false }, }, }, { Name = "GetCampaignChapter...
--- --- sys_pdh.lua --- --- Copyright (C) 2018-2020 Xrysnow. All rights reserved. --- -- local M = {} local ffi = require('ffi') local PDH = ffi.load('Pdh') ffi.def = [[ typedef void* HQUERY; typedef void* PDH_HQUERY; typedef void* PDH_HCOUNTER; typedef long PDH_STATUS; typedef struct _PDH_FMT_COUNTERVALUE { D...
-- Beaver: A beaver in the game. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.utilities.class") local GameObject = require("games.stump...
local dhcp = require "dhcp" local rand = require "rand" local nmap = require "nmap" local outlib = require "outlib" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local table = require "table" local ipOps = require "ipOps" description = [[ Sends a DHCPINFORM reque...
local composer = require( "composer" ) local scene = composer.newScene() -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (not recycled) via "composer.removeScen...
local LOCAL_PLAYER = Game.GetLocalPlayer() local Parent = script.parent function Bilboard() local quat = Quaternion.New(LOCAL_PLAYER:GetViewWorldRotation()) quat = quat * Quaternion.New(Vector3.UP, 180.0) Parent:SetWorldRotation(Rotation.New(quat)) end function Tick() if Parent.visibility == Visibilit...
local ej = require "ejoy2d" local fw = require "ejoy2d.framework" local pack = require "ejoy2d.simplepackage" local sprite = require "ejoy2d.sprite" pack.load { pattern = fw.WorkDir..[[examples/asset/?]], "sample", } local obj = ej.sprite("sample","cannon") local turret = obj.turret local game = {} local screencoo...
-- Copyright 2022 SmartThings -- -- 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 ...
--[[ Frakcja: Policja - wiezienie @author Jakub 'XJMLN' Starzak <jack@pszmta.pl @package PSZMTA.psz-frakcje_policja @copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl> Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie. ]]-- local I=10 local D=0 local lapaczcs=createColCuboid(225....
---- -- Action option. -- -- Extends `menu.Option` but doesn't add anything. It's a leftover from my original mod based on -- which this mod has been created. -- -- Not removed for convenience to differentiate from the base option. -- -- local actionoption = ActionOption({ -- name = "your_option", -- optional...
--[[ - Version: 0.1 - Made by Tom Tuning @ 2018 - Mail: tom.tuning@sas.com ****************** - INFORMATION ****************** - Sound Utilities --]] local sfx = {} sfx.soundcompletelistener = function ( event ) --print ("sound completed channel ", event.channel ) end ------------------ -- Modules ---...
-- ===== ===== ===== ===== ===== -- Copyright (c) 2017 Lukas Grünwald -- License MIT License -- ===== ===== ===== ===== ===== -- Import new functions: require( "libErrorFunctions" ) require( "libDebugFunctions" ) require( "libPGGenericFunctionLibrary" ) -- Import new classes: require( "cGameObjectType" ) require...
-- The documentation page : https://love2d.org/wiki/Config_Files function love.conf(t) t.title = "Boss Fight For Axalot" t.version = "11.4" t.console = true t.window.width = 1920 t.window.height = 1080 t.window.vsync = 1 t.window.fullscreen = true t.window.fullscreentype = "exclusive" en...
--[[ ------------------------------------------------------------------------------- Menori @author rozenmad 2020 ------------------------------------------------------------------------------- ]] local modules = (...):match('(.*%menori.modules.)') local class = require (modules .. 'libs.class') local geometry_buf...
if not file.Exists('background_npcs/nodes/rp_southside.dat', 'DATA') then file.Write('background_npcs/nodes/rp_southside.dat', util.Compress('{"version":"1.2","nodes":[{"parents":[2.0,96.0,97.0,98.0,105.0,106.0,109.0,110.0,111.0],"position":"[5391.9209 3363.2961 -45.9688]","links":{"walk":[2.0,96.0,109.0]}},{"parents":...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local guide = require 'parser.guide' local files = require 'files' local vm = require 'vm' local define = require 'proto.define' local findSource = require 'core.find-source' local function eachRef(source, callback) local results = guide.requestReference(source) for i = 1, #results do ...
--!nonstrict export type RosynRegistry<ComponentT> = { ComponentInitialized: {[Instance]: BindableEvent}, ComponentRemoved: {[Instance]: BindableEvent}, ComponentAdded: {[Instance]: BindableEvent}, InstanceToComponent: {[Instance]: ComponentT}, ComponentClass: ComponentT, new: (ComponentT) -> ...
return { name = 'mannequin', die_sound = 'mannequin_death', height = 48, width = 48, bb_width = 20, bb_height = 40, bb_offset = {x=0, y=4}, damage = 2, hp = 3, tokens = 3, tokenTypes = { -- p is probability ceiling and this list should be sorted by it, with the last being 1 ...
return { id = "crown", name = "Crown", description = "To gain a crown by fighting is great, to reject it divine.", type = "hat", rarity = 1, hidden = false, }
----------------------------------------------------------------------------------------------------------------------- --- LuaUtils -- Basic utilities for working with Lua -- @author draftomatic ----------------------------------------------------------------------------------------------------------------------- loc...
function onBegin(entity) m_Entity = entity Connect(onJump, "Jump") end function onUpdate(delta, entity) end function onJump(event) m_Entity:trigger() print("Triggered") return true end function onEnd(entity) end
local mutex = KEYS[1]; local contenderId = ARGV[1]; local mutexKey = 'simba:' .. mutex; local contenderQueueKey = mutexKey .. ":contender"; -- 1. 获取当前锁的 contenderId 锁是否与自己持久的相同(判断当前锁是否是自己锁定的),如果不相同则直接退出,返回释放失败 if redis.call("get", mutexKey) ~= contenderId then redis.call("zrem", contenderQueueKey, contenderId) ...
--[[ Name: "sh_info.lua". Product: "nexus". --]] local MOUNT = MOUNT; MOUNT.name = "Dynamic Adverts"; MOUNT.author = "kuropixel"; MOUNT.description = "Allows dynamic images to be placed over the map.";
--Bee Sky function c939393.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --Activate local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(939393,0)) e2:SetCategory(CATEGORY_LEAVE_GRAVE) e2:Set...
-- ______ __ ___ -- / __/ /____ _/ /___ _____ / (_)__ ___ -- _\ \/ __/ _ `/ __/ // (_-</ / / _ \/ -_) -- /___/\__/\_,_/\__/\_,_/___/_/_/_//_/\__/ require('lualine').setup({options = {theme = 'catppuccin'}})
-- CraftBox -- A sandboxed microkernel for OpenComputers -- (C) Saghetti 2020 -- This software is licensed under the MIT license -- stdlib.lua: A library for CraftBox drivers that require more permissions local drvlib = {} function drvlib.kprint(txt) -- kprint(text: string) -- Print text to the kernel's output ...
-- Usage: -- spinner = CreateSpinner(parent) -- spinner:SetTexture('texturePath') -- spinner:SetBlendMode('blendMode') -- spinner:SetVertexColor(r, g, b) -- spinner:SetClockwise(boolean) -- true to fill clockwise, false to fill counterclockwise -- spinner:SetReverse(boolean) -- true to empty...
return { { name = "2015-08-25-841841_init_acl", up = [[ CREATE TABLE IF NOT EXISTS acls( id uuid, consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE, "group" text, created_at timestamp without time zone default (CURRENT_TIMESTAMP(0) at time zone 'utc'), ...
include "map_builder.lua" include "trajectory_builder.lua" options = { map_builder = MAP_BUILDER, trajectory_builder = TRAJECTORY_BUILDER, map_frame = "map", tracking_frame = "imu_link", published_frame = "odom", odom_frame = "odom", provide_odom_frame = false, publish_frame_projected_to_2d = false, ...
local TagEngine = require "stator" () local create_code_table = [[ CREATE TABLE IF NOT EXISTS code ( code_id INTEGER PRIMARY KEY AUTOINCREMENT, hash TEXT UNIQUE ON CONFLICT IGN...
local LOCAL_PLAYER = Game.GetLocalPlayer() function Tick() if(LOCAL_PLAYER.clientUserData.isScoping) then if( script.parent.visibility == Visibility.FORCE_OFF) then return end script.parent.visibility = Visibility.FORCE_OFF else if( script.parent.visibility == Visibility.INHERIT) then r...
-- Auto-generated bindings for component 'jukebox' jukebox = {} jukebox.type = "jukebox" jukebox.address = "00000000-0000-0000-0000-000000000000" jukebox.slot = 0 --- function jukebox.listMethods() return end --- function jukebox.listSources() return end --- -- Stop playing the record currently in the jukebox. -...
--[[ /////// ////////////////// /////// 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 /////// ///////////////// ]] -- ####################################### -- ## Project: HUD ...
ShamanNpc = { click = async(function(player, npc) local t = { graphic = convertGraphic(npc.look, "monster"), color = npc.lookColor } player.npcGraphic = t.graphic player.npcColor = t.color player.dialogType = 0 player.lastClick = npc.ID local choice if player.state == 1 then choice = player:m...
local AddonName, AddonTable = ... AddonTable.cloth = { 124437, 151567, }
if not vim.g.vscode then local nvim_lsp = require('lspconfig') local util = require('lspconfig/util') local cmp = require('cmp') for i, v in ipairs(cmp.mapping) do print(i, v) end cmp.setup({ -- TODO: snippet mapping = { ['<C-d>'] = cmp.mapping.scroll_docs(-4), ['<C-f>'] = cmp.mapping.scr...
require "pipe" p = pipe.popen("dir") if not p then print("unable to open pipe") io.exit(0) end while true do str = p.stdout:read("*l") if not str then break end print(str) end
redis = {} redisObj = redisObj or {} function redis.call(command, ...) local args = table.pack(...) if command == 'set' then if args.n == 2 then return redisObj:set(args[0], args[1], {}) end end end function redis.pcall(command, ...) return pcall(redis.call(command, ...)) end
local helpers = require "spec.helpers" local cjson = require "cjson" local UUID_PATTERN = "%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x" local UUID_COUNTER_PATTERN = UUID_PATTERN .. "#%d" local TRACKER_PATTERN = "%d+%.%d+%.%d+%.%d+%-%d+%-%d+%-%d+%-%d+%-%d%d%d%d%d%d%d%d%d%d%....
local util = require("spec.util") describe("generic function", function() it("argument list cannot be empty on declaration", util.check_syntax_error([[ local type ParseItem = function<>(number): T ]], { { msg = "type argument list cannot be empty" } })) it("argument list cannot be empty on ins...
local struct = require 'lulz.types.struct' local weakref = struct { __name__ = 'weakref'; __call = function(self) return rawget(self, '__value__') end; __mode = 'v'; } function weakref:__init__(obj) rawset(self, '__value__', obj) end return weakref
--[[ Created by DidVaitel (http://steamcommunity.com/profiles/76561198108670811) ]] TOOL.Category = "DidVaitel Tools" TOOL.Name = "gDuels Arena Creator" if CLIENT then language.Add( "Tool.ddv_gduels_tool.name", gDuel.Translate("DuelToolName") ); language.Add( "Tool.ddv_gduels_tool.desc", gDuel.Translate("DuelTo...
return { { name = "2017-05-30_init_keyauthreferer", up = [[ CREATE TABLE IF NOT EXISTS keyauthreferer_credentials( id uuid, consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE, key text UNIQUE, authorized_referer text, created_at timestamp without time zo...
if require "vkot/first_load"() then return end vim.cmd [[source ~/.config/nvim/common.vim]] vim.cmd [[source ~/.config/nvim/settings.plugins.vim]] vim.cmd [[ if filereadable(expand("~/.config/nvim/extra.vim")) source ~/.config/nvim/extra.vim endif ]] require "vkot/plugin_config" require "impatient" -- Load ast...
--[[ The Actor Class for animX Author: Neer ]] local Actor={ animations, --list of all the animations in the actor current, --the current animation (by it's name) p_onAnimSwitch, --handler called when an animation is switched [internal] } --an internal function which just sets the default val...
--- Basic initialization. -- While most of this stuff is optional, a few things are loaded on startup no matter what. local ffi = require("ffi") ffi.cdef [[ /* From the C library */ void free(void*); void *malloc(size_t size); ]] -- Better stack traces. STP = require("StackTracePlus") debug.traceback = STP.stacktrac...
function gadget:GetInfo() return { name = "Dev Helper Cmds", desc = "provides various luarules commands to help developers, can only be used after /cheat", author = "Bluestone", date = "", license = "Horses", layer = 0, enabled = true -- loaded by defaul...
local format = [[ package = "moonmint" version = "%s" source = { url = "file:////0.0.0.0%s/%s" } description = { homepage = "https://github.com/bakpakin/moonmint", summary = "Web framework for Lua", license = "MIT", } dependencies = { "lua >= 5.1", "luv ~> 1.8", "mimetypes >= 1.0", "bit3...
-- -- pandoc-abbreviationa.lua -- -- a pandoc lua filter for expanding abbreviations in pandoc files. -- -- Specify abbreviations in the yaml metadata block: -- -- --- -- title: "My document" -- author: "John Doe" -- abbreviations: -- ex: 'First example' -- ex2: 'Second **example**' -- ... -- -- Or specify abbre...
Character = Object:extend() function Character:new(coord,homecoord,name) self.name = name or "Willy" self.oX=32 --x and y origin values self.oY=64 self.x=coord[1] --current x and y values self.y=coord[2] self.z=coord[3] self.homeX=homecoord[1] self.homeY=homecoord[2] self.homeZ=homecoord[3] self....
--[[ Name: "sh_autorun.lua". Product: "kuroScript". --]] ENT.Type = "anim"; ENT.Base = "base_anim" ENT.Author = "kuromeku"; ENT.PrintName = "Grab"; ENT.Spawnable = false; ENT.AdminSpawnable = false;
local cell = require "cell" local system = require "cell.system" local table = table local command = {} local message = {} local ticker = 0 local timer = {} local free_queue = {} local socket_cell = nil local function alloc_queue() local n = #free_queue if n > 0 then local r = free_queue[n] free_queue[n] = nil ...
local next = next local policy = require('apicast.policy') local _M = policy.new('Find Service Policy') local configuration_store = require 'apicast.configuration_store' local new = _M.new local function find_service_strict(configuration, host) local found local services = configuration:find_by_host(host) for ...
data:extend{ { type = "bool-setting", name = "nanobots-nanobots-auto", setting_type = "runtime-global", default_value = true, order = "nanobots-aa[auto-bots-roll-out]-f" }, { type = "bool-setting", name = "nanobots-nano-build-tiles", setting_ty...
slot0 = table.remove return setmetatable({ flush = function (slot0) for slot4 = #slot0, 1, -1 do slot0[slot4] = nil end end, get = function (slot0) return slot0[#slot0] end }, { __call = function (slot0, slot1) if slot1 then slot0[#slot0 + 1] = slot1 else return assert(slot0(slot0), "empty zone...
local socketdriver = require "socketdriver" local Skynet = require "lualib.local_skynet" local Utils = require "lualib.utils" local Proxy = require "lualib.service_proxy" local Debug = require "lualib.debug" local Net = import "lualib/net" local AgentApi = import "agent/api" command = {} function command.UpackData(fd...
hal_horn_missions = { { missionType = "retrieve", primarySpawns = { { npcTemplate = "doogo", npcName = "Doogo" } }, secondarySpawns = { { npcTemplate = "thug", npcName = "a thug" }, { npcTemplate = "thug", npcName = "a thug" } }, itemSpawns = { { itemTemplate = "object/tang...
--[[ © 2013 CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode --]] local Clockwork = Clockwork; local COMMAND = Clockwork.command:...
object_mobile_droid_ic36 = object_mobile_shared_droid_ic36:new { } ObjectTemplates:addTemplate(object_mobile_droid_ic36, "object/mobile/droid_ic36.iff")
_space = box.space[box.schema.SPACE_ID] _index = box.space[box.schema.INDEX_ID] ADMIN = 1 env = require('test_run') test_run = env.new() test_run:cmd("push filter ', .lsn.: [0-9]+' to ''") -- -- Test insertion into a system space - verify that -- mandatory fields are required. -- _space:insert{_space.id, ADMIN, 'test',...
object_draft_schematic_genetic_engineering_processor_use_mold = object_draft_schematic_genetic_engineering_shared_processor_use_mold:new { } ObjectTemplates:addTemplate(object_draft_schematic_genetic_engineering_processor_use_mold, "object/draft_schematic/genetic_engineering/processor_use_mold.iff")
editor = reaper.MIDIEditor_GetActive() take = reaper.MIDIEditor_GetTake(editor) notes = {} note_index = -1 note_index = reaper.MIDI_EnumSelNotes(take, note_index) while note_index ~= -1 do table.insert(notes, note_index) note_index = reaper.MIDI_EnumSelNotes(take, note_index) end note_positions = {1, 3, 5} MAJOR ...
--TEMP, save support function ExplorationTick(city) return city:ExplorationTick() end function OnMsg.ClassesPreprocess() Drone.GetResourceUnit = function(self, resource) return DroneResourceUnits[resource] end Building.OnUnitLeadOut = empty_func Building.OnUnitLeadOutEnd = empty_func Unit.OnLeadOutEnd = empty...
-- OptimisticSide local tweenService = game:GetService("TweenService") local soundService = game:GetService("SoundService") local SoundStablizer = {} SoundStablizer.historyBuffer = {} SoundStablizer.__index = SoundStablizer function SoundStablizer:update() local currentVolume = self:getVolume() self.loudestVolume...
-- Positive FileWriteLineFast("test/output.txt", "Positive test", FM_WRITE); FileWriteLineFast("test/output.txt", "With fixed seed - 42", FM_APPEND); RandSeed(42); FileWriteLineFast("test/output.txt", "Rand(10)" .. Rand(10), FM_APPEND); FileWriteLineFast("test/output.txt", "Rand(10)" .. Rand(10), FM_APPEND); FileWrite...
local T, C, L = Tukui:unpack() local TimerTracker = T.Miscellaneous.TimerTracker if (true) then return end; ---------------------------------------------------------------- -- Timer Tracker (e.g: Battleground Timer) ---------------------------------------------------------------- local baseUpdateBar = TimerTr...