graph
subgraph Cluster[Target Kubernetes Cluster<br><br>]
Verification(Pod: Node Drain Verification )
ctpl(Control Plane)
n0(Node0<br>Pods: a,b,c,d,g,h)
n1(Node1<br>Pods: e,f,g,h)
n1final(Node1)
n2(Node2<br>Pods: i,j,k,l,e,f)
graph LR
subgraph Verification[Kafka Verification: Client Latency<br><br><br><br>]
subgraph Customer Kafka
brokers(Topic: VERICA-CLIENT-LATENCY)
end
subgraph Client Latency Producer Pod
P{Producer} --> L1(TC Latency) -.-> | Configured Latency | brokers
end
subgraph Client Latency Consumer Pod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parseMarkdown(markdownText) { | |
const htmlText = markdownText | |
.replace(/^### (.*$)/gim, '<h3>$1</h3>') | |
.replace(/^## (.*$)/gim, '<h2>$1</h2>') | |
.replace(/^# (.*$)/gim, '<h1>$1</h1>') | |
.replace(/^\> (.*$)/gim, '<blockquote>$1</blockquote>') | |
.replace(/\*\*(.*)\*\*/gim, '<b>$1</b>') | |
.replace(/\*(.*)\*/gim, '<i>$1</i>') | |
.replace(/!\[(.*?)\]\((.*?)\)/gim, "<img alt='$1' src='$2' />") | |
.replace(/\[(.*?)\]\((.*?)\)/gim, "<a href='$2'>$1</a>") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)); | |
}); | |
async function handleRequest(request) { | |
// https://api.weather.gov/points/38.8894,-77.0352 | |
const { latitude, longitude } = request.cf; | |
const headers = { | |
'content-type': 'application/json', | |
'User-Agent': ('landro.dev', '[email protected]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const emojiMap = { | |
'cloudy': '☁️', | |
'fog': '🌫', | |
'lightrain': '🌦', | |
'partlyCloudy': '🌤', | |
'rain': '🌧', | |
'snow': '🌨', | |
'sunny': '☀️', | |
'thunderstorms': '⛈', | |
'wind': '💨' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import all board pins. | |
import time | |
import board | |
import busio | |
from adafruit_ht16k33 import matrix | |
i2c = busio.I2C(board.SCL, board.SDA) | |
matrix = matrix.MatrixBackpack16x8(i2c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************************************* | |
This is an example for our Monochrome OLEDs based on SH1107 drivers | |
This example is for a 128x128 size display using I2C to communicate | |
Adafruit invests time and resources providing this open source code, | |
please support Adafruit and open-source hardware by purchasing | |
products from Adafruit! | |
Written by Limor Fried/Ladyada for Adafruit Industries. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries | |
# | |
# SPDX-License-Identifier: MIT | |
""" | |
Blink example for boards with ONLY a NeoPixel LED (e.g. without a built-in red LED). | |
Includes QT Py and various Trinkeys. | |
Requires two libraries from the Adafruit CircuitPython Library Bundle. | |
Download the bundle from circuitpython.org/libraries and copy the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""CircuitPython Essentials Digital In Out example""" | |
import time | |
import board | |
from digitalio import DigitalInOut, Direction | |
# LED setup. | |
# For QT Py M0. QT Py M0 does not have a D13 LED, so you can connect an external LED instead. | |
led = DigitalInOut(board.SCK) | |
led.direction = Direction.OUTPUT |
NewerOlder