What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-09 09:00:03
regex
Let regex; /* shorthand character classes */ regex = /d/; // matches any digit, short for [0-9] regex = /D/; // matches non-digits, short for [^0-9] regex = /S/; // matches non-white space character regex = /s/; // matches any white space character regex ... Add solution -
Java 2021-09-07 09:40:01
filterreader converts a string to uppercase java
import java.io.*; public class TextFile { public static void main (String[] args) throws IOException { File file1 = new File("intext.txt"); File file2 = new File("outtext.txt"); char CharCounter = 0; ... Add solution -
CSS 2021-09-07 03:59:05
text transform in css
.uppercase { text-transform: uppercase; } #example { text-transform: none; /* No capitalization, the text renders as it is (default) */ text-transform: capitalize; /* Transforms the first character of each word to uppercase */ text-transform: upp... Add solution -
Go 2021-09-06 21:17:02
go validator example
// NOTED: if value or key is exist in mapping = error // NOTED: if value or key is not exist in mapping = not error // more validation struct reference follow this link -> https://github.com/go-playground/validator // example usage package main im... Add solution -
Other 2021-09-06 06:12:03
Pattern Matcher
// This will match a sequence of 1 or more uppercase and lowercase English letters as well as spaces String myRegExString = "[a-zA-Z\\s]+"; // This is the string we will check to see if our regex matches: String myString = "The quick brown... Add solution -
Javascript 2021-09-05 17:04:04
7.3.2. .toLowerCase()
/*The toLowerCase() string method returns the value of its string in all lowercase letters. Since it is a method, we must precede it with a specific string in order to use it.*/ let nonprofit = "LaunchCode"; console.log(nonprofit.toLowerCase... Add solution -
Python 2021-09-05 09:22:02
python random email generator
Try the following: import random import string def random_char(y): return ''.join(random.choice(string.ascii_letters) for x in range(y)) print (random_char(7)+"@gmail.com") you can use string.ascii_lowercase if you only want lower case... Add solution -
Python 2021-09-05 07:11:03
face detection python
import face_recognition import os import cv2 KNOWN_FACES_DIR = 'known_faces' UNKNOWN_FACES_DIR = 'unknown_faces' TOLERANCE = 0.6 FRAME_THICKNESS = 3 FONT_THICKNESS = 2 MODEL = 'cnn' # default: 'hog', other one can be 'cnn' - CUDA accelerated (if availa... Add solution