-
/usr/local/etc/dnsmasq.conf
-
/usr/local/opt/dnsmasq/nsmasq.conf.example
-
dig site.local @127.0.0.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const validatePIN = pin => /^(\d{4}|\d{6})$/.test(pin); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param {number} n - integer (n >= 0) | |
* @param {number} d - digit (0 <= d <= 9) | |
* square all numbers k between 0 and n (0 <= k <= n) | |
* count the number of digits d used in the k*k's | |
* example | |
* | |
* n = 10 | |
* d = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param {number} n - integer (n >= 0) | |
* @param {number} d - digit (0 <= d <= 9) | |
* square all numbers k between 0 and n (0 <= k <= n) | |
* count the number of digits d used in the k*k's | |
* example | |
* | |
* n = 10 | |
* d = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// standalone function invocation: default binding | |
function foo() { | |
return this.a; | |
} | |
var a = 42; | |
foo(); |