diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-03-07 11:29:26 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-03-07 11:29:26 +0700 |
commit | 3e6f0389f0cdac7b90970c49f455205563b48ad6 (patch) | |
tree | 4e4f0a018b1aae2276767f7f8da75fb4c909e772 /_assets | |
download | site-3e6f0389f0cdac7b90970c49f455205563b48ad6.tar.gz |
Initialize a Franklin site
Diffstat (limited to '_assets')
-rw-r--r-- | _assets/favicon.png | bin | 0 -> 768 bytes | |||
-rw-r--r-- | _assets/hamburger.svg | 1 | ||||
-rw-r--r-- | _assets/rndimg.jpg | bin | 0 -> 18569 bytes | |||
-rw-r--r-- | _assets/scripts/generate_results.jl | 27 | ||||
-rw-r--r-- | _assets/scripts/output/script1.out | 5 | ||||
-rw-r--r-- | _assets/scripts/output/script2.svg | 581 | ||||
-rw-r--r-- | _assets/scripts/script1.jl | 10 | ||||
-rw-r--r-- | _assets/scripts/script2.jl | 4 |
8 files changed, 628 insertions, 0 deletions
diff --git a/_assets/favicon.png b/_assets/favicon.png new file mode 100644 index 0000000..5fcfc95 --- /dev/null +++ b/_assets/favicon.png Binary files differdiff --git a/_assets/hamburger.svg b/_assets/hamburger.svg new file mode 100644 index 0000000..233bf21 --- /dev/null +++ b/_assets/hamburger.svg @@ -0,0 +1 @@ +<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg height="32px" id="Layer_1" style="enable-background:new 0 0 32 32;" version="1.1" viewBox="0 0 32 32" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2 s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2 S29.104,22,28,22z"/></svg> \ No newline at end of file diff --git a/_assets/rndimg.jpg b/_assets/rndimg.jpg new file mode 100644 index 0000000..98be38d --- /dev/null +++ b/_assets/rndimg.jpg Binary files differdiff --git a/_assets/scripts/generate_results.jl b/_assets/scripts/generate_results.jl new file mode 100644 index 0000000..8823354 --- /dev/null +++ b/_assets/scripts/generate_results.jl @@ -0,0 +1,27 @@ +# Parent file to run all scripts which may generate +# some output that you want to display on the website. +# this can be used as a tester to check that all the code +# on your website runs properly. + +dir = @__DIR__ + +""" + genplain(s) + +Small helper function to run some code and redirect the output (stdout) to a file. +""" +function genplain(s::String) + open(joinpath(dir, "output", "$(splitext(s)[1]).txt"), "w") do outf + redirect_stdout(outf) do + include(joinpath(dir, s)) + end + end +end + +# output + +genplain("script1.jl") + +# plots + +include("script2.jl") diff --git a/_assets/scripts/output/script1.out b/_assets/scripts/output/script1.out new file mode 100644 index 0000000..234405e --- /dev/null +++ b/_assets/scripts/output/script1.out @@ -0,0 +1,5 @@ +*---------1.3 +**--------1.3 +***-------1.3 +****------1.3 +*****-----1.3 diff --git a/_assets/scripts/output/script2.svg b/_assets/scripts/output/script2.svg new file mode 100644 index 0000000..56bb295 --- /dev/null +++ b/_assets/scripts/output/script2.svg @@ -0,0 +1,581 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<!-- Created with matplotlib (https://matplotlib.org/) --> +<svg height="345.6pt" version="1.1" viewBox="0 0 460.8 345.6" width="460.8pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <defs> + <style type="text/css"> +*{stroke-linecap:butt;stroke-linejoin:round;} + </style> + </defs> + <g id="figure_1"> + <g id="patch_1"> + <path d="M 0 345.6 +L 460.8 345.6 +L 460.8 0 +L 0 0 +z +" style="fill:#ffffff;"/> + </g> + <g id="axes_1"> + <g id="patch_2"> + <path d="M 57.6 307.584 +L 414.72 307.584 +L 414.72 41.472 +L 57.6 41.472 +z +" style="fill:#ffffff;"/> + </g> + <g id="matplotlib.axis_1"> + <g id="xtick_1"> + <g id="line2d_1"> + <defs> + <path d="M 0 0 +L 0 3.5 +" id="m8c4b5b8030" style="stroke:#000000;stroke-width:0.8;"/> + </defs> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="73.832727" xlink:href="#m8c4b5b8030" y="307.584"/> + </g> + </g> + <g id="text_1"> + <!-- 0.0 --> + <defs> + <path d="M 31.78125 66.40625 +Q 24.171875 66.40625 20.328125 58.90625 +Q 16.5 51.421875 16.5 36.375 +Q 16.5 21.390625 20.328125 13.890625 +Q 24.171875 6.390625 31.78125 6.390625 +Q 39.453125 6.390625 43.28125 13.890625 +Q 47.125 21.390625 47.125 36.375 +Q 47.125 51.421875 43.28125 58.90625 +Q 39.453125 66.40625 31.78125 66.40625 +z +M 31.78125 74.21875 +Q 44.046875 74.21875 50.515625 64.515625 +Q 56.984375 54.828125 56.984375 36.375 +Q 56.984375 17.96875 50.515625 8.265625 +Q 44.046875 -1.421875 31.78125 -1.421875 +Q 19.53125 -1.421875 13.0625 8.265625 +Q 6.59375 17.96875 6.59375 36.375 +Q 6.59375 54.828125 13.0625 64.515625 +Q 19.53125 74.21875 31.78125 74.21875 +z +" id="DejaVuSans-48"/> + <path d="M 10.6875 12.40625 +L 21 12.40625 +L 21 0 +L 10.6875 0 +z +" id="DejaVuSans-46"/> + </defs> + <g transform="translate(65.881165 322.182437)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-48"/> + </g> + </g> + </g> + <g id="xtick_2"> + <g id="line2d_2"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="138.763636" xlink:href="#m8c4b5b8030" y="307.584"/> + </g> + </g> + <g id="text_2"> + <!-- 0.2 --> + <defs> + <path d="M 19.1875 8.296875 +L 53.609375 8.296875 +L 53.609375 0 +L 7.328125 0 +L 7.328125 8.296875 +Q 12.9375 14.109375 22.625 23.890625 +Q 32.328125 33.6875 34.8125 36.53125 +Q 39.546875 41.84375 41.421875 45.53125 +Q 43.3125 49.21875 43.3125 52.78125 +Q 43.3125 58.59375 39.234375 62.25 +Q 35.15625 65.921875 28.609375 65.921875 +Q 23.96875 65.921875 18.8125 64.3125 +Q 13.671875 62.703125 7.8125 59.421875 +L 7.8125 69.390625 +Q 13.765625 71.78125 18.9375 73 +Q 24.125 74.21875 28.421875 74.21875 +Q 39.75 74.21875 46.484375 68.546875 +Q 53.21875 62.890625 53.21875 53.421875 +Q 53.21875 48.921875 51.53125 44.890625 +Q 49.859375 40.875 45.40625 35.40625 +Q 44.1875 33.984375 37.640625 27.21875 +Q 31.109375 20.453125 19.1875 8.296875 +z +" id="DejaVuSans-50"/> + </defs> + <g transform="translate(130.812074 322.182437)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-50"/> + </g> + </g> + </g> + <g id="xtick_3"> + <g id="line2d_3"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="203.694545" xlink:href="#m8c4b5b8030" y="307.584"/> + </g> + </g> + <g id="text_3"> + <!-- 0.4 --> + <defs> + <path d="M 37.796875 64.3125 +L 12.890625 25.390625 +L 37.796875 25.390625 +z +M 35.203125 72.90625 +L 47.609375 72.90625 +L 47.609375 25.390625 +L 58.015625 25.390625 +L 58.015625 17.1875 +L 47.609375 17.1875 +L 47.609375 0 +L 37.796875 0 +L 37.796875 17.1875 +L 4.890625 17.1875 +L 4.890625 26.703125 +z +" id="DejaVuSans-52"/> + </defs> + <g transform="translate(195.742983 322.182437)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-52"/> + </g> + </g> + </g> + <g id="xtick_4"> + <g id="line2d_4"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="268.625455" xlink:href="#m8c4b5b8030" y="307.584"/> + </g> + </g> + <g id="text_4"> + <!-- 0.6 --> + <defs> + <path d="M 33.015625 40.375 +Q 26.375 40.375 22.484375 35.828125 +Q 18.609375 31.296875 18.609375 23.390625 +Q 18.609375 15.53125 22.484375 10.953125 +Q 26.375 6.390625 33.015625 6.390625 +Q 39.65625 6.390625 43.53125 10.953125 +Q 47.40625 15.53125 47.40625 23.390625 +Q 47.40625 31.296875 43.53125 35.828125 +Q 39.65625 40.375 33.015625 40.375 +z +M 52.59375 71.296875 +L 52.59375 62.3125 +Q 48.875 64.0625 45.09375 64.984375 +Q 41.3125 65.921875 37.59375 65.921875 +Q 27.828125 65.921875 22.671875 59.328125 +Q 17.53125 52.734375 16.796875 39.40625 +Q 19.671875 43.65625 24.015625 45.921875 +Q 28.375 48.1875 33.59375 48.1875 +Q 44.578125 48.1875 50.953125 41.515625 +Q 57.328125 34.859375 57.328125 23.390625 +Q 57.328125 12.15625 50.6875 5.359375 +Q 44.046875 -1.421875 33.015625 -1.421875 +Q 20.359375 -1.421875 13.671875 8.265625 +Q 6.984375 17.96875 6.984375 36.375 +Q 6.984375 53.65625 15.1875 63.9375 +Q 23.390625 74.21875 37.203125 74.21875 +Q 40.921875 74.21875 44.703125 73.484375 +Q 48.484375 72.75 52.59375 71.296875 +z +" id="DejaVuSans-54"/> + </defs> + <g transform="translate(260.673892 322.182437)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-54"/> + </g> + </g> + </g> + <g id="xtick_5"> + <g id="line2d_5"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="333.556364" xlink:href="#m8c4b5b8030" y="307.584"/> + </g> + </g> + <g id="text_5"> + <!-- 0.8 --> + <defs> + <path d="M 31.78125 34.625 +Q 24.75 34.625 20.71875 30.859375 +Q 16.703125 27.09375 16.703125 20.515625 +Q 16.703125 13.921875 20.71875 10.15625 +Q 24.75 6.390625 31.78125 6.390625 +Q 38.8125 6.390625 42.859375 10.171875 +Q 46.921875 13.96875 46.921875 20.515625 +Q 46.921875 27.09375 42.890625 30.859375 +Q 38.875 34.625 31.78125 34.625 +z +M 21.921875 38.8125 +Q 15.578125 40.375 12.03125 44.71875 +Q 8.5 49.078125 8.5 55.328125 +Q 8.5 64.0625 14.71875 69.140625 +Q 20.953125 74.21875 31.78125 74.21875 +Q 42.671875 74.21875 48.875 69.140625 +Q 55.078125 64.0625 55.078125 55.328125 +Q 55.078125 49.078125 51.53125 44.71875 +Q 48 40.375 41.703125 38.8125 +Q 48.828125 37.15625 52.796875 32.3125 +Q 56.78125 27.484375 56.78125 20.515625 +Q 56.78125 9.90625 50.3125 4.234375 +Q 43.84375 -1.421875 31.78125 -1.421875 +Q 19.734375 -1.421875 13.25 4.234375 +Q 6.78125 9.90625 6.78125 20.515625 +Q 6.78125 27.484375 10.78125 32.3125 +Q 14.796875 37.15625 21.921875 38.8125 +z +M 18.3125 54.390625 +Q 18.3125 48.734375 21.84375 45.5625 +Q 25.390625 42.390625 31.78125 42.390625 +Q 38.140625 42.390625 41.71875 45.5625 +Q 45.3125 48.734375 45.3125 54.390625 +Q 45.3125 60.0625 41.71875 63.234375 +Q 38.140625 66.40625 31.78125 66.40625 +Q 25.390625 66.40625 21.84375 63.234375 +Q 18.3125 60.0625 18.3125 54.390625 +z +" id="DejaVuSans-56"/> + </defs> + <g transform="translate(325.604801 322.182437)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-56"/> + </g> + </g> + </g> + <g id="xtick_6"> + <g id="line2d_6"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="398.487273" xlink:href="#m8c4b5b8030" y="307.584"/> + </g> + </g> + <g id="text_6"> + <!-- 1.0 --> + <defs> + <path d="M 12.40625 8.296875 +L 28.515625 8.296875 +L 28.515625 63.921875 +L 10.984375 60.40625 +L 10.984375 69.390625 +L 28.421875 72.90625 +L 38.28125 72.90625 +L 38.28125 8.296875 +L 54.390625 8.296875 +L 54.390625 0 +L 12.40625 0 +z +" id="DejaVuSans-49"/> + </defs> + <g transform="translate(390.53571 322.182437)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-49"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-48"/> + </g> + </g> + </g> + </g> + <g id="matplotlib.axis_2"> + <g id="ytick_1"> + <g id="line2d_7"> + <defs> + <path d="M 0 0 +L -3.5 0 +" id="m96f9a0cdd1" style="stroke:#000000;stroke-width:0.8;"/> + </defs> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="295.488"/> + </g> + </g> + <g id="text_7"> + <!-- 0.0 --> + <g transform="translate(34.696875 299.287219)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-48"/> + </g> + </g> + </g> + <g id="ytick_2"> + <g id="line2d_8"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="264.482613"/> + </g> + </g> + <g id="text_8"> + <!-- 0.1 --> + <g transform="translate(34.696875 268.281832)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-49"/> + </g> + </g> + </g> + <g id="ytick_3"> + <g id="line2d_9"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="233.477227"/> + </g> + </g> + <g id="text_9"> + <!-- 0.2 --> + <g transform="translate(34.696875 237.276446)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-50"/> + </g> + </g> + </g> + <g id="ytick_4"> + <g id="line2d_10"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="202.47184"/> + </g> + </g> + <g id="text_10"> + <!-- 0.3 --> + <defs> + <path d="M 40.578125 39.3125 +Q 47.65625 37.796875 51.625 33 +Q 55.609375 28.21875 55.609375 21.1875 +Q 55.609375 10.40625 48.1875 4.484375 +Q 40.765625 -1.421875 27.09375 -1.421875 +Q 22.515625 -1.421875 17.65625 -0.515625 +Q 12.796875 0.390625 7.625 2.203125 +L 7.625 11.71875 +Q 11.71875 9.328125 16.59375 8.109375 +Q 21.484375 6.890625 26.8125 6.890625 +Q 36.078125 6.890625 40.9375 10.546875 +Q 45.796875 14.203125 45.796875 21.1875 +Q 45.796875 27.640625 41.28125 31.265625 +Q 36.765625 34.90625 28.71875 34.90625 +L 20.21875 34.90625 +L 20.21875 43.015625 +L 29.109375 43.015625 +Q 36.375 43.015625 40.234375 45.921875 +Q 44.09375 48.828125 44.09375 54.296875 +Q 44.09375 59.90625 40.109375 62.90625 +Q 36.140625 65.921875 28.71875 65.921875 +Q 24.65625 65.921875 20.015625 65.03125 +Q 15.375 64.15625 9.8125 62.3125 +L 9.8125 71.09375 +Q 15.4375 72.65625 20.34375 73.4375 +Q 25.25 74.21875 29.59375 74.21875 +Q 40.828125 74.21875 47.359375 69.109375 +Q 53.90625 64.015625 53.90625 55.328125 +Q 53.90625 49.265625 50.4375 45.09375 +Q 46.96875 40.921875 40.578125 39.3125 +z +" id="DejaVuSans-51"/> + </defs> + <g transform="translate(34.696875 206.271059)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-51"/> + </g> + </g> + </g> + <g id="ytick_5"> + <g id="line2d_11"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="171.466454"/> + </g> + </g> + <g id="text_11"> + <!-- 0.4 --> + <g transform="translate(34.696875 175.265672)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-52"/> + </g> + </g> + </g> + <g id="ytick_6"> + <g id="line2d_12"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="140.461067"/> + </g> + </g> + <g id="text_12"> + <!-- 0.5 --> + <defs> + <path d="M 10.796875 72.90625 +L 49.515625 72.90625 +L 49.515625 64.59375 +L 19.828125 64.59375 +L 19.828125 46.734375 +Q 21.96875 47.46875 24.109375 47.828125 +Q 26.265625 48.1875 28.421875 48.1875 +Q 40.625 48.1875 47.75 41.5 +Q 54.890625 34.8125 54.890625 23.390625 +Q 54.890625 11.625 47.5625 5.09375 +Q 40.234375 -1.421875 26.90625 -1.421875 +Q 22.3125 -1.421875 17.546875 -0.640625 +Q 12.796875 0.140625 7.71875 1.703125 +L 7.71875 11.625 +Q 12.109375 9.234375 16.796875 8.0625 +Q 21.484375 6.890625 26.703125 6.890625 +Q 35.15625 6.890625 40.078125 11.328125 +Q 45.015625 15.765625 45.015625 23.390625 +Q 45.015625 31 40.078125 35.4375 +Q 35.15625 39.890625 26.703125 39.890625 +Q 22.75 39.890625 18.8125 39.015625 +Q 14.890625 38.140625 10.796875 36.28125 +z +" id="DejaVuSans-53"/> + </defs> + <g transform="translate(34.696875 144.260286)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-53"/> + </g> + </g> + </g> + <g id="ytick_7"> + <g id="line2d_13"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="109.455681"/> + </g> + </g> + <g id="text_13"> + <!-- 0.6 --> + <g transform="translate(34.696875 113.254899)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-54"/> + </g> + </g> + </g> + <g id="ytick_8"> + <g id="line2d_14"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="78.450294"/> + </g> + </g> + <g id="text_14"> + <!-- 0.7 --> + <defs> + <path d="M 8.203125 72.90625 +L 55.078125 72.90625 +L 55.078125 68.703125 +L 28.609375 0 +L 18.3125 0 +L 43.21875 64.59375 +L 8.203125 64.59375 +z +" id="DejaVuSans-55"/> + </defs> + <g transform="translate(34.696875 82.249513)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-55"/> + </g> + </g> + </g> + <g id="ytick_9"> + <g id="line2d_15"> + <g> + <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="47.444907"/> + </g> + </g> + <g id="text_15"> + <!-- 0.8 --> + <g transform="translate(34.696875 51.244126)scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-48"/> + <use x="63.623047" xlink:href="#DejaVuSans-46"/> + <use x="95.410156" xlink:href="#DejaVuSans-56"/> + </g> + </g> + </g> + </g> + <g id="line2d_16"> + <path clip-path="url(#p38be59daca)" d="M 73.832727 295.488 +L 80.45833 282.922028 +L 87.083933 270.547231 +L 93.709536 258.382068 +L 100.335139 246.444392 +L 106.960742 234.751428 +L 113.586345 223.319752 +L 120.211948 212.165271 +L 126.837551 201.303207 +L 133.463154 190.748078 +L 140.088757 180.513685 +L 146.71436 170.613096 +L 153.339963 161.058636 +L 159.965566 151.861873 +L 166.591169 143.033612 +L 173.216772 134.583886 +L 179.842375 126.521946 +L 186.467978 118.856262 +L 193.093581 111.594513 +L 199.719184 104.743589 +L 206.344787 98.309588 +L 212.97039 92.297815 +L 219.595993 86.712789 +L 226.221596 81.558238 +L 232.847199 76.837112 +L 239.472801 72.551579 +L 246.098404 68.703042 +L 252.724007 65.29214 +L 259.34961 62.318757 +L 265.975213 59.782039 +L 272.600816 57.680397 +L 279.226419 56.011526 +L 285.852022 54.772416 +L 292.477625 53.959365 +L 299.103228 53.568 +L 305.728831 53.593287 +L 312.354434 54.029553 +L 318.980037 54.870502 +L 325.60564 56.109236 +L 332.231243 57.738273 +L 338.856846 59.749568 +L 345.482449 62.134537 +L 352.108052 64.884074 +L 358.733655 67.988577 +L 365.359258 71.437971 +L 371.984861 75.221729 +L 378.610464 79.328899 +L 385.236067 83.748128 +L 391.86167 88.467683 +L 398.487273 93.47548 +" style="fill:none;stroke:#1f77b4;stroke-linecap:square;stroke-width:1.5;"/> + </g> + <g id="patch_3"> + <path d="M 57.6 307.584 +L 57.6 41.472 +" style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> + </g> + <g id="patch_4"> + <path d="M 414.72 307.584 +L 414.72 41.472 +" style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> + </g> + <g id="patch_5"> + <path d="M 57.6 307.584 +L 414.72 307.584 +" style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> + </g> + <g id="patch_6"> + <path d="M 57.6 41.472 +L 414.72 41.472 +" style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> + </g> + </g> + </g> + <defs> + <clipPath id="p38be59daca"> + <rect height="266.112" width="357.12" x="57.6" y="41.472"/> + </clipPath> + </defs> +</svg> diff --git a/_assets/scripts/script1.jl b/_assets/scripts/script1.jl new file mode 100644 index 0000000..bc4dc52 --- /dev/null +++ b/_assets/scripts/script1.jl @@ -0,0 +1,10 @@ +using LinearAlgebra # HIDE +using Random:seed! # HIDE +seed!(0) # HIDE + # HIDE +x = randn(5) +y = randn(5) + +for i in 1:5 + println(rpad("*"^i, 10, '-'), round(dot(x, y), digits=1)) +end diff --git a/_assets/scripts/script2.jl b/_assets/scripts/script2.jl new file mode 100644 index 0000000..0fa6c42 --- /dev/null +++ b/_assets/scripts/script2.jl @@ -0,0 +1,4 @@ +using PyPlot +x = range(0, stop=1, length=50) +plot(x, sin.(2x).*exp.(-x/3)) +savefig(joinpath(@__DIR__, "output", "script2.svg")) |