content
stringlengths
5
1.05M
local metrics = require('metrics') local cartridge_metrics = { require('metrics.cartridge.issues'), } local function enable() for _, metric in ipairs(cartridge_metrics) do metrics.register_callback(metric.update) end end return { enable = enable, }
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ return function(loveframes) ---------- module start ---------- -- util library --local util = {} --[[---------------------...
fx_version 'cerulean' game 'gta5' dependencies { 'entities', } shared_script { 'flags.lua', 'sh_config.lua', 'sh_jobs.lua', 'jobs/*.lua', } client_scripts { 'cl_jobs.lua', } server_scripts { '@utils/server/players.lua', '@utils/server/database.lua', 'sv_jobs.lua', }
local filename = "zzzmetrics.stat" script.on_nth_tick(600, function(event) game.write_file(filename, "factorio tick=" .. game.tick .. '\n', false, 0) for _, player in pairs(game.players) do game.write_file(filename, "factorio_players,name="..player.name..",online="..tostring(player.connected).." onlin...
local M = {} function M.debounce(fn, debounce_time) local timer = vim.loop.new_timer() local is_debounce_fn = type(debounce_time) == 'function' return function(...) timer:stop() local time = debounce_time local args = {...} if is_debounce_fn then time = debounce_time() end timer...
workspace 'cpp-premake-template' configurations { 'debug', 'release' } -- Include projects include 'HelloSerial' include 'SerialREPL'
-- Program to dispersive Euler equations -- simulation parameters cfl = 0.9 -- global parameters charge = 10.0 mass = 1.0 gasGamma = 2.0 Bz = 1.0 lambda = charge/mass -- computational domain grid = Grid.RectCart1D { lower = {0.0}, upper = {1.0}, cells = {200}, } -- solution (We store 11 components as this ...
xSize = 8 ySize = 8 function harvest() turtle.up() turtle.forward() for x = 1, xSize do for y = 1, xSize do turtle.digDown() if not y == xSize then turtle.forward() else turtle.turnRight() end end end ...
local M = {} M.STATE_MENU = 1 M.STATE_CONTROLS = 2 M.STATE_CREDITS = 3 M.STATE_PLAYING = 4 M.STATE_DEAD = 5 M.STATE_COMPLETE = 6 M.state = M.STATE_MENU M.TILE_SIZE = 16 M.PIXEL_SIZE = 4 M.SCR_W = 320 M.SCR_H = 180 M.MAX_LEVELS = 5 M.level = 1 M.maxlevel = 1 M.rads = 0 M.frags = 0 M.offset = vmath.vector3(M.SCR_W ...
local MODULES, MODULE = (...):match("(.-)[^%.]+$"), (...) .. "." require(MODULE .. "math") require(MODULE .. "string") require(MODULE .. "table")
--[[ © 2015 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.) http://cloudsixteen.com/license/clockwork.html Atomic was developed by NightAngel, if you have any questions or ...
-- -- Implement unlocking by deleting a key if content is equal to specified value. -- Inspired by the single instance version of http://redis.io/topics/distlock -- -- KEYS[1] - lock name -- ARGV[1] - lock content if redis.call("get", KEYS[1]) == ARGV[1] then return redis.call("del", KEYS[1]) else return 0 end...
local __exports = LibStub:NewLibrary("ovale/scripts/ovale_rogue_spells", 80300) if not __exports then return end __exports.registerRogueSpells = function(OvaleScripts) local name = "ovale_rogue_spells" local desc = "[9.0] Ovale: Rogue spells" local code = [[Define(adrenaline_rush 13750) # Increases your Ene...
local Q = require 'Q' local lVector = require 'Q/RUNTIME/VCTR/lua/lVector' local lAggregator = require 'Q/RUNTIME/MAGG/lua/lAggregator' local qmem = require 'Q/UTILS/lua/qmem' local chunk_size = qmem.chunk_size local tests = {} tests.t1 = function(n, niters) local n = n or 1000 local niters =...
---- Example TTT custom weapon -- First some standard GMod stuff if SERVER then AddCSLuaFile( ) end if CLIENT then SWEP.PrintName = "Galil" SWEP.Slot = 2 -- add 1 to get the slot number key SWEP.ViewModelFOV = 72 SWEP.ViewModelFlip = false end -- Always derive from weapon_tttbase. SWEP.Base ...
local PAC = PersonalAssistant.Constants local PAStrings = { -- ================================================================================================================= -- Language specific texts that need to be translated -- -- ======================================================================...
source = {} sink = {} pump = {} filter = {} -- source.chain dofile("ex6.lua") -- source.file dofile("ex5.lua") -- normalize require"gem" eol = gem.eol dofile("ex2.lua") -- sink.file require"ltn12" sink.file = ltn12.sink.file -- pump.all dofile("ex10.lua") -- run test dofile("ex1.lua")
return {'ebola','ebolavirus','eboniet','ebonieten','ebo','ebony','ebonys'}
local PANEL = {} function PANEL:Init() self.txt = "" self.color = color_white self.font = "Trebuchet24b" end function PANEL:Paint(_, h) draw.SimpleText(self.txt, self.font, 0, h/3, self.color, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER) end function PANEL:SetColor(col) if not IsColor(col) then return end self.co...
--Mirage Spell function c948130397.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_RECOVER) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetCondition(c948130397.condition) e1:SetTarget(c948130397.targe...
-- supporting testfile; belongs to 'cl_spec.lua' describe('Test error messages show file and line for', function() it('table errors #table', function() error({}) end) it('nil errors #nil', function() error() end) it('string errors #string', function() error('error message') end) it('table ...
require 'cudnn' require 'loadcaffe' require 'image' matio = require 'matio' voc_tools = dofile('pascal_voc.lua') dofile('opts.lua') function VGGF() local model_converted = loadcaffe.load(opts.PATHS.BASE_MODEL_RAW.PROTOTXT, opts.PATHS.BASE_MODEL_RAW.CAFFEMODEL, 'cudnn'):float() torch.save(opts.PATHS.BASE_MODEL_CACH...
local guide = require 'parser.guide' local util = require 'utility' local files = require 'files' local timer = require 'timer' local setmetatable = setmetatable local assert = assert local require = require local type = type local running = coroutine.running local ip...
local msgpack = require(game.ReplicatedStorage.msgpack) local httpService = game:GetService("HttpService") local msgpackDecode = msgpack.decode local msgpackEncode = msgpack.encode local jsonMessage = require(game.ServerStorage.JsonMessage) local msgpackMessage = require(game.ServerStorage.MsgpackMessage) return { ...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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...
function momoPyTweak.finalFixes.ElectronicsSubgroup() --- using local SetSubgroup = momoIRTweak.recipe.SetSubgroup local GetOrder = momoIRTweak.GetSubgroupOrder local group = momoPyTweak.groups.highTech local subgroup = "momo-electronics-1" momoIRTweak.NewSubgroup(subgroup, group, "!a1") for _, r in pairs(mo...
local exports = { build = 375} return exports
ability_unstable_concoction_throw = class({}) function ability_unstable_concoction_throw:OnSpellStart() local modifierCounter = self:GetCaster():FindModifierByName('modifier_unstable_concoction_lua_counter') if not modifierCounter then return end local abilityOwner = self:GetCaster():FindAbilityByName('ab...
#!/usr/bin/env lua local parser = require'argparse'(arg[0], "Lua ReDemPtion source checker") function append_config(args, _, xs) local t = args[_] if t[xs[1]] then t[xs[1]] = t[xs[1]] .. ',' .. xs[2] else t[xs[1]] = xs[2] end end parser:argument('sources', 'Paths of source files'):args'*' parser:...
ArmorWindow = ISCollapsableWindow:derive("ArmorWindow"); ArmorWindow.compassLines = {} function ArmorWindow:initialise() ISCollapsableWindow.initialise(self); end function ArmorWindow:new(x, y, width, height) local o = {}; o = ISCollapsableWindow:new(x, y, width, height); setmetatable(o, self); self.__index = sel...
return { corfrt = { acceleration = 0, airsightdistance = 700, brakerate = 0, buildangle = 16384, buildcostenergy = 1124, buildcostmetal = 82, builder = false, buildpic = "corfrt.dds", buildtime = 1600, canattack = true, canstop = 1, category = "ALL SURFACE UNDERWATER", collisionvolumeoffsets ...
--[[ LuiExtended License: The MIT License (MIT) --]] -- Global Variables -- LUIE_CC_ICON LUIE_CC_ICON_STUN = "esoui/art/icons/ability_debuff_stun.dds" -- LUIE_CC_ICON_KNOCKDOWN = "esoui/art/icons/ability_debuff_stun.dds" -- Knockdown's are considered stuns LUIE_CC_ICON_KNOCKBACK = "esoui/art/icons/a...
return { id = "effect_confetti", price = 3000, onSale = true, }
vRPfpc = {} Tunnel.bindInterface("vRP_findPlayer",vRPfpc) vRPserver = Tunnel.getInterface("vRP","vRP_findPlayer") BMserver = Tunnel.getInterface("vRP_findPlayer","vRP_findPlayer") vRP = Proxy.getInterface("vRP") isBlipDrawn = false waypointBlip = nil targetPlayer = nil function drawRouteToPlayer() if (i...
game.Players.YOURNAMEHERE.leaderstats.KOs.Value = 4636
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then ...
-- =================================================================== -- Personal Keymaps -- =================================================================== local map = vim.api.nvim_set_keymap -- Set the leader key before every thing else vim.g.mapleader = ' ' vim.api.nvim_set_keymap('n', vim.g.mapleader, '', {no...
------------------- -- Exports ------------------- MenuAPI = exports.MenuAPI ------------------- -- variables for arcade and time left ------------------- gotTicket = false minutes = 0 seconds = 0 ------------------- function doesPlayerHaveTicket() return gotTicket end exports('doesPlayerHaveTicket', doesPlayerHa...
--[[- Class for specific magazine data templates. @classmod MagazineType @author Fenris_Wolf @release 1.0-alpha @copyright 2018 ]] local MagazineType = {} local ItemType = require(ENV_RFF_PATH .. "item_type") local Flags = require(ENV_RFF_PATH .. "firearm/flags") local State = require(ENV_RFF_PATH .. "firearm/state")...
local rl = require("raylib") local math = require("math") local screenWidth = 800 local screenHeight = 450 rl.InitWindow(screenWidth, screenHeight, "raylib [models] example - waving cubes") local camera = rl.Camera() camera.position = rl.Vector3(30.0, 20.0, 30.0) camera.target = rl.Vector3(0.0, 0.0, 0.0) ...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:KeyValue( key, value ) key = string.lower(key) if key == "cost" then self:SetCost(value) elseif key == "trapcost" then self:SetTrapCost(value) elseif key == "active" then self:SetActive(tobool(value)) if not self:...
return { fadeOut = 1.5, mode = 2, id = "SHENGDAN08", once = true, fadeType = 1, fadein = 1.5, scripts = { { mode = 1, sequence = { { "爱与和平的圣夜祭\n\n<size=45>八 Merry Christmas</size>", 1 } } }, { dir = 1, side = 2, say = "港区夜晚•指挥室", typewriter = { speed = 0.05, s...
-- premake4.lua --solution "lkchecker" -- configurations { "Release" } --#!lua newoption { trigger = "utf8proc_inc", description = "Path to directory containing utf8proc headers", value = "path" } --#!lua newoption { trigger = "utf8proc_lib", description = "utf8proc library path", ...
-- -- @copyright (c) 2015 Upstart Illustration LLC. All rights reserved. -- local Ad = Class() function Ad.new(self) local adNetwork local adType local zoneId local location local adId function self.init(_adType, _zoneId, _location) adType = _adType zoneId = _zoneId lo...
local unescapedTaglineMessages = {} local taglinesCache = {} local taglinesCacheWasPreloaded = false; local Plugin = {} local pdr = TGNSPlayerDataRepository.Create("taglines", function(tagline) tagline.message = tagline.message ~= nil and tagline.message or "" return tagline end) local tgnsMd = TGNSMessageDisplaye...
local _, core = ...; local _G = _G; local MonDKP = core.MonDKP; local L = core.L; local function AwardItem(player, cost, boss, zone, loot, reassign) local cost = cost; local winner = player; local curTime = time(); local curZone = zone; local curBoss = boss; local loot = loot; local BidsEntry = {}; local mode ...
-- Copyright (C) 2008-2017 Christoph Kubisch. All rights reserved. --------------------------------------------------------- local StripCommentsC = StripCommentsC if not StripCommentsC then StripCommentsC = function(tx) local out = "" local lastc = "" local skip local skipline local skipmulti ...
local fs = require("filesystem") local comp = require("component") local gpu = comp.proxy(comp.list("gpu")()) -- These functions are to be used for programs to be compatible between Lua 5.2 and 5.3 -- Serialize unsigned number (max 32-bit) function io.tounum(number, count, littleEndian, toString) local data = {} i...
Config = { ["Gunsmith_datas"] = { -- RHODES [8962] = { rotation_1 = {85.073, 0.0, 270.00}, point1 = {1323.995, -1322.516, 78.021}, point2 = {1321.758, -1321.900, 78.071}, rotation_2 = {0.0, 0.0, 74.998}, ammo_points = { {132...
local sequenceUtil = require 'sequenceUtil' local primeSequence = require 'primeSequence' local primeChecker = require 'primeChecker' local benchUtil = require 'benchUtil' local logger = require 'logger' logger.enableFlush(true) n = tonumber(arg[1]) or 100 start = tonumber(arg[2] or 2) iterations = tonumber(arg[3]) o...
----------------------------------- -- Area: Northern San d'Oria -- NPC: Tavourine -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs") require("scripts/globals/npc_util") require("scripts/globals/quests") require("scripts/globals/shop") function onTr...
function Emote.Core.GiveAnimation(ply, animationID) if not Emote.Users[ply:SteamID64()] then Emote.Users[ply:SteamID64()] = {} end if Emote.Users[ply:SteamID64()][animationID] then return end Emote.Users[ply:SteamID64()][animationID] = true net.Start("Emote:Give") net.WriteString(animationID) net.Send(ply)...
object_building_general_monc_skyscraper_04 = object_building_general_shared_monc_skyscraper_04:new { } ObjectTemplates:addTemplate(object_building_general_monc_skyscraper_04, "object/building/general/monc_skyscraper_04.iff")
local translationSetup = {} function translationSetup.getData() local translationData = {} translationData["start"] = "stardova" translationData["options"] = "optionsdova" translationData["credits"] = "creditsdova" translationData["data"] = "datadova" translationData["privacy"] = "privacydova"...
WireToolSetup.setCategory("Visuals") WireToolSetup.open("rt_screen", "RT Screen", "gmod_wire_rt_screen", nil, "RT Screens") if CLIENT then language.Add("tool.wire_rt_screen.name", "Render-Target Screen") language.Add("tool.wire_rt_screen.desc", "Places Render Target screens") language.Add("tool.wire_rt_scr...
-- dummy function local function get_current_input(instance) return nil end return function() return { get_current_input = get_current_input, } end
-- main.lua, only source file of 'Life of Land Shark' -- licensed under the zlib license but I haven't understood -- LOVE animations yet and suppose that my use of them is -- wrong, so this piece is probably worthless for derivation -- anyways. function load() -- create shark (class?) shark = { sound = { bites...
---- Roleplay: Prison function TrySabotageServer(InPlayer, InServerEntity) if not IsValid(InServerEntity) then return end if not InServerEntity:GetNWBool("bSabotaged") then InServerEntity:Fire("FireUser1", nil, 0, InPlayer, InServerEntity) InServerEntity:SetNWBool("bSabotaged", true) SetGlobalBool("bS...
local gamejolt = require("gamejolt_api") require("test.print_r") gamejolt:init(111240, "c20a6414a1e31a6d7f7a329a37c626a6") gamejolt:users_auth("ioanD", "d08cf8") print_r(gamejolt:scores_guest_add("20 points", "20", "Your good friend", "YOU HAVE FRIENDS?!?!?")) print_r(gamejolt:scores_global_fetch())
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISFertilizeAction : ISBaseTimedAction ISFertilizeAction = ISBaseTimedAction:deriv...
local gpp = {} local gpuDrawPixel = gpu.drawPixel local gpuDrawRectangle = gpu.drawRectangle local gpuBlitImage = function(a, ...) a:render(...) end local gpuWidth = gpu.width local gpuHeight = gpu.height local cos, sin = math.cos, math.sin local min, max = math.min, math.max local function round(n) if n % 1 >= ...
return { tag = 'modules', summary = 'Simulates 3D physics.', description = 'The `lovr.physics` module simulates 3D rigid body physics.', sections = { { name = 'Worlds', tag = 'world', description = [[ A physics World holds all of the colliders and joints in the simulation. It must...
eventNamespace = "term:" missionMarker = { color = { r = 0, g = 0, b = 240 }, size = { x = 1.0, y = 1.0, z = 1.0 }, hint = _U('press_interact_to_hack') } omegaContact = { name = 'Omega', number = '+ER-RORIN-FUN-CTIONGE-TNUMBER', base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAA...
ENT.Type = "anim" ENT.Base = "base_gmodentity"
-- Configure which-key plugin keymaps require "keymaps.which-key" -- Character delete uses specific regiater vim.api.nvim_set_keymap("n", "x", '"xx', { noremap = true, silent = true }) vim.api.nvim_set_keymap("n", "D", '"dD', { noremap = true, silent = true }) vim.api.nvim_set_keymap("n", "dd", '"ddd', { noremap = tru...
local utils = require("diffview.utils") local FileDict = require("diffview.git.file_dict").FileDict local Rev = require("diffview.git.rev").Rev local RevType = require("diffview.git.rev").RevType local Commit = require("diffview.git.commit").Commit local LogEntry = require("diffview.git.log_entry").LogEntry local FileE...
local process = require("process") local fs = require("filesystem") --Initialize coroutine library-- local _coroutine = coroutine -- real coroutine backend _G.coroutine = setmetatable( { resume = function(co, ...) local proc = process.info(co) -- proc is nil if the process closed, natural resume wil...
-- GLOBALS: BADBOY_BLACKLIST, BADBOY_OPTIONS, BadBoyLog, ChatFrame1, GetTime, print, CalendarGetDate -- GLOBALS: C_Timer, IsEncounterInProgress local _, S = ... S.gnt(279,"110,108,126,116,121,122,57,53,58,130,57,53,48,111,54,57,53,125,122,119,119^105,109,128,132,116,121,114,110,126,114,122,118,112,132^110,108,126,116,...
local Class = require "libs.hump.class" local json = require "libs.dkjson" local Controls = Class {} function Controls:init() self.version = 2 self.defaults = { move_forward = "w", move_back = "s", turn_left = "a", turn_right = "d", turret_fire = " ", start = "return", back = "escape", me...
ITEM.name = "M16A2" ITEM.description = "m16a2Desc" ITEM.class = "ix_m16a2" ITEM.weaponCategory = "primary" ITEM.classes = {CLASS_OWS, CLASS_EMP} ITEM.price = 500 ITEM.model = "models/weapons/w_m16a2.mdl" ITEM.width = 4 ITEM.height = 2 ITEM.iconCam = { pos = Vector(8, 200, 1), ang = Angle(0, 270, 0), fov = 14, } ITEM...
astar = require "astar" function printPath() local map = astar.Map:new{ lvl = { {0,0,0,0,0,0,0,0,0,1,0,0,0,0}, {0,0,0,0,0,0,0,0,0,1,0,0,0,0}, {0,0,0,0,0,0,0,0,0,1,0,0,3,0}, {0,0,0,0,0,0,0,0,0,1,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,2,0,0,0,0,0,0,1,0,0,0,0}, {0,0,...
--[[box = game.surfaces[1].create_entity{name="steel-chest", position=game.player.position, force=game.player.force} box = game.surfaces[1].find_entity('steel-chest',{-23.5,-14.5}) box = game.player.selected.surface.find_entity('steel-chest',{-24,-15}) game.player.print(game.player.position.x .. ", " .. game.player....
dPrintf("hello, world!")
local M = {} local imgui = ui_imgui local function draw() imgui.Text("Server address:") imgui.InputText("##addr", kissui.addr) imgui.SameLine() if imgui.Button("Connect") then local addr = ffi.string(kissui.addr) local player_name = ffi.string(kissui.player_name) kissconfig.save_config() networ...
OpenUI.DebugWindow:AddTab({ Name = "WindowTab", Title = "Windows" })
local anim8 = require '/3rdModule/anim8' local Character = require '/src/Character' local Hero ={} Hero.__index = Hero setmetatable(Hero, Character) function Hero:create(name, type, world) local hero = Character:create(name, 'asset/characters.png', 32, 32, world) hero.speedX =100 hero.speedY = 0 hero....
totem.nn = {} local function inputType(t) return type(t) == 'table' and t[1]:type() or t:type() end local function appendParamPairs(paramPairs, input, gradInput, namePrefix) if input == nil then return end if gradInput == nil or gradInput == false then print("\nWARNING: ignored gradI...
--- --- Algernon Server Configuration --- /etc/algernon/server.lua --- --- Logging (will log to console if an empty string is given) --LogTo("/var/log/algernon.log") -- Custom permission denied handler DenyHandler(function() content("text/html") print[[<!doctype html><html><head><title>Permission denied</title><l...
local computer = require('computer') local c = require('component') local event = require('event') local log = require('log')('redstone-onoff') _G.started = false local setRedstoneThreshold = function() if c.isAvailable('redstone') and c.redstone.getWakeThreshold() <= 0 then c.redstone.setWakeThreshold(1); en...
ModifierOptionsMenuEntry = {} ModifierOptionsMenuEntry_mt = { __index = ModifierOptionsMenuEntry } local WIDTH = 480 local HEIGHT = 48 function ModifierOptionsMenuEntry.create() local self = {} setmetatable( self, ModifierOptionsMenuEntry_mt ) return self end function ModifierOptionsMenuEntry:create_actors(pa...
--[[ Shattrath City -- Scryer Arcane Guardian.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement ...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local S = E:GetModule('Skins') --Cache global variables --Lua functions local _G = _G local select = select --WoW API / Variables --Global variables that we don't cache, list them here for mikk's FindGlobals script...
local AddonName, AddonTable = ... -- Shadowfang Keep (Heroic) AddonTable.sfk = { -- Baron Ashbury 63437, 63434, 63436, 63435, 63433, -- Baron Silverlaine 63441, 63438, 63439, 63440, 63444, -- Commander Springvale 63446, 63449, 63448, 63445, 63447, ...
if(GetRealmName() == "Netherwind")then WP_Database = { ["Pappyqt"] = "ST:824/99%SB:857/99%LM:967/98%", ["Goofxd"] = "ST:862/99%SB:862/99%SM:1146/99%", ["Sensuality"] = "ST:858/99%SB:859/99%SM:1030/99%", ["Evilryu"] = "ST:870/99%SB:844/99%SM:999/99%", ["Notallmight"] = "ST:841/99%SB:819/99%SM:987/99%", ["Slampig"] = "ST...
package.path = package.path .. ";data/scripts/lib/?.lua" package.path = package.path .. ";data/scripts/?.lua" include ("faction") local _LGDist = 250 --_#DistADj local _XLGDist = 300 --Give room for Pillagers to move. local _XXLGDist = 350 --Give room for the Devastator to move. --General rule of thumb -- "shipTable...
local misc = require 'forth.extra.misc' local reason = require 'forth.extra.reason' local function functor (interpreter) local dictionary = interpreter.state.dictionary interpreter.module.dictionary.vocabulary 'stack' interpreter.module.dictionary.definitions 'stack' function dictionary.length (......
body = [[<html><body><p> Hello world! </p> </body></html> ]] --mg.response.status = 200 -- "200 OK" is the default mg.response.http_headers["Content-Type"] = "text/html"; mg.response.http_headers["Content-Length"] = tostring(string.len(body)); mg.response.send(); mg.write(body);
local Create = require(script.Parent.Util.Create) local FindUp = require(script.Parent.FindUp) local TARGET = Create("Folder", { Name = "__TEST_TARGET__", Parent = script, }) local START = Create("Folder", { Name = "__START__", Parent = Create("Folder", { Parent = Create("Folder", { Parent = TARGET,...
--这个用于实现标准对话框的常规逻辑 DialogViewLayout = class(ViewLayout) function DialogViewLayout:onCreate() local setting = self._setting if setting then for k, v in pairs(setting) do if not self[k] then self[k] = v end end else self._setting = {} end ...
ControllerLaunch = {} function ControllerLaunch:new(o) o = o or {} setmetatable(o,self) self.__index = self if(self.Instance==nil) then self.ControllerName = "Launch" self.LaunchConfigLoader = nil self.CanCheckLoadDataDone = false self.PreViewLoadDone = false ...
local _, nPlates = ... local L = nPlates.L nPlatesCheckboxMixin = {} function nPlatesCheckboxMixin:OnLoad() end function nPlatesCheckboxMixin:OnClick(button, down) PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON) local checked = self:GetChecked() self.value = checked self:SetOption(checked) end f...
-- put user settings here -- this module will be loaded after everything else when the application starts require "user.myinit"
-- -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- ImageNet and...
require "lib.classes.class" local Automaton = require "Menu.model.automaton.Automaton" -------------------------------------------------------------------------------------------------------- -- class: Automaton Builder -- A builder class to create automatons, its used to create a set of states and when we are done, s...
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
--[[ FiveM Scripts Copyright C 2018 Sighmir This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or at your option any later version. ...
----------------------------------- -- Area: Bastok Markets -- NPC: Zhikkom -- Standard Merchant NPC -- !pos -288.669 -10.319 -135.064 235 ----------------------------------- local ID = require("scripts/zones/Bastok_Markets/IDs") require("scripts/globals/shop") function onTrigger(player,npc) local stock = { ...
REDSUSHI = {} REDSUSHI.Symbols = { JACKPOT = 0, CHERRY = 1, SEVEN = 2, BAR = 3, BARBAR = 4, BARBARBAR = 5, VOID = 6 } --Local copy of symbols for easier access local Symbols = REDSUSHI.Symbols --Index this table by the symbol enum and it will return --the index position on the reel (will always return a tabl...
--- -- Global server -- -- Inspiration from -- https://bitbucket.org/blackops7799/breakpoint/src/bb3393586a30b99e399feca8e0d6d9e5a6fda2fc/lua/breakpoint/server/modules/global.lua?at=default -- include "buffer.lua" include "snet.lua" include "detour.lua" require "luasocket" local oldsock = nil if global and global.Di...
-- Generated by CSharp.lua Compiler local System = System local DCETModel = DCET.Model System.namespace("DCET.Hotfix", function (namespace) namespace.class("FUIInitComponent", function (namespace) local Init, Dispose, __ctor__ __ctor__ = function (this) System.base(this).__ctor__(this) end Init ...