What do you want to save?
Add Code snippet
New code examples
-
Html 2022-03-21 23:25:41
how to use ml5.js
// Step 1: Create an image classifier with MobileNet const classifier = ml5.imageClassifier("MobileNet", onModelReady); // Step 2: select an image const img = document.querySelector("#myImage"); // Step 3: Make a prediction let predi... Add solution -
Other 2022-03-11 15:15:08
document.querySelector("body > ntp-app").shadowRoot.querySelector("#mostVisited").shadowRoot.querySelector("#container > a:nth-child(3) > div.tile-icon > img")
document.querySelector("body > ntp-app").shadowRoot.querySelector("#mostVisited").shadowRoot.querySelector("#container > a:nth-child(3) > div.tile-icon > img") Add solution -
Go 2022-02-22 20:35:03
how to stop google colab from disconnecting
function ConnectButton(){ console.log("Connect pushed"); document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click() } setInterval(ConnectButton,60000); Add solution -
Javascript 2022-02-02 22:26:23
Tic Tac Toe using html, javascript and css
const player = "O"; const computer = "X"; let board_full = false; let play_board = ["", "", "", "", "", "", "", "", ""]; const board_container ... Add solution -
Javascript 2022-02-02 19:51:32
select everything but an element in react
import reactDom from "react-dom"; import history from "../history"; const Modal = () => { return reactDom.createPortal( <div onClick={() => history.push("/")} className="ui dimmer modals visib... Add solution -
Javascript 2022-01-31 08:15:37
JSDOM - getting source location of a node with `nodeLocation(node)` // `parse5` lib helps to serialize and/or parse
const dom = new JSDOM( `<p>Hello <img src="foo.jpg"> </p>`, { includeNodeLocations: true } ); const document = dom.window.document; const bodyEl = document.body; // implicitly created const pEl = document.querySelect... Add solution -
Html 2022-01-30 20:46:41
html post link
<form name="myform" action="handle-data.php" method="post"> <label for="query">Search:</label> <input type="text" name="query" id="query"/> <button>S... Add solution