What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-04 08:59:03
capitalize first letter in each word javascript
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution -
Python 2021-09-04 04:32:03
send data from b;uetooth to python script raspberry pi
#!/usr/bin/env python #Run.py import os from bluetooth import * from wifi import Cell, Scheme import subprocess import time wpa_supplicant_conf = "/etc/wpa_supplicant/wpa_supplicant.conf" sudo_mode = "sudo " def wifi_connect(ssid, psk)... Add solution -
Javascript 2021-09-04 02:36:01
js string encode decode arabic
// Create Base64 Object var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=Base64._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e... Add solution -
Javascript 2021-09-03 21:45:01
given two strings return true if they are anagrams of one another in javascript
function anagrams(a, b) { let i = 0 let sumA = 0 let sumB = 0 a = a.replace(/[\W]/g, "").toLowerCase() b = b.replace(/[\W]/g, "").toLowerCase() if (a.length !== b.length) return false !(function sumCharCode() { if (i ... Add solution -
Python 2021-09-03 19:10:02
arabic text recognition from pdf using python
import os from os import chdir, getcwd, listdir, path import codecs import pyPdf from time import strftime def check_path(prompt): ''' (str) -> str Verifies if the provided absolute path does exist. ''' abs_path = raw_input(prompt) ... Add solution
Best helpers
Ranking is empty