content stringlengths 5 1.05M |
|---|
function printConsole( message )
outputServerLog( "PTPM: " .. message )
end
function tableSize( t )
local c = 0
for _,_ in ipairs( t ) do c = c + 1 end
return c
end
function resetPlayerColour( thePlayer )
local r, g, b, a = getPlayerColour( thePlayer )
setPlayerNametagColor( thePlayer, r, g, b )
end
functi... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Lua functions
local pairs = pairs
local strfind, strjoin = strfind, strjoin
--WoW API / Variables
local GetAddOnInfo = GetAddOnInfo
local GetAddOnMetadata = GetAddOnMetadata
loc... |
local utils = require "octo.utils"
local M = {}
function M.create_border_header_float(opts)
local outer_winid, outer_bufnr
outer_bufnr = vim.api.nvim_create_buf(false, true)
local outer = {}
local line_fill = string.rep("─", opts.width - 2 * opts.border_width)
table.insert(outer, string.format("┌%s┐", line_f... |
--[[
== Introduction ==
Note that this requires os.clock(), debug.sethook(),
and debug.getinfo() or your equivalent replacements to
be available if this is an embedded application.
Example usage:
profiler = newProfiler()
profiler:start()
< call some functions that take time >
profiler:stop... |
--[[
* dnsprotocol.lua
*
* https://public-dns.info/
* https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml
*
* DNS protocol message formatting and reply unwinding.
]]
-- ----------------------------------------------------------------------------
--
local trace = require("lib.trace")
local ... |
--添加词条
--去除字符串开头的空格
local function kickSpace(s)
if type(s) ~= "string" then return end
while s:sub(1,1) == " " do
s = s:sub(2)
end
while s:sub(-1,-1) == " " do
s = s:sub(1,-2)
end
return s
end
--防止切割到不完整的中括号。。。
local function notRightBrackets(s)
local temp =... |
-- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
-- Default to not using any Lua code on the filesystem.
-- (Can be overridden with -P argument: see below.)
package.path = ''
local STP = require("lib.lua.StackTracePlus")
local ffi = require("ffi")
local zone =... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {},
Delay = 300000,
Effects = {},
Image = "UI/Messages/Events/01_video_call.tga",
Prerequisites = {},
ScriptDone = true,
Text = T(900842586317, --[[StoryBit TotalRecall_2 Text]] "The expedition landed at... |
GM.Languages = RequireDir( "i18" );
local l = GetConVar( "gmod_language" ):GetString();
if( l and GM.Languages[l] ) then
GM.Language = GM.Languages[l];
else
GM.Language = GM.Languages["en"];
end
function I18( str, ... )
local tabReplace = { ... };
local s;
if( GAMEMODE ) then
s = GAMEMODE.Language[str] or st... |
local test = require "sailor.test"
local access = require "sailor.access"
local User = require "sailor.model"('user')
local fixtures = require "tests.fixtures.user" or {}
describe("Testing #UserController", function()
it("should know no one has logged in", function()
assert.is_true(access.is_guest())
end)
... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BceGuildAbilityList_pb', package.seeall)
local BCEGUILDABILITYLIST = protobuf.Descriptor();
BCEGUILDABILITYLIST.name = "BceGuildAbilityList"
BCEGUILDABILITYLIST.full_name = ".com.xinqihd.sns.gameserver.proto.BceGuildAbilityList"
B... |
local __exports = LibStub:NewLibrary("ovale/scripts/ovale_demonhunter_spells", 80300)
if not __exports then return end
__exports.registerDemonHunterSpells = function(OvaleScripts)
local name = "ovale_demonhunter_spells"
local desc = "[8.2] Ovale: DemonHunter spells"
local code = [[Define(annihilation 201427... |
function FelBoar_OnEnterCombat(Unit,Event)
Unit:FullCastSpellOnTarget(35570,Unit:GetClosestPlayer())
end
RegisterUnitEvent(21878, 1, "FelBoar_OnEnterCombat") |
local help_message = [[
This is a module file for the container quay.io/biocontainers/emboss:6.6.0--h6debe1e_0, which exposes the
following programs:
- aaindexextract
- abiview
- acdc
- acdgalaxy
- acdlog
- acdpretty
- acdtable
- acdtrace
- acdvalid
- aligncopy
- aligncopypair
- annotate
- antigenic
- as... |
local IAspect = require("api.IAspect")
local IItemWeapon = require("mod.elona.api.aspect.IItemWeapon")
local IItemMeleeWeapon = class.interface("IItemMeleeWeapon", {}, { IAspect, IItemWeapon })
IItemMeleeWeapon.default_impl = "mod.elona.api.aspect.ItemMeleeWeaponAspect"
function IItemMeleeWeapon:is_active(item)
r... |
local awful = require("awful")
local gears = require("gears")
local client_keys = require("configuration.client.keys")
local client_buttons = require("configuration.client.buttons")
-- Rules
awful.rules.rules = {
-- All clients will match this rule.
{
rule = {},
properties = {
focus = awful.client.fo... |
local csg = require("gutter.csg")
local gutterMath = require("gutter.math")
local loveMath = require("love.math")
local quaternion = require("gutter.quaternion")
local abs = math.abs
local acos = math.acos
local box = csg.box
local clamp = gutterMath.clamp
local cos = math.cos
local cross = gutterMath.cross
local dist... |
if not Global.editor_mode then
return
end
core:import("CoreShapeManager")
local SoundEnv = CoreSoundEnvironmentManager
function SoundEnv:init()
self._areas = {}
self._areas_per_frame = 1
self._check_objects = {}
self._check_object_id = 0
self._emitters = {}
self._area_emitters = {}
self._ambience_changed_callb... |
-- _ _ _ _
-- /\ | | | | | | | |
-- / \ | |_| | __ _ ___ ___| |__ __ _| |_
-- / /\ \| __| |/ _` / __| / __| '_ \ / _` | __|
-- / ____ \ |_| | (_| \__ \ | (__| | | | (_| | |_
-- /_/ \_\__|_|\__,_|___/ \___|_| |_|\__,_|\__|
-- ... |
--- Extends Lua 5.2 string.
-- @module string
-- @see string
local String = {}
local concat = table.concat
local insert = table.insert
local ceil = math.ceil
local abs = math.abs
for k, v in pairs(string) do
String[k] = v
end
local old_string_meta = getmetatable(string)
setmetatable(string, {__index = String})
... |
---
-- msc.lua
-- Interface for the MS C/C++ compiler.
-- Author Jason Perkins
-- Modified by Manu Evans
-- Copyright (c) 2009-2015 Jason Perkins and the Premake project
---
local p = premake
p.tools.msc = {}
local msc = p.tools.msc
local project = p.project
local config = p.config
--
-- Returns list of C pre... |
-- ITS - In The Shadows
-- Copyright (C) 2015, 2016, 2017 James Niemira
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ve... |
a={}
x="y"
a[x]=10
print("a[x]" .. a[x])
print("a.x" .. a.x)
print("a.y" .. a.y)
--********
a.x=11
print("a.x" .. a.x)
print("a.y" .. a.y) |
local t = LoadFallbackB()
-- The math.floor(10000*aspect) trick is used to circumvent float precision problems.
local aspectRatioSuffix = {
[math.floor(10000*4/3)] = " 4_3",
[math.floor(10000*16/9)] = " 16_9",
[math.floor(10000*16/10)] = " 16_9"
}
--fall back on the 4:3 frame if we don't know about this a... |
--
-- SCS
-- componentproperties.lua
-- Description: Properties class
-- Version: 1.0
--
local oo = require "loop.base"
local Log = require "scs.util.Log"
local utils = require "scs.core.utils"
local assert = assert
--------------------------------------------------------------------------------
module "scs.auxil... |
#!/usr/bin/env lua5.3
if (1 << 31) < 0 or tostring((1 << 62) - 1) ~= "4611686018427387903" then
print("Your Lua must be compiled with 64-bit integers to use knockout-trim")
os.exit(1)
end
local s,lfs = pcall(require, "lfs")
if not s then
print("LuaFileSystem is required. Please install it.")
os.exit(1)
en... |
-- set repository description
set_description("The official builtin package repository of xmake")
|
local pmstring=require("puremake.string")
for n,v in pairs(pmstring) do string[n]=v end
|
local function ChangeName(msg)
local text = msg.content_.text_
if ChatType == 'sp' or ChatType == 'gp' then
if text then
tdcli_function({ID = "GetUser",user_id_ = msg.sender_user_id_},function(arg,result)
if result.id_ then
local abbs = DevAbs:get("BrandTameTEAM:Name"..result.id_)
if not result.first_name_ then
if ... |
local playMode = GAMESTATE:GetPlayMode()
if playMode ~= 'PlayMode_Regular' and playMode ~= 'PlayMode_Rave' and playMode ~= 'PlayMode_Battle' then
curStage = playMode;
end;
local sStage = GAMESTATE:GetCurrentStage();
local tRemap = {
Stage_1st = 1,
Stage_2nd = 2,
Stage_3rd = 3,
Stage_4th = 4,
Stage_5... |
module 'mock'
local queryHandlers = {}
function registerSyncQueryHandler( handler )
table.insert( queryHandlers, handler )
end
--------------------------------------------------------------------
local PORT = 201103
local BroadcastPORT = 200637
local SYNC_FIELDS = {
'loc',
'scl',
'rot',
'piv',
'visible',
'col... |
ys = ys or {}
slot1 = class("AutoPilotBrownian", ys.Battle.IPilot)
ys.Battle.AutoPilotBrownian = slot1
slot1.__name = "AutoPilotBrownian"
slot1.Ctor = function (slot0, ...)
slot0.super.Ctor(slot0, ...)
end
slot1.SetParameter = function (slot0, slot1, slot2)
slot0.super.SetParameter(slot0, slot1, slot2)
slot0._ran... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BseLogin_pb', package.seeall)
local BSELOGIN = protobuf.Descriptor();
local BSELOGIN_CODE_FIELD = protobuf.FieldDescriptor();
local BSELOGIN_DESC_FIELD = protobuf.FieldDescriptor();
local BSELOGIN_SESSIONID_FIELD = protobuf.FieldDe... |
return {
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
desc_get = "",
name = "",
init_effect = "",
time = 0,
color = "blue",
picture = "",
desc = "",
stack = 1,
id = 13670,
icon = 13670,
last_effect = "",
effect_list = {
{
type = "BattleBuffCount",
trigger = {
"onBeHit"
},
arg_list = {... |
local fn = vim.fn
-- Automatically install packer
local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
PACKER_BOOTSTRAP = fn.system {
"git",
"clone",
"--depth",
"1",
"https://github.com/wbthomason/packer.nvim",
install_path... |
local playsession = {
{"Vavyman", {3644}},
{"ChipSNSalsa", {1729}},
{"TXL_PLAYZ", {234263}},
{"Menander", {350994}},
{"terradus", {70526}},
{"trnila", {253435}},
{"DviK", {1828}},
{"JailsonBR", {158190}},
{"ronnaldy", {188265}},
{"cogito123", {92324}},
{"Zredy", {52313}},
{"neekoneeko", {4411}}
}
return pla... |
--[[
Created by DidVaitel (http://steamcommunity.com/profiles/76561198108670811)
]]
gDuel.vgui = gDuel.vgui or {}
local function gDuelMenu()
local w, h = ScrW() * .7, ScrH() * .7
local selectedPlayer = nil
local selectedDuel = 1
local curWager = 0
local Leaders = net.ReadTable()
// Our main frame
local... |
--[[
Copyright (C) 2017 ZTE, Inc. and others. All rights reserved. (ZTE)
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-... |
module = {}
function module.sum(a, b)
return a + b
end
return module
|
-----------------------------------
-- Area: Windurst Waters
-- NPC: Mokyoko
-- Starts Windurst Missions
-- !pos -55 -8 227 238
-- Note: Includes Topaz modifications which may be subject to Topaz license
-----------------------------------
local ID = require("scripts/zones/Windurst_Waters/IDs")
require("scripts/global... |
ITEM.name = "IR Night Vision"
ITEM.desc = "irnvGogDesc"
ITEM.model = "models/warz/miltnvg.mdl"
ITEM.price = 500
ITEM.width = 1
ITEM.height = 1
ITEM.outfitCategory = "hat"
ITEM.price = 200
function ITEM:onGetDropModel(item) return "models/props_junk/cardboard_box004a.mdl" end
ITEM.iconCam = {
ang = Angle(0.578571438789... |
--[[ SETUP ]]
function setup()
print("/-------------------/")
print(" Master Computer v2")
print("---------------------")
print("Detected type: " .. api_os.getType())
print("Detected name: " .. api_os.getName())
api_net.prepare()
end
--[[ MAIN ]]
function main()
setup()
... |
---- Module with implementation of threads based on coroutines
-- @module ljepsen.thread_coroutine
--
--### References
--
-- - [Programming in Lua, Coroutines](http://www.lua.org/pil/9.html) -
-- Roberto Ierusalimschy
-- - [Coroutines in Lua](https://www.lua.org/doc/jucs04.pdf) - Ana L´ucia de
-- Moura, Noemi Rodriguez... |
--
-- api.lua
-- Implementation of the solution, project, and configuration APIs.
-- Copyright (c) 2002-2013 Jason Perkins and the Premake project
--
premake.api = {}
local api = premake.api
local configset = premake.configset
premake.fields = {}
--
-- A place to store the current active objects in each project... |
ones = {"две", "три", "четири", "пет", "шест", "седам", "осам", "девет"}
tens = {"двадесет", "тридесет", "четрдесет", "педесет", "шездесет", "седамдесет", "осамдесет", "деведесет"}
msg_two = "два"
msg_hundred = {"стотине", "стотина"}
msg_thousand = {"хиљаде", "хиљада"}
|
return function()
local CorePackages = game:GetService("CorePackages")
local Rodux = require(CorePackages.Rodux)
local InspectAndBuyFolder = script.Parent.Parent
local Reducer = require(InspectAndBuyFolder.Reducers.InspectAndBuyReducer)
local MockNetwork = require(InspectAndBuyFolder.Test.MockNetwork)
local Netwo... |
local cluster_devices = assert(yatm.cluster.devices)
local cluster_energy = assert(yatm.cluster.energy)
local Energy = assert(yatm.energy)
local EnergyDevices = assert(yatm.energy.EnergyDevices)
-- network frames * seconds * minutes
local hours = 20 * 60 * 60
local cell_types = {
basic = {
bandwidth = 60,
ca... |
--- Hello world module for Scribunto remote debugging on Node.js.
local title = mw.title
local currentTitle = title.getCurrentTitle()
local CommandLine = require('Dev:CLI')
local commands = {}
function commands.hello(args)
mw.log('Hello, world! Max didn\'t make me put this here.')
end
return CommandLine:new{
... |
---
-- Working Example: https://www.youtube.com/watch?v=PDxTR_KJLhc
-- @author Miguel (AllAboutEE.com)
-- @description This example will read the first email in your inbox using IMAP and
-- display it through serial. The email server must provided unecrypted access. The code
-- was tested with an AOL and Time Warner ca... |
x = 10
if x > 0 then
print("x is a positive number")
end
x = 0
if x > 0 then
print("x is a positive number")
else
print("x is a non-positive number")
end
score = 90
if score == 100 then
print("Very good!Your score is 100")
elseif score >= 60 then
print("Congratulations, you have passed it,your ... |
fx = {
style = "STYLE_COMBO", properties = {
property_06 = {name = "FX7", type = "VARTYPE_STRING", value = "MUZZLE_FLASH_GLOW_CAPITAL"}, --all tweaked down in duration and radius
property_05 = {name = "FX6", type = "VARTYPE_STRING", value = "frigate_beam_combo"},
property_07 = {name = "FX8", type = "VARTYPE_STR... |
------------------------------------------------------------------------
--- @file ecpri.lua
--- @brief enhance Common Public Radio Interface (eCPRI) utility.
--- Utility functions for the PROTO_header structs
--- Includes:
--- - eCPRI constants
--- - eCPRI header utility
--- - Definition of eCPRI packets
------------... |
-- ET-STM32 build configuration
return {
cpu = 'stm32f103re',
components = {
sercon = { uart = 0, speed = 115200, buf_size = 128 },
wofs = true,
romfs = true,
shell = true,
term = { lines = 25, cols = 80 },
cints = true,
luaints = true,
linenoise = { shell_lines = 10, lua_lines = 50... |
--[[
Bit Field Library
V1.0 - 10/15/2020
by Chris
]]
local BITS_PER_INT = 32
local BitField = {}
function BitField.New(startingData)
if startingData == nil then startingData = {} end
newBitField = {
rawData = startingData,
}
setmetatable(newBitField, {__index = BitField})
return newBitField... |
LinkLuaModifier("modifier_intrinsic_multiplexer", "modifiers/modifier_intrinsic_multiplexer.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_siege_mode_stacking_stats", "items/siege_mode.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_siege_mode_non_stacking_stats", "items/siege_mode.lua", ... |
-- Applet that installs another applet into our storage.
if not (arg[1] and arg[2])then
print("Usage: install <appname> <app.lua>")
return 1
end
-- Some variables to make code easier to read
local appname = arg[1]
local source_location = arg[2]
-- Initialize the native vfs backend to read the file
assert(vfs.new("... |
local _, nMinimap = ...
local cfg = nMinimap.Config
local select = select
if not IsAddOnLoaded("Blizzard_TimeManager") then
LoadAddOn("Blizzard_TimeManager")
end
for i = 1, select("#", GameTimeFrame:GetRegions()) do
local texture = select(i, GameTimeFrame:GetRegions())
if texture and texture:GetObjectTyp... |
local CloneTable = {"nehoray1200","TestPlayerName"}
local FirstGui = script:WaitForChild("AdminPanel")
local SecondGui = script:WaitForChild("PlayerListGui")
game.Players.PlayerAdded:Connect(function(player)
local PlayerGui = player:WaitForChild("PlayerGui")
for i, plr in pairs(CloneTable) do
if pla... |
--2.4
_G.ScriptCode = Base64Decode("ImDgzXFws9lQ+A5GGjrY6nS9yJbXb3K0M16AILGbCAueMvsSY3dUxQ/UjPVMJqBH88ev8eSrgumOAizeaL+pwUWVYrBSzKJCG11YJVqmw+vQ9FeTf9oE+aoeMNNrK/+E/YeKiDRI37ZpS65BmOKBZmTJBhB6bJDOj75RQAO6rNJEn60MpLcvXxaUFfBJ9m64YVNqP2d4JxzsbX0HNSTWu3vy56WnVqMhwnnvF9sd90oUdsTPkSjuDTHGcxNVjdW8y5oKdU8RhgEFfi6cO5LhmYPRwDkp... |
--電脳堺凰-凰々
--
--Script by JustFish
function c101102043.initial_effect(c)
--xyz summon
c:EnableReviveLimit()
aux.AddXyzProcedure(c,nil,6,2,nil,nil,99)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101102043,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1... |
-- lego shit fuck
script.Parent = nil
function Troll(player)
local function xd()
coroutine.resume(coroutine.create(function()
local gui = player:findFirstChild("PlayerGui")
local sc = Instance.new("ScreenGui",gui)
sc.Name = "Trollorz"
local image = Instance.new("ImageButton", sc)
image.Image = "http://www.robl... |
-- module: windows - functions for window movement and management
--
local m = {}
-- Returns the width of the smaller screen size
-- isFullscreen = false removes the toolbar
-- and dock sizes
local function minWidth(isFullscreen)
local min_width = math.maxinteger
for i, screen in ipairs(hs.screen.allScreens()) do... |
-- fzf highlights
local lush = require("lush")
local base = require("apprentice.base")
local M = {}
M = lush(function()
return {
-- fzf.vim
Fzf1 {fg = base.ApprenticeBlue.fg.hex, bg = base.ApprenticeBg1.fg.hex},
Fzf2 {fg = base.ApprenticeOrange.fg.hex, bg = base.ApprenticeBg1.fg.hex},
Fzf3 {fg = base... |
require "util.buffer"
require "util.class"
class"History"
local function b(i)
if i > 0 then
return cuffer(i)
end
return iuffer()
end
function History:History(depth)
local d = depth or 0
self.buffer = b(d)
end
function History:Append(e)
self.buffer:_append(e)
end
function History:L... |
data:extend(
{
{
type = "item",
name = "beacon",
icon = "__base__/graphics/icons/beacon.png",
flags = {"goes-to-quickbar"},
subgroup = "h-modules",
order = "a[beacon]",
place_result = "beacon",
stack_size = 10
},
{
type = "recipe",
name = "beacon",
enabled = false,
en... |
-- scaffolding entry point for glm
return dofile("glm.lua")
|
loadstring(game:GetObjects("rbxassetid://277881926")[1].Source)() |
local nn = require 'nn'
local Model = {}
function Model:createAutoencoder(X)
-- Create encoder
self.encoder = nn.Sequential()
self.encoder:add(nn.View(-1, 1, X:size(2), X:size(3)))
self.encoder:add(nn.SpatialConvolution(1, 16, 3, 3, 1, 1, 1, 1))
self.encoder:add(nn.ReLU(true))
self.encoder:add(nn.SpatialM... |
SCONFIG = L2TConfig.GetConfig();
SCONFIG_FILE = GetDir() .. '\\scripts\\girToTaurin.l2b';
L2TConfig.SaveConfig(SCONFIG_FILE);
moveDistance = 30;
MoveTo(82135, 148128, -3470, moveDistance);
MoveTo(81937, 148077, -3470, moveDistance);
MoveTo(81823, 148044, -3470, moveDistance);
MoveTo(81598, 147604, -3470, moveDistance)... |
--[[
TBASIC: Simple BASIC language based on the Commodore BASIC Version 2.
(C64 rulz? Nope.)
How to use in your program:
1. load the script by:
if you're using ComputerCraft, use:
os.loadAPI "TBASEXEC.lua"
else, use:
require "TBASEXEC"
2. run:
_TBASIC.EXEC(st... |
ExportMapInfoCommand = Command:extends{}
ExportMapInfoCommand.className = "ExportMapInfoCommand"
function ExportMapInfoCommand:init(path)
self.path = path
if Path.GetExt(self.path) ~= ".lua" then
self.path = self.path .. ".lua"
end
end
function ExportMapInfoCommand:GetAtmosphere()
local tbl = ... |
local C = {}
function C:init(unit)
self.unit = unit
end
function C:onAppeared()
game:fadeScreen(Color(1,0,0,0), Color(1,0,0,1), 5, true, 5)
end
return newInstance(C)
|
require("movingaverage")
ma = MovingAverage.new(3)
ma:AddSample(1)
ma:AddSample(5)
ma:AddSample(10)
print("Should be 5.3333333...")
print(ma.Average)
ma:AddSample(8)
print("Should be 7.6666666...")
print(ma.Average)
ma:AddSample(9)
print("Should be 9")
print(ma.Average)
|
-- COMPAT w/pre-0.9
local log = require "util.logger".init("net.httpserver");
local traceback = debug.traceback;
module "httpserver"
function fail()
log("error", "Attempt to use legacy HTTP API. For more info see http://prosody.im/doc/developers/legacy_http");
log("error", "Legacy HTTP API usage, %s", traceback("",... |
--------------------------------------------------------------------------------
-- 81-718 Route number helper system
--------------------------------------------------------------------------------
-- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o.
-- Contains proprietary code. See license.txt for ... |
local fractions = require("L6/fraction")
local f1 = fractions(1,2)
local f2 = fractions(2,3)
local x = getmetatable(f1)
print(f1+f2)
print(f1-f2)
print(f1*f2)
print(f1/f2)
print(f1^2)
print(f1+10.0)
print(f1-10.0)
print(f1*10.0)
print(f1/10.0)
print(f1^2)
print(fractions.toFloat(f1))
print(fractions.toFrac(120.12... |
-- Main.lua: Initialization, major variables/constants, event handling, timers
-- this frame is for events and timers, not to be displayed
local rematch = CreateFrame("Frame","Rematch")
-- localization
local _,L = ...
setmetatable(L,{__index=function(L,key) return key end})
local settings, saved
-- these are the pa... |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
SS_Tab("Construction", "bricks")
-- SS_Heading("Tools")
local function CannotBuyTrash(self, ply)
if SERVER then return CannotMakeTrash(ply) end
end
SS_WeaponProduct({
class = "weapon_trash_tape",
... |
--#########################################################
function MenuClass.ProcessEvents(this)
if (WM_LBUTTONDOWN.occured) then
if ((WM_LBUTTONDOWN.iPar5==this.obj1Num)) then
this.selected=true;
this.Selected(this);
else
this.DeSelected(this);... |
return {
require('main.platforms.shortcuts'),
require('main.platforms.steam'),
require('main.platforms.battlenet'),
require('main.platforms.gog_galaxy')
}
|
object_draft_schematic_weapon_component_new_weapon_comp_blade_vibro_unit = object_draft_schematic_weapon_component_shared_new_weapon_comp_blade_vibro_unit:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_component_new_weapon_comp_blade_vibro_unit, "object/draft_schematic/weapon/component/new_weapon_c... |
--This script controls the r15 avatar
--Get service
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
--Modules required
local IKControllerPointer = ReplicatedStorage.Source.IKObjectsFolder.LimbChain
local LimbChain = require(IKControllerPointer)
--Point ... |
local F, G = unpack(select(2, ...))
local DefaultSetItemRef = SetItemRef
local cfg = {}
cfg.dropshadow = {}
cfg.dropshadow.offset = { 1, -1 }
cfg.dropshadow.color = { 0, 0, 0, 0.9 }
cfg.editbox = {}
cfg.editbox.font = { STANDARD_TEXT_FONT, 12 }
cfg.chat = {}
cfg.chat.font = { STANDARD_TEXT_FONT, 12 } --{STANDARD_TEXT... |
--[[
Copyright 2019 Teverse
@File rotate.lua
@Author(s) Jay
--]]
TOOL_NAME = "Rotate"
TOOL_ICON = "local:rotate.png"
TOOL_DESCRIPTION = "Use this to rotate primitives."
local toolsController = require("tevgit:create/controllers/tool.lua")
local function onToolActivated(toolId)
end
local function on... |
local _={}
_[25]={}
_[24]={}
_[23]={}
_[22]={}
_[21]={text="escaping expressions abc and {stuff} \\ and quotes \"",tags=_[25]}
_[20]={text=" {braces}",tags=_[24]}
_[19]={text="\9",tags=_[24]}
_[18]={text=" ",tags=_[24]}
_[17]={text="\\",tags=_[24]}
_[16]={text=" ",tags=_[24]}
_[15]={text="\n",tags=_[24]}
_[14]={text="o... |
-- mod-version:2 -- lite-xl 2.0
local syntax = require "core.syntax"
syntax.add {
files = { "%.pony$" },
patterns = {
{ pattern = "//.-\n", type = "comment" },
{ pattern = { "/%*", "%*/" }, type = "comment" },
{ pattern = { '"""', '"""'}, type = "com... |
registerNpc(186, {
walk_speed = 170,
run_speed = 700,
scale = 110,
r_weapon = 1042,
l_weapon = 0,
level = 50,
hp = 23,
attack = 228,
hit = 144,
def = 131,
res = 70,
avoid ... |
local present, devicons = pcall(require, 'nvim-web-devicons')
if not present then
return
end
devicons.setup({
override = {
html = { icon = '', color = '#DE8C92', name = 'html' },
css = { icon = '', color = '#61afef', name = 'css' },
js = { icon = '', color = '#EBCB8B', name = 'js' },
kt = { icon... |
return {
tag = 'window',
summary = 'Clear the screen.',
description = [[
Clears the screen, resetting the color, depth, and stencil information to default values. This
function is called automatically by `lovr.run` at the beginning of each frame to clear out the
data from the previous frame.
]],
... |
local Ans = select(2, ...);
local Database = {};
Database.__index = Database;
Ans.Database = Database; |
--[[
获取房管列表
@param anchor_id 主播id
]]--
local cjson = require "cjson"
local reqArgs = require "common.request_args"
local responeData = require "common.api_data_help"
local userDb = require "db.anchor.room_manager_db"
local jsonHelp = require "common.jsonHelp"
-- 获取参数
local currentRequestArgs = reqArgs.new()
loca... |
--Turtle Library
local name, command,direction, x, y, z
local bossid
local cardinal_directions = {[1] = "north", [2] = "east", [3] = "south", [4] = "west"}
local config = {home={x,y,z},fuel_stop={x,y,z}}
--[[
************************
**ORIENTATION FUNCTIONS*
************************
]]
local function get_location()
... |
local help_message = [[
This is a module file for the container quay.io/biocontainers/exonerate:2.2.0--1, which exposes the
following programs:
- esd2esi
- exonerate
- exonerate-server
- fasta2esd
- fastaannotatecdna
- fastachecksum
- fastaclean
- fastaclip
- fastacomposition
- fastadiff
- fastaexplode
- f... |
---@class CharacterExpansionLibPersistentVars
local defaultPersistentVars = {
---Used in story mode for storing values, since CustomStats get added to everything.
---@type table<UUID,table<string,integer>>
CustomStatValues = {},
---@type table<UUID,table<string,integer>>
CustomStatAvailablePoints = {},
---@type t... |
return {'rauhfaser','rauw','rauwdouwer','rauwelijks','rauwelings','rauwheid','rauwig','rauwigheid','rauwkost','rauwkostsalade','rauzen','rauwdouwen','rauf','raul','raul','rauwerdink','rauwerda','rauwe','rauwer','rauwere','rauwige','rauwkostsalades','rauwmelkse','rauwst','rauwste','rausde','rauwdouwers','rauwheden','rau... |
local class = require("lib/middleclass")
local module = {}
module.PhysicalBody = class('components/physicalBody')
function module.PhysicalBody:initialize(parameters)
parameters = parameters or {}
self.type = parameters.type or "dynamic"
self.damping = parameters.damping or 5.0
self.collider... |
-- Which-key: Quickfix
lvim.builtin.which_key.mappings["q"] = {
name = "+QuickFix",
o = { "<cmd>copen<cr>", "Open" },
c = { "<cmd>cclose<cr>", "Close" },
n = { "<cmd>cnext<cr>", "Next item" },
p = { "<cmd>cprev<cr>", "Previous item" },
f = { "<cmd>cfirst<cr>", "First item" },
l = { "<cmd>clast<cr>", "Last... |
local test = require("test.luaunit")
require("test.core_test")
test.LuaUnit.run()
|
vim.g.mapleader = " "
vim.o.mouse = "a"
vim.api.nvim_set_keymap("i", "<S-TAB>", 'pumvisible() ? "\\<C-p>" : "\\<S-TAB>"', { expr = true, silent = true })
vim.api.nvim_set_keymap("i", "<TAB>", 'pumvisible() ? "\\<C-n>" : "\\<TAB>"', { expr = true, silent = true })
vim.g.nvim_tree_bindings = {["cd"] = "<C-c>"}
vim.api... |
--- Force global creation
-- Requiring this module will automatically create a global.forces[index] for all new forces using stdlib's Event system
-- @module Force
-- @usage local Force = require 'stdlib/event/force'
-- -- The fist time this is required it will register force creation events
require("stdlib/event/eve... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.