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

Creative Coding - JSUnconf

Creative Coding - JSUnconf

What can we do with a limited amount of characters and without any external resources? Let us create worlds using the language of the web. Martin presents the latest hacks that will bend your mind and imagination.

Martin Kleppe

April 25, 2015
Tweet

More Decks by Martin Kleppe

Other Decks in Technology

Transcript

  1. MARTIN KLEPPE
    CODE & CREATIVITY

    View full-size slide

  2. Martin Kleppe
    @aemkei

    View full-size slide

  3. 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:
    MMMMMMMMmdy- `.-.
    MMMNy+-.
    ms: ```
    Martin Kle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MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM

    View full-size slide

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

    View full-size slide

  5. aem1k.com/world

    View full-size slide

  6. .<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

  7. aem1k.com/mandelcode

    View full-size slide


  8. 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

  9. [][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+
    +!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]
    [([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[
    []+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+![+
    []]]]]+[])[+[[!+[]+!+[]+!+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]
    []+!+[]+![]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!
    +!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]]]+([][[]]
    [])[+[[+!+[]]]]+(![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[
    []]]]+([][[]]+[])[+[[+[]]]]+([][(![]+[])[[[[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+
    []+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+
    []]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+([][(
    +[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]
    +(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[
    [[!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]((![]+[])[+[[+!+[]]]]+
    []+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]+(!!
    [])[+[[+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]
    []+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]
    [])[+[[+!+[]]]]]+[])[+[[+!+[]]]+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+[+!+[]]+([][(![]+
    [+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+
    []+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[+

    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. aem1k.com/deathstar

    View full-size slide

  34. Зв
    езда

    View full-size slide

  35. Зв
    езда

    View full-size slide

  36. Зв
    езда

    View full-size slide

  37. Зв
    езда

    View full-size slide

  38. ウ="" ,ア= !ウ+ ウ,ネ =!ア +ウ, ホ=ウ
    +{}, ヌ=ア [ウ++ ],セ= ア[ミ =ウ] ,ハ=
    ++ミ +ウ, ヘ=ホ [ミ+ハ ],ア[ ヘ+= ホ[ウ
    ]+(ホ .ホ+ホ )[ウ] +ネ[ハ ]+ヌ+ セ+ア [ミ]+
    ヘ+ヌ +ホ[ ウ]+セ ][ヘ] (ネ[
    ウ]+ ネ[ミ ]+ア [ハ]+
    セ+ヌ+ "(ウ)"
    )()

    View full-size slide

  39. without Latin characters?
    How to write JavaScript

    View full-size slide

  40. 1. Escape Sequences
    2. Playing Scrabble

    View full-size slide

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

    View full-size slide

  42. a l e r t (1)

    View full-size slide

  43. ⾬雨 \u96e8

    View full-size slide

  44. []["\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

  45. []["\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

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  51. Function("alert(1)")()

    View full-size slide

  52. Function("alert(1)")()

    View full-size slide

  53. eval("alert(1)")

    View full-size slide

  54. 1. Escape Sequences
    2. Playing Scrabble

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  59. 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

  60. 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

  61. 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

  62. 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

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

    View full-size slide

  64. Invisible Code

    View full-size slide

  65. Can we hide JavaScript
    inside itself?

    View full-size slide

  66. 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

  67. 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

  68. 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

  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. aem1k.com/life

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  77. 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

  78. 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

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

    View full-size slide

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

    View full-size slide

  81. 61 6C 65 72 74 28 31 29

    View full-size slide

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

    View full-size slide

  83. a l e r t ( 1 )

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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


    View full-size slide

  89. Let us play the game
    on the next level …

    View full-size slide

  90. те́ трис

    View full-size slide

  91. τέτρα + теннис

    View full-size slide

  92. []["\155\141<br/>\163\164\162\165\143<br/>\166\141\154(\145\166<br/>\053\145\163\143\141<br/>\145\160\154\141\143<br/>\175(\56)\56\173\065<br/>\175(\56)\57\147\054<br/>\62\44\63\47)\53\047<br/>\160"]["\143\157\156\<br/>\164\157\162"]("\145\<br/>\141\154(\47\42\047\<br/>\160\145(‘֥֠')\056\162\<br/>\145(\57\056\173\065\<br/>\175(\56)\056\173\65\<br/>\47\134\134\44\61\44\<br/>\42\47))")()

    View full-size slide

  93. []["\155\141<br/>\163\164\162\165\143<br/>\166\141\154(\145\166<br/>\053\145\163\143\141<br/>\145\160\154\141\143<br/>\175(\56)\56\173\065<br/>\175(\56)\57\147\054<br/>\62\44\63\47)\53\047<br/>\160"]["\143\157\156\<br/>\164\157\162"]("\145\<br/>\141\154(\47\42\047\<br/>\160\145(‘֥֠')\056\162\<br/>\145(\57\056\173\065\<br/>\175(\56)\056\173\65\<br/>\47\134\134\44\61\44\<br/>\42\47))")()

    View full-size slide

  94. []["\155\141"+/* */"\160"]["\143\157\156\<br/>\163\164\162\165\143"+/* */"\164\157\162"]("\145\<br/>\166\141\154(\145\166"/* */+"\141\154(\47\42\047\<br/>\053\145\163\143\141"+/* */"\160\145(‘֥֠')\056\162\<br/>\145\160\154\141\143"+/* */"\145(\57\056\173\065\<br/>\175(\56)\56\173\065"+/* */"\175(\56)\056\173\65\<br/>\175(\56)\57\147\054"+/* */"\47\134\134\44\61\44\<br/>\62\44\63\47)\53\047"+/* */"\42\47))")()

    View full-size slide

  95. []["\155\141"+/* */"\160"]["\143\157\156\<br/>\163\164\162\165\143"+/* */"\164\157\162"]("\145\<br/>\166\141\154(\145\166"/* */+"\141\154(\47\42\047\<br/>\053\145\163\143\141"+/* */"\160\145(‘֥֠')\056\162\<br/>\145\160\154\141\143"+/* */"\145(\57\056\173\065\<br/>\175(\56)\56\173\065"+/* */"\175(\56)\056\173\65\<br/>\175(\56)\57\147\054"+/* */"\47\134\134\44\61\44\<br/>\62\44\63\47)\53\047"+/* */"\42\47))")()

    View full-size slide

  96. []["\155\141"+/* */"\160"]["\143\157\156\<br/>\163\164\162\165\143"+/* */"\164\157\162"]("\145\<br/>\166\141\154(\145\166"/* */+"\141\154(\47\42\047\<br/>\053\145\163\143\141"+/* */"\160\145(‘֥֠')\056\162\<br/>\145\160\154\141\143"+/* */"\145(\57\056\173\065\<br/>\175(\56)\56\173\065"+/* */"\175(\56)\056\173\65\<br/>\175(\56)\57\147\054"+/* */"\47\134\134\44\61\44\<br/>\62\44\63\47)\53\047"+/* */"\42\47))")()

    View full-size slide

  97. []["\155\141"+/* */"\160"]["\143\157\156\<br/>\163\164\162\165\143"+/* */"\164\157\162"]("\145\<br/>\166\141\154(\145\166"/* */+"\141\154(\47\42\047\<br/>\053\145\163\143\141"+/* */"\160\145(‘֥֠')\056\162\<br/>\145\160\154\141\143"+/* */"\145(\57\056\173\065\<br/>\175(\56)\56\173\065"+/* */"\175(\56)\056\173\65\<br/>\175(\56)\57\147\054"+/* */"\47\134\134\44\61\44\<br/>\62\44\63\47)\53\047"+/* */"\42\47))")()

    View full-size slide

  98. []["\155\141"+/* */"\160"]["\143\157\156\<br/>\163\164\162\165\143"+/* ..... */"\164\157\162"]("\145\<br/>\166\141\154(\145\166"/* ..... */+"\141\154(\47\42\047\<br/>\053\145\163\143\141"+/* ..... */"\160\145(‘֥֠')\056\162\<br/>\145\160\154\141\143"+/* ..... */"\145(\57\056\173\065\<br/>\175(\56)\56\173\065"+/* ..... */"\175(\56)\056\173\65\<br/>\175(\56)\57\147\054"+/* ..... */"\47\134\134\44\61\44\<br/>\62\44\63\47)\53\047"+/* */"\42\47))")()

    View full-size slide

  99. []
    ["\155\141\160"]
    ["\143\157\156\163\164\162\165\143\164\157\162"]
    ("\145\166\141\154(\145\166\141\154(\47\42\47\053\
    \145\163\143\141\160\145(\"\")\56\162\145\160\154\
    \141\143\145(\57\56\56(\56)\56\56(\56)\57\147\054\
    \47\134\134\170\44\61\44\62\47)\53\47\42\47))")
    ()

    View full-size slide

  100. []
    ["map"]
    ["constructor"]
    ("\145\166\141\154(\145\166\141\154(\47\42\47\053\
    \145\163\143\141\160\145(\"\")\56\162\145\160\154\
    \141\143\145(\57\56\56(\56)\56\56(\56)\57\147\054\
    \47\134\134\170\44\61\44\62\47)\53\47\42\47))")
    ()

    View full-size slide

  101. []
    ["map"]
    ["constructor"]
    ("\145\166\141\154(\145\166\141\154(\47\42\47\053\
    \145\163\143\141\160\145(\"\")\56\162\145\160\154\
    \141\143\145(\57\56\56(\56)\56\56(\56)\57\147\054\
    \47\134\134\170\44\61\44\62\47)\53\47\42\47))")
    ()

    View full-size slide

  102. []
    ["map"]
    ["constructor"]
    ("eval(escape('').replace(...))")
    ()

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  106. 0 1 2 3 4 5 6 7

    View full-size slide

  107. 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

  108. 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

  109. ֠ ֡ ֢ ֣ ֤ ֥ ֦ ֧

    View full-size slide

  110. ֢֣֤֥֦֧֠֡
    " "

    View full-size slide

  111. 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

  112. %u05A1%u05A4%u05A1%u05A1%u05A5%u05A4

    View full-size slide

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

    View full-size slide

  114. a l e r t ( 1 )

    View full-size slide

  115. aem1k.com/tetris

    View full-size slide

  116. .....
    ..##.
    .....

    View full-size slide

  117. ..... 00000
    ..##. => 00110
    ..... 00000

    View full-size slide

  118. ..... 00000
    ..##. => 00110 192
    ..... 00000

    View full-size slide

  119. ..... 00000
    ..... => 00000 192>>5=6
    ..##. 00110

    View full-size slide

  120. ..... 00000
    ..... => 00000 6>>1=3
    ...## 00011

    View full-size slide

  121. ..... 00000
    ..... => 00000 6&3 =2
    ...X. 00010

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  127. ::::::::::: ::: ::: ::: :::: ::: ::: :::
    :+: :+: :+: :+: :+: :+:+: :+: :+: :+:
    +:+ +:+ +:+ +:+ +:+ :+:+:+ +:+ +:+ +:+
    +#+ +#++:++#++ +#++:++#++: +#+ +:+ +#+ +#++:+
    +#+ +#+ +#+ +#+ +#+ +#+ +#+#+# +#+ +#+
    #+# #+# #+# #+# #+# #+# #+#+# #+# #+#

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  130. 17:30 – FAMILY PHOTO
    19:00 – PARTY

    View full-size slide