What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-18 21:00:02
python safe password string generator
#This is giving you a password with 8 strings and 4 numbers: import random i=0 list=[] while i < 12: while i < 8: list.append(random.choice(string.ascii_letters)) i+=1 while i < 12: list.append(random.randint(0, 9... Add solution -
Javascript 2021-09-18 13:41:03
javascript remove all but numbers
string.replace(/[^0-9]/g, ''); Add solution -
Javascript 2021-09-18 09:26:03
angular format phone number while typing
export class PhoneMaskDirective { constructor(public ngControl: NgControl) { } @HostListener('ngModelChange', ['$event']) onModelChange(event) { this.onInputChange(event, false); } @HostListener('keydown.backspace', ['$event']) keydownB... Add solution
Best helpers
Ranking is empty