What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-24 11:55:02
make a discord message embed
//command handlers dont do this if you already have them exports.run = async (client, message, args) => { //define the embed with let, const, or var var EmbedMessage = new Discord.MessageEmbed() .setColor('red') .setImage('You can set a ima... Add solution -
Python 2022-03-24 11:45:01
how to load cifar10 in python
"""Load from /home/USER/data/cifar10 or elsewhere; download if missing.""" import tarfile import os from urllib.request import urlretrieve import numpy as np def cifar10(path=None): r"""Return (train_ima... Add solution -
Other 2022-03-24 10:45:09
readme template
# Project Name > Outline a brief description of your project. > Live demo [_here_](https://www.example.com). <!-- If you have the project hosted somewhere, include the link here. --> ## Table of Contents * [General Info](#general-information)... Add solution -
Javascript 2022-03-24 00:20:07
js sleep
const sleep = (milliseconds) => { return new Promise(resolve => setTimeout(resolve, milliseconds)) } /*Use like so*/ async function timeSensativeAction(){ //must be async func //do something here await sleep(5000) //wait 5 seconds //contin... Add solution -
Python 2022-03-23 06:20:13
make a script run itself again python
#our code var = input("Hi! I like cheese! Do you like cheese?").lower() if var == "yes": print("That's awesome!") # using While True while True: # Will keep going untill told not to using 'break' var = input("Hi! I ... Add solution