What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-12 15:39:02
jenkins decrypt password script console
for standard secrets: println(hudson.util.Secret.decrypt("{XXX=}")) for SecretBytes: println(new String(com.cloudbees.plugins.credentials.SecretBytes.fromString("{....}").getPlainData(), "ASCII")) Add solution -
C# 2021-09-10 15:11:02
c# task.run cancellationtoken timeout
private async Task TryTask() { CancellationTokenSource source = new CancellationTokenSource(); source.CancelAfter(TimeSpan.FromSeconds(1)); Task<int> task = Task.Run(() => slowFunc(1, 2, source.Token), source.Token); // (A canceled task ... Add solution -
Other 2021-09-10 10:15:02
how to test signature patch api on developer console
GoogleCredential credential; using (var stream = new FileStream("signature-gmailapi.json", FileMode.Open, FileAccess.Read)) { credential = GoogleCredential.FromStream(stream).CreateScoped(new[] {GmailService.Scope.GmailSettingsBa... Add solution -
Other 2021-09-10 03:18:02
rooms in socket io
io.on('connection', socket => { socket.join('some room'); }); //And then simply use to or in (they are the same) when broadcasting or emitting: io.to('some room').emit('some event'); //You can emit to several rooms at the same time: io.to('room1').... Add solution -
Java 2021-09-08 04:04:04
Java program to remove consonants from a string
// Java program to remove consonants from a string import java.util.Arrays; import java.util.List; public class RemoveConsonantsFromString { public static void main(String[] args) { String str = "hello world core java"; System... Add solution -
Other 2021-09-06 20:08:03
storage problems in RDBMS
The growing amount of unstructured data presents a problem for relational databases. The rows and columns of a relational database are ideal for storing sets of values, but most information is composed of much more than that. Consider something like a pe... Add solution