What do you want to save?
Add Code snippet
New code examples
-
-
Python 2022-02-13 11:55:02
facerecognizer 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 -
CSS 2022-02-11 15:45:10
css capitalize first letter
.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 -
Javascript 2022-02-09 21:55:08
how to make data title case in discord js
function titleCase(str) { return str .split(' ') .map((word) => word[0].toUpperCase() + word.slice(1).toLowerCase()) .join(' '); } console.log(titleCase("I'm a little tea pot")); // I'm A Little tea Pot Add solution -
Javascript 2022-02-06 21:00:26
javascript create a function that counts the number of syllables a word has. each syllable is separated with a dash -.
function new_count(word) { word = word.toLowerCase(); //word.downcase! if(word.length <= 3) { return 1; } //return 1 if word.length <= 3 word = word.replace(/(?:[^laeiouy]es|ed|... Add solution