content stringlengths 5 1.05M |
|---|
-- Copyright (c) 2015 Phil Leblanc -- see LICENSE file
------------------------------------------------------------------------
--[[
=== test_henat - OS native commands wrapper unit tests
]]
local he = require 'he'
local hefs = require 'he.fs'
local henat = require 'he.nat'
--~ he.interactive()
local strf =... |
local export = {}
local lang = require("Module:languages").getByCode("uk")
local m_links = require("Module:links")
local m_table = require("Module:table")
local m_string_utilities = require("Module:string_utilities")
local m_uk_translit = require("Module:uk-translit")
local u = mw.ustring.char
local rsplit = mw.text.... |
DefineClass.VRWorkshop = {
__parents = { "Workshop" },
}
function VRWorkshop:OnDestroyed()
Workplace.OnDestroyed(self)
self:DestroyAttaches("VRWorkshopHologram")
end |
ITEM.name = "M1917 Revolver"
ITEM.description= "A single-action variant of a revolver chambered for .45 ACP."
ITEM.longdesc = "The M1917 Revolvers are six-shot, .45 ACP, large frame revolvers adopted by the United States Military in 1917, to supplement the standard .45 ACP M1911 pistol during World War I.\n\nAmmo: .45 ... |
local world = {}
-- Initializer --
function world.initialize(screenObj,playerObj, inputObj,gooseObj)
screen = screenObj
player = playerObj
input = inputObj
goose = gooseObj
player.z=0
-- world pos --
delay=0
world.posx=0
jogo=1
world.width=90
world.walking = false
floorImg = love.graphics.newIm... |
-- * Metronome IM *
--
-- This file is part of the Metronome XMPP server and is released under the
-- ISC License, please see the LICENSE file in this source package for more
-- information about copyright and licensing.
local log = require "util.logger".init("sasl");
local nodeprep = require "util.encodings".stringpr... |
-- Automatically generated by build.lua, do not edit
return [[
# DerivedCoreProperties-10.0.0.txt
# Date: 2017-03-19, 00:05:15 GMT
# © 2017 Unicode®, Inc.
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
# For terms of use, see http://www.unicode.org/terms_of_us... |
--网络协议监听器
--每10分钟打印一次数据
--数据格式:分上下行
--总流量、总协议数、总链接数
--按照单个协议的流量从大到小排列
--协议名称、次数、总流量、平均流量、单包最大值、单包最小值
local log = require("base/log.lua")
local timer = require("base/timer.lua")
--
function __init__(self)
self.m_State = false
end
function __destroy__(self)
self:TimerDump()
timer:DelAll(self)
end
--接收协议包
function ... |
local skynet = require("skynet")
local socketCmd = require("logic/common/socketCmd")
local json = require "cjson"
local TAG = "receivePacket"
local receivePacket = {}
function receivePacket.onClientCmdCreateBattleRoom(packet)
local data = {}
data.iUserId = packet:readInt()
data.iRoomId = packet:readInt()
data.iTa... |
function metrics()
return {
['thingy'] = 'gauge',
['stuff'] = 'counter',
['konfabulator'] = 'histogram'
}
end
function main()
mzbench.notify('gauge', 'thingy', 42)
mzbench.notify('histogram', 'konfabulator', 404)
mzbench.notify('counter', 'stuff', 1)
end |
local kdtree = require"kdtree"
local sqlite = require"lsqlite3"
local function random_box(dims)
local min, max = {}, {}
for i = 1, dims do
local centre, span = math.random(), math.random() / 2
min[i], max[i] = centre - span, centre + span
end
return { min = min, max = max }
end
local function box_bou... |
object_tangible_furniture_all_frn_all_trophy_lava_beetle = object_tangible_furniture_all_shared_frn_all_trophy_lava_beetle:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_trophy_lava_beetle, "object/tangible/furniture/all/frn_all_trophy_lava_beetle.iff")
|
local super = DisplayObject
---@class Framework.UI.Toggle:Framework.display.DisplayObject
---@field isOn boolean
---@field EventToggleChanged Framework.event.Delegate
Toggle = class("Framework.UI.Toggle", DisplayObject)
function Toggle:ctor()
super.ctor(self)
self.isOn = false
self.EventToggleChanged = De... |
--オッドアイズ・ペンデュラムグラフ・ドラゴン
--Scripted by mallu11
function c101108034.initial_effect(c)
aux.EnablePendulumAttribute(c)
--revive limit
aux.EnableReviveLimitPendulumSummonable(c,LOCATION_HAND)
--spsummon condition
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE... |
&^#.enc_V[ 9* 4* 23* 14*_\O 23* 21*_j 6* 29* 11* 24* 22*f 19* 25* 24*H 14*X 4*^XIBZ 26* 23* 4*yeL 4* 15*X\J>[hP 10* 12* 14*@K0 21* 22* 29* 22*] 3* 24*ZMAHU 23* 19* 24*XU 22* 14*NLX\[] 22*^ 6*] 0* 13* 14* 1*P 12* 9*_ 6*SX 13* 2*\ 6*ZU 10* 10* 10* 14*\ 14* 0* 14* 2* 12* 3*V 26* 24* 25* 22*@ 26*2ML 19* 25*[ 4* 1*GH 7* 29*... |
local Rectangle = {}
function Rectangle:initialize(w, h)
self.w = w
self.h = h
end
function Rectangle:area()
return self.w * self.h
end
local rectangleMeta = {__index = Rectangle}
local rect = setmetatable({}, rectangleMeta)
rect:initialize(3, 4)
print(rect:area()) |
local button = {}
for key, ports in pairs(manager.machine.ioport.ports) do
for field_name, field in pairs(ports.fields) do
button[field_name] = field
end
end
local frame_num = 0
local function process_frame()
frame_num = frame_num + 1
if frame_num == 25 then
button["Run"]:set_value(1)
elseif frame_num ==... |
local empty = {}
local read_write = { read_only = false }
local read_write_class = { read_only = false, other_fields = true }
local read_only = { read_only = true }
local function def_fields(field_list)
local fields = {}
for _, field in ipairs(field_list) do
fields[field] = empty
end
return { field... |
twaf:run(twaf)
|
-- bitops selection
-- since the available bitops vary, we need to pick a working one.
-- This library tries it's hardest to get a proper bit32 compatible library going.
-- It tries the real bit32, wraps luajit's bit to be safe, uses Lua 5.3 operators
-- and if all before fail, it'll use pure lua fallbacks. slow, but ... |
modifier_flesh_heap_lua = class({})
--------------------------------------------------------------------------------
function modifier_flesh_heap_lua:OnCreated( kv )
self.flesh_heap_magic_resist = self:GetAbility():GetSpecialValueFor( "flesh_heap_magic_resist" )
self.flesh_heap_strength_buff_amount = self:GetAbilit... |
return {'pek','pekblende','pekdraad','pekel','pekelen','pekelharing','pekelschade','pekelspek','pekelvlees','pekelwagen','pekelwater','pekelzonde','pekinees','pekingeend','pekken','pekton','pektoorts','pekingmens','pekelbad','pekelnat','peking','pekingees','pekinger','pekings','pekela','pekaar','pekkeriet','pekelde','p... |
local fs = require("filesystem")
local shell = require("shell")
local event = require("event")
if fs.isAutorunEnabled() == true then
fs.setAutorunEnabled(false)
end
require("auth").userLog(os.getenv("USER"), "logout")
fs.remove("/tmp/.root")
shell.setWorkingDirectory("/")
shell.execute("/root/login.lua")... |
geo_passkey = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/loot/dungeon/geonosian_mad_bunker/passkey.iff",
craftingValues = {
},
customizationStringNames = {},
customizationValues = {}
}
addLootItemTemplate("geo_passkey", geo_passkey) |
require "OLED1306"
function init()
print("init mqtt")
mqtt_inited = 1
m = mqtt.Client(getConfig("deviceId"), 30, getConfig("user"),getConfig("password"))
print("now deviceId:" ..getConfig("deviceId"))
print("now userId:" ..getConfig("user"))
print("now userKey:" ..getConfig("password"))
... |
CcsScrollViewItem = class("CcsScrollViewItem")
CcsScrollViewItem.ctor = function (slot0)
slot0:getInteractiveObject():setTouchEnabled(false)
createSetterGetter(slot0, "scrollViewParent", nil, nil, nil, nil, nil, handler(slot0, slot0.onScrollViewParentChanged))
createSetterGetter(slot0, "isTouchPushDown", false, fal... |
module 'mock'
local function getModel( obj )
local class = getClass( obj )
if not class then return nil end
return Model.fromClass( class )
end
local function isAtomicValue( ft )
return
ft == 'number'
or ft == 'int'
or ft == 'string'
or ft == 'boolean'
or ft == '@enum'
or ft == '@asset'
end
... |
local dap = require 'dap'
dap.adapters.rust = {
type = 'executable',
attach = {pidProperty = "pid", pidSelect = "ask"},
command = 'lldb-vscode', -- my binary was called 'lldb-vscode-11'
env = {LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY = "YES"},
name = "lldb"
}
vim.fn.sign_define('DapBreakpoint', {text = '🛑', texthl = ... |
local table_merge = assert(foundation.com.table_merge)
local itemstack_inspect = assert(foundation.com.itemstack_inspect)
local format_pretty_time = assert(foundation.com.format_pretty_time)
local maybe_start_node_timer = assert(foundation.com.maybe_start_node_timer)
local inspect_axis = assert(foundation.com.Direction... |
return {
__index = {
create_actors = function(self, name)
self.name=name
return Def.ActorFrame{
Name=name,
InitCommand=function(subself)
self.container = subself
end,
OnCommand=function(subself) subself:sleep(0.2):queuecommand("Appear") end,
AppearCommand=function(subself) subself:vis... |
-- _ _____ ___ _ __ ___________ ________ __
-- | | | ___|/ _ \ | | / /| ___| _ \ | ___ \ \ / /
-- | | | |__ / /_\ \| |/ / | |__ | | | | | |_/ /\ V /
-- | | | __|| _ || \ | __|| | | | | ___ \ \ /
-- | |____| |___| | | || |\ \| |___| |/ / | |_/ / | |
-- \_____/\____/\_| |_/\_| \_/... |
------------------------------------------------------------
-- TrialofValor.lua
--
-- Abin
-- 2016/11/10
------------------------------------------------------------
local module = CompactRaid:GetModule("RaidDebuff")
if not module then return end
local TIER = 7 -- Legion
local INSTANCE = 861 -- Trial of Valor
local... |
-- This is a part of uJIT's testing suite.
-- Copyright (C) 2020-2021 LuaVela Authors. See Copyright Notice in COPYRIGHT
-- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
local PROFILING_INTERVAL = 10 -- usec
local profile_bin
-- Dummy constants to be used as upvalues in coroutine_payload
loca... |
local input = require('core/input')
input:select(3)
return input:all() |
-- perf
local next = next
local pairs = pairs
local setmetatable = setmetatable
local tconcat = table.concat
local tinsert = table.insert
local type = type
-- field and values helper
local function field_and_values(quote, attrs, concat)
local fav = {}
for field, value in pairs(attrs) do
local key_pair ... |
return {
tr = {
menu_file = "Oyun",
menu_file_new = "Yeni",
menu_file_load = "Bölüm Yükle...",
menu_file_skip = "Bölümü Atla",
menu_file_previous = "Önceki Bölüm",
menu_file_last_played = "En son oynana bölüm",
menu_file_open_data = "Data Dosyasý Aç...",
menu_file_high_scores = "En Yüksek Puanlarý Göst... |
data:extend(
{
{
type = "item-group",
name = "the-mod",
icon = "__core__/graphics/neutral-force-icon.png",
inventory_order = "a",
order = "a"
},
{
type = "item-subgroup",
name = "the-mod-intermediate",
group = "the-mod",
order = "f"
},
}) |
function readFile(file)
local f = assert(io.open(file, "rb"))
local content = f:read("*all")
f:close()
return content
end
local content = readFile("read_whole_file.lua")
print(content)
|
local Mail = {}
function Mail:new(mailConfig, object)
-- TODO: Load the MailLayout.ini into mailConfig
object =
object or
{
-- TODO: List of Mail email elements, Button objects, initialize them and store them into emailButtons for easy access.
-- TODO: store the backgrou... |
local spec_helper = require "spec.spec_helpers"
local url = require "socket.url"
local IO = require "kong.tools.io"
local http_client = require "kong.tools.http_client"
local cjson = require "cjson"
local ssl_fixtures = require "spec.plugins.ssl.fixtures"
local STUB_GET_SSL_URL = spec_helper.STUB_GET_SSL_URL
local STU... |
local upperclass = require(LIBXML_REQUIRE_PATH..'lib.upperclass')
local utils = require(LIBXML_REQUIRE_PATH..'lib.utils')
local DOMNode = require(LIBXML_REQUIRE_PATH..'dom.node')
local DOMAttribute = require(LIBXML_REQUIRE_PATH..'dom.attribute')
local DOMCDATA = require(LIBXML_REQUIRE_PATH..'dom.... |
local band = (bit or bit32).band
local bxor = (bit or bit32).bxor
local ranks = {
admin = {_count = 0},
manager = {_count = 0},
mod = {_count = 0},
mapper = {_count = 0}
}
local ranks_id = {
admin = 2 ^ 0,
manager = 2 ^ 1,
mod = 2 ^ 2,
mapper = 2 ^ 3
}
local ranks_permissions = {
admin = {
show_update = tru... |
help([[
This is the modulefile for the LLVM compiler
]])
local version = myModuleVersion()
whatis("Name: LLVM " .. version)
whatis("Version " .. version)
whatis("Keywords: System, Compiler")
whatis("URL: http://www.llvm.org/")
whatis("Description: LLVM compiler family")
family("compiler")
local prefix = "/usr/local... |
---
-- @class PANEL
-- @section DEventBoxTTT2
local TryT = LANG.TryTranslation
local ParT = LANG.GetParamTranslation
local drawGetWrappedText = draw.GetWrappedText
local drawGetTextSize = draw.GetTextSize
local mathmax = math.max
local PANEL = {}
---
-- @ignore
function PANEL:Init()
self:SetText("")
self.contents... |
local Copas = require "copas"
local Client = require "ardoises.client"
describe ("#client", function ()
local instance = {
server = "http://localhost:8080",
}
it ("can be instantiated", function ()
local client
Copas.addthread (function ()
client = assert (Client {
server = instance.... |
--[[Rock, Paper, Scissors
By Al Sweigart al@inventwithpython.com
The classic hand game of luck.
]]
print('Rock, Paper, Scissors by Al Sweigart')
print()
print('- Rock beats scissors.')
print('- Paper beats rocks.')
print('- Scissors beats paper.')
-- These variables keep track of the number of
-- wins, losses, and ti... |
--[[
Author: Ractidous, with help from Noya
Date: 03.02.2015.
Initialize the slowed units list, and let the caster latch.
We also need to track the health/mana, in order to grab amount gained of health/mana in the future.
]]
function CastTether( event )
-- Variables
local caster = event.caster
local target = eve... |
--[[
PRNG functions
PRNG.SetSeed( seed ) Sets the seed. Can be a number or string.
PRNG.Next() Returns the next number. Between 1 and 4.294.967.295.
PRNG.Reset() Resets the PRNG to the starting value
PRNG.RandomFloat() Returns the next number. Between 0 and 1.
PRNG.Ra... |
return {
lazy_load = function(load)
load "lir.nvim"
load "nvim-web-devicons"
end,
plugins = function(use)
use { "tamago324/lir.nvim", opt = true, requires = "kyazdani42/nvim-web-devicons" }
end,
setup = function()
local actions = require "lir.actions"
local mark_actions = require "lir.mark... |
object_mobile_sd_flight_officer = object_mobile_shared_sd_flight_officer:new {
}
ObjectTemplates:addTemplate(object_mobile_sd_flight_officer, "object/mobile/sd_flight_officer.iff")
|
-- Natural Selection League Plugin
-- Source located at - https://github.com/xToken/NSL
-- lua/NSL/config/server.lua
-- - Dragon
--NSL Configs
local configFileName = "NSLConfig.json"
local leaguesConfigUpdateURL = "https://raw.githubusercontent.com/xToken/NSL/master/configs/nsl_leagues.json"
local leagueConfigUpdateUR... |
ITEM.name = "Food Base"
ITEM.model = "models/props_junk/garbage_takeoutcarton001a.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.isFood = true
ITEM.cookable = true
ITEM.hungerAmount = 30
ITEM.foodDesc = "This is test food."
ITEM.category = "Consumeable"
ITEM.mustCooked = false
ITEM.quantity = 1
function ITEM:getDesc()
loca... |
---------------------------------------------------------------------------
--
-- Settings
--
--
--
---------------------------------------------------------------------------
-- Get option updates from the server
addEvent ( "race_ghost.updateOptions", true )
addEventHandler('race_ghost.updateOptions', res... |
AddCSLuaFile()
ENT.Base = "arccw_ammo"
ENT.PrintName = "Rifle Grenade Box"
ENT.Category = "ArcCW - Ammo"
ENT.Spawnable = true
ENT.Model = "models/items/arccw/riflegrenade_ammo.mdl"
ENT.Health = 70
ENT.AmmoType = "smg1_grenade"... |
if not ngx.var.arg_output then
ngx.say("Missing query 'output'")
return
end
assert(io.popen("/usr/bin/ffmpeg -y -i 'rtmp://stream.nfp.is:1935/live/ljosbrot live=1' -vcodec copy -acodec copy /content/kennslur/".. ngx.var.arg_output ..".mp4 </dev/null >/dev/null 2>/dev/null &"))
ngx.say([[
<br>
<input type="button" ... |
object_mobile_outbreak_delivery_epsilon_fisk_chardle = object_mobile_shared_outbreak_delivery_epsilon_fisk_chardle:new {
}
ObjectTemplates:addTemplate(object_mobile_outbreak_delivery_epsilon_fisk_chardle, "object/mobile/outbreak_delivery_epsilon_fisk_chardle.iff")
|
return function()
local Packages = script.Parent.Parent.Parent.Parent
local Roact = require(Packages.Roact)
local mockStyleComponent = require(Packages.UIBlox.Utility.mockStyleComponent)
local FullscreenTitleBar = require(script.Parent.FullscreenTitleBar)
describe("lifecycle", function()
it("should mount and u... |
local __binop = {__index = {}}
local __binop_index = __binop.__index
function __binop:__tostring()
return tostring(self.left) .. arithmetic.operator.translation[self.value] .. tostring(self.right)
end
function __binop_index:type()
return arithmetic.node_intermediary
end
function __binop_index:value_type()
return ... |
KBans = KBans || {}
KBans.Config = KBans.Load.include('config/kbans_config.lua')
local cfg_website_length = KBans.Config.website:len()
if (string.sub(KBans.Config.website, cfg_website_length, cfg_website_length) == "/") then
KBans.Config.website = string.sub(KBans.Config.website, 0, cfg_website_length - 1)
end
K... |
---------------------------------- MATTER SERIALIZER ---------------------------
-- Entity --
msE = {}
msE.type = "logistic-container"
msE.name = "MatterSerializer"
msE.icon = "__Mobile_Factory_Graphics__/graphics/matter-serialization/MatterSerializerI.png"
msE.icon_size = 64
msE.flags = {"placeable-neutral", ... |
#!/usr/bin/env th
----------------------------------------------------------------------
-- This script presents how to use the most basic features of the environment.
-- It configures the engine, and makes the agent perform random actions.
-- It also gets current state and reward earned with the action.
-- <episodes>... |
WIFI_SSID="wifi_ssid"
WIFI_PASSWORD="wifi_password"
APPENGINE_SERVER="http://my_server.appspot.com"
|
---@class ScenarioInfo
C_ScenarioInfo = {}
|
--
-- Created by IntelliJ IDEA.
-- User: shangyindong
-- Date: 2018/1/19
-- Time: 10:28
--
--
--[[
fake data
Usage:
local class = require ("com.sdw.utils.Class")
local fakeData = require("luaweb.utils.fakeData")
fake = class.New(fakeData)
fake.coreLogic()
--]]
local fakeData = {}
local redisClient = require ("lu... |
local magazineMotor = TalonSRX:new(7)
local otherMagazineMotor = TalonSRX:new(6)
otherMagazineMotor:setInverted(CTREInvertType.InvertMotorOutput);
magazineMotor:setInverted(CTREInvertType.InvertMotorOutput);
-- ✩ ✩
function magazineRollIn()
magazineMotor:set(0.87)
otherMagazineMotor:set(0.87)
end
function s... |
-- Copyright 2021 - Deviap (deviap.com)
-- Author(s): Sanjay-B(Sanjay)
-- Creates the Alerts page.
local card = require("devgit:source/libraries/UI/components/cards/app.lua")
local comment = require("devgit:source/libraries/UI/components/cards/comment.lua")
local gridLayout = require("devgit:source/libraries/UI/constra... |
-- assume that eid is some existing entity id
function example_factory_add()
req = scene.components.fileLoadRequest.add(eid)
end
function example_factory_get()
req, found = scene.components.fileLoadRequest.get(eid)
end
function example_factory_remove()
scene.components.fileLoadRequest.remove(eid)
end
fu... |
if ( SERVER ) then
local msgs = {} -- This table stores sent messages serverside in case new players join and get invited to a chat and need messages or request them
util.AddNetworkString( 'sendmessage' )
util.AddNetworkString( 'newmessage' )
local function IsValidMsgTab( tab, ply )
if !istable( tab ) then ret... |
---------------------------------------------
-- Shell Guard
-- Increases defense of user.
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
---------------------------------------------
function onMobSkillCheck... |
addEvent("DistanceTraveled",true)
recycling = {
button = {},
window = {},
label = {}
}
local screenW, screenH = guiGetScreenSize()
recycling.window[1] = guiCreateWindow((screenW - 384) / 2, (screenH - 212) / 2, 384, 212, "SUSA-TRANS", false)
guiWindowSetSizable(recycling.window[1], false)
guiWindow... |
local condition = Condition(CONDITION_OUTFIT)
condition:setOutfit({lookType = 267})
condition:setTicks(-1)
local swimming = MoveEvent()
swimming:type("stepin")
function swimming.onStepIn(creature, item, position, fromPosition)
if not creature:isPlayer() then
return false
end
creature:addCondition(condition)
re... |
function create(x, y, width, height)
entity = getNewEntity("baseLuaEntity")
sizeMultiplier = getGlobalValue("sizeMultiplier")
setEntityLabel(entity, "block")
setEntityX(entity, x * sizeMultiplier)
setEntityY(entity, y * sizeMultiplier)
removeEntityFunction(entity, "render")
addEntityCollisio... |
minetest.register_on_dignode(function(pos, oldnode, digger)
local namer = oldnode.name
local see_if_mineral = minetest.get_item_group(namer, "xpy")
if see_if_mineral > 0 then
minetest.env:add_entity(pos, "experience:orb_gelb")
end
end)
minetest.register_on_newplayer(function(player)
local file = io.open(minetes... |
return {'nihil','nihilbeding','nihilisme','nihilist','nihiliste','nihilistisch','nihat','nihot','nihilisten','nihilistes','nihilistische','nihilistischer','nihilbedingen','nihats'} |
local clientBackpack = {}
-- Отсортированные вещи из инвентаря
local backpackItemsList = {}
function updateBackpackItems()
backpackItemsList = {}
for name, item in pairs(clientBackpack) do
table.insert(backpackItemsList, item)
end
end
function getBackpackItemCount(name)
if not clientBackpack t... |
local modulename = "abtestingUtils"
local _M = {}
_M._VERSION = '0.0.1'
local cjson = require('cjson.safe')
local log = require("abtesting.utils.log")
local bit = require "bit"
local ffi = require("ffi")
ffi.cdef[[
struct timeval {
long int tv_sec;
long int tv_usec;
};
int gettimeofday(struc... |
-- // Dependencies
local SignalManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/Stefanuk12/Signal/main/Manager.lua"))()
local Signals = SignalManager.new()
Signals:Add("Purchase")
-- // Services
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage"... |
-- Copyright (c) 2018 Thermo Fisher Scientific
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
-- (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
-- merge, ... |
local threeRemove = {
[0] = {
id = 0,
color = "#4169E1",
score = 1,
weight = 130
},
[1] = {
id = 1,
color = "#FFFF00",
score = 2,
weight = 120
},
[2] = {
id = 2,
color = "#FFC1C1",
score = 3,
weight = 110... |
--If a Command has "NOTESKIN:GetMetricA" in it, that means it gets the command from the metrics.ini, else use cmd(); to define command.
local t = Def.ActorFrame {
--Hold Explosion Commands
NOTESKIN:LoadActor( Var "Button", "Hold Explosion" ) .. {
HoldingOnCommand=NOTESKIN:GetMetricA("HoldGhostArrow", "HoldingOnCom... |
--[[
# Copyright 2001-2014 Cisco Systems, Inc. and/or its affiliates. All rights
# reserved.
#
# This file contains proprietary Detector Content created by Cisco Systems,
# Inc. or its affiliates ("Cisco") and is distributed under the GNU General
# Public License, v2 (the "GPL"). This file may also include Detector Co... |
local data_verbose = false
function getdata(datafile, inputsize, std)
local data = torch.load(datafile, 'ascii')
local dataset ={}
local std = std or 0.2
local nsamples = data:size(1)
local nrows = data:size(2)
local ncols = data:size(3)
function dataset:size()
return nsamples
end
... |
if not modules then modules = { } end modules ['font-imp-math'] = {
version = 1.001,
comment = "companion to font-ini.mkiv and hand-ini.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
... |
msg_triangle = "triangle, if its sides are "
msg_square = "square, if its sides are "
msg_rectangle = "rectangle, if its sides are "
msg_and = " and " |
--[[
#####################################################################
# _____ __ _ #
# | __ \ / _| | | #
# | |__) | __ ___| |_ ___ ___| |__ #
# ... |
local statics = {}
statics.new = function(base, keyPath, config, active, registryKey)
local self = {}
self.base = base
self.keyPath = keyPath
self.config = config
self.active = active
self.registryKey = registryKey
return self
end
return statics |
local _G = _G or getfenv(0)
local GetExpansion = ShaguTweaks.GetExpansion
local libtipscan = ShaguTweaks.libtipscan
local hooksecurefunc = ShaguTweaks.hooksecurefunc
local scanner = libtipscan:GetScanner("libspell")
local libspell = {}
-- [ GetSpellMaxRank ]
-- Returns the maximum rank of a players spell.
-- 'name' ... |
debugMode = get("*gus_debugMessages") == "true" |
-- parameter file
------ Size of the simulation --------
-- For Testing
nc = 128
boxsize = 384.0
-------- Time Sequence ----
-- linspace: Uniform time steps in a
-- time_step = linspace(0.025, 1.0, 39)
-- logspace: Uniform time steps in loga
-- time_step = linspace(0.01, 1.0, 10)
time_step = linspace(0.1, 1, 10)
ou... |
Browser = {}
Browser.open = false
function Browser.toggle()
-- Add check because of old operating systems
local browser = exports.UCDbrowser:toggleBrowser()
if (browser) then
togglePhone()
end
end
|
--Check Environment
if GetConvar('txAdminServerMode', 'false') ~= 'true' then
return
end
local apiHost = GetConvar("txAdmin-apiHost", "invalid")
local pipeToken = GetConvar("txAdmin-pipeToken", "invalid")
if apiHost == "invalid" or pipeToken == "invalid" then
print('^1API Host or Pipe Token ConVars not found. Do no... |
--- @module build-meta
-- This module is created automatically by the Makefile when Modules is built
-- This content is prepended to build-meta.lua
return {}
|
local player = Actor.getActor("santino")
local charles = Actor.getActor("charles")
local topic = Topic.new("test")
topic:addOptions(
{
caption = "Hello Charles",
flags = "o",
callback = function()
charles:say("Hello Santino. How are you doing?")
end
},
{
... |
-- Instructions:
-- Write a program that prints the numbers from 1 to 100
-- For numbers divisible by 3, print “Fizz”
-- For numbers divisible by 5, print “Buzz”
-- For numbers divisible by both 3 and 5, print “FizzBuzz”
-- Solution:
for index = 1, 15 do
local str = ''
if index % 3 == 0 then
str =... |
XBURST = {}
function XBURST.read_cp0(reg, sel)
return DEV.read32_cop({0, reg, sel})
end
function XBURST.write_cp0(reg, sel, val)
DEV.write32_cop({0, reg, sel}, val)
end
XBURST.prid_table = {
[0x0ad0024f] = "JZ4740",
[0x1ed0024f] = "JZ4755",
[0x2ed0024f] = "JZ4760(B)",
[0x3ee1024f] = "JZ4780"
... |
local feature = require('fur.feature')
local function nvim_cmp_setup()
local cmp = require('cmp')
local luasnip = require('luasnip')
require('luasnip.loaders.from_vscode').load()
local function tab(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif luasnip.expand_or_jumpable() then
... |
local wibox = require('wibox')
local mat_list_item = require('widgets.mat-list-item')
local mat_slider = require('widgets.mat-slider')
local icons = require('theme.icons')
local watch = require('awful.widget.watch')
local total_prev = 0
local idle_prev = 0
local slider =
wibox.widget {
read_only = true,
widget ... |
--
-- C declaration composer for the GCC Lua plugin.
-- Copyright © 2013–2015 Peter Colberg.
-- Distributed under the MIT license. (See accompanying file LICENSE.)
--
local gcc = require("gcc")
local cdecl = require("gcc.cdecl")
gcc.set_asm_file_name(gcc.HOST_BIT_BUCKET)
local test = {}
gcc.register_callback(gcc.... |
--[[
3p8_potato_ent
TODO: --predator?
]]
AddCSLuaFile()
ENT.Type = "anim"
ENT.ItemModel = "models/props_phx/misc/potato.mdl"
function ENT:Use(ply)
--plant the potato
self:Upgrayed()
self:GetPhysicsObject():Wake()
--make sound
self:EmitSound("phx/eggcrack.wav")
end
function ENT:Initialize(... |
function create_electric_furnace(args)
local furnace = table.deepcopy(data.raw["furnace"]["electric-furnace-mk3"])
furnace.name = args.name
furnace.icon = "__built-in-beacons-fe-plus__/graphics/icons/" .. args.name .. ".png"
furnace.icon_size = 64
furnace.icon_mipmaps = nil
furnace.min... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.