content stringlengths 5 1.05M |
|---|
require('History');
function Client_GameRefresh(game)
if(game.Us == nil or Mod.PlayerGameData.TerritorySellOffers == nil)then
return;
end
local Nachricht = "";
if(tablelength(Mod.PlayerGameData.Peaceoffers)>0)then
Nachricht = Nachricht .. "\n" .. 'You have ' .. tablelength(Mod.PlayerGameData.Peaceoffers) ... |
--new
function DIALOG()
--Trigger
--Triggernumber,Type,Person
--0,D,Hontoka
--1,D,Pater Morpheus
--2,D,Jenna
--Items->NONE
--Startnode, Person
--0,Human Resource
--50,Hontoka
--100,Pater Morpheus
--150,Jenna
-----------------------------------------------------
--Human Resource Director
NODE(0)
S... |
local require = require
local base_handler = require("plugins.base_handler")
local req_var_extractor = require("core.req.req_var_extractor")
local base_dao = require("core.dao.base_dao")
local api_router_dao = require("core.dao.api_router_dao")
local resp_utils = require("core.resp.resp_utils")
local config = require("... |
--
-- Created by IntelliJ IDEA.
-- User: macbookair
-- Date: 01/04/17
-- Time: 18:43
-- To change this template use File | Settings | File Templates.
----
-- Created by IntelliJ IDEA.
-- User: macbookair
-- Date: 30/03/17
-- Time: 19:06
-- To change this template use File | Settings | File Templates.
--
local layout =... |
_WIFI_APS = {
{["ssid"]="", ["pwd"]=""},
{["ssid"]="", ["pwd"]=""}
}
PROTOCOL = "iot:1"
PROTOCOL_ALLOW_UNENCRYPTED = false
ENCODER_AESSHA1_STATICIV = 'abcdef2345678901'
ENCODER_AESSHA1_IVKEY = '2345678901abcdef'
ENCODER_AESSHA1_DATAKEY ='0123456789abcdef'
ENCODER_AESSHA1_PASSPHRASE = 'mypassphrase'
PORT = 5... |
local lume = require "lib/lume"
local event = require "event"
ui.buttonSettings = {
name = "noname", x = 0, y = 0, w = 100, h = 100, text = "", font = nil, align = "center",
hoverColor = { 37 / 255, 41 / 255, 49 / 255 },
downColor = { 44 / 255, 49 / 255, 58 / 255 },
color = { 33 / 255, 37 / 255,... |
local fakeTilesHelper = require("helpers.fake_tiles")
local jautils = require("mods").requireFromPlugin("libraries.jautils")
local fallingBlockIgnoreSolids = {
name = "FrostHelper/FallingBlockIgnoreSolids",
sprite = fakeTilesHelper.getEntitySpriteFunction("tiletype", false),
depth = function (room, entity)... |
local lust = require "lust/lust"
local Enum = require "enum"
local describe, it, expect = lust.describe, lust.it, lust.expect
describe("Enums", function()
it("can define a new enum", function()
local letters = Enum {"a", "b", "c"}
end)
it("can access an enum directly by index", function()
local stars =... |
-- 2e Essais de faire des fonctions trigos qui manque dans NodeMCU
-- source pour sin&cos: https://www.esp8266.com/viewtopic.php?p=64415#
-- source pour arcsin&arctan: http://www.electronicwings.com/nodemcu/magnetometer-hmc5883l-interfacing-with-nodemcu
print("\ntrigo2.lua zf180726.1149 \n")
function sin(x)
l... |
--[[
Copyright (c) 2016 by Marco Lizza (marco.lizza@gmail.com)
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including... |
---------------------------------------------------------------------------------------------------
-- User story: TBD
-- Use case: TBD
--
-- Requirement summary: TBD
--
-- Description:
-- In case:
-- Mobile application sends request with isTemplate = true and STATIC image type
-- SDL must:
-- send request with receive... |
--------------------------------------------------------------
--
-- "THE BEERWARE LICENSE" (Revision 42):
-- Prosper wrote this code. As long as you retain this
-- notice, you can do whatever you want with this stuff. If we
-- meet someday, and you think this stuff is worth it, you can
-- buy me a beer in return... |
local t = require( "taptest" )
local pluck = require( "pluck" )
local same = require( "same" )
-- Array table test
arr = { { "moe", "larry", "curly" }, { 30, 40, 50 }, { true, false, false } }
res = pluck( arr, 1 )
t( #res, 3 )
t( same( res, { "moe", 30, true } ), true )
-- Dict table test
dict = { { name = "moe", a... |
local jsocket = require'jet.socket'
local has_websockets, websockets_ev = pcall(require, 'websocket.client_ev')
local socket = require'socket'
local ev = require'ev'
local cjson = require'cjson'
local jutils = require'jet.utils'
local tinsert = table.insert
local tremove = table.remove
local tconcat = table.concat
lo... |
kCystBuildTime = 6 --from 3.33 --this value is seemingly half of what it is in-game. maybe this value is the drifter build time?
--idk it's a hotfix until asdf is home to look into it properly. |
local component = require("druid.component")
local InnerButton = require("example.examples.system.inner_templates.inner_button")
---@class inner_panel : druid.base_component
local InnerPanel = component.create("inner_panel")
local SCHEME = {
ROOT = "root",
BACKGROUND = "background",
INNER_BUTTON_1 = "inner_button... |
local zmq = require "zmq"
zmq.poller = require "lzmq.poller"
return zmq.poller
|
-- CombatStat.lua
-- @Author : DengSir (tdaddon@163.com)
-- @Link : https://dengsir.github.io/
-- @Date : 2017-9-8 10:35:51
BuildEnv(...)
CombatStat = Addon:NewModule('CombatStat', 'AceEvent-3.0', 'AceTimer-3.0')
CombatStat:Disable()
function CombatStat:OnInitialize()
self.units = {}
self.gro... |
speedLimit = 300 --This would set your speed limit to 150, Just divide by 2.
vehicle = "Vehicle" --Vehicle name, Sedan, Lawnmower and so on.
function onKeyPress(actionName, userInputState, inputObject)
if userInputState == Enum.UserInputState.Begin then
game.Workspace._Vehicles[vehicle].LW.VS.Maxspeed = SpeedLimit
gam... |
--[[
sprite ecs
]]
local path = (...):gsub("systems.sprite_system", "")
local base = require(path .. "base_system")
--sprite type
local sprite = class()
function sprite:new(texture)
return self:init({
--xy
pos = vec2:zero(),
size = vec2:zero(),
offset = vec2:zero(),
--uv
framesize = vec2:xy(1,1),
fra... |
--- Eva token module
-- Provide API to work with tokens in special container
-- Tokens is basic item, like money, energy or items.
-- @submodule eva
local app = require("eva.app")
local log = require("eva.log")
local luax = require("eva.luax")
local const = require("eva.const")
local smart = require("eva.libs.smart.s... |
-- Dependencies
local Class = require("engine.Class")
local String = require("engine.String")
-- Cheater class
local Cheater = Class("Cheater")
-- Constructor
function Cheater:Cheater(inputHistoryLimit)
self.cheats = {}
self.history = {}
self.startPos = 1
self.endPos = 1
self.limit = inputHistory... |
module 'mock'
---DEAD LOCK DEBUG HELPER
local DEADLOCK_THRESHOLD = 100
local DEADLOCK_TRACK = 10
local DEADLOCK_TRACK_ENABLED = true
local function tovalue( v )
v = v:trim()
if value == 'true' then
return true, true
elseif value == 'false' then
return true, false
elseif value == 'nil' then
return true, ... |
--[[
* 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
*... |
---@return Weapon
function Weapon(...) end
---@class Weapon
local cls = Weapon()
---@return any
function cls:IsInWater(...) end
---@return any
function cls:GetAttachedTo(...) end
---@return any
function cls:AttachTo(...) end
---@return any
function cls:ResetMaterial(...) end
---@return any
function cls:GetLeftHan... |
local alphabet = "rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"
local alphabet_i_to_char
do
local _tbl_0 = { }
for i = 1, #alphabet do
_tbl_0[i] = alphabet:sub(i, i)
end
alphabet_i_to_char = _tbl_0
end
local alphabet_char_to_i
do
local _tbl_0 = { }
for i = 1, #alphabet do
_tbl_0[alphab... |
local shots = {}
local settings = require("settings")
shots.list = {}
sound = love.audio.newSource("assets/shoot.wav", "static")
function shots.create(source, fromPlayer, isSmall, vx, vy)
local shot = {}
if isSmall then
shot.image = love.graphics.newImage("assets/shoot_small.pn... |
local ServerScriptService = game:GetService("ServerScriptService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RECS = require(ReplicatedStorage.Packages.RECS)
local ExampleComponent = require(ServerScriptService.Components.Example)
--[[
System setup
================
]]
local Example = RECS... |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local str_decode = require("string_decode")
local stringstream = require("string_stream")
require("rtp_packet")
--
-- r... |
--[[
Copyright (C) 2014 HarpyWar (harpywar@gmail.com)
This file is a part of the PvPGN Project http://pvpgn.pro
Licensed under the same terms as Lua itself.
]]--
--
-- Read file w3motd.txt line by line and send text to user
--
local username = nil
function command_w3motd(account, text)
-- allow warcraft 3 cli... |
return {
summary = 'Get the pose of a single node.',
description = 'Returns the pose of a single node in the Model in a given `CoordinateSpace`.',
arguments = {
name = {
type = 'string',
description = 'The name of the node.'
},
index = {
type = 'number',
description = 'The node... |
local readerapi = dofile("./config-reader.lua");
local reader = readerapi.new();
--init and look for config
reader:setpath(".");
local isCachePresent = reader:open("config.cfg");
local initializedComputers = reader:seek("computer")[1];
if (not isCachePresent) then
return error("run config.lua with the parameters \"... |
-- vim: et sw=2 sts=2 ts=2
local tsukuyomi = tsukuyomi
local util = require('tsukuyomi.thirdparty.util')
local PersistentList = tsukuyomi.lang.PersistentList
local PersistentVector = tsukuyomi.lang.PersistentVector
local PersistentHashMap = tsukuyomi.lang.PersistentHashMap
local ArraySeq = tsukuyomi.lang.ArraySeq
loca... |
local ts_utils = require("nvim-treesitter.ts_utils")
local ts_query = require("nvim-treesitter.query")
local parsers = require("nvim-treesitter.parsers")
local locals = require("nvim-treesitter.locals")
local utils = require("contextprint.utils")
--[[
--Parsers
{
available_parsers = <function 1>,
ft_to_lang = <fun... |
--One-Dimensional Array
print("hello lua")
-- array = {"Lua", "Tutorial"}
for i = 0,2 do
print(array[i])
end
|
local r = require("restructure")
describe('Reserved', function()
it('should have a default count of 1', function()
local reserved = r.Reserved.new(r.uint8)
assert.are_equal(1, reserved:size())
end)
it('should allow custom counts and types', function()
local reserved = r.Reserved.new(r.uint16,10)
... |
--finish obby
local endzone = game.Workspace.tower.sections.finish.Finish.CFrame
local player = game.Players.LocalPlayer.Character
player.HumanoidRootPart.CFrame = endzone
--rejoin
local ts = game:GetService("TeleportService")
local p = game:GetService("Players").LocalPlayer
wait(3)
ts:Teleport(game.PlaceId, p) |
-----------------------------------
--
-- tpz.effect.INNIN
--
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEffectGain(target,effect)
target:delMod(tpz.mod.EVA, effect:getPower())
target:delMod(tpz.mod.ENMITY, effect:getSubPower())
end
fun... |
messages = {}
function messages:enter()
self.cursorY = 0
self.yModPerc = 100
tween(0.2,self,{yModPerc=0})
output:sound('stoneslideshort',2)
self.smallestY=0
end
function messages:draw()
game:draw()
local width, height = love.graphics:getWidth(),love.graphics:getHeight()
local uiScale = (prefs['uiScale... |
print("======== test1.lua ========")
goFunc = goEvent
goFunc("goFunc from test1.lua")
|
local source = select(1,...)
local term = require("terminal")
local eapi = require("Editors")
if source and source ~= "@clip" and source ~= "-?" then
source = term.resolve(source)
if source:sub(-5,-1) ~= ".lk12" then source = source..".lk12" end
elseif source ~= "@clip" and source ~= "-?" then source = eapi.fileP... |
-- Kidoz plugin
local Library = require "CoronaLibrary"
-- Create library
local lib = Library:new{ name="plugin.kidoz", publisherId="com.coronalabs", version=1 }
-------------------------------------------------------------------------------
-- BEGIN
------------------------------------------------------------------... |
--Text editor--
local args = {...} --Get the arguments passed to this program
if #args < 1 or args[1] == "-?" then
printUsage(
"edit <file>","The file to edit in the text editor."
)
return
end
local tar = table.concat(args," ") --The path may include whitespaces
local term = require("terminal")
tar = term.re... |
local mixpanel = require "src/vendor/mixpanel"
--should be -1 for a negative number
function test_random_id()
assert_equal(#mixpanel.randomId(), 10)
end
function test_distinct_id()
love.filesystem.remove('mixpanel.txt')
assert_equal(mixpanel.distinctId(), mixpanel.distinctId())
end
function test_distinct_id_... |
local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore
local PD = E:NewModule('PaperDoll', 'AceEvent-3.0', 'AceTimer-3.0');
local find = string.find
local initialized = false
local originalInspectFrameUpdateTabs
local updateTimer
local slots = {
... |
-- Do not source the default filetype.vim
vim.g.did_load_filetypes = 1
-- avoid stupid menu.vim (saves ~100ms)
vim.g.did_install_default_menus = 1
-- Options
-- general opt
vim.opt.fileformats = "unix,mac,dos"
vim.opt.autowrite = true
vim.opt.autowriteall = true
vim.opt.backup = false
vim.opt.writebackup = false
vim.... |
local y=0.0
local x=0
local n=10000000
while x<n do
y=y+x
x=x+1
end
print(y)
|
--[[-----------------------------------------------------------------------------------------------------------------------
Physgun players
-----------------------------------------------------------------------------------------------------------------------]]--
local PLUGIN = {}
PLUGIN.Title = "Physgun Players"
PLU... |
module 'mock'
--------------------------------------------------------------------
local function varianceRange( v, variance, minValue, maxValue )
local min, max = v-variance, v+variance
if minValue and min < minValue then min = minValue end
if maxValue and max > maxValue then max = maxValue end
return { min, max ... |
local shopTabPanel, modshopTab, modshop_gui
local modshop_upgrades, current_vehicle, vehicle_price = {}, nil, 550
local neons = {}
local player_perks
------------------------
---- Loading GUI ---
------------------------
function onShopInit ( tabPanel )
shopTabPanel = tabPanel
colorPicker.constructor()
modsho... |
local dap = require 'dap'
dap.adapters.chrome = {
type = 'executable',
command = 'node',
args = { os.getenv 'HOME' .. '.config/nvim/vscode-chrome-debug/out/src/chromeDebug.js' },
}
dap.configurations.javascript = { -- change this to javascript if needed
{
type = 'chrome',
request = 'attach',
program = '${fi... |
--
-- Copyright 2021 Andreas MATTHIAS
--
-- This work may be distributed and/or modified under the
-- conditions of the LaTeX Project Public License, either version 1.3c
-- of this license or (at your option) any later version.
-- The latest version of this license is in
-- http://www.latex-project.org/lppl.txt
-- an... |
object_tangible_collection_dwartii_statue_braata = object_tangible_collection_shared_dwartii_statue_braata:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_dwartii_statue_braata, "object/tangible/collection/dwartii_statue_braata.iff") |
local include = require 'include'
local LuaXml = require 'LuaXml'
local util = require 'util'
local datapath = 'powerplant/'
local filename = datapath..'manifest.xml'
local file = xml.load(filename)
local data = file:find('model')
local model = {}
if data ~= nil then
for i = 1, #data do
model[data[i]:tag()] = ... |
--!strict
-- StreamableUtil
-- Stephen Leitnick
-- March 03, 2021
--[[
StreamableUtil.Compound(observers: {Observer}, handler: ({[child: string]: Instance}, janitor: Janitor) -> void): Janitor
Example:
local streamable1 = Streamable.new(someModel, "SomeChild")
local streamable2 = Streamable.new(anotherModel,... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
resource_version '1.0'
name 'B2K MLO Dev Tool'
description 'B2KRP MLO Dev Tool'
client_script 'MLODevTool.net.dll'
|
return {'bik','biker','bikhamer','bikini','bikinietjes','bikinislip','bikkel','bikkelen','bikkelhard','bikkelspel','bikken','biksteen','bikker','bikinilijn','bikkelbal','bikschote','biko','bikker','bik','bikhamers','bikinis','bikinietje','bikkelde','bikkelden','bikkelharde','bikkels','bikkelt','bikkeltje','bikkeltjes',... |
-- Original work by Astromech
-- Rewritten based on Auras by Azilroka
local _, ns = ...
local oUF = ns.oUF
local VISIBLE = 1
local HIDDEN = 0
local tinsert = tinsert
local wipe = wipe
local UnitAura = UnitAura
local UnitIsUnit = UnitIsUnit
local GetSpellTexture = GetSpellTexture
local function createAuraIcon(elemen... |
ignite_poet = {
cast = function(player, target)
local spellName = "Ignite"
if not player:canCast(1, 1, 0) then
return
end
local damage = 40 + math.floor(player.level / 2) + math.floor((player.will + 3) / 4)
local worked = global_zap.cast(player, target, damage, 30, 0)
if worked ~= 0 then
player:sendM... |
MoveState = { mName = "move" }
MoveState.__index = MoveState
function MoveState:Create(character, map)
local this =
{
mCharacter = character,
mMap = map,
mTileWidth = map.mTileWidth,
mEntity = character.mEntity,
mController = character.mController,
mMove... |
AddEvent("OnPlayerSpawn", function()
webui = CreateWebUI(0, 0, 0, 0, 0, 60)
SetWebURL(webui, "http://asset/projectr/UI/html/index.html")
SetWebAlignment(webui, 0.0, 0.0)
SetWebAnchors(webui, 0.0, 0.0, 1.0, 1.0)
SetWebVisibility(webui, WEB_VISIBLE)
SetPlayerClothingPreset(GetPlayerId(), 7)
end) |
--[[ ___ ___
( ) ( )
___ .-. .-. ___ ___ | |_ .---. ___ .-. | |_
( ) ' ( )( ( __) / .-, ( ) ( __)
| .-. .-. | | | | | | (__) ; || .-. .| |
| | | | | | | | | | | ___ .'` || | | || | ___
| | | | | | | | | | |( ... |
print("Creating newForm")
selectPhysicsModelsForm=FormClass.New("Select Physics Models",true)
dRegisterFeature(selectPhysicsModelsForm);
mtemp=selectPhysicsModelsForm
currentScene=chiGetScene();
chiBindScene(mtemp.sceneNumber);
mtemp.mainPanel = PanelClass.New("Main");
mtemp.RegisterFeature(mtemp,mtemp.mainPanel);
... |
local nTime = os.time()
local nDay = os.day()
print("The time is " .. textutils.formatTime(nTime, false) .. " on Day " .. nDay)
|
return {
name = "Shovel",
desc = "For destroying tiles",
sprite = 'shovel',
usage = 'shovel',
stack_size = 1,
use_time = 0.5,
can_upgrade = true
}
|
workspace "DeerfoxBrowser"
architecture "x64"
startproject "DeerfoxBrowser"
configurations
{
"Debug",
"Release",
"Deploy"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
IncludeDir = {}
IncludeDir["GLFW"] = "DeerfoxBrowser/deps/GLFW/include"
IncludeDir["Glad"] = "DeerfoxBrowser/deps/... |
local files = require 'files'
local guide = require 'parser.guide'
local lang = require 'language'
local define = require 'proto.define'
return function (uri, callback)
local state = files.getAst(uri)
if not state then
return
end
guide.eachSourceType(state.ast, 'local', function (source)
... |
local spawn = require "nvim-lsp-installer.core.spawn"
local log = require "nvim-lsp-installer.log"
local fs = require "nvim-lsp-installer.core.fs"
local path = require "nvim-lsp-installer.path"
local platform = require "nvim-lsp-installer.platform"
local receipt = require "nvim-lsp-installer.core.receipt"
local install... |
--% Kale Ewasiuk (kalekje@gmail.com)
--% +REVDATE+
--% Copyright (C) 2021-2022 Kale Ewasiuk
--%
--% 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 li... |
local ADDON_NAME = "LibCovetousCountess"
local ADDON_VERSION = 1.00
LibCovetousCountess = {}
-- TODO: figure out a way to solve potential localization issues
local TAGS = {
-- levels 1-15, 50
["Games"] = 1,
["Dolls"] = 1,
["Statues"] = 1,
-- levels 16-24, 50
["Ritual Objects"] = 2,
["Odditi... |
local BasePlugin = require "kong.plugins.base_plugin"
local access = require "kong.plugins.ghibli-sso.access"
local GhibliHandler = BasePlugin:extend()
myJWT = nil
GhibliHandler.VERSION = "1.0.0"
GhibliHandler.PRIORITY = 10
function GhibliHandler:new()
GhibliHandler.super.new(self, "ghibli-s... |
local parser = require("moocscript.parser")
local compile = require("moocscript.compile")
describe("test success 1 #export", function()
local mnstr=[[
local aa
local b, c
local d, e, f = 1, {2}, fn() {}
local fn call(b, c) {
return b
}
export a
... |
require "sprite"
require "theme"
require "timer"
local W, H = theme.scr.w(), theme.scr.h()
local tiles = {}
local WX, HY = 64, 64
local WW, HH = math.floor(W / WX), math.floor(H / HY)
local pad = 2
local book_spr = sprite.new "book.png"
local wh1_spr = sprite.new "wheel1.png"
local wh2_spr = sprite.new "wheel2.png... |
local Object = { className = "Object" }
function Object:new ( obj )
obj = obj or {}
setmetatable( obj, self )
self.__index = self
return obj
end
function Object:extend ( obj )
obj = self:new ( obj )
obj.mysuper = {}
local oldmysuper = self.mysuper or {}
if #oldmysuper > 0 then
for i = 1, #oldmysuper do
... |
--[[Author: Pizzalol
Date: 26.01.2015.
Saves the killer of the aura carrier]]
function CommandAuraDeath( keys )
local caster = keys.caster
local attacker = keys.attacker
caster.command_aura_target = attacker
end
--[[Author: Pizzalol
Date: 26.01.2015.
Removes the negative aura from the killer on caster respawn]... |
local _ = require('string')
local a = {}
local b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
a.encode = function(c)
return ((c:gsub('.', function(d)
local e, f = '', d:byte()
for g = 8, 1, -1 do
e = e .. (f % 2 ^ g - f % 2 ^ (g - 1) > 0 and '1' or '0')
en... |
Lucene.maps = {}
Lucene.maps.capturedSpace = false
Lucene.maps.capturingSpace = false
Lucene.maps.ignorePrompt = false
Lucene.maps.inSpace = false
Lucene.maps.skipLine = 0
Lucene.maps.activateMap = function(name)
if name == "Space" then
Lucene.maps.showSpace()
Lucene.maps.inSpace = true
else
... |
-- config
local opts = {
position_size = 50,
group_line_factor = 0.25,
color_group = '#ffffffaa',
color_person_selected = '#ffffff33',
color_single_person = '#ffffff33',
color_group_member = '#377eb833',
color_group_speaker = '#e41a1c33',
color_group_addressee = '#4daf4a... |
concommand.Add("updating", function(_, _, _, args)
local spacedArgs = args:Trim():Split(" ")
local method = spacedArgs[1]:lower()
if method == "start" then
ChatAddText(Color(175, 235, 225), "Server update in progress...")
elseif method == "addons-updated" then
ChatAddText(Color(175, 235, 225), "\tUpdated addon... |
package.path = './src/?.lua;' .. package.path
local test = require('gambiarra')
local actual = {}
local expected = {}
local currentTest
-- Set meta test handler
test(function(e, testname, msg)
if msg and msg:find('Expected', nil, true) then
msg = msg:match('^(.*): Expected.*$')
end
if e == 'begin' then
... |
local GIF = require("gif")
local P = require("ps2const")
local VRAM = require("vram")
-- enum for how this script tracks current
-- drawing mode to minimize GIFTag swapping
local DRAW_NONE = 0
local DRAW_GEOM = 1
local DRAW_SPRITE = 2
-- GS Registers to set when drawing geometry
local DRAW_FMT_GEOM = {1,5,5,5}
-- GS ... |
local Desktop = require("Desktop");
function test_GetDesktops()
local desktops = Desktop:desktopNames();
for _, name in ipairs(desktops) do
print(name);
end
end
function test_desktopwindows()
local dtop = Desktop:openThreadDesktop();
local wins = dtop:getWindowHandles();
for winid, hwnd in pairs(wins) do
... |
local t = Def.ActorFrame {Name = "UnderlayFile"}
t[#t+1] = LoadActor(THEME:GetPathG("Title", "BG"))
return t |
-----------------------------------
-- Ability: Aspir Samba II
-- Inflicts the next target you strike with Aspir daze, allowing all those engaged in battle with it to drain its MP.
-- Obtained: Dancer Level 60
-- TP Cost: 250
-- Recast Time: 00:01:00
-- Duration: 00:01:30
-----------------------------------
require("sc... |
local self = {}
GLib.Net.Layer5.Channel = GLib.MakeConstructor (self, GLib.Net.IChannel) |
local table = {
point = {
x = 0,
label = 'originPoint',
z = 0,
y = 0
},
i_am_boolean = true,
name = 'myTable',
randomNumbers = {
43,
20,
40,
40,
46,
10,
17,
39,
14,
28
}
}
return table |
local Action = require(script.Parent.Action)
return Action("StampSelectedSet", function(guid)
return {
guid = guid
}
end) |
g_ConfigDefaults =
{
Storage = "sqlite",
LoginMessageTime = 50,
}
function InitConfig()
local Path = cPluginManager:Get():GetCurrentPlugin():GetLocalFolder() .. "/config.cfg"
if (not cFile:IsFile(Path)) then
LOGWARNING("[Login] The config file doesn't exist. Login will write and load the defaul... |
local modkeys = {}
modkeys.map = {
["left command"] = "cmd",
["right command"] = "cmd",
["left ctrl"] = "ctrl",
["right ctrl"] = "ctrl",
["left shift"] = "shift",
["right shift"] = "shift",
["left option"] = "option",
["right option"] = "option",
["left alt"] = "alt",
... |
ESX = nil
local PlayerData = {}
local HasAlreadyEnteredMarker = false
local LastZone = nil
local CurrentAction = nil
local CurrentActionMsg = ''
local CurrentActionData = {}
local isDead = false
local CurrentTa... |
-----------------------------------------------------------------------------------------
--
-- cBatiment.lua
--
-- Classe qui affiche un bâtiment sur la carte et y crée un porte d'entrée
--
-----------------------------------------------------------------------------------------
local Batiment = {}
-- @params
-- par... |
local smog={}
function get_min(tabl)
local min, index
for i, v in pairs (tabl) do
if (min and (min > v)) or not min then
min=v
index=i
end
end
return min, index
end
function get_max(tabl)
local max, index
-- game.print('max serp '.. serpent.line(tabl))
for i, v in pairs (tabl) do
if (max and (max ... |
local name, ns = ...
local L = ns.L
function ravNameplates_OnLoad(self)
self:RegisterEvent("ADDON_LOADED")
self:RegisterEvent("PLAYER_ENTERING_WORLD")
end
function ravNameplates_OnEvent(_, event, arg)
if arg == name then
if event == "ADDON_LOADED" then
if not RAVN_version then
... |
local M = {}
M.__index = M
function M.new()
local o = {
machine = nil,
type = 0,
agent = nil,
weight = 0,
duration = 0,
time = 0,
speed = 1,
isdone =false,
iscancel = false,
ispause = false,
}
return setmetatable(o, M)
end
func... |
local osmose = require 'osmose'
local et = osmose.Model 'HPSteamGenerator'
local cp = require 'coolprop'
local math = require 'math'
local invcostcalc = require 'equipmentcost.InvestmentCostLinearizator'
----------
-- User parameters
----------
et.inputs = {
-- Heat supply
HPSTEAM_T = {default=150... |
---------------------------------
-- GLOBAL VARIABLES
---------------------------------
local MIN_REFRESH_VBATT = 0.2
local REFRESH_FREQUENCY_2S = 200
local LIPO_CELL = 3.7
local LIPO_CELL_LOW = 3.5
local LIPO_CELL_MAX = 4.2
local LIPO_DELTA = LIPO_CELL_MAX - LIPO_CELL_LOW
---------------------------------
-- VARIABL... |
function Creature.getClosestFreePosition(self, position, maxRadius, mustBeReachable)
maxRadius = maxRadius or 1
-- backward compatability (extended)
if maxRadius == true then
maxRadius = 2
end
local checkPosition = Position(position)
for radius = 0, maxRadius do
checkPosition.x = checkPosition.x - math.min(... |
local snownet = require "snownet"
local cluster = require "snownet.cluster"
require "snownet.manager" -- inject snownet.forward_type
local node, address = ...
snownet.register_protocol {
name = "system",
id = snownet.PTYPE_SYSTEM,
unpack = function (...) return ... end,
}
local forward_map = {
[snownet.PTYPE_SNA... |
require('paths')
require('nngraph')
-- require('cunn')
require('optim')
paths.dofile('params.lua')
paths.dofile('utils.lua')
paths.dofile('layers/Normalization.lua')
torch.setdefaulttensortype('torch.FloatTensor')
g_make_deterministic(123)
-- load the data
trdata = paths.dofile('data.lua')
tedata = paths.dofile('data.... |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local stringstream = require("string_stream")
EosExceptionU4 = class.class(KaitaiStruct)
function EosExceptionU4:_init(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.