From b03c056bcfac360d0f8be1321c576e65d2466757 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Tue, 9 Mar 2021 09:33:17 +0700 Subject: Clean up styling, again --- _assets/scripts/generate_results.jl | 27 -- _assets/scripts/output/script1.out | 5 - _assets/scripts/output/script2.svg | 581 ------------------------------------ _assets/scripts/script1.jl | 10 - _assets/scripts/script2.jl | 4 - 5 files changed, 627 deletions(-) delete mode 100644 _assets/scripts/generate_results.jl delete mode 100644 _assets/scripts/output/script1.out delete mode 100644 _assets/scripts/output/script2.svg delete mode 100644 _assets/scripts/script1.jl delete mode 100644 _assets/scripts/script2.jl (limited to '_assets') diff --git a/_assets/scripts/generate_results.jl b/_assets/scripts/generate_results.jl deleted file mode 100644 index 8823354..0000000 --- a/_assets/scripts/generate_results.jl +++ /dev/null @@ -1,27 +0,0 @@ -# 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 deleted file mode 100644 index 234405e..0000000 --- a/_assets/scripts/output/script1.out +++ /dev/null @@ -1,5 +0,0 @@ -*---------1.3 -**--------1.3 -***-------1.3 -****------1.3 -*****-----1.3 diff --git a/_assets/scripts/output/script2.svg b/_assets/scripts/output/script2.svg deleted file mode 100644 index 56bb295..0000000 --- a/_assets/scripts/output/script2.svg +++ /dev/null @@ -1,581 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/_assets/scripts/script1.jl b/_assets/scripts/script1.jl deleted file mode 100644 index bc4dc52..0000000 --- a/_assets/scripts/script1.jl +++ /dev/null @@ -1,10 +0,0 @@ -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 deleted file mode 100644 index 0fa6c42..0000000 --- a/_assets/scripts/script2.jl +++ /dev/null @@ -1,4 +0,0 @@ -using PyPlot -x = range(0, stop=1, length=50) -plot(x, sin.(2x).*exp.(-x/3)) -savefig(joinpath(@__DIR__, "output", "script2.svg")) -- cgit 1.4.1