What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-23 05:01:28
readwritelock example
import java.util.concurrent.locks.ReentrantReadWriteLock; public class TestThread { private static final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(true); private static String message = "a"; public static void main(Stri... Add solution -
Other 2022-01-22 13:20:18
flutter string concatenation
String a = 'a'; String b = 'b'; var c1 = a + b; // + operator var c2 = '$a$b'; // string interpolation (prefered method) var c3 = 'a' 'b'; // string literals separated only by whitespace are concatenated var c4 = 'abcdefgh abcdefgh abcdefgh abcdefgh' ... Add solution -
Javascript 2021-11-22 07:12:22
angular wait all subscriptions
// Concat let first = Observable.timer(10,500).map(r => { return {source:1,value:r}; }).take(4); let second = Observable.timer(10,500).map(r => { return {source:2,value:r}; }).take(4); first.concat(second).subscribe(res => this.concatStream.... Add solution -
C 2021-11-22 02:39:17
program to merge two strings in c
#include <stdio.h> #include <string.h> int main() { char a[1000], b[1000]; printf("Enter the first string\n"); gets(a); printf("Enter the second string\n"); gets(b); strcat(a, b); printf("String obtai... Add solution -
Python 2021-11-21 15:33:27
skimage marching cubes lewiner
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d.art3d import Poly3DCollection from skimage import measure from skimage.draw import ellipsoid # Generate a level set about zero of two identical ellipsoids in 3D ellip_base = e... Add solution