https://kangax.github.io/compat-table/es2016plus/
uc 13.1.2: 60%
https://kangax.github.io/compat-table/es2016plus/
uc 13.1.2: 60%
Samsung Browser: | |
---------------- | |
Mozilla/5.0 (SMART-TV; Linux; Tizen 5.0) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.2 Chrome/63.0.3239.84 TV Safari/537.36 | |
Mozilla/5.0 (SMART-TV; Linux; Tizen 4.0) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.1 Chrome/56.0.2924.0 TV Safari/537.36 | |
Samsung WebView: | |
---------------- | |
Mozilla/5.0 (SMART-TV; LINUX; Tizen 5.0) AppleWebKit/537.36 (KHTML, like Gecko) Version/5.0 TV Safari/537.36 |
$ echo "FOO_BAR" | node -p 'require("fs").readFileSync(process.stdin.fd, "utf-8").replace("_", "..")' | |
FOO..BAR |
new Intl.DateTimeFormat('en-GB', {timeZone: 'Europe/Paris', | |
year: 'numeric', | |
month: 'long', | |
day: 'numeric', | |
hour: 'numeric', | |
minute: 'numeric' | |
}).format(new Date()) | |
// "17 April 2020, 17:03" |
*.spec.js*, bin, tools, *webpack*, spec/*, karma* |
console.log("Wikipedia Википедия Wikipedia Βικιπαίδεια Wikipedia".match(/\p{Letter}+/gu)) | |
console.log("Wikipedia Википедия Wikipedia Βικιπαίδεια Wikipedia".match(/\b\p{Letter}+\b/gu)) |
#!/bin/bash | |
# first, switch to the directory of where the currently executing script is located | |
cd "$( dirname "${BASH_SOURCE[0]}" )" | |
# now, find the git repo root, and switch to that directory | |
cd "./"$(git rev-parse --show-cdup) | |
# now, run stuff from the git root | |
./somefolder/do-stuff.sh |
<?php | |
$remote = @$_SERVER['REMOTE_ADDR']; | |
printf("%s\n", (($name = gethostbyaddr($remote)) !== false) ? $name : $remote); |