What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-18 06:45:12
javascript how to pass an action back in a function
// Create a callback in the probs, in this case we call it 'callback' function newCallback(callback) { callback('This can be any value you want to return') } // Do something with callback (in this case, we console log it) function actionAferCallback (c... Add solution -
C# 2021-11-03 20:11:20
add dependency injection .net core console app
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; public class Program { public static void Main(string[] args) { //setup our DI var serviceProvider = new ServiceCollection() .AddLoggi... Add solution -
Other 2021-10-28 14:33:10
run failed test cases automatically with jenkins
How we achieve this is by monitoring the Jenkins job console output using the ‘Conditional Buildstep‘ plugin for Jenkins. The plugin allows you to configure a job so that you search for a text string in the console log and if you pick up a s... Add solution -
Shell/Bash 2021-10-20 00:28:13
view lubuntu-desktop from another computer
# description "Start x11vnc on system boot" description "x11vnc" start on runlevel [2345] stop on runlevel [^2345] console log respawn respawn limit 20 5 exec /usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth ... Add solution -
TypeScript 2021-09-09 17:31:03
setTimeout without arguments
/* setTimeout removes the function from the execution queue and it will only be invoked after JavaScript has finished with the current execution queue. */ console.log(1); setTimeout(function() {console.log(2)}); console.log(3); console.log(4); console.l... Add solution -
Other 2021-08-31 09:25:01
clg
console.log("CLG is a shortcut for console log"); Add solution
Best helpers
Cynthia
+5
Eve noonan
+5
Martinako
+5
Numeri
+5
John Weisz
+5
Rocky DeHart
+5
SunnyHills
+5
Ishan Yadav
+5
Aown Ali
+5
Terry3497
+5
Xkcvk2511
+5
Jean Luis
+5