What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-05 08:35:01
printStackTrace()
public void printStackTrace() //Prints this throwable and its backtrace to the standard error stream. This method prints a stack trace for this Throwable object on the error output stream that is the value of the field System.err. The first line of out... Add solution -
Other 2022-03-05 07:30:33
markdown size of image
# if your image is like this ↓ <img src="drawing.jpg" alt="drawing"/> # then use this ↓ (Add width or style attribute) <img src="drawing.jpg" alt="drawing" style="width:200px;"/> ---... Add solution -
Python 2022-03-03 15:25:06
python traceback single line logging module
import logging class OneLineExceptionFormatter(logging.Formatter): def formatException(self, exc_info): """ Format an exception so that it prints on a single line. """ result = super().for... Add solution -
Other 2022-03-03 04:20:03
flutter&dart recommended settings for vs code
{ // Causes the debug view to automatically appear when a breakpoint is hit. This // setting is global and not configurable per-language. "debug.openDebug": "openOnDebugBreak", "[dart]": { // Automatically format code ... Add solution -
Javascript 2022-02-25 03:55:09
javascript format date
var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; var today = new Date(); console.log(today.toLocaleDateString("en-US")); // 9/17/2016 console.log(today.toLocaleDateString("en-US", options)); // Satur... Add solution -
Other 2022-02-25 02:40:22
sourcetree unable to authenticate PAT for Azure Dev ops
This is still the case in the SourceTree 3.2.0 Windows beta that is only a few days old. When trying to authorize with https://dev.azure.com/OrgName, it seems to succeed in logging in, but fail at gaining Git permissions. Swapping to https://OrgName.Visua... Add solution -
Javascript 2022-02-24 19:55:02
how to send json in js with post
// Sending and receiving data in JSON format using POST method // var xhr = new XMLHttpRequest(); var url = "url"; xhr.open("POST", url, true); xhr.setRequestHeader("Content-Type", "application/json"); xhr.onreadyst... Add solution -
Python 2022-02-24 19:45:12
record and store audio in pythn
import pyaudio import wave chunk = 1024 # Record in chunks of 1024 samples sample_format = pyaudio.paInt16 # 16 bits per sample channels = 2 fs = 44100 # Record at 44100 samples per second seconds = 3 filename = "output.wav" p = pyaudio.PyA... Add solution
Best helpers
Daniel Cook
+5
Czlsws
+5
Shahruz Raad
+5
Horse
+5
Csandreas1
+5
SOUMEN
+5
Vy32
+5
Anugram
+5
ImMathan
+5
Joyo
+5
Huggy Buggy
+5