What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-03 00:10:02
discord.js help
const Discord = require('discord.js') require('dotenv').config(); const bot = new Discord.Client(); const token = 'ODE0NzA1NzQzOTczMzE4NzA2.YDhv2Q.5WtTxRrG-tFzqPUCo4HY30wqLcY'; bot.commands = new Discord.Collection(); bot.events = new Discord.Collection(... 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 -
Other 2022-02-02 17:12:05
node server
/* ====== create node.js server with core 'http' module ====== */ // dependencies const http = require("http"); // PORT const PORT = 3000; // server create const server = http.createServer((req, res) => { if (req.url === "/") {... Add solution -
Javascript 2022-02-02 14:27:43
puppeter example fileupload
const puppeteer = require('puppeteer') const path = require('path') const fs = require('fs') const pathFile = __dirname.split('\\').slice(0, 4).join('/') const fileExitst = fs.existsSync(`${pathFile}/travis_1.png`) const scraperRunner = async () => { ... Add solution -
Javascript 2022-02-02 11:26:06
material ui change button to custom color
/* style={{backgroundColor: '#12824C', color: '#FFFFFF'}} backgroundColor changes the button color color changes the text color These examples use Hex to define the color (Green button with white text) */ // Example import React from 'react'; import Bu... Add solution