Last active
June 21, 2017 12:00
-
-
Save danakt/9eac0bd52ce89bac9578c062e951baa2 to your computer and use it in GitHub Desktop.
Getting chars without using alphanumeric chars
This file contains 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 words = { | |
'true': !![]+[], | |
'false': ![]+[], | |
'Infinity': !![]/[]+[], | |
'undefined': [][[]]+[], | |
'NaN': []/[]+[], | |
'[object Object]': []+{} | |
}; | |
var numbersSpec = { | |
'-4': ~[]<<-~-~[], | |
'-3': ~-~-~[], | |
'-2': ~-~[], | |
'-1': ~[], | |
0.01: (~[]+(-[]+[]))**~-~[], | |
0.1: -~[]/-(~[]+(+[]+[])), | |
0.25: (~-~[])**(~-~[]), | |
0.5: -~[]/(-~-~[]), | |
0.75: -~-~-~[]/(-~[]<<-~-~[]), | |
1.25: -~[]/(-~[]<<-~-~[])-~[], | |
1.5: -~[]/(-~-~[])-~[] | |
} | |
var letters = { | |
a: (![]+[])[-~[]], | |
b: ([]+{})[-~-~[]], | |
c: ([]+{})[-~(-~[]<<-~-~[])], | |
d: ([][[]]+[])[-~-~[]], | |
e: (!![]+[])[-~-~-~[]], | |
f: (![]+[])[+[]], | |
g: (([]+[])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[-~-~(-~-~-~[]<<-~-~[])], | |
h: (-~(-~[]<<(-~[]<<-~-~[])))[(!![]+[])[+[]]+([]+{})[-~[]]+(([]+[])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[(![]+[])[-~-~-~[]]+([][[]]+[])[+[]]+([]+{})[-~-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]](~(~[]+(+[]+[])), -~-~-~[]<<-~[])](-((~-~-~[])+[]+(-~-~-~[]<<-~[]))), | |
i: (!![]/[]+[])[-~-~-~[]], | |
j: ([]+{})[-~-~-~[]], | |
k: (-(~-~[]+(+[]+[])))[(!![]+[])[+[]]+([]+{})[-~[]]+(([]+[])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[(![]+[])[-~-~-~[]]+([][[]]+[])[+[]]+([]+{})[-~-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]](~(~[]+(+[]+[])), -~-~-~[]<<-~[])](-((~-~-~[])+[]+(-~-~-~[]<<-~[]))), | |
l: (![]+[])[-~-~[]], | |
m: ((~[])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[-(~[]+(-~[]+[]))], | |
n: (!![]/[]+[])[-~[]], | |
o: ([]+{})[-~[]], | |
p: ((/\\/)[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[-~-~(-~-~-~[]<<-~-~[])], | |
q: ((-~-~-~[])**(-~-~-~[])+~[])[(!![]+[])[+[]]+([]+{})[-~[]]+(([]+[])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[(![]+[])[-~-~-~[]]+([][[]]+[])[+[]]+([]+{})[-~-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]](~(~[]+(+[]+[])), -~-~-~[]<<-~[])](-((~-~-~[])+[]+(-~-~-~[]<<-~[]))), | |
r: (!![]+[])[-~[]], | |
s: (![]+[])[-~-~-~[]], | |
t: (!![]+[])[+[]], | |
u: ([][[]]+[])[+[]], | |
v: (-~-(~-~-~[]+[]+(+[])))[(!![]+[])[+[]]+([]+{})[-~[]]+(([]+[])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[(![]+[])[-~-~-~[]]+([][[]]+[])[+[]]+([]+{})[-~-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]](~(~[]+(+[]+[])), -~-~-~[]<<-~[])](-((~-~-~[])+[]+(-~-~-~[]<<-~[]))), | |
w: (-~-~[]<<(-~[]<<-~-~[]))[(!![]+[])[+[]]+([]+{})[-~[]]+(([]+[])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[(![]+[])[-~-~-~[]]+([][[]]+[])[+[]]+([]+{})[-~-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]](~(~[]+(+[]+[])), -~-~-~[]<<-~[])](-((~-~-~[])+[]+(-~-~-~[]<<-~[]))), | |
x: ((/\\/)[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[-~(-~[]+[]+-~-~[])], | |
y: (!![]/[]+[])[~-(-~-~[]<<-~-~[])], | |
z: (-~-~-~(-~-~[]<<(-~[]<<-~-~[])))[(!![]+[])[+[]]+([]+{})[-~[]]+(([]+[])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[(![]+[])[-~-~-~[]]+([][[]]+[])[+[]]+([]+{})[-~-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]](~(~[]+(+[]+[])), -~-~-~[]<<-~[])](-((~-~-~[])+[]+(-~-~-~[]<<-~[]))), | |
A: ([][(!![]+[])[-~-~-~[]]+(!![]/[]+[])[-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+(!![]/[]+[])[-~-~-~[]]+(!![]+[])[-~-~-~[]]+(![]+[])[-~-~-~[]]]()+[])[-~-~[]<<-~-~[]], | |
B: ((![])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[~(~[]+(+[]+[]))], | |
E: ((/\\/)[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[-~-~[]-~[]<<-~-~[]], | |
F: (([][(![]+[])[+[]]+(!![]/[]+[])[-~-~-~[]]+(![]+[])[-~-~[]]+(![]+[])[-~-~[]]])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[~(~[]+(+[]+[]))], | |
O: ([]+{})[-~-~[]<<-~-~[]], | |
R: ((/\\/)[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[~(~[]+(+[]+[]))], | |
I: (!![]/[]+[])[+[]], | |
N: ([]/[]+[])[+[]], | |
S: (([]+[])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[~(~[]+(+[]+[]))], | |
U: ({})[(!![]+[])[+[]]+([]+{})[-~[]]+(([]+[])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[~(~[]+(+[]+[]))]+(!![]+[])[+[]]+(!![]+[])[-~[]]+(!![]/[]+[])[-~-~-~[]]+(!![]/[]+[])[-~[]]+(([]+[])[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]+[])[-~-~(-~-~-~[]<<-~-~[])]][([]+{})[-~(-~[]<<-~-~[])]+(![]+[])[-~[]]+(![]+[])[-~-~[]]+(![]+[])[-~-~[]]]([][[]])[-~-~[]<<-~-~[]], | |
}; | |
var symbols = { | |
' ': ([]+{})[~-(-~-~[]<<-~-~[])], | |
'/': ([]+/\\/)[+[]], | |
'\\': ([]+/\\/)[-~[]], | |
'?': ((/\\/)[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]()+[])[-~-~[]], | |
':': ((/\\/)[([]+{})[-~(-~[]<<-~-~[])]+([]+{})[-~[]]+(!![]/[]+[])[-~[]]+(![]+[])[-~-~-~[]]+(!![]+[])[+[]]+(!![]+[])[-~[]]+([][[]]+[])[+[]]+([]+{})[-~(-~[]<<-~-~[])]+(!![]+[])[+[]]+([]+{})[-~[]]+(!![]+[])[-~[]]]()+[])[-~-~-~[]], | |
'!': ([]+/\!/)[-~-~[]], | |
'~': ([]+/\!/)[-~-~[]], | |
'+': ([]+/\+/)[-~-~[]], | |
'-': ([]+/-/)[-~[]], | |
'[': ([]+{})[+[]], | |
']': ([]+{})[-~-~(-~-~-~[]<<-~-~[])], | |
}; | |
var numbers = { | |
0: +[], | |
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: (~[]+(-~[]+[]))*~(-~[]<<-~-~[]), | |
64: (-~[]<<-~-~[])<<(-~[]<<-~-~[]), | |
99: ~(~[]+(+[]+[])+(+[]+[])), | |
100: (~[]+(-[]+[]))**-~-~[], | |
128: -~-~[]<<-~-~[]<<-~-~[]<<-~-~[], | |
150: -((~[]<<(-~[]<<-~-~[]))-~[]+[]+(+[])), | |
159: ~((~[]<<(-~[]<<-~-~[]))+[]+(+[])), | |
160: -((~[]<<(-~[]<<-~-~[]))+[]+(+[])), | |
200: -(~-~[]+(+[]+[])+(+[])), | |
256: -~-~[]<<(-~-~[]<<-~-~[])>>-~[], | |
300: -(~-~-~[]+(+[]+[])+(+[])), | |
400: -(~-~-~-~[]+(+[]+[])+(+[])), | |
500: -(~-~-~-~-~[]+(+[]+[])+(+[])), | |
512: -~-~[]<<(-~-~[]<<-~-~[]), | |
10000: ~~(-~[]+(!![]+[])[-~-~-~[]]+(-~[]<<-~-~[])), | |
1000000: ~~(-~[]+(!![]+[])[-~-~-~[]]+(-~-~[]-~[]<<-~[])), | |
1073741824: -~[]<<~-~[] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment