-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
index.js
61 lines (52 loc) · 1.85 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
*
* Code snippet to print 'Map Of India'
*
* @author: Vinit Shahdeo <[email protected]>
*/
const MAGIC_STRING = "TFy!QJu ROo TNn(ROo)SLq SLq ULo+UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^NBELPeHBFHT}TnALVlBLOFAkHFOuFETpHCStHAUFAgcEAelclcn^r^r\\tZvYxXyT|S~Pn SPm SOn TNn ULo0ULo#ULo-WHq!WFs XDt!";
function revertMe (flag) {
return !flag;
}
var _logCounter = 0,
_flag = true,
_magicCounter = MAGIC_STRING.charCodeAt(_logCounter),
_newLineCounter = 10;
while (_magicCounter !== 0) {
_magicCounter = MAGIC_STRING.charCodeAt(_logCounter);
_logCounter++;
while (_magicCounter > 64) {
_magicCounter--;
++_newLineCounter;
_flag = revertMe(_flag);
if (_newLineCounter === 90) {
_newLineCounter = 10;
process.stdout.write('\n');
} else {
((_logCounter >> 1) << 1 === _logCounter) ? (_flag ? process.stdout.write('1') : process.stdout.write('0')) : process.stdout.write(' ');
}
}
}
/*
_ _
| | | |
| |__| | __ _ _ __ _ __ _ _
| __ |/ _` | '_ \| '_ \| | | |
| | | | (_| | |_) | |_) | |_| |
|_| |_|\__,_| .__/| .__/ \__, |
| | | | __/ |
_____ |_| |_| _ |___/ _
| __ \ | | | (_)
| |__) |___ _ __ _ _| |__ | |_ ___
| _ // _ \ '_ \| | | | '_ \| | |/ __|
| | \ \ __/ |_) | |_| | |_) | | | (__
|_|__\_\___| .__/ \__,_|_.__/|_|_|\___|
| __ \ | |
| | | | __|_|_ _
| | | |/ _` | | | |
| |__| | (_| | |_| |
|_____/ \__,_|\__, |
__/ |
|___/
< /> with <3 by vinitshahdeo
*/