Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Aleph – א

The Aleph – א

Presented at YGLF 2015 in Tel Aviv, Isreal

The JavaScript world has seen stunning demos in 1024 bytes, crazy hacks in 140 characters and esoteric sequences of only 6 different symbols. This talk will push the limits even further and reveal, how to write invisible code and singularities: Hidden programs that will generate new worlds out of a single character.

http://yougottalovefrontend.com/#speakers

Martin Kleppe

June 08, 2015
Tweet

More Decks by Martin Kleppe

Other Decks in Technology

Transcript

  1. א
    Martin Kleppe

    View full-size slide

  2. MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNdyssoooyNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMMMMMNy/..` ``` ``..--/+/+yydNMMMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMMMNy- ` `....+mMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMNs.` `` `...`/hNMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMN+` `-dMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMN: ` ``-dMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMN- ` ``.:/dMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMdo` `.-/-hMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMNo` .:/:/.:hMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMN/ `.../sms.:oNMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMo` ``..-//:yNMMm::shMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMy. ``..---.``.::///++oyNMMMMM+:soMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMN- ``..---::::/+ooosydmNMMMMMMN+//+NMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMy- `....---:://+oyhdmNNNNMMMMMMmy/-+NMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMmo `....----::/++ohmmNNNNMMMMMMMMN/./mMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMN/ `.....``````..-::/osyhddhhddddmNd..+NMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMy` `.--...```````` ``-:/+++/:.``./hs`oNMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMNo+:.` .---..``` `.`````.:+o:.` `:+mNNMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMm:` ```----...``````:-``.``-+mN+..``:NNMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMmh-..`..`-::--........---....-oNMNdyyhmMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMho:. `-..``-:----..--::::::-...-+NMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMNo. ` `.-------:://///:-....-/hMMMMMMMMMh`oMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMN- .-:------:::::--.`..--/sMMMh+yNMMh sMMMMMMMMMMMMMMM
    MMMMMMMMMMMMo `.-----..........`````.-+dNm+-/dN- +MMMMMMMMMMMMMMM
    MMMMMMMMMMMM. `.--...````````````````.oNMMo:.o/ +MMMMMMMMMMMMMMM
    MMMMMMMMMMMM/ `....````` ````.-:/+hmmy-:/y oMMMMMMMMMMMMMMM
    MMMMMMMMMMMMs ``..````````` ```.-+shyydh. dMMMMMMMMMMMMMMM
    MMMMMMMMMMMMy ``````````..``````--:/yMMNmh. /mMMMMMMMMMMMMMM
    MMMMMMMMMMMMs `````` ``````````.-oNNh+. .+oyhhmMMMMMMMM
    MMMMMMMMMMMM. ` ````````....-:ohmNd/` `-:+sh
    MMMMMMMMMMMs `...--/ydy:
    MMMM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MMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM

    View full-size slide

  3. __
    _/\ \
    /' \ \ \
    __ __ ___ ___ /\_, \ \ \/'\
    /'__`\ /'__`\/' __` __`\/_/\ \ \ , <
    ___ /\ \L\.\.\ __//\ \/\ \/\ \ \ \ \ \ \\`\____
    /\___\ \ \__/.\_\\____\ \_\ \_\ \_\ \ \_\ \_\ \____\
    \/___/ \/__/\/_//____/\/_/\/_/\/_/ \/_/\/_/\/____/
    @aemkei

    View full-size slide

  4. aem1k.com/world

    View full-size slide

  5. .<br/>eval(z='p="<"+"pre>"/* ,.oq#+ ,._, */;for(y in n="zw24l6k\<br/>4e3t4jnt4qj24xh2 x/* =<,m#F^ A W###q. */42kty24wrt413n243n\<br/>9h243pdxt41csb yz/* #K q##H######Am */43iyb6k43pk7243nm\<br/>r24".split(4)){/* dP cpq#q##########b, */for(a in t=pars\<br/>eInt(n[y],36)+/* p##@###YG=[#######y */(e=x=r=[]))for\<br/>(r=!r,i=0;t[a/* d#qg `*PWo##q#######D */]>i;i+=.05)wi\<br/>th(Math)x-= /* aem1k.com Q###KWR#### W[ */.05,0>cos(o=\<br/>new Date/1e3/* .Q#########Md#.###OP A@ , */+x/PI)&&(e[~\<br/>~(32*sin(o)*/* , (W#####Xx######.P^ T % */sin(.5+y/7))\<br/>+60] =-~ r);/* #y `^TqW####P###BP */for(x=0;122>\<br/>x;)p+=" *#"/* b. OQ####x#K */[e[x++]+e[x++\<br/>]]||(S=("eval"/* l `X#####D , */+"(z=\'"+z.spl\<br/>it(B = "\\\\")./* G####B" # */join(B+B).split\<br/>(Q="\'").join(B+Q/* VQBP` */)+Q+")//m1k")[x/2\<br/>+61*y-1]).fontcolor/* TP */(/\\w/.test(S)&&"#\<br/>03B");document.body.innerHTML=p+=B+"\\n"}setTimeout(z)')//<br/>

    View full-size slide

  6. aem1k.com/mandelcode

    View full-size slide


  7. E<br/>= 1<br/>, z=1.07 ;<br/>function s( a)<br/>{ for(a&&(E=!E),H="",z *=<br/>.9,T*=.8,Y=0;2>Y;Y+=.1) {<br/>for (X=0;2>X;X+=.04){for(x=y=i<br/>=0;99>i &&99>=x*x+y*y;i++)t=2*x*y,x<br/>= x*x-y*y+z*X -z-Z/(1-T),y=t+z*Y-z-U;(/*<br/>MANDELCODE=A-QUINE-BY-AEMKEI=CLICK-TO-ZOOM*/<br/>H )+=" .+#"[ i%5]}H+=n}!E&&setTimeout(s<br/>,99),P[ I]=H}Z=1.74909351853611232,<br/>U = 3.40212772e-7,onclick=s;n<br/>="\n";P.textContent="<" +<br/>"pre id=P>\n"+P[I= "i"+<br/>"nnerHTML" ]<br/>T /*aem1k*/<br/>= -<br/>2<br/>

    View full-size slide

  8. [][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]
    +[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]][(
    [(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!
    []]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+![+[]]]]]+
    [+[[!+[]+!+[]+!+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!
    []]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]
    []+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]]]+([][[]]+[])[+[[+!+[]]
    (![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[+!+[]]]]+([][[]]+[
    [[+[]]]]+([][(![]+[])[[[[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])
    [[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!
    []]]]]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]
    [])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(
    +[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]+
    []]]]+(!![]+[])[+[[+!+[]]]]]((![]+[])[+[[+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+
    [+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]+(!![]+[])[+[[+[]]]]+([][(![]+[])[+[[+
    []]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[
    +[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[+!+[]]]+[[!+[
    []+!+[]+!+[]+!+[]]]]+[+!+[]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]
    []+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+
    []]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[+!+[]]]+[[!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]]])()

    View full-size slide

  9. __
    | \
    _______ ______ ____| $$ ______
    / \ / \ / $$ / \
    | $$$$$$$| $$$$$$\| $$$$$$$| $$$$$$\
    | $$ | $$ | $$| $$ | $$| $$ $$
    | $$_____ | $$__/ $$| $$__| $$| $$$$$$$$
    \$$ \ \$$ $$ \$$ $$ \$$ \
    \$$$$$$$ \$$$$$$ \$$$$$$$ \$$$$$$$
    888 .d888 d8b
    888 d88P" Y8P
    888 888
    .d88b. .d88b. 888 888888 888 88888b. .d88b.
    d88P"88b d88""88b 888 888 888 888 "88b d88P"88b
    888 888 888 888 888 888 888 888 888 888 888
    Y88b 888 Y88..88P 888 888 888 888 888 Y88b 888
    "Y88888 "Y88P" 888 888 888 888 888 "Y88888
    888 888
    Y8b d88P Y8b d88P
    "Y88P" "Y88P"

    View full-size slide

  10. DHTML5
    DHTML5

    View full-size slide




  11. Title
    <br/>function init() { ... }<br/>


    ...


    View full-size slide



  12. Title
    <br/>function init() { ... }<br/>


    ...


    View full-size slide


  13. Title
    <br/>function init() { ... }<br/>


    ...

    View full-size slide


  14. ...

    Title
    <br/>function init() { ... }<br/>

    View full-size slide

  15. <br/>function init() { ... }<br/>

    ...

    View full-size slide

  16. <br/>function init() { ... }<br/>

    ...

    View full-size slide


  17. id=b onload="b.innerHTML=''+1"

    View full-size slide

  18. b.innerHTML=1

    View full-size slide

  19. var x = Math.random();
    var y = Math.random();
    var z = Math.max(x, y);

    View full-size slide

  20. x = Math.random();
    y = Math.random();
    z = Math.max(x, y);

    View full-size slide

  21. M = Math;
    x = Math.random();
    y = Math.random();
    z = Math.max(x, y);

    View full-size slide

  22. M = Math;
    x = M.random();
    y = M.random();
    z = M.max(x, y);

    View full-size slide

  23. M = Math;
    r = M.random;
    x = M.random();
    y = M.random();
    z = M.max(x, y);

    View full-size slide

  24. M = Math;
    r = M.random;
    x = r();
    y = r();
    z = M.max(x, y);

    View full-size slide

  25. M = Math;
    r = "random";
    x = M[r]();
    y = M[r]();
    z = M.max(x, y);

    View full-size slide

  26. M = Math;
    r = "random";
    x = M[r="random"]();
    y = M[r]();
    z = M.max(x, y);

    View full-size slide

  27. M = Math;
    x = M[r="random"]();
    y = M[r]();
    z = M.max(x, y);

    View full-size slide

  28. with (Math){
    x = random();
    y = random();
    z = max(x, y);
    }

    View full-size slide

  29. with (Math)
    x = random(),
    y = random(),
    z = max(x, y);

    View full-size slide

  30. with (Math)
    x = (r=random)(),
    y = r(),
    z = max(x, y);

    View full-size slide

  31. with (Math)
    z = max((r=random)(), r());

    View full-size slide

  32. with(Math)z=max((r=random)(),r())

    View full-size slide

  33. Jorge Luis Borges

    View full-size slide

  34. Portrait
    by: John Sokol

    View full-size slide

  35. "Writing long books
    is an act of foolishness."

    View full-size slide

  36. A man sets out to draw the world.
    As the years go by, he peoples a space
    with images of provinces, kingdoms,
    mountains, bays, ships, islands, fishes, rooms,
    instruments, stars, horses, and individuals.
    A short time before he dies, he discovers
    that the patient labyrinth of lines
    traces his own face.

    View full-size slide

  37. A man sets out to draw the world.
    As the years go by, he peoples a space
    with images of provinces, kingdoms,
    mountains, bays, ships, islands, fishes, rooms,
    instruments, stars, horses, and individuals.
    A short time before he dies, he discovers
    that the patient labyrinth of lines
    traces his own face.

    View full-size slide

  38. A man sets out to draw the world.
    As the years go by, he peoples a space
    with images of provinces, kingdoms,
    mountains, bays, ships, islands, fishes, rooms,
    instruments, stars, horses, and individuals.
    A short time before he dies, he discovers
    that the patient labyrinth of lines
    traces his own face.

    View full-size slide

  39. A man sets out to draw the world.
    As the years go by, he peoples a space
    with images of provinces, kingdoms,
    mountains, bays, ships, islands, fishes, rooms,
    instruments, stars, horses, and individuals.
    A short time before he dies, he discovers
    that the patient labyrinth of lines
    traces his own face.

    View full-size slide

  40. Hebrew
    === first letter
    === number 1

    View full-size slide

  41. Kabbalah
    === origin of the universe
    === contains all numbers

    View full-size slide

  42. The Aleph
    "the only place on earth
    where all places are
    – seen from every angle,
    each standing clear,
    without any confusion
    or blending."

    View full-size slide

  43. א
    <br/>ֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲ֥֧֧֤֥֧֤֥֥֧֤֥֤֦֥֤֦֥֦֥֥֦֥֧֤֤֧֥֤֦֥֤֦֦֥֥֤֥֥֥֦֣֤֧֥֤֤֣֧֥֣֥֤֥֥֥֣֣֤֣֥֥֣֥֤֣֥֥֣֣֤֥֧֣֥֤֤֥֣֧֥֣֥֧֧֥֥֥֥֥֥֥֤֧֦֥֥֧֥֤֣֧֥֦֥֧֥֤֥֦֥֧֤֤֥֦֧֥֦֤֥֥֣֦֧֦֥֤֧֦֥֤֥֥֤֦֦֧֤֤֥֧֥֧֦֦֤֥֣֥֣֣֤֤֧֤֤֥֧֥֧֣֦֧֧֤֥֧֥֣֥֣֣֤֧֧֦֧֥֤֥֣֣֤֥֥֧֧֥֦֦֥֦֤֣֦֧֥֦֦֥֦֤֣֤֥֧֣֥֥֣֧֥֥֥֥֥֣֧֦֦֦֧֦֣֦֥֧֥֤֥֥֣֣֣֥֧֥֥֧֤֤֥֤֥֧֤֥֦֧֥֦֤֧֤֥֤֥֤֦֦֦֥֤֤֦֦֥֤֦֥֤֣֦֤֥֧֤֤֡֠֡֠֡֠֠֠֠֡֠֡֡֡֡֡֠֡֡֡֡֡֡֡֡֠֡֡֡֡֡֠֡֡֡֡֡֡֡֡֠֡֡֠֡֡֡֡֡֠֡֡֠֡֡֡֡֡֠֠֡֡֠֠֡֠֡֠֠֠֠֡֠֠֠֡֠֠֠֠֠֡֠֠֠֡֠֠֠֠֡֠֠֡֡֡֡֠֡֠֠֠֠֠֠֡֡֠֠֠֠֡֠֠֠֠֡֡֡֡֡֡֡֡֠֠֠֠֡֡֠֡֡֡֡֡֠֠֡֠֠֡֡֡֠֠֡֠֠֠֠֠֡֡֡֠֠֠֠֠֡֡֠֠֠֠֡֠֠֠֡֡֠֠֠֠֠֠֠֡֡֠֡֡֠֠֡֠֡֠֡֠֡֡֠֠֡֡֡֠֠֠֡֡֡֡֡֡֡֡֡֡֡֡֡֡֡֠֠֡֠א'= א'<br/>ח , "" = ב<br/>= ! ב + ב<br/>, ח ! = ד +<br/>ב = ו , ב + {<br/>} , ה = ' " '<br/>, 0 ] ח = ע ] ,<br/>ך , [ 1 ] ח = נ =<br/>ח ) = ם , [ 5 ] ו .<br/>ח = ף , [ 1 ] ( ו + ד<br/>[ 2 ] , ד = ס , [ 1 ] ו = מ<br/>[ 3 ] , 1 ] ד = י , [ 3 ] ח = כ ]<br/>ך = ז ) = ט , " " + ם + נ + ף + ע + כ + נ = ג<br/>+ ג ) ט ) ט , [ ז ] [ ז ] ( נ + מ + ע + ך + ף + נ + ע + ס + ם + מ +<br/>ל)+"/)"+כ+ך+י+"154\\"+ן+כ+נ+".(א)"+כ+("160\\"=ן)+י+ך+ס+כ+ה+ג)ט+ג)ט+ה<br/>=".{5}(.)")+ה+()(()(ה+"('$1$2$3\\\\\\\\',147\\/"+ל+ל)())()

    View full-size slide

  44. א
    <br/>ֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲ֥֧֧֤֥֧֤֥֥֧֤֥֤֦֥֤֦֥֦֥֥֦֥֧֤֤֧֥֤֦֥֤֦֦֥֥֤֥֥֥֦֣֤֧֥֤֤֣֧֥֣֥֤֥֥֥֣֣֤֣֥֥֣֥֤֣֥֥֣֣֤֥֧֣֥֤֤֥֣֧֥֣֥֧֧֥֥֥֥֥֥֥֤֧֦֥֥֧֥֤֣֧֥֦֥֧֥֤֥֦֥֧֤֤֥֦֧֥֦֤֥֥֣֦֧֦֥֤֧֦֥֤֥֥֤֦֦֧֤֤֥֧֥֧֦֦֤֥֣֥֣֣֤֤֧֤֤֥֧֥֧֣֦֧֧֤֥֧֥֣֥֣֣֤֧֧֦֧֥֤֥֣֣֤֥֥֧֧֥֦֦֥֦֤֣֦֧֥֦֦֥֦֤֣֤֥֧֣֥֥֣֧֥֥֥֥֥֣֧֦֦֦֧֦֣֦֥֧֥֤֥֥֣֣֣֥֧֥֥֧֤֤֥֤֥֧֤֥֦֧֥֦֤֧֤֥֤֥֤֦֦֦֥֤֤֦֦֥֤֦֥֤֣֦֤֥֧֤֤֡֠֡֠֡֠֠֠֠֡֠֡֡֡֡֡֠֡֡֡֡֡֡֡֡֠֡֡֡֡֡֠֡֡֡֡֡֡֡֡֠֡֡֠֡֡֡֡֡֠֡֡֠֡֡֡֡֡֠֠֡֡֠֠֡֠֡֠֠֠֠֡֠֠֠֡֠֠֠֠֠֡֠֠֠֡֠֠֠֠֡֠֠֡֡֡֡֠֡֠֠֠֠֠֠֡֡֠֠֠֠֡֠֠֠֠֡֡֡֡֡֡֡֡֠֠֠֠֡֡֠֡֡֡֡֡֠֠֡֠֠֡֡֡֠֠֡֠֠֠֠֠֡֡֡֠֠֠֠֠֡֡֠֠֠֠֡֠֠֠֡֡֠֠֠֠֠֠֠֡֡֠֡֡֠֠֡֠֡֠֡֠֡֡֠֠֡֡֡֠֠֠֡֡֡֡֡֡֡֡֡֡֡֡֡֡֡֠֠֡֠א'= א'<br/>ח , "" = ב<br/>= ! ב + ב<br/>, ח ! = ד +<br/>ב = ו , ב + {<br/>} , ה = ' " '<br/>, 0 ] ח = ע ] ,<br/>ך , [ 1 ] ח = נ =<br/>ח ) = ם , [ 5 ] ו .<br/>ח = ף , [ 1 ] ( ו + ד<br/>[ 2 ] , ד = ס , [ 1 ] ו = מ<br/>[ 3 ] , 1 ] ד = י , [ 3 ] ח = כ ]<br/>ך = ז ) = ט , " " + ם + נ + ף + ע + כ + נ = ג<br/>+ ג ) ט ) ט , [ ז ] [ ז ] ( נ + מ + ע + ך + ף + נ + ע + ס + ם + מ +<br/>ל)+"/)"+כ+ך+י+"154\\"+ן+כ+נ+".(א)"+כ+("160\\"=ן)+י+ך+ס+כ+ה+ג)ט+ג)ט+ה<br/>=".{5}(.)")+ה+()(()(ה+"('$1$2$3\\\\\\\\',147\\/"+ל+ל)())()

    View full-size slide

  45. א
    <br/>ֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲ֥֧֧֤֥֧֤֥֥֧֤֥֤֦֥֤֦֥֦֥֥֦֥֧֤֤֧֥֤֦֥֤֦֦֥֥֤֥֥֥֦֣֤֧֥֤֤֣֧֥֣֥֤֥֥֥֣֣֤֣֥֥֣֥֤֣֥֥֣֣֤֥֧֣֥֤֤֥֣֧֥֣֥֧֧֥֥֥֥֥֥֥֤֧֦֥֥֧֥֤֣֧֥֦֥֧֥֤֥֦֥֧֤֤֥֦֧֥֦֤֥֥֣֦֧֦֥֤֧֦֥֤֥֥֤֦֦֧֤֤֥֧֥֧֦֦֤֥֣֥֣֣֤֤֧֤֤֥֧֥֧֣֦֧֧֤֥֧֥֣֥֣֣֤֧֧֦֧֥֤֥֣֣֤֥֥֧֧֥֦֦֥֦֤֣֦֧֥֦֦֥֦֤֣֤֥֧֣֥֥֣֧֥֥֥֥֥֣֧֦֦֦֧֦֣֦֥֧֥֤֥֥֣֣֣֥֧֥֥֧֤֤֥֤֥֧֤֥֦֧֥֦֤֧֤֥֤֥֤֦֦֦֥֤֤֦֦֥֤֦֥֤֣֦֤֥֧֤֤֡֠֡֠֡֠֠֠֠֡֠֡֡֡֡֡֠֡֡֡֡֡֡֡֡֠֡֡֡֡֡֠֡֡֡֡֡֡֡֡֠֡֡֠֡֡֡֡֡֠֡֡֠֡֡֡֡֡֠֠֡֡֠֠֡֠֡֠֠֠֠֡֠֠֠֡֠֠֠֠֠֡֠֠֠֡֠֠֠֠֡֠֠֡֡֡֡֠֡֠֠֠֠֠֠֡֡֠֠֠֠֡֠֠֠֠֡֡֡֡֡֡֡֡֠֠֠֠֡֡֠֡֡֡֡֡֠֠֡֠֠֡֡֡֠֠֡֠֠֠֠֠֡֡֡֠֠֠֠֠֡֡֠֠֠֠֡֠֠֠֡֡֠֠֠֠֠֠֠֡֡֠֡֡֠֠֡֠֡֠֡֠֡֡֠֠֡֡֡֠֠֠֡֡֡֡֡֡֡֡֡֡֡֡֡֡֡֠֠֡֠א'= א'<br/>ח , "" = ב<br/>= ! ב + ב<br/>, ח ! = ד +<br/>ב = ו , ב + {<br/>} , ה = ' " '<br/>, 0 ] ח = ע ] ,<br/>ך , [ 1 ] ח = נ =<br/>ח ) = ם , [ 5 ] ו .<br/>ח = ף , [ 1 ] ( ו + ד<br/>[ 2 ] , ד = ס , [ 1 ] ו = מ<br/>[ 3 ] , 1 ] ד = י , [ 3 ] ח = כ ]<br/>ך = ז ) = ט , " " + ם + נ + ף + ע + כ + נ = ג<br/>+ ג ) ט ) ט , [ ז ] [ ז ] ( נ + מ + ע + ך + ף + נ + ע + ס + ם + מ +<br/>ל)+"/)"+כ+ך+י+"154\\"+ן+כ+נ+".(א)"+כ+("160\\"=ן)+י+ך+ס+כ+ה+ג)ט+ג)ט+ה<br/>=".{5}(.)")+ה+()(()(ה+"('$1$2$3\\\\\\\\',147\\/"+ל+ל)())()

    View full-size slide

  46. א
    <br/>ֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲ֥֧֧֤֥֧֤֥֥֧֤֥֤֦֥֤֦֥֦֥֥֦֥֧֤֤֧֥֤֦֥֤֦֦֥֥֤֥֥֥֦֣֤֧֥֤֤֣֧֥֣֥֤֥֥֥֣֣֤֣֥֥֣֥֤֣֥֥֣֣֤֥֧֣֥֤֤֥֣֧֥֣֥֧֧֥֥֥֥֥֥֥֤֧֦֥֥֧֥֤֣֧֥֦֥֧֥֤֥֦֥֧֤֤֥֦֧֥֦֤֥֥֣֦֧֦֥֤֧֦֥֤֥֥֤֦֦֧֤֤֥֧֥֧֦֦֤֥֣֥֣֣֤֤֧֤֤֥֧֥֧֣֦֧֧֤֥֧֥֣֥֣֣֤֧֧֦֧֥֤֥֣֣֤֥֥֧֧֥֦֦֥֦֤֣֦֧֥֦֦֥֦֤֣֤֥֧֣֥֥֣֧֥֥֥֥֥֣֧֦֦֦֧֦֣֦֥֧֥֤֥֥֣֣֣֥֧֥֥֧֤֤֥֤֥֧֤֥֦֧֥֦֤֧֤֥֤֥֤֦֦֦֥֤֤֦֦֥֤֦֥֤֣֦֤֥֧֤֤֡֠֡֠֡֠֠֠֠֡֠֡֡֡֡֡֠֡֡֡֡֡֡֡֡֠֡֡֡֡֡֠֡֡֡֡֡֡֡֡֠֡֡֠֡֡֡֡֡֠֡֡֠֡֡֡֡֡֠֠֡֡֠֠֡֠֡֠֠֠֠֡֠֠֠֡֠֠֠֠֠֡֠֠֠֡֠֠֠֠֡֠֠֡֡֡֡֠֡֠֠֠֠֠֠֡֡֠֠֠֠֡֠֠֠֠֡֡֡֡֡֡֡֡֠֠֠֠֡֡֠֡֡֡֡֡֠֠֡֠֠֡֡֡֠֠֡֠֠֠֠֠֡֡֡֠֠֠֠֠֡֡֠֠֠֠֡֠֠֠֡֡֠֠֠֠֠֠֠֡֡֠֡֡֠֠֡֠֡֠֡֠֡֡֠֠֡֡֡֠֠֠֡֡֡֡֡֡֡֡֡֡֡֡֡֡֡֠֠֡֠א'= א'<br/>ח , "" = ב<br/>= ! ב + ב<br/>, ח ! = ד +<br/>ב = ו , ב + {<br/>} , ה = ' " '<br/>, 0 ] ח = ע ] ,<br/>ך , [ 1 ] ח = נ =<br/>ח ) = ם , [ 5 ] ו .<br/>ח = ף , [ 1 ] ( ו + ד<br/>[ 2 ] , ד = ס , [ 1 ] ו = מ<br/>[ 3 ] , 1 ] ד = י , [ 3 ] ח = כ ]<br/>ך = ז ) = ט , " " + ם + נ + ף + ע + כ + נ = ג<br/>+ ג ) ט ) ט , [ ז ] [ ז ] ( נ + מ + ע + ך + ף + נ + ע + ס + ם + מ +<br/>ל)+"/)"+כ+ך+י+"154\\"+ן+כ+נ+".(א)"+כ+("160\\"=ן)+י+ך+ס+כ+ה+ג)ט+ג)ט+ה<br/>=".{5}(.)")+ה+()(()(ה+"('$1$2$3\\\\\\\\',147\\/"+ל+ל)())()

    View full-size slide

  47. א
    <br/>ֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲ֥֧֧֤֥֧֤֥֥֧֤֥֤֦֥֤֦֥֦֥֥֦֥֧֤֤֧֥֤֦֥֤֦֦֥֥֤֥֥֥֦֣֤֧֥֤֤֣֧֥֣֥֤֥֥֥֣֣֤֣֥֥֣֥֤֣֥֥֣֣֤֥֧֣֥֤֤֥֣֧֥֣֥֧֧֥֥֥֥֥֥֥֤֧֦֥֥֧֥֤֣֧֥֦֥֧֥֤֥֦֥֧֤֤֥֦֧֥֦֤֥֥֣֦֧֦֥֤֧֦֥֤֥֥֤֦֦֧֤֤֥֧֥֧֦֦֤֥֣֥֣֣֤֤֧֤֤֥֧֥֧֣֦֧֧֤֥֧֥֣֥֣֣֤֧֧֦֧֥֤֥֣֣֤֥֥֧֧֥֦֦֥֦֤֣֦֧֥֦֦֥֦֤֣֤֥֧֣֥֥֣֧֥֥֥֥֥֣֧֦֦֦֧֦֣֦֥֧֥֤֥֥֣֣֣֥֧֥֥֧֤֤֥֤֥֧֤֥֦֧֥֦֤֧֤֥֤֥֤֦֦֦֥֤֤֦֦֥֤֦֥֤֣֦֤֥֧֤֤֡֠֡֠֡֠֠֠֠֡֠֡֡֡֡֡֠֡֡֡֡֡֡֡֡֠֡֡֡֡֡֠֡֡֡֡֡֡֡֡֠֡֡֠֡֡֡֡֡֠֡֡֠֡֡֡֡֡֠֠֡֡֠֠֡֠֡֠֠֠֠֡֠֠֠֡֠֠֠֠֠֡֠֠֠֡֠֠֠֠֡֠֠֡֡֡֡֠֡֠֠֠֠֠֠֡֡֠֠֠֠֡֠֠֠֠֡֡֡֡֡֡֡֡֠֠֠֠֡֡֠֡֡֡֡֡֠֠֡֠֠֡֡֡֠֠֡֠֠֠֠֠֡֡֡֠֠֠֠֠֡֡֠֠֠֠֡֠֠֠֡֡֠֠֠֠֠֠֠֡֡֠֡֡֠֠֡֠֡֠֡֠֡֡֠֠֡֡֡֠֠֠֡֡֡֡֡֡֡֡֡֡֡֡֡֡֡֠֠֡֠א'= א'<br/>ח , "" = ב<br/>= ! ב + ב<br/>, ח ! = ד +<br/>ב = ו , ב + {<br/>} , ה = ' " '<br/>, 0 ] ח = ע ] ,<br/>ך , [ 1 ] ח = נ =<br/>ח ) = ם , [ 5 ] ו .<br/>ח = ף , [ 1 ] ( ו + ד<br/>[ 2 ] , ד = ס , [ 1 ] ו = מ<br/>[ 3 ] , 1 ] ד = י , [ 3 ] ח = כ ]<br/>ך = ז ) = ט , " " + ם + נ + ף + ע + כ + נ = ג<br/>+ ג ) ט ) ט , [ ז ] [ ז ] ( נ + מ + ע + ך + ף + נ + ע + ס + ם + מ +<br/>ל)+"/)"+כ+ך+י+"154\\"+ן+כ+נ+".(א)"+כ+("160\\"=ן)+י+ך+ס+כ+ה+ג)ט+ג)ט+ה<br/>=".{5}(.)")+ה+()(()(ה+"('$1$2$3\\\\\\\\',147\\/"+ל+ל)())()

    View full-size slide

  48. life in the browser?
    How to create

    View full-size slide

  49. Conway's Game of Life
    Count the neighbors of a cell …
    Any dead cell with …
    three: becomes alive, as if by reproduction.
    Any live cell with …
    two or three: lives on to the next generation.
    fewer than two: dies, as if caused by under-population.
    more than three: dies, as if by overcrowding.

    View full-size slide

  50. Conway's Game of Life
    Count the neighbors of a cell …
    Any dead cell with …
    three: becomes alive, as if by reproduction.
    Any live cell with …
    two or three: lives on to the next generation.
    fewer than two: dies, as if caused by under-population.
    more than three: dies, as if by overcrowding.

    View full-size slide

  51. Any dead cell with …
    three: becomes alive, as if by reproduction.
    Any live cell with …
    two or three: lives on to the next generation.
    fewer than two: dies, as if caused by under-population.
    more than three: dies, as if by overcrowding.

    View full-size slide

  52. Any dead cell with …
    three: becomes alive, as if by reproduction.
    Any live cell with …
    two or three: lives on to the next generation.
    fewer than two: dies, as if caused by under-population.
    more than three: dies, as if by overcrowding.

    View full-size slide

  53. Any dead cell with …
    three: becomes alive, as if by reproduction.
    Any live cell with …
    two or three: lives on to the next generation.
    fewer than two: dies, as if caused by under-population.
    more than three: dies, as if by overcrowding.

    View full-size slide

  54. Any dead cell with …
    three: becomes alive
    Any live cell with …
    two or three: lives on
    fewer than two: dies
    more than three: dies

    View full-size slide

  55. Any dead cell with …
    three: becomes alive
    Any live cell with …
    two or three: lives on

    View full-size slide

  56. Any dead cell with …
    three: lives
    Any live cell with …
    two or three: lives

    View full-size slide

  57. Any dead cell with …
    three: lives
    Any live cell with …
    two or three: lives

    View full-size slide

  58. Any dead cell with …
    three: lives
    Any live cell with …
    two or three: lives

    View full-size slide

  59. Any cell with …
    three: lives
    Any live cell with …
    two : lives

    View full-size slide

  60. A cell with three or
    a live cell with two neighbors lives

    View full-size slide

  61. var count = ...;
    if (!alive) {
    if (count == 3) {
    cell.alive = true;
    } else {
    cell.alive = false;
    }
    } else {
    if (count == 2 || count == 3) {
    cell.alive = true;
    } else if (count < 2 || count > 3) {
    cell.alive = false;
    }
    }

    View full-size slide

  62. var count = ...;
    cell.alive = false;
    if (count == 3) {
    cell.alive = true;
    } else if (alive) {
    if (count == 2) {
    cell.alive = true;
    }
    }

    View full-size slide

  63. var count = ...;
    cell.alive = (count == 3) || (alive && count == 2)

    View full-size slide

  64. var c = ...;
    b[i] = (c == 3) || (a[i] && c == 2)

    View full-size slide

  65. b[i] = (c == 3) || (a[i] && c == 2)

    View full-size slide

  66. b[i] = c == 3 || a[i] && c == 2

    View full-size slide

  67. b[i] = c == 3 | a[i] & c == 2

    View full-size slide

  68. b[i]=c==3|a[i]&c==2

    View full-size slide

  69. a=b,b=h=[],i=3760;i--;h+=" -"[
    i%92?b[i]=a?3==d|a[i]&2==d:24*i%7
    %2:2])for(d=0,j=5;e=(2)d+=a[i+e]+a[i-e];s.innerHTML=h',
    99) id=s>

    View full-size slide

  70. a=b,b=h=[],i=3760;i--;h+=" -"[
    i%92?b[i]=a?3==d|a[i]&2==d:24*i%7
    %2:2])for(d=0,j=5;e=(2)d+=a[i+e]+a[i-e];s.innerHTML=h',
    99) id=s>

    View full-size slide

  71. a=b,b=h=[],i=3760;i--;h+=" -"[
    i%92?b[i]=a?3==d|a[i]&2==d:24*i%7
    %2:2])for(d=0,j=5;e=(2)d+=a[i+e]+a[i-e];s.innerHTML=h',
    99) id=s>

    View full-size slide

  72. a=b,b=h=[],i=3760;i--;h+=" -"[
    i%92?b[i]=a?3==d|a[i]&2==d:24*i%7
    %2:2])for(d=0,j=5;e=(2)d+=a[i+e]+a[i-e];s.innerHTML=h',
    99) id=s>

    View full-size slide

  73. a=b,b=h=[],i=3760;i--;h+=" -"[
    i%92?b[i]=a?3==d|a[i]&2==d:24*i%7
    %2:2])for(d=0,j=5;e=(2)d+=a[i+e]+a[i-e];s.innerHTML=h',
    99) id=s>

    View full-size slide

  74. a=b,b=h=[],i=3760;i--;h+=" -"[
    i%92?b[i]=a?3==d|a[i]&2==d:24*i%7
    %2:2])for(d=0,j=5;e=(2)d+=a[i+e]+a[i-e];s.innerHTML=h',
    99) id=s>

    View full-size slide

  75. a=b,b=h=[],i=3760;i--;h+=" -"[
    i%92?b[i]=a?3==d|a[i]&2==d:24*i%7
    %2:2])for(d=0,j=5;e=(2)d+=a[i+e]+a[i-e];s.innerHTML=h',
    99) id=s>

    View full-size slide

  76. a=b,b=h=[],i=3760;i--;h+=" -"[
    i%92?b[i]=a?3==d|a[i]&2==d:24*i%7
    %2:2])for(d=0,j=5;e=(2)d+=a[i+e]+a[i-e];s.innerHTML=h',
    99) id=s>

    View full-size slide

  77. a=b,b=h=[],i=3760;i--;h+=" -"[
    i%92?b[i]=a?3==d|a[i]&2==d:24*i%7
    %2:2])for(d=0,j=5;e=(2)d+=a[i+e]+a[i-e];s.innerHTML=h',
    99) id=s>

    View full-size slide

  78. a=b,b=h=[],i=3760;i--;h+=" -"[
    i%92?b[i]=a?3==d|a[i]&2==d:24*i%7
    %2:2])for(d=0,j=5;e=(2)d+=a[i+e]+a[i-e];s.innerHTML=h',
    99) id=s>

    View full-size slide

  79. a=b,b=h=[],i=3760;i--;h+=" -"[
    i%92?b[i]=a?3==d|a[i]&2==d:24*i%7
    %2:2])for(d=0,j=5;e=(2)d+=a[i+e]+a[i-e];s.innerHTML=h',
    99) id=s>

    View full-size slide

  80. without Latin characters?
    How to write JavaScript

    View full-size slide

  81. Зв
    езда

    View full-size slide

  82. Зв
    езда

    View full-size slide

  83. Зв
    езда

    View full-size slide

  84. Зв
    езда

    View full-size slide

  85. ="" ,= !+ , =! +,
    =
    +{}, = [++ ],= [ =] ,=
    ++ +, =
    [+ ],[ +=
    [
    ]+(
    .
    +
    )[] +[ ]++ + []+
    + +
    [ ]+ ][ ] ([
    ]+ [ ]+ []+
    ++ "()"
    )()

    View full-size slide

  86. aem1k.com/matrix

    View full-size slide

  87. aem1k.com/םלוע-םולש

    View full-size slide

  88. aem1k.com/hebrew

    View full-size slide

  89. How does it work?

    View full-size slide

  90. 1. Escape Sequences
    2. Playing Scrabble

    View full-size slide

  91. \u0061\u006c\u0065\u0072\u0074(1)

    View full-size slide

  92. a l e r t (1)

    View full-size slide

  93. []["\155\141\160\]["\
    \143\157\156\163\164\
    \162\165\143\164\157\
    \162"]("\141\154\145\
    \162\164\50\61\51")()

    View full-size slide

  94. []["\155\141\160"]["\
    \143\157\156\163\164\
    \162\165\143\164\157\
    \162"]("\141\154\145\
    \162\164\50\61\51")()

    View full-size slide

  95. [][" m a p "]["\
    c o n s t \
    r u c t o \
    r "](" a l e \
    r t ( 1 ) ")()

    View full-size slide

  96. []["map"]["constructor"]("alert(1)")()

    View full-size slide

  97. []["map"]["constructor"]("alert(1)")()

    View full-size slide

  98. function["constructor"]("alert(1)")()

    View full-size slide

  99. function["constructor"]("alert(1)")()

    View full-size slide

  100. Function("alert(1)")()

    View full-size slide

  101. Function("alert(1)")()

    View full-size slide

  102. eval("alert(1)")

    View full-size slide

  103. []["map"]["constructor"]("...")()

    View full-size slide

  104. C="constructor"
    C[C][C]("...")()

    View full-size slide

  105. 1. Escape Sequences
    2. Playing Scrabble

    View full-size slide

  106. ![] => false
    !![] => true

    View full-size slide

  107. ![] + "" => "false"
    !![] + "" => "true"

    View full-size slide

  108. "true"[0] => "t"
    "true"[1] => "r"
    "true"[2] => "u"
    "true"[3] => "e"

    View full-size slide

  109. "false" [1]
    "false" [2]
    "true" [3]
    "true" [1]
    "true" [0]

    View full-size slide

  110. f a l s e
    f a l s e
    t r u e
    t r u e
    t r u e

    View full-size slide

  111. f a l s e
    f a l s e
    t r u e
    t r u e
    t r u e

    View full-size slide

  112. f a l s e
    o b j e c t
    t r u e
    f a l s e
    o b j e c t
    o b j e c t
    f a l s e
    t r u e

    View full-size slide

  113. o b j e c t
    o b j e c t
    u n d e f i n e d
    f a l s e
    t r u e
    t r u e
    t r u e
    o b j e c t
    t r u e
    o b j e c t
    t r u e

    View full-size slide

  114. []["map"]["constructor"]("alert(1)")()

    View full-size slide

  115. Invisible Code

    View full-size slide

  116. Can we hide JavaScript
    inside itself?

    View full-size slide

  117. 00 | Null
    01 | Start of Heading
    02 | Start of Text
    Whitespace
    04 | End of Transmission
    05 | Enquiry
    06 | Acknowledge
    07 | Bell (audible or
    \b | 08 | Backspace
    \t | 09 | Horizontal Tabulation
    \n | 0A | Line Feed
    \v | 0B | Vertical Tab
    \f | 0C | Form Feed
    \r | 0D | Carriage Return
    0E | Shift Out
    0F | Shift In

    View full-size slide

  118. 00 | Null
    01 | Start of Heading
    02 | Start of Text
    03 | End of Text
    04 | End of Transmission
    05 | Enquiry
    06 | Acknowledge
    07 | Bell
    \b | 08 | Backspace
    \t | 09 | Horizontal Tabulation
    \n | 0A | Line Feed
    \v | 0B | Vertical Tab
    \f | 0C | Form Feed
    \r | 0D | Carriage Return
    0E | Shift Out
    0F | Shift In

    View full-size slide

  119. 10 | Data Link Escape
    11 | Device Control 1
    12 | Device Control 2
    13 | Device Control 3
    14 | Device Control 4
    15 | Negative Acknowledge
    16 | Synchronous Idle
    17 | End of Transmission Block
    18 | Cancel
    19 | End of Medium
    1A | Substitute
    1B | Escape
    1C | File Separator
    1D | Group Separator
    1E | Record Separator
    1F | Unit Separator

    View full-size slide

  120. 1616161F171212181612131D1619131D151B1518131D1313131713171312
    151D131B1619121D121D131B12191612151B1619151D131D13161318121A
    16191215131912151312131B1713161517141419161E1714161517121716
    1611161C121812171616161F171212181611131D1612121C1612131D151B
    1618131D1212131C171017121615131E1212151D121C1619131D1310131B
    1619121B121B131C1518131B161912151717171C171C12181618121B131D
    1212151C151C161E121212191219171B1616161F171212181614131D161A
    131D1310131B1615131D151B1311121C13191311121C1717121C13191313
    151D151B161A121B121B151D131B12191614121B131D1611151B1619121B
    1615151D121B1611151B1619121D1615151D131B1618121B131D1212121E
    12131212151B1612151B1619151D131D1313131D131D1614171C1611151B
    1619151D12161312131D131D1614151D171D1614161F16131715161D1615
    161E1714121E1612161F16141719121E1619161E161E1615171214181514
    141D141C131D16181217121C1717131D131913121219

    View full-size slide

  121. a=b,b=h=[],i=3760;i--;h+=" -"[
    i%92?b[i]=a?3==d|a[i]&2==d:24*i%7
    %2:2])for(d=0,j=5;e=(2)d+=a[i+e]+a[i-e];s.innerHTML=h',
    99) id=s>

    View full-size slide

  122. escape('').replace(/..(.)..(.)/g,'\\x$1$2')

    View full-size slide

  123. escape('').replace(/..(.)..(.)/g,'\\x$1$2')

    View full-size slide

  124. escape('').replace(/..(.)..(.)/g,'\\x$1$2')

    View full-size slide

  125. escape('').replace(/..(.)..(.)/g,'\\x$1$2')

    View full-size slide

  126. 0 1 2 3 4 5 6 7 8 9 A B C D E F

    View full-size slide

  127. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F

    View full-size slide

  128. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    16 11 16 1C 16 15 17 12 17 14 12 18 13 11 12 19

    View full-size slide

  129. %16%11%16%1C%16%15%17%12%17%14%12%18%13%11%12%19

    View full-size slide

  130. 6 1 6 C 6 5 7 2 7 4 2 8 3 1 2 9

    View full-size slide

  131. 61 6C 65 72 74 28 31 29

    View full-size slide

  132. \x61\x6C\x65\x72\x74\x28\x31\x29

    View full-size slide

  133. a l e r t ( 1 )

    View full-size slide

  134. -moz-control-character-visibility: visible;

    View full-size slide

  135. -moz-control-character-visibility: visible;

    View full-size slide

  136. ").replace(/..(.)..(.)/g,'\\x$1$2')
    escape("

    View full-size slide

  137. ").replace(/..(.)..(.)/g,'\\x$1$2')
    escape(" 1616161F171212181612131D1619131D151B1518131D
    1313131713171312151D131B1619121D121D131B12191612151B1619151D13
    1D13161318121A16191215131912151312131B1713161517141419161E1714
    1615171217161611161C121812171616161F171212181611131D1612121C16
    12131D151B1618131D1212131C171017121615131E1212151D121C1619131D
    1310131B1619121B121B131C1518131B161912151717171C171C1218161812
    1B131D1212151C151C161E121212191219171B1616161F171212181614131D
    161A131D1310131B1615131D151B1311121C13191311121C1717121C131913
    13151D151B161A121B121B151D131B12191614121B131D1611151B1619121B
    1615151D121B1611151B1619121D1615151D131B1618121B131D1212121E12
    131212151B1612151B1619151D131D1313131D131D1614171C1611151B1619
    151D12161312131D131D1614151D171D1614161F16131715161D1615161E17
    14121E1612161F16141719121E1619161E161E1615171214181514141D141C
    131D16181217121C17

    View full-size slide

  138. ... within Mozilla;
    some people like
    the idea of displaying
    control characters


    View full-size slide

  139. Pack the code
    in a single char?

    View full-size slide

  140. escape('')
    .replace(
    /..(.)..(.)/g,
    '\\x$1$2'
    )

    View full-size slide

  141. escape('')
    .replace(
    /.{5}(.).{5}(.).{5}(.)/g,
    '\\$1$2$3'
    )

    View full-size slide

  142. 0 1 2 3 4 5 6 7
    8 9 A B C D E F

    View full-size slide

  143. 0 1 2 3 4 5 6 7

    View full-size slide

  144. 1 1 1 1 1 1 1 1
    4 4 4 4 4 4 4 4
    4 4 4 4 4 4 4 4
    0 1 2 3 4 5 6 7

    View full-size slide

  145. 1 1 1 1 1 1 1 1
    4 4 4 4 4 4 4 4
    4 4 4 4 4 4 4 4
    0 1 2 3 4 5 6 7

    View full-size slide

  146. 1 1 1 1 1 1 1 1
    4 4 4 4 4 4 4 4
    4 4 4 4 4 4 4 4
    0 1 2 3 4 5 6 7
    ֠ ֡ ֢ ֣ ֤ ֥ ֦ ֧

    View full-size slide

  147. ֠ ֡ ֢ ֣ ֤ ֥ ֦ ֧

    View full-size slide

  148. ֢֣֤֥֦֧֠֡
    " א "

    View full-size slide

  149. 1 1 1 1 1 1
    4 4 4 4 4 4
    4 4 4 4 4 4
    1 4 1 1 5 4

    View full-size slide

  150. %u05A1%u05A4%u05A1%u05A1%u05A5%u05A4

    View full-size slide

  151. \141\154\145\162\164\50\61\51

    View full-size slide

  152. a l e r t ( 1 )

    View full-size slide

  153. aem1k.com/א

    View full-size slide

  154. aem1k.com/aleph

    View full-size slide

  155. א
    <br/>ֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲֲ֥֧֧֤֥֧֤֥֥֧֤֥֤֦֥֤֦֥֦֥֥֦֥֧֤֤֧֥֤֦֥֤֦֦֥֥֤֥֥֥֦֣֤֧֥֤֤֣֧֥֣֥֤֥֥֥֣֣֤֣֥֥֣֥֤֣֥֥֣֣֤֥֧֣֥֤֤֥֣֧֥֣֥֧֧֥֥֥֥֥֥֥֤֧֦֥֥֧֥֤֣֧֥֦֥֧֥֤֥֦֥֧֤֤֥֦֧֥֦֤֥֥֣֦֧֦֥֤֧֦֥֤֥֥֤֦֦֧֤֤֥֧֥֧֦֦֤֥֣֥֣֣֤֤֧֤֤֥֧֥֧֣֦֧֧֤֥֧֥֣֥֣֣֤֧֧֦֧֥֤֥֣֣֤֥֥֧֧֥֦֦֥֦֤֣֦֧֥֦֦֥֦֤֣֤֥֧֣֥֥֣֧֥֥֥֥֥֣֧֦֦֦֧֦֣֦֥֧֥֤֥֥֣֣֣֥֧֥֥֧֤֤֥֤֥֧֤֥֦֧֥֦֤֧֤֥֤֥֤֦֦֦֥֤֤֦֦֥֤֦֥֤֣֦֤֥֧֤֤֡֠֡֠֡֠֠֠֠֡֠֡֡֡֡֡֠֡֡֡֡֡֡֡֡֠֡֡֡֡֡֠֡֡֡֡֡֡֡֡֠֡֡֠֡֡֡֡֡֠֡֡֠֡֡֡֡֡֠֠֡֡֠֠֡֠֡֠֠֠֠֡֠֠֠֡֠֠֠֠֠֡֠֠֠֡֠֠֠֠֡֠֠֡֡֡֡֠֡֠֠֠֠֠֠֡֡֠֠֠֠֡֠֠֠֠֡֡֡֡֡֡֡֡֠֠֠֠֡֡֠֡֡֡֡֡֠֠֡֠֠֡֡֡֠֠֡֠֠֠֠֠֡֡֡֠֠֠֠֠֡֡֠֠֠֠֡֠֠֠֡֡֠֠֠֠֠֠֠֡֡֠֡֡֠֠֡֠֡֠֡֠֡֡֠֠֡֡֡֠֠֠֡֡֡֡֡֡֡֡֡֡֡֡֡֡֡֠֠֡֠א'= א'<br/>ח , "" = ב<br/>= ! ב + ב<br/>, ח ! = ד +<br/>ב = ו , ב + {<br/>} , ה = ' " '<br/>, 0 ] ח = ע ] ,<br/>ך , [ 1 ] ח = נ =<br/>ח ) = ם , [ 5 ] ו .<br/>ח = ף , [ 1 ] ( ו + ד<br/>[ 2 ] , ד = ס , [ 1 ] ו = מ<br/>[ 3 ] , 1 ] ד = י , [ 3 ] ח = כ ]<br/>ך = ז ) = ט , " " + ם + נ + ף + ע + כ + נ = ג<br/>+ ג ) ט ) ט , [ ז ] [ ז ] ( נ + מ + ע + ך + ף + נ + ע + ס + ם + מ +<br/>ל)+"/)"+כ+ך+י+"154\\"+ן+כ+נ+".(א)"+כ+("160\\"=ן)+י+ך+ס+כ+ה+ג)ט+ג)ט+ה<br/>=".{5}(.)")+ה+()(()(ה+"('$1$2$3\\\\\\\\',147\\/"+ל+ל)())()

    View full-size slide

  156. __/\\\______________/\\\\\\\\\\\__/\\\\____________/\\\\__/\\\\\\\\\\\__/\\\\\\\\\\\\\\\_____/\\\\\\\\\\\___
    _\/\\\_____________\/////\\\///__\/\\\\\\________/\\\\\\_\/////\\\///__\///////\\\/////____/\\\/////////\\\_
    _\/\\\_________________\/\\\_____\/\\\//\\\____/\\\//\\\_____\/\\\___________\/\\\________\//\\\______\///__
    _\/\\\_________________\/\\\_____\/\\\\///\\\/\\\/_\/\\\_____\/\\\___________\/\\\_________\////\\\_________
    _\/\\\_________________\/\\\_____\/\\\__\///\\\/___\/\\\_____\/\\\___________\/\\\____________\////\\\______
    _\/\\\_________________\/\\\_____\/\\\____\///_____\/\\\_____\/\\\___________\/\\\_______________\////\\\___
    _\/\\\_________________\/\\\_____\/\\\_____________\/\\\_____\/\\\___________\/\\\________/\\\______\//\\\__
    _\/\\\\\\\\\\\\\\\__/\\\\\\\\\\\_\/\\\_____________\/\\\__/\\\\\\\\\\\_______\/\\\_______\///\\\\\\\\\\\/___
    _\///////////////__\///////////__\///______________\///__\///////////________\///__________\///////////_____

    View full-size slide

  157. .-:::::' ... .,-::::: ... ::: .::::::.
    ;;;'''' .;;;;;;;. ,;;;'````' ;; ;;;;;;` `
    [[[,,==,[[ \[[,[[[ [[' [[['[==/[[[[,
    `$$$"``$$$, $$$$$$ $$ $$$ ''' $
    888 "888,_ _,88P`88bo,__,o,88 .d888 88b dP
    "MM, "YMMMMMP" "YUMMMMMP""YmmMMMM"" "YMmMY"

    View full-size slide

  158. ________ _________ ________ ___ ___ ________ _________ ___ ___ ________ _______
    |\ ____\|\___ ___\\ __ \|\ \|\ \|\ ____\\___ ___\\ \|\ \|\ __ \|\ ___ \
    \ \ \___|\|___ \ \_\ \ \|\ \ \ \\\ \ \ \___\|___ \ \_\ \ \\\ \ \ \|\ \ \ __/|
    \ \_____ \ \ \ \ \ \ _ _\ \ \\\ \ \ \ \ \ \ \ \ \\\ \ \ _ _\ \ \_|/__
    \|____|\ \ \ \ \ \ \ \\ \\ \ \\\ \ \ \____ \ \ \ \ \ \\\ \ \ \\ \\ \ \_|\ \
    ____\_\ \ \ \__\ \ \__\\ _\\ \_______\ \_______\ \ \__\ \ \_______\ \__\\ _\\ \_______\
    |\_________\ \|__| \|__|\|__|\|_______|\|_______| \|__| \|_______|\|__|\|__|\|_______|
    \|_________|

    View full-size slide

  159. ███████╗██╗ ██╗███╗ ██╗
    ██╔════╝██║ ██║████╗ ██║
    █████╗ ██║ ██║██╔██╗ ██║
    ██╔══╝ ██║ ██║██║╚██╗██║
    ██║ ╚██████╔╝██║ ╚████║
    ╚═╝ ╚═════╝ ╚═╝ ╚═══╝

    View full-size slide

  160. ▄▄· ▄▄▄ ▄▄▄ . ▄▄▄· ▄▄▄▄▄ ▀ ▌ ▐· ▀ ▄▄▄▄▄ ▄· ▄
    ▐█ ▌▪▀▄ █·▀▄.▀·▐█ ▀█ •██ ██ ▪█·█▌██ •██ ▐█▪▐█
    ██ ▄▄▐▀▀▄ ▐▀▀▪▄▄█▀▀█ ▐█.▪▐█·▐█▐█•▐█· ▐█.▪ █▌█▌▪
    ▐███▌▐█•█▌▐█▄▄▌▐█ ▪▐▌ ▐█▌·▐█▌ ███ ▐█▌ ▐█▌· █·.
    ·▀▀▀ .▀ ▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀. ▀ ▀▀▀ ▀▀▀ ▀▀▀•

    View full-size slide

  161. a88888b. .88888. 8888ba.88ba 8888ba.88ba dP dP 888888ba dP d888888P dP dP
    d8' `88 d8' `8b 88 `8b `8b 88 `8b `8b 88 88 88 `8b 88 88 Y8. .8P
    88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 Y8aa8P
    88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88
    Y8. .88 Y8. .8P 88 88 88 88 88 88 Y8. .8P 88 88 88 88 88
    Y88888P' `8888P' dP dP dP dP dP dP `Y88888P' dP dP dP dP dP
    oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
    special thanks to: subzey, xem, 0ndras, p01, jed, mametter, kuvos, marijnjh, mathias …

    View full-size slide

  162. KEEP

    CALM
    AND
    JS
    ON
    ()+
    []!

    View full-size slide

  163. ::::::::::: ::: ::: ::: :::: ::: ::: :::
    :+: :+: :+: :+: :+: :+:+: :+: :+: :+:
    +:+ +:+ +:+ +:+ +:+ :+:+:+ +:+ +:+ +:+
    +#+ +#++:++#++ +#++:++#++: +#+ +:+ +#+ +#++:+
    +#+ +#+ +#+ +#+ +#+ +#+ +#+#+# +#+ +#+
    #+# #+# #+# #+# #+# #+# #+#+# #+# #+#

    View full-size slide

  164. __
    _/\ \
    /' \ \ \
    __ __ ___ ___ /\_, \ \ \/'\
    /'__`\ /'__`\/' __` __`\/_/\ \ \ , <
    ___ /\ \L\.\.\ __//\ \/\ \/\ \ \ \ \ \ \\`\____
    /\___\ \ \__/.\_\\____\ \_\ \_\ \_\ \ \_\ \_\ \____\
    \/___/ \/__/\/_//____/\/_/\/_/\/_/ \/_/\/_/\/____/
    @aemkei

    View full-size slide