What do you want to save?
Add Code snippet
New code examples
-
C 2022-03-27 18:00:02
C example of if else
if (<condition>) { <code> } else if (<condition>) { <code> } else { <code> } /* example */ int money = 50; if (money < 15) { go_home(); } else if (money >= 600) { buy_all(); } else { buy_tickets(money / 15); } /... Add solution -
Javascript 2022-03-17 16:55:10
polkadot UnhandledPromiseRejectionWarning: Error: Api needs to be initialized before using, listen on 'ready'
import { ApiRx } from '@polkadot/api'; // initialise via static create const api = await ApiRx.create().toPromise(); // make a call to retrieve the current network head api.rpc.chain.subscribeNewHeads().subscribe((header) => { console.log(`Chain is... Add solution -
Python 2022-03-12 23:10:18
text detection from image using opencv python
#wasim shaikh github:httperror451 import cv2 import numpy as np import pytesseract pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe" # Load image, convert to HSV format, define lower/upper ranges, and perf... Add solution -
-
Dart 2022-02-26 20:35:02
dart null aware operators
int minVal = (a < b) ? a : b; // if(a < b) {minVal = a;} else {minVal = b;} var x = y ?? z; // assign y to x if y is not null, else z var x ??= y; // assign y to x only if x is null myObject?.myProp // (myObject != null) ? myObject.m... Add solution -
Other 2022-02-25 03:45:02
macos localhost self signed certificate
cd /usr/local/etc/httpd/extra/cert sudo openssl genrsa -out ./localhost.key 2048 sudo openssl rsa -in ./localhost.key -out ./localhost.key.rsa sudo openssl req -new -key ./localhost.key.rsa -subj "/C=ar/ST=caba/L=caba/O=localhost/CN=localhost/" ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5