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
server { | |
client_max_body_size 4G; | |
listen 80; | |
server_name localhost; | |
root /path/to/fileServer; # your folder to serve | |
location / { | |
types { | |
application/octet-stream txt; # specify which type force to download instead of open | |
} | |
auth_basic "Restricted"; |
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
var ie = (function() { | |
var v = 3 | |
, div = document.createElement( 'div' ) | |
, all = div.getElementsByTagName( 'i' ) | |
do | |
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->' | |
while | |
(all[0]) | |
return v > 4 ? v : document.documentMode | |
}()) |
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
// SyntaxError: foo has alreay been declared | |
const foo = (a, b) => { | |
console.log(a, b); | |
}; | |
const foo = (a) => { | |
console.log(a); | |
}; | |
foo(10, 100); |