What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-20 05:45:24
what does sanitize do javascript
// our input string to clean const stringToClean = 'Some text <b><i>with</i></b> <blink>tags</blink>, including a rogue script <script>alert(1)</script> def.'; const result = new Sanitizer().sanitize(string... Add solution -
TypeScript 2022-03-16 17:05:24
how-do-i-navigate-to-a-parent-route-from-a-child-route
// via router link // The RouterLink directive always treats the provided link as a delta to the current URL: [routerLink]="['/absolute']" [routerLink]="['../../parent']" [routerLink]="['../sibling']" [routerLink]="['./... Add solution -
C++ 2022-03-15 06:55:06
segment tree complexity
// C++ program to show segment tree operations like construction, query // and update #include <bits/stdc++.h> using namespace std; // A utility function to get the middle index from corner indexes. int getMid(int s, int e) { return s + (e -s)... 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 -
Java 2022-03-11 09:20:22
spring tcp inbound-outbound channel adapter example
@Configuration() @EnableIntegration @IntegrationComponentScan public class ServerConfiguration implements ApplicationListener<TcpConnectionEvent> { private final int port = SocketUtils.findAvailableServerSocket(5000); @MessagingGateway(defaultRequ... Add solution -
Other 2022-03-09 09:35:23
tesseract multiple psm config
# tesseract multiple psm config Page segmentation modes: 0 Orientation and script detection (OSD) only. 1 Automatic page segmentation with OSD. 2 Automatic page segmentation, but no OSD, or OCR. 3 Fully automatic page segmentation, but... Add solution -
Swift 2022-03-03 04:35:24
swift copy video from photo library
import UIKit public protocol VideoPickerDelegate: class { func didSelect(url: URL?) } open class VideoPicker: NSObject { private let pickerController: UIImagePickerController private weak var presentationController: UIViewController? pr... Add solution
Best helpers
Ranking is empty