What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-27 07:20:03
java double to string with comma
Double.parseDouble(p.replace(',','.')) Add solution -
Python 2022-03-24 18:15:04
how to move a txt file in python
import os import shutil os.rename("path/to/current/file.foo", "path/to/new/destination/for/file.foo") shutil.move("path/to/current/file.foo", "path/to/new/destination/for/file.foo") os.replace("path/to/current... Add solution -
Javascript 2022-03-24 13:45:35
javascript sanitize input slug
// https://stackoverflow.com/a/1054862/485063 jq('.input.slug, .slug, input .slug').unbind().bind('keyup paste', function(){ var low= jq(this).val().toLowerCase() .replace(/ /g,'-') .replace(/\_/g,'-') .replace(/[^\w-]+/g,'') .replace(/\-\... Add solution