This file contains hidden or 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
| kubectl describe pod name-of-pod |
This file contains hidden or 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
| kubectl get service |
This file contains hidden or 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
| kubectl delete service name-of-service |
This file contains hidden or 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
| minikube stop |
This file contains hidden or 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
| // https://www.npmjs.com/package/marked | |
| // yarn add marked | |
| import marked from 'marked' | |
| export default function ReadMeComponent(props) { | |
| const getMarkdownText = () => { | |
| var rawMarkup = marked(Data, { sanitize: true }) | |
| return { __html: rawMarkup } |
This file contains hidden or 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 { useState } from "react"; | |
| import { ethers } from "ethers"; | |
| export default function Metamask() { | |
| const [myAddress, setMyAddress] = useState(""); | |
| const [toAddress, setToAddress] = useState(); | |
| const [amount, setAmount] = useState(); | |
| const [currency, setCurrency] = useState("USD"); | |
| const getExchangeRate = async () => { |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: kubernetes-sri-lanka | |
| labels: | |
| app: rewind | |
| version: 4 | |
| year: 2021 | |
| spec: | |
| containers: |
This file contains hidden or 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 cv2 | |
| import numpy as np | |
| from cvzone.HandTrackingModule import HandDetector | |
| import cvzone | |
| cap = cv2.VideoCapture(0) | |
| cap.set(3, 1920) | |
| cap.set(4, 1080) | |
| detector = HandDetector(detectionCon=0.8) |
This file contains hidden or 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
| // yarn add lodash | |
| let _ = require("lodash"); | |
| let ob = [ | |
| { | |
| name: "John", | |
| age: 30, | |
| }, | |
| { |
This file contains hidden or 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
| var maxParticleCount = 150; //set max confetti count | |
| var particleSpeed = 2; //set the particle animation speed | |
| var startConfetti; //call to start confetti animation | |
| var stopConfetti; //call to stop adding confetti | |
| var toggleConfetti; //call to start or stop the confetti animation depending on whether it's already running | |
| var removeConfetti; //call to stop the confetti animation and remove all confetti immediately | |
| (function() { | |
| startConfetti = startConfettiInner; | |
| stopConfetti = stopConfettiInner; |