What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-22 13:20:11
creating room in ws node js
const rooms = {}; wss.on("connection", socket => { const uuid = ...; // create here a uuid for this connection const leave = room => { // not present: do nothing if(! rooms[room][uuid]) return; // if the one exiting is t... Add solution -
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 -
Java 2022-03-21 17:20:15
'Java' is not recognized as an internal or external command
1. downlaod java. (just search java) 2. download JDK (again just search JDK) if that didn't work go to where java is installed and add javapath to path. (it is usually located at C:\Program Files\Common Files\Oracle\Java\javapath ) Adding to path: 1. pre... Add solution -
Javascript 2022-03-21 16:20:05
how to mock Expression<func<T>> parameter
var fakeLessonList = new List<Lesson> { new Lesson() { LessonId = 1, LessonTypeId = 1,LanguageId = 1, TeacherId = 1, LessonName = "Professional Lesson"}, new Lesson() { LessonId = 2,LessonTypeId = 2, LanguageId = 2,... Add solution
Best helpers
Ranking is empty