- Create empty array.
- Push random numbers to that array.
- Print the array.
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
| > deno run -A --unstable --node-modules-dir npm:next dev >> deno-err.log | |
| warn - Invalid next.config.js options detected: | |
| - The root value has an unexpected property, type, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack). | |
| - The root value has an unexpected property, url, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, e |
- Assign a object to constant.
- Print keys and values of the object like below.
key ~> value
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; |
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
| 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
| 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 { 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
| // 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
| minikube stop |