What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-17 11:29:02
get stroke key with python on linux
# pip3 install pynput from pynput.keyboard import Key, Listener def show(key): pressed_key = str(key).replace("'", "") print(" key: ", pressed_key) if key == Key.esc: # Stop listener return Fa... Add solution -
Javascript 2021-09-17 06:03:03
convert string with dot or comma as decimal separator to number in javascript
function realParseFloat(s) { s = s.replace(/[^\d,.-]/g, ''); // strip everything except numbers, dots, commas and negative sign if (navigator.language.substring(0, 2) !== "de" && /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(s)... Add solution -
Python 2021-09-15 23:58:02
delete spaces in string python
.replace(" ", "") Add solution
Best helpers
Ranking is empty