Download the package: http://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/rsync-3.1.2-2-x86_64.pkg.tar.xz
Extract it and move rsync.exe
to %HOMEDRIVE%%HOMEPATH%\AppData\Local\Programs\Git\usr\bin
.
Download the package: http://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/rsync-3.1.2-2-x86_64.pkg.tar.xz
Extract it and move rsync.exe
to %HOMEDRIVE%%HOMEPATH%\AppData\Local\Programs\Git\usr\bin
.
/** | |
* Encodes the string using base64. | |
* @param {string|number} str - The string to encode. | |
* @returns {string} The base64-encoded string. | |
*/ | |
function base64encode(str) { | |
if (typeof str !== 'string') { | |
if (typeof str === 'number') { | |
str = str.toString(); | |
} else { |
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
//RegExp for URL validation - ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ | |
let exp = ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$; | |
function testInfo(phoneInput) { | |
var OK = exp.exec(phoneInput.value); | |
if (!OK) | |
window.alert(phoneInput.value + ' isn\'t a phone number with area code!'); | |
else | |
window.alert('Thanks, your phone number is ' + OK[0]); | |
} |
async function f() { | |
return 1; | |
} | |
f().then(alert); // 1 |