Created
February 10, 2022 14:09
-
-
Save AbhimanyuAryan/cb603f44c4186eeb5bf310204a81a496 to your computer and use it in GitHub Desktop.
pluto notebook bug
This file contains hidden or 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
### A Pluto.jl notebook ### | |
# v0.18.0 | |
using Markdown | |
using InteractiveUtils | |
# ╔═╡ b2667ebb-10d4-4233-804d-589f3d108dc6 | |
# hideall | |
using Revise | |
# ╔═╡ 1104aef8-6de4-4fb0-b0d1-6e85df6e86e0 | |
# hideall | |
using Genie | |
# ╔═╡ 64ea16e4-4323-435f-9e13-9fe86ed31375 | |
# hideall | |
using SearchLight | |
# ╔═╡ b208bfb8-e9ee-4f10-9dec-9248e30a7c9b | |
# hideall | |
using SearchLightSQLite | |
# ╔═╡ 03ed3567-911c-4091-b4bb-f672009d1647 | |
using SQLite | |
# ╔═╡ c2e80b10-502e-46c8-b802-ee9956b63fcc | |
# hideall | |
Genie.newapp("MyGenieApp") | |
# ╔═╡ a0d85997-d167-4c8b-a2f2-e50ef4c2193e | |
# hideall | |
write("$(dirname(pwd()))/MyGenieApp/routes.jl", """using Genie.Router | |
route("/") do | |
serve_static_file("welcome.html") | |
end | |
route("/hello") do | |
"Welcome to Genie!" | |
end"""); | |
# ╔═╡ 29c0bdfa-a7dc-44c6-9e97-03ab9883828b | |
# hideall | |
begin | |
bcontroller = true; | |
Genie.newcontroller("Books"); | |
end; | |
# ╔═╡ adece903-915b-4f77-997d-e5fe5e49ebd7 | |
# hideall | |
begin | |
bcontroller | |
using BooksController | |
end | |
# ╔═╡ f63d7226-ffcc-4402-bb2d-37cfe2d64593 | |
# hideall | |
begin | |
bcontroller; | |
controllerPath = "$(dirname(pwd()))/MyGenieApp/app/resources/books/BooksController.jl"; | |
end; | |
# ╔═╡ 09764303-330e-4c47-92ed-cb6ce13d629d | |
# hideall | |
begin | |
bcontroller | |
write(controllerPath, """module BooksController | |
using Genie.Renderer.Html | |
struct Book | |
title::String | |
author::String | |
end | |
const BillGatesBooks = Book[ | |
Book("The Best We Could Do", "Thi Bui"), | |
Book("Evicted: Poverty and Profit in the American City", "Matthew Desmond"), | |
Book("Believe Me: A Memoir of Love, Death, and Jazz Chickens", "Eddie Izzard"), | |
Book("The Sympathizer", "Viet Thanh Nguyen"), | |
Book("Energy and Civilization, A History", "Vaclav Smil") | |
] | |
function billgatesbooks() | |
" | |
<h1>Bill Gates' list of recommended books</h1> | |
<ul> | |
\$(["<li>\$(book.title) by \$(book.author)</li>" for book in BillGatesBooks]...) | |
</ul> | |
" | |
end | |
function billgatesbooks_view() | |
html(:books, :billgatesbooks, books = BillGatesBooks) | |
end | |
end"""); | |
end; | |
# ╔═╡ 50299fe8-6a8c-4121-8e20-7b0b83f66a65 | |
# hideall | |
write("$(dirname(pwd()))/MyGenieApp/routes.jl", """# routes.jl | |
using Genie.Router | |
using BooksController | |
route("/bgbooks") do | |
BooksController.billgatesbooks() | |
end"""); | |
# ╔═╡ a4c1b657-14d4-4035-aa7c-4ba78a6c9f34 | |
# hideall | |
mkdir(joinpath("app", "resources", "books", "views")) | |
# ╔═╡ 82c6343d-59d7-4e5b-ac0f-a12c2ac133e1 | |
# hideall | |
touch(joinpath("$(dirname(pwd()))/MyGenieApp","app", "resources", "books", "views", "billgatesbooks.jl.html")); | |
# ╔═╡ 7777a8b8-4e62-43bf-920f-9e0a422e51b8 | |
# hideall | |
viewPath2 = joinpath("$(dirname(pwd()))/MyGenieApp","app", "resources", "books", "views", "billgatesbooks.jl.html"); | |
# ╔═╡ 3dacfdaa-8016-4bab-bf31-882e2cd88b8b | |
# hideall | |
write(viewPath2, """<!-- billgatesbooks.jl.html --> | |
<h1>Bill Gates' top \$(length(books)) recommended books</h1> | |
<ul> | |
<% for_each(books) do book %> | |
<li>\$(book.title) by \$(book.author)</li> | |
<% end %> | |
</ul>"""); | |
# ╔═╡ b6eb4bbb-2fad-465c-897e-6442ac485c61 | |
# hideall | |
begin | |
bcontroller; | |
write(controllerPath, """# app/resources/books/BooksController.jl | |
module BooksController | |
using Genie.Renderer.Html | |
struct Book | |
title::String | |
author::String | |
end | |
const BillGatesBooks = Book[ | |
Book("The Best We Could Do", "Thi Bui"), | |
Book("Evicted: Poverty and Profit in the American City", "Matthew Desmond"), | |
Book("Believe Me: A Memoir of Love, Death, and Jazz Chickens", "Eddie Izzard"), | |
Book("The Sympathizer", "Viet Thanh Nguyen"), | |
Book("Energy and Civilization, A History", "Vaclav Smil") | |
] | |
function billgatesbooks() | |
" | |
<h1>Bill Gates' list of recommended books</h1> | |
<ul> | |
\$(["<li>\$(book.title) by \$(book.author)</li>" for book in BillGatesBooks]...) | |
</ul> | |
" | |
end | |
function billgatesbooks_view() | |
html(:books, :billgatesbooks, books = BillGatesBooks) | |
end | |
end"""); | |
end; | |
# ╔═╡ 6ae6af95-6f00-480d-bf78-de1d8bf2a38b | |
# hideall | |
write("$(dirname(pwd()))/MyGenieApp/routes.jl", """# routes.jl | |
using Genie.Router | |
using BooksController | |
route("/bgbooks") do | |
BooksController.billgatesbooks() | |
end | |
route("/bgbooks_view") do | |
BooksController.billgatesbooks_view() | |
end"""); | |
# ╔═╡ f9787fca-1aad-46f4-9676-5e17b0ad7f09 | |
# hideall | |
begin | |
mdp = true; | |
viewPath4 = joinpath("$(dirname(pwd()))/MyGenieApp/","app", "resources", "books", "views", "billgatesbooks.jl.md"); | |
end; | |
# ╔═╡ d29af1bd-4da0-459b-ab65-da31933ee77c | |
# hideall | |
begin | |
mdp; | |
touch(viewPath4); | |
end; | |
# ╔═╡ 7dd69c90-1d40-4bef-aa69-30acd53209d2 | |
# hideall | |
begin | |
mdp; | |
write(viewPath4, """<!-- app/resources/books/views/billgatesbooks.jl.md --> | |
# Bill Gates' \$(length(books)) recommended books | |
\$( | |
for_each(books) do book | |
"* \$(book.title) by \$(book.author) \n" | |
end | |
)"""); | |
end; | |
# ╔═╡ 6f363e5c-dcec-4f5e-bcac-409356b873de | |
# hideall | |
begin | |
bcontroller | |
write(controllerPath, """# app/resources/books/BooksController.jl | |
module BooksController | |
using Genie.Renderer.Html | |
struct Book | |
title::String | |
author::String | |
end | |
const BillGatesBooks = Book[ | |
Book("The Best We Could Do", "Thi Bui"), | |
Book("Evicted: Poverty and Profit in the American City", "Matthew Desmond"), | |
Book("Believe Me: A Memoir of Love, Death, and Jazz Chickens", "Eddie Izzard"), | |
Book("The Sympathizer", "Viet Thanh Nguyen"), | |
Book("Energy and Civilization, A History", "Vaclav Smil") | |
] | |
function billgatesbooks() | |
" | |
<h1>Bill Gates' list of recommended books</h1> | |
<ul> | |
\$(["<li>\$(book.title) by \$(book.author)</li>" for book in BillGatesBooks]...) | |
</ul> | |
" | |
end | |
function billgatesbooks_view() | |
html(:books, :billgatesbooks, books = BillGatesBooks) | |
end | |
function billgatesbooks_view_admin() | |
html(:books, :billgatesbooks, books = BillGatesBooks, layout = :admin) | |
end | |
function billgatesbooks_view_md() | |
html(:books, "billgatesbooks.jl.md", books = BillGatesBooks) | |
end | |
end"""); | |
end; | |
# ╔═╡ 24462235-7bc4-4de0-b377-ab038e4b3da3 | |
# hideall | |
write("$(dirname(pwd()))/MyGenieApp/routes.jl", """# routes.jl | |
using Genie.Router | |
using BooksController | |
route("/bgbooks") do | |
BooksController.billgatesbooks() | |
end | |
route("/bgbooks_view") do | |
BooksController.billgatesbooks_view() | |
end | |
route("/bgbooks_view_admin") do | |
BooksController.billgatesbooks_view_admin() | |
end | |
route("/bgbooks_view_md") do | |
BooksController.billgatesbooks_view_md() | |
end"""); | |
# ╔═╡ b3b1eb3d-f098-4934-ba23-10cd9ce8887f | |
# hideall | |
begin | |
admin = true; | |
viewPath3 = joinpath("$(dirname(pwd()))/MyGenieApp","app", "layouts", "admin.jl.html"); | |
end; | |
# ╔═╡ 3972b319-95ae-48cd-9910-a8e17b9afbdf | |
# hideall | |
begin | |
admin; | |
touch(viewPath3); | |
end; | |
# ╔═╡ 87c9d856-18bd-4f66-9c07-d0ac8dd88b7c | |
# hideall | |
begin | |
admin; | |
write(viewPath3, """<!-- app/layouts/admin.jl.html --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Genie Admin</title> | |
</head> | |
<body> | |
<h1>Books admin</h1> | |
<% | |
@yield | |
%> | |
</body> | |
</html> | |
"""); | |
end; | |
# ╔═╡ b6f5e3f2-34a7-4ffa-9636-88b4bb03e555 | |
# hideall | |
begin | |
bcontroller; | |
write(controllerPath, """# app/resources/books/BooksController.jl | |
module BooksController | |
using Genie.Renderer.Html | |
struct Book | |
title::String | |
author::String | |
end | |
const BillGatesBooks = Book[ | |
Book("The Best We Could Do", "Thi Bui"), | |
Book("Evicted: Poverty and Profit in the American City", "Matthew Desmond"), | |
Book("Believe Me: A Memoir of Love, Death, and Jazz Chickens", "Eddie Izzard"), | |
Book("The Sympathizer", "Viet Thanh Nguyen"), | |
Book("Energy and Civilization, A History", "Vaclav Smil") | |
] | |
function billgatesbooks() | |
" | |
<h1>Bill Gates' list of recommended books</h1> | |
<ul> | |
\$(["<li>\$(book.title) by \$(book.author)</li>" for book in BillGatesBooks]...) | |
</ul> | |
" | |
end | |
function billgatesbooks_view() | |
html(:books, :billgatesbooks, books = BillGatesBooks) | |
end | |
function billgatesbooks_view_admin() | |
html(:books, :billgatesbooks, books = BillGatesBooks, layout = :admin) | |
end | |
end"""); | |
end; | |
# ╔═╡ 9cec384c-6ae3-4dd4-b2c8-8ad8e919e92f | |
# hideall | |
write("$(dirname(pwd()))/MyGenieApp/routes.jl", """# routes.jl | |
using Genie.Router | |
using BooksController | |
route("/bgbooks") do | |
BooksController.billgatesbooks() | |
end | |
route("/bgbooks_view") do | |
BooksController.billgatesbooks_view() | |
end | |
route("/bgbooks_view_admin") do | |
BooksController.billgatesbooks_view_admin() | |
end"""); | |
# ╔═╡ 5ced7f6e-e84a-4cbf-9990-6cb3830362d5 | |
# hideall | |
write("$(dirname(pwd()))/MyGenieApp/routes.jl", """# routes.jl | |
using Genie.Router | |
using BooksController | |
route("/bgbooks") do | |
BooksController.billgatesbooks() | |
end | |
route("/bgbooks_view") do | |
BooksController.billgatesbooks_view() | |
end | |
route("/bgbooks_view_admin") do | |
BooksController.billgatesbooks_view_admin() | |
end | |
route("/bgbooks_view_md") do | |
BooksController.billgatesbooks_view_md() | |
end | |
route("/api/v1/bgbooks_view_json") do | |
BooksController.API.billgatesbooks_view_json() | |
end"""); | |
# ╔═╡ 5c5423f2-27f7-4a4f-a895-18dcde6f518e | |
# hideall | |
begin | |
bcontroller | |
write(controllerPath, """module BooksController | |
using Genie | |
using Genie.Renderer.Html | |
struct Book | |
title::String | |
author::String | |
end | |
const BillGatesBooks = Book[ | |
Book("The Best We Could Do", "Thi Bui"), | |
Book("Evicted: Poverty and Profit in the American City", "Matthew Desmond"), | |
Book("Believe Me: A Memoir of Love, Death, and Jazz Chickens", "Eddie Izzard"), | |
Book("The Sympathizer", "Viet Thanh Nguyen"), | |
Book("Energy and Civilization, A History", "Vaclav Smil") | |
] | |
function billgatesbooks() | |
" | |
<h1>Bill Gates' list of recommended books</h1> | |
<ul> | |
\$(["<li>\$(book.title) by \$(book.author)</li>" for book in BillGatesBooks]...) | |
</ul> | |
" | |
end | |
function billgatesbooks_view() | |
html(:books, :billgatesbooks, books = BillGatesBooks) | |
end | |
function billgatesbooks_view_admin() | |
html(:books, :billgatesbooks, books = BillGatesBooks, layout = :admin) | |
end | |
function billgatesbooks_view_md() | |
html(:books, "billgatesbooks.jl.md", books = BillGatesBooks) | |
end | |
module API | |
using ..BooksController | |
using Genie.Renderer.Json | |
function billgatesbooks_view_json() | |
json(BooksController.BillGatesBooks) | |
end | |
end # Module API | |
end"""); | |
end; | |
# ╔═╡ 6eb6f2d5-2d5c-44e3-98c1-c933844547e7 | |
# hideall | |
begin | |
jp = true; | |
jsonPath = joinpath("$(dirname(pwd()))/MyGenieApp/", "app", "resources", "books", "views", "billgatesbooks.json.jl"); | |
end; | |
# ╔═╡ 18cc67cf-93a2-417b-b385-680c68ddeb8e | |
# hideall | |
begin | |
jp; | |
write(jsonPath, """"Bill Gates' list of recommended books" => books"""); | |
end; | |
# ╔═╡ e8b55050-3a62-4809-acc5-37cfb6afda4a | |
# hideall | |
begin | |
jp | |
bcontroller | |
write(controllerPath, """module BooksController | |
using Genie | |
using Genie.Renderer.Html | |
struct Book | |
title::String | |
author::String | |
end | |
const BillGatesBooks = Book[ | |
Book("The Best We Could Do", "Thi Bui"), | |
Book("Evicted: Poverty and Profit in the American City", "Matthew Desmond"), | |
Book("Believe Me: A Memoir of Love, Death, and Jazz Chickens", "Eddie Izzard"), | |
Book("The Sympathizer", "Viet Thanh Nguyen"), | |
Book("Energy and Civilization, A History", "Vaclav Smil") | |
] | |
function billgatesbooks() | |
" | |
<h1>Bill Gates' list of recommended books</h1> | |
<ul> | |
\$(["<li>\$(book.title) by \$(book.author)</li>" for book in BillGatesBooks]...) | |
</ul> | |
" | |
end | |
function billgatesbooks_view() | |
html(:books, :billgatesbooks, books = BillGatesBooks) | |
end | |
function billgatesbooks_view_admin() | |
html(:books, :billgatesbooks, books = BillGatesBooks, layout = :admin) | |
end | |
function billgatesbooks_view_md() | |
html(:books, "billgatesbooks.jl.md", books = BillGatesBooks) | |
end | |
module API | |
using ..BooksController | |
using Genie.Renderer.Json | |
function billgatesbooks_view_json() | |
json(BooksController.BillGatesBooks) | |
end | |
function billgatesbooks_view_json2() | |
json(:books, :billgatesbooks, books = BooksController.BillGatesBooks) | |
end | |
end # Module API | |
end"""); | |
end; | |
# ╔═╡ 9e29f394-a991-413f-be00-b4763accfd68 | |
# hideall | |
begin | |
jp; | |
write("$(dirname(pwd()))/MyGenieApp/routes.jl", """# routes.jl | |
using Genie.Router | |
using BooksController | |
route("/bgbooks") do | |
BooksController.billgatesbooks() | |
end | |
route("/bgbooks_view") do | |
BooksController.billgatesbooks_view() | |
end | |
route("/bgbooks_view_admin") do | |
BooksController.billgatesbooks_view_admin() | |
end | |
route("/bgbooks_view_md") do | |
BooksController.billgatesbooks_view_md() | |
end | |
route("/api/v1/bgbooks_json") do | |
BooksController.API.billgatesbooks_view_json() | |
end | |
route("/api/v2/bgbooks_json") do | |
BooksController.API.billgatesbooks_view_json2() | |
end"""); | |
end; | |
# ╔═╡ 478590e6-e01f-4fa3-8217-b03357a55cf3 | |
# hideall | |
begin | |
db = true; | |
Genie.Generator.db_support(; dbadapter = :SQLite); | |
end; | |
# ╔═╡ ce069d56-3b12-4e6d-885b-83217e864b67 | |
# hideall | |
begin | |
db; | |
db_path = "$(dirname(pwd()))/MyGenieApp/db/connection.yml"; | |
end; | |
# ╔═╡ bc15b923-3d19-4daa-aa9a-f26ccc0f79c0 | |
# hideall | |
begin | |
db; | |
chmod(db_path, 0o777); | |
end; | |
# ╔═╡ fcecf932-9084-49e9-9de8-a899bc0b5168 | |
# hideall | |
begin | |
db; | |
write(db_path, """env: ENV["GENIE_ENV"] | |
dev: | |
adapter: SQLite | |
database: db/books.sqlite | |
config:"""); | |
end; | |
# ╔═╡ 65044e1c-039e-412c-b960-ebc3be23d1d9 | |
# hideall | |
begin | |
db; | |
SearchLight.Configuration.load(); | |
end; | |
# ╔═╡ 5ff78c5b-3466-473e-8234-50a362cdc035 | |
# hideall | |
begin | |
db | |
push!(SearchLightSQLite.CONNECTIONS, SQLite.DB(SearchLight.Configuration.load()["database"])) | |
end | |
# ╔═╡ d7460349-53b0-4c17-b9b8-23ac24f89c26 | |
# hideall | |
SearchLightSQLite.CONNECTIONS | |
# ╔═╡ 5f45667e-6a8a-47c5-96a3-2e5d94b8b0c8 | |
# hideall | |
begin | |
db; | |
SearchLight.Migrations.create_migrations_table(); | |
end; | |
# ╔═╡ 421fe80d-6aee-44e7-b565-bab3d87fa7ad | |
# hideall | |
begin | |
db; | |
SearchLight.query("SELECT name FROM sqlite_master WHERE type ='table' AND name NOT LIKE 'sqlite_%'"); | |
end; | |
# ╔═╡ 546ed22e-367c-4304-936b-e64c13a9593e | |
# hideall | |
begin | |
db; | |
b_resource = true; | |
SearchLight.Generator.newresource("Book"); | |
end; | |
# ╔═╡ 7d0cbfcd-786c-49c9-a211-e941a87562fb | |
# hideall | |
begin | |
b_resource; | |
migrations = readdir("$(dirname(pwd()))/MyGenieApp/db/migrations"); | |
end; | |
# ╔═╡ 085320e0-7eff-4f51-8e35-54d4a793f80c | |
# hideall | |
begin | |
b_resource; | |
migration_file = migrations[2]; | |
end; | |
# ╔═╡ 1161c5da-1bbe-4f20-be3f-436ca712a792 | |
# hideall | |
begin | |
b_resource; | |
migration_full_path = "$(dirname(pwd()))/MyGenieApp/db/migrations/$(migration_file)"; | |
end; | |
# ╔═╡ 4e7e11ed-5f00-4560-aecd-a415421ef409 | |
# hideall | |
begin | |
b_resource; | |
write(migration_full_path, """module CreateTableBooks | |
import SearchLight.Migrations: create_table, column, primary_key, add_index, drop_table | |
function up() | |
create_table(:books) do | |
[ | |
primary_key() | |
column(:title, :string, limit = 100) | |
column(:author, :string, limit = 100) | |
] | |
end | |
add_index(:books, :title) | |
add_index(:books, :author) | |
end | |
function down() | |
drop_table(:books) | |
end | |
end"""); | |
end; | |
# ╔═╡ 70757a88-96b5-4cb5-9430-6966cdc93878 | |
# hideall | |
begin | |
b_resource; | |
SearchLight.Migrations.status(); | |
end; | |
# ╔═╡ 05bb7631-fbe0-4cf8-9408-dc8afcc3853c | |
# hideall | |
begin | |
b_resource; | |
SearchLight.Migration.last_up(); | |
end; | |
# ╔═╡ 22914aec-cc4c-43e0-a670-0e0e34af0766 | |
# hideall | |
begin | |
b_resource; | |
SearchLight.Migration.status(); | |
end; | |
# ╔═╡ a3a62e23-5ec5-4d3d-93dc-cb45c4a93a00 | |
# hideall | |
begin | |
bmodel = true; | |
modelPath = "$(dirname(pwd()))/MyGenieApp/app/resources/books/Books.jl"; | |
end; | |
# ╔═╡ 22b3e23a-e0b6-4d93-92ba-bd1da11dadfc | |
# hideall | |
begin | |
bmodel; | |
write(modelPath, """# Books.jl | |
module Books | |
import SearchLight: AbstractModel, DbId, save! | |
# @kwdef is not exported by Base and, theoretically, should not be used since it is an internal symbol. | |
# If you want, you could instead use the @with_kw macro from the Parameters.jl package. | |
import Base: @kwdef | |
export Book | |
@kwdef mutable struct Book <: AbstractModel | |
id::DbId = DbId() | |
title::String = "" | |
author::String = "" | |
end | |
end"""); | |
end; | |
# ╔═╡ b7482bb2-24eb-471a-9229-0bbbb9b3e6a9 | |
# hideall | |
begin | |
bmodel; | |
write(modelPath, """# Books.jl | |
module Books | |
import SearchLight: AbstractModel, DbId, save! | |
# @kwdef is not exported by Base and, theoretically, should not be used since it is an internal symbol. | |
# If you want, you could instead use the @with_kw macro from the Parameters.jl package. | |
import Base: @kwdef | |
export Book | |
@kwdef mutable struct Book <: AbstractModel | |
id::DbId = DbId() | |
title::String = "" | |
author::String = "" | |
end | |
function seed() | |
BillGatesBooks = [ | |
("The Best We Could Do", "Thi Bui"), | |
("Evicted: Poverty and Profit in the American City", "Matthew Desmond"), | |
("Believe Me: A Memoir of Love, Death, and Jazz Chickens", "Eddie Izzard"), | |
("The Sympathizer!", "Viet Thanh Nguyen"), | |
("Energy and Civilization, A History", "Vaclav Smil") | |
] | |
for b in BillGatesBooks | |
Book(title = b[1], author = b[2]) |> save! | |
end | |
end | |
end"""); | |
end; | |
# ╔═╡ dab899f2-b237-4edc-9263-171770373c9c | |
# hideall | |
begin | |
book_model = true; | |
book_path = joinpath("$(dirname(pwd()))/MyGenieApp/app/resources", "books", "Books.jl"); | |
end; | |
# ╔═╡ e84ac231-c915-4a8d-bf77-566400e29721 | |
# hideall | |
begin | |
book_model; | |
books = include(book_path); | |
end; | |
# ╔═╡ 231dbc05-6c9c-45de-8f1d-92ede14f0e0e | |
# hideall | |
Main.var"workspace#2".Books; | |
# ╔═╡ 737fe343-e840-4bff-9a02-b124137cc50f | |
# hideall | |
begin | |
book_model; | |
books.Books.seed(); | |
end; | |
# ╔═╡ 332dc5d3-b259-4bc5-ae06-3a3f1808f566 | |
# hideall | |
SearchLight.all(books.Book); | |
# ╔═╡ 23e44d6d-adbe-4fc8-a6a3-6259feb3db56 | |
# hideall | |
begin | |
bcontroller | |
write(controllerPath, """module BooksController | |
using Genie.Renderer.Html, SearchLight, Books | |
function billgatesbooks_sqlite() | |
html(:books, :billgatesbooks, books = all(Book)) | |
end | |
module API | |
using ..BooksController | |
using Genie.Renderer.Json, SearchLight, Books | |
function billgatesbooks_view_sqlite() | |
json(:books, :billgatesbooks_sqlite, books = all(Book)) | |
end | |
end | |
end"""); | |
end; | |
# ╔═╡ 2f29380e-4480-439c-9d9a-0d0660eec76e | |
# hideall | |
begin | |
jsonView = true; | |
jvPath = "$(dirname(pwd()))/MyGenieApp/app/resources/books/views/billgatesbooks_sqlite.json.jl" | |
end; | |
# ╔═╡ ac8700bf-5636-4e1c-8efe-81fe1e8cca9d | |
# hideall | |
begin | |
jsonView; | |
touch(jvPath); | |
end; | |
# ╔═╡ 5c02709d-3ab2-4a3f-99bc-5885032b5b6c | |
# hideall | |
begin | |
jsonView; | |
write(jvPath, """# app/resources/books/views/billgatesbooks_sqlite.json.jl | |
"Bill's Gates list of recommended books" => [Dict("author" => b.author, "title" => b.title) for b in books]"""); | |
end; | |
# ╔═╡ be526029-3efd-49d8-a84e-97e57cb0a7d9 | |
# hideall | |
write("$(dirname(pwd()))/MyGenieApp/routes.jl", """# routes.jl | |
using Genie.Router | |
using BooksController | |
route("/bgbooks") do | |
BooksController.billgatesbooks() | |
end | |
route("/bgbooks_view") do | |
BooksController.billgatesbooks_view() | |
end | |
route("/bgbooks_view_admin") do | |
BooksController.billgatesbooks_view_admin() | |
end | |
route("/bgbooks_view_md") do | |
BooksController.billgatesbooks_view_md() | |
end | |
route("/api/v1/bgbooks_json") do | |
BooksController.API.billgatesbooks_view_json() | |
end | |
route("/api/v2/bgbooks_json") do | |
BooksController.API.billgatesbooks_view_json2() | |
end | |
route("/api/v3/bgbooks_json") do | |
BooksController.API.billgatesbooks_view_sqlite() | |
end"""); | |
# ╔═╡ 00000000-0000-0000-0000-000000000001 | |
PLUTO_PROJECT_TOML_CONTENTS = """ | |
[deps] | |
Genie = "c43c736e-a2d1-11e8-161f-af95117fbd1e" | |
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe" | |
SQLite = "0aa819cd-b072-5ff4-a722-6bc24af294d9" | |
SearchLight = "340e8cb6-72eb-11e8-37ce-c97ebeb32050" | |
SearchLightSQLite = "21a827c4-482a-11ea-3a19-4d2243a4a2c5" | |
[compat] | |
Genie = "~4.9.1" | |
Revise = "~3.3.1" | |
SQLite = "~1.4.0" | |
SearchLight = "~2.1.0" | |
SearchLightSQLite = "~2.0.0" | |
""" | |
# ╔═╡ 00000000-0000-0000-0000-000000000002 | |
PLUTO_MANIFEST_TOML_CONTENTS = """ | |
# This file is machine-generated - editing it directly is not advised | |
[[ArgParse]] | |
deps = ["Logging", "TextWrap"] | |
git-tree-sha1 = "3102bce13da501c9104df33549f511cd25264d7d" | |
uuid = "c7e460c6-2fb9-53a9-8c5b-16f535851c63" | |
version = "1.1.4" | |
[[ArgTools]] | |
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f" | |
[[Artifacts]] | |
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33" | |
[[Base64]] | |
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" | |
[[BinaryProvider]] | |
deps = ["Libdl", "Logging", "SHA"] | |
git-tree-sha1 = "ecdec412a9abc8db54c0efc5548c64dfce072058" | |
uuid = "b99e7846-7c00-51b0-8f62-c81ae34c0232" | |
version = "0.5.10" | |
[[CSTParser]] | |
deps = ["Tokenize"] | |
git-tree-sha1 = "f9a6389348207faf5e5c62cbc7e89d19688d338a" | |
uuid = "00ebfdb7-1f24-5e51-bd34-a7502290713f" | |
version = "3.3.0" | |
[[CodeTracking]] | |
deps = ["InteractiveUtils", "UUIDs"] | |
git-tree-sha1 = "9aa8a5ebb6b5bf469a7e0e2b5202cf6f8c291104" | |
uuid = "da1fd8a2-8d9e-5ec2-8556-3022fb5608a2" | |
version = "1.0.6" | |
[[CommonMark]] | |
deps = ["Crayons", "JSON", "URIs"] | |
git-tree-sha1 = "4aff51293dbdbd268df314827b7f409ea57f5b70" | |
uuid = "a80b9123-70ca-4bc0-993e-6e3bcb318db6" | |
version = "0.8.5" | |
[[Compat]] | |
deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "SHA", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Statistics", "Test", "UUIDs", "Unicode"] | |
git-tree-sha1 = "44c37b4636bc54afac5c574d2d02b625349d6582" | |
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20" | |
version = "3.41.0" | |
[[Crayons]] | |
git-tree-sha1 = "249fe38abf76d48563e2f4556bebd215aa317e15" | |
uuid = "a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f" | |
version = "4.1.1" | |
[[DBInterface]] | |
git-tree-sha1 = "9b0dc525a052b9269ccc5f7f04d5b3639c65bca5" | |
uuid = "a10d1c49-ce27-4219-8d33-6db1a4562965" | |
version = "2.5.0" | |
[[DataAPI]] | |
git-tree-sha1 = "cc70b17275652eb47bc9e5f81635981f13cea5c8" | |
uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a" | |
version = "1.9.0" | |
[[DataFrames]] | |
deps = ["Compat", "DataAPI", "Future", "InvertedIndices", "IteratorInterfaceExtensions", "LinearAlgebra", "Markdown", "Missings", "PooledArrays", "PrettyTables", "Printf", "REPL", "Reexport", "SortingAlgorithms", "Statistics", "TableTraits", "Tables", "Unicode"] | |
git-tree-sha1 = "ae02104e835f219b8930c7664b8012c93475c340" | |
uuid = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" | |
version = "1.3.2" | |
[[DataStructures]] | |
deps = ["Compat", "InteractiveUtils", "OrderedCollections"] | |
git-tree-sha1 = "3daef5523dd2e769dad2365274f760ff5f282c7d" | |
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" | |
version = "0.18.11" | |
[[DataValueInterfaces]] | |
git-tree-sha1 = "bfc1187b79289637fa0ef6d4436ebdfe6905cbd6" | |
uuid = "e2d170a0-9d28-54be-80f0-106bbe20a464" | |
version = "1.0.0" | |
[[Dates]] | |
deps = ["Printf"] | |
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a" | |
[[DelimitedFiles]] | |
deps = ["Mmap"] | |
uuid = "8bb1440f-4735-579b-a4ab-409b98df4dab" | |
[[Distributed]] | |
deps = ["Random", "Serialization", "Sockets"] | |
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b" | |
[[Downloads]] | |
deps = ["ArgTools", "LibCURL", "NetworkOptions"] | |
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6" | |
[[EzXML]] | |
deps = ["Printf", "XML2_jll"] | |
git-tree-sha1 = "0fa3b52a04a4e210aeb1626def9c90df3ae65268" | |
uuid = "8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615" | |
version = "1.1.0" | |
[[FilePathsBase]] | |
deps = ["Compat", "Dates", "Mmap", "Printf", "Test", "UUIDs"] | |
git-tree-sha1 = "04d13bfa8ef11720c24e4d840c0033d145537df7" | |
uuid = "48062228-2e41-5def-b9a4-89aafe57970f" | |
version = "0.9.17" | |
[[FileWatching]] | |
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee" | |
[[Formatting]] | |
deps = ["Printf"] | |
git-tree-sha1 = "8339d61043228fdd3eb658d86c926cb282ae72a8" | |
uuid = "59287772-0a20-5a39-b81b-1366585eb4c0" | |
version = "0.4.2" | |
[[Future]] | |
deps = ["Random"] | |
uuid = "9fa8497b-333b-5362-9e8d-4d0656e87820" | |
[[GMP_jll]] | |
deps = ["Artifacts", "Libdl"] | |
uuid = "781609d7-10c4-51f6-84f2-b8444358ff6d" | |
[[Genie]] | |
deps = ["ArgParse", "Dates", "Distributed", "EzXML", "FilePathsBase", "HTTP", "HttpCommon", "Inflector", "JSON3", "JuliaFormatter", "Logging", "Markdown", "MbedTLS", "Millboard", "Nettle", "OrderedCollections", "Pkg", "REPL", "Random", "Reexport", "Revise", "SHA", "Serialization", "Sockets", "UUIDs", "Unicode", "VersionCheck", "YAML"] | |
git-tree-sha1 = "d0362686961375e910e437c76ff4ed6f31b54fef" | |
uuid = "c43c736e-a2d1-11e8-161f-af95117fbd1e" | |
version = "4.9.1" | |
[[HTTP]] | |
deps = ["Base64", "Dates", "IniFile", "Logging", "MbedTLS", "NetworkOptions", "Sockets", "URIs"] | |
git-tree-sha1 = "0fa77022fe4b511826b39c894c90daf5fce3334a" | |
uuid = "cd3eb016-35fb-5094-929b-558a96fad6f3" | |
version = "0.9.17" | |
[[HttpCommon]] | |
deps = ["Dates", "Nullables", "Test", "URIParser"] | |
git-tree-sha1 = "46313284237aa6ca67a6bce6d6fbd323d19cff59" | |
uuid = "77172c1b-203f-54ac-aa54-3f1198fe9f90" | |
version = "0.5.0" | |
[[Inflector]] | |
deps = ["Unicode"] | |
git-tree-sha1 = "8555b54ddf27806b070ce1d1cf623e1feb13750c" | |
uuid = "6d011eab-0732-4556-8808-e463c76bf3b6" | |
version = "1.0.1" | |
[[IniFile]] | |
deps = ["Test"] | |
git-tree-sha1 = "098e4d2c533924c921f9f9847274f2ad89e018b8" | |
uuid = "83e8ac13-25f8-5344-8a64-a9f2b223428f" | |
version = "0.5.0" | |
[[InlineStrings]] | |
deps = ["Parsers"] | |
git-tree-sha1 = "61feba885fac3a407465726d0c330b3055df897f" | |
uuid = "842dd82b-1e85-43dc-bf29-5d0ee9dffc48" | |
version = "1.1.2" | |
[[InteractiveUtils]] | |
deps = ["Markdown"] | |
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240" | |
[[InvertedIndices]] | |
git-tree-sha1 = "bee5f1ef5bf65df56bdd2e40447590b272a5471f" | |
uuid = "41ab1584-1d38-5bbf-9106-f11c6c58b48f" | |
version = "1.1.0" | |
[[IteratorInterfaceExtensions]] | |
git-tree-sha1 = "a3f24677c21f5bbe9d2a714f95dcd58337fb2856" | |
uuid = "82899510-4779-5014-852e-03e436cf321d" | |
version = "1.0.0" | |
[[JLLWrappers]] | |
deps = ["Preferences"] | |
git-tree-sha1 = "abc9885a7ca2052a736a600f7fa66209f96506e1" | |
uuid = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210" | |
version = "1.4.1" | |
[[JSON]] | |
deps = ["Dates", "Mmap", "Parsers", "Unicode"] | |
git-tree-sha1 = "8076680b162ada2a031f707ac7b4953e30667a37" | |
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" | |
version = "0.21.2" | |
[[JSON3]] | |
deps = ["Dates", "Mmap", "Parsers", "StructTypes", "UUIDs"] | |
git-tree-sha1 = "7d58534ffb62cd947950b3aa9b993e63307a6125" | |
uuid = "0f8b85d8-7281-11e9-16c2-39a750bddbf1" | |
version = "1.9.2" | |
[[JuliaFormatter]] | |
deps = ["CSTParser", "CommonMark", "DataStructures", "Pkg", "Tokenize"] | |
git-tree-sha1 = "da0c8830cebe2337093bb46fc117498517a9df80" | |
uuid = "98e50ef6-434e-11e9-1051-2b60c6c9e899" | |
version = "0.21.2" | |
[[JuliaInterpreter]] | |
deps = ["CodeTracking", "InteractiveUtils", "Random", "UUIDs"] | |
git-tree-sha1 = "6ca01d8e5bc75d178e8ac2d1f741d02946dc1853" | |
uuid = "aa1ae85d-cabe-5617-a682-6adf51b2e16a" | |
version = "0.9.2" | |
[[LibCURL]] | |
deps = ["LibCURL_jll", "MozillaCACerts_jll"] | |
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21" | |
[[LibCURL_jll]] | |
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"] | |
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0" | |
[[LibGit2]] | |
deps = ["Base64", "NetworkOptions", "Printf", "SHA"] | |
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433" | |
[[LibSSH2_jll]] | |
deps = ["Artifacts", "Libdl", "MbedTLS_jll"] | |
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8" | |
[[Libdl]] | |
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb" | |
[[Libiconv_jll]] | |
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] | |
git-tree-sha1 = "42b62845d70a619f063a7da093d995ec8e15e778" | |
uuid = "94ce4f54-9a6c-5748-9c1c-f9c7231a4531" | |
version = "1.16.1+1" | |
[[LinearAlgebra]] | |
deps = ["Libdl"] | |
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | |
[[Logging]] | |
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568" | |
[[LoweredCodeUtils]] | |
deps = ["JuliaInterpreter"] | |
git-tree-sha1 = "f46e8f4e38882b32dcc11c8d31c131d556063f39" | |
uuid = "6f1432cf-f94c-5a45-995e-cdbf5db27b0b" | |
version = "2.2.0" | |
[[Markdown]] | |
deps = ["Base64"] | |
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a" | |
[[MbedTLS]] | |
deps = ["Dates", "MbedTLS_jll", "Random", "Sockets"] | |
git-tree-sha1 = "1c38e51c3d08ef2278062ebceade0e46cefc96fe" | |
uuid = "739be429-bea8-5141-9913-cc70e7f3736d" | |
version = "1.0.3" | |
[[MbedTLS_jll]] | |
deps = ["Artifacts", "Libdl"] | |
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1" | |
[[Millboard]] | |
git-tree-sha1 = "ea6a5b7e56e76d8051023faaa11d91d1d881dac3" | |
uuid = "39ec1447-df44-5f4c-beaa-866f30b4d3b2" | |
version = "0.2.5" | |
[[Missings]] | |
deps = ["DataAPI"] | |
git-tree-sha1 = "bf210ce90b6c9eed32d25dbcae1ebc565df2687f" | |
uuid = "e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28" | |
version = "1.0.2" | |
[[Mmap]] | |
uuid = "a63ad114-7e13-5084-954f-fe012c677804" | |
[[MozillaCACerts_jll]] | |
uuid = "14a3606d-f60d-562e-9121-12d972cd8159" | |
[[Nettle]] | |
deps = ["Libdl", "Nettle_jll"] | |
git-tree-sha1 = "a68340b9edfd98d0ed96aee8137cb716ea3b6dea" | |
uuid = "49dea1ee-f6fa-5aa6-9a11-8816cee7d4b9" | |
version = "0.5.1" | |
[[Nettle_jll]] | |
deps = ["Artifacts", "GMP_jll", "JLLWrappers", "Libdl", "Pkg"] | |
git-tree-sha1 = "eca63e3847dad608cfa6a3329b95ef674c7160b4" | |
uuid = "4c82536e-c426-54e4-b420-14f461c4ed8b" | |
version = "3.7.2+0" | |
[[NetworkOptions]] | |
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908" | |
[[Nullables]] | |
git-tree-sha1 = "8f87854cc8f3685a60689d8edecaa29d2251979b" | |
uuid = "4d1e1d77-625e-5b40-9113-a560ec7a8ecd" | |
version = "1.0.0" | |
[[OrderedCollections]] | |
git-tree-sha1 = "85f8e6578bf1f9ee0d11e7bb1b1456435479d47c" | |
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d" | |
version = "1.4.1" | |
[[Parsers]] | |
deps = ["Dates"] | |
git-tree-sha1 = "0b5cfbb704034b5b4c1869e36634438a047df065" | |
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0" | |
version = "2.2.1" | |
[[Pkg]] | |
deps = ["Artifacts", "Dates", "Downloads", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"] | |
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | |
[[PooledArrays]] | |
deps = ["DataAPI", "Future"] | |
git-tree-sha1 = "db3a23166af8aebf4db5ef87ac5b00d36eb771e2" | |
uuid = "2dfb63ee-cc39-5dd5-95bd-886bf059d720" | |
version = "1.4.0" | |
[[Preferences]] | |
deps = ["TOML"] | |
git-tree-sha1 = "2cf929d64681236a2e074ffafb8d568733d2e6af" | |
uuid = "21216c6a-2e73-6563-6e65-726566657250" | |
version = "1.2.3" | |
[[PrettyTables]] | |
deps = ["Crayons", "Formatting", "Markdown", "Reexport", "Tables"] | |
git-tree-sha1 = "dfb54c4e414caa595a1f2ed759b160f5a3ddcba5" | |
uuid = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d" | |
version = "1.3.1" | |
[[Printf]] | |
deps = ["Unicode"] | |
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7" | |
[[ProgressMeter]] | |
deps = ["Distributed", "Printf"] | |
git-tree-sha1 = "afadeba63d90ff223a6a48d2009434ecee2ec9e8" | |
uuid = "92933f4c-e287-5a05-a399-4b506db050ca" | |
version = "1.7.1" | |
[[REPL]] | |
deps = ["InteractiveUtils", "Markdown", "Sockets", "Unicode"] | |
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" | |
[[Random]] | |
deps = ["Serialization"] | |
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | |
[[Reexport]] | |
git-tree-sha1 = "45e428421666073eab6f2da5c9d310d99bb12f9b" | |
uuid = "189a3867-3050-52da-a836-e630ba90ab69" | |
version = "1.2.2" | |
[[Requires]] | |
deps = ["UUIDs"] | |
git-tree-sha1 = "838a3a4188e2ded87a4f9f184b4b0d78a1e91cb7" | |
uuid = "ae029012-a4dd-5104-9daa-d747884805df" | |
version = "1.3.0" | |
[[Revise]] | |
deps = ["CodeTracking", "Distributed", "FileWatching", "JuliaInterpreter", "LibGit2", "LoweredCodeUtils", "OrderedCollections", "Pkg", "REPL", "Requires", "UUIDs", "Unicode"] | |
git-tree-sha1 = "2f9d4d6679b5f0394c52731db3794166f49d5131" | |
uuid = "295af30f-e4ad-537b-8983-00126c2a3abe" | |
version = "3.3.1" | |
[[SHA]] | |
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce" | |
[[SQLite]] | |
deps = ["BinaryProvider", "DBInterface", "Dates", "Libdl", "Random", "SQLite_jll", "Serialization", "Tables", "Test", "WeakRefStrings"] | |
git-tree-sha1 = "8e14d9b200b975e93a0ae0e5d17dea1c262690ee" | |
uuid = "0aa819cd-b072-5ff4-a722-6bc24af294d9" | |
version = "1.4.0" | |
[[SQLite_jll]] | |
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "Zlib_jll"] | |
git-tree-sha1 = "cca82caa0b6bf7f0bc977e69063c0cf5d7da36e5" | |
uuid = "76ed43ae-9a5d-5a62-8c75-30186b810ce8" | |
version = "3.37.0+0" | |
[[Scratch]] | |
deps = ["Dates"] | |
git-tree-sha1 = "0b4b7f1393cff97c33891da2a0bf69c6ed241fda" | |
uuid = "6c6a2e73-6563-6170-7368-637461726353" | |
version = "1.1.0" | |
[[SearchLight]] | |
deps = ["DataFrames", "Dates", "Distributed", "Inflector", "JSON3", "Logging", "Millboard", "OrderedCollections", "Reexport", "SHA", "Unicode", "YAML"] | |
git-tree-sha1 = "5c6d16346ef5af1b74154f44c61f8ae28a1ec15f" | |
uuid = "340e8cb6-72eb-11e8-37ce-c97ebeb32050" | |
version = "2.1.0" | |
[[SearchLightSQLite]] | |
deps = ["DBInterface", "DataFrames", "Logging", "SQLite", "SearchLight"] | |
git-tree-sha1 = "f56a4eb6cbbe3d84746aa2a5b509a47e0003d699" | |
uuid = "21a827c4-482a-11ea-3a19-4d2243a4a2c5" | |
version = "2.0.0" | |
[[Serialization]] | |
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b" | |
[[SharedArrays]] | |
deps = ["Distributed", "Mmap", "Random", "Serialization"] | |
uuid = "1a1011a3-84de-559e-8e89-a11a2f7dc383" | |
[[Sockets]] | |
uuid = "6462fe0b-24de-5631-8697-dd941f90decc" | |
[[SortingAlgorithms]] | |
deps = ["DataStructures"] | |
git-tree-sha1 = "b3363d7460f7d098ca0912c69b082f75625d7508" | |
uuid = "a2af1166-a08f-5f64-846c-94a0d3cef48c" | |
version = "1.0.1" | |
[[SparseArrays]] | |
deps = ["LinearAlgebra", "Random"] | |
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" | |
[[Statistics]] | |
deps = ["LinearAlgebra", "SparseArrays"] | |
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" | |
[[StringEncodings]] | |
deps = ["Libiconv_jll"] | |
git-tree-sha1 = "50ccd5ddb00d19392577902f0079267a72c5ab04" | |
uuid = "69024149-9ee7-55f6-a4c4-859efe599b68" | |
version = "0.3.5" | |
[[StructTypes]] | |
deps = ["Dates", "UUIDs"] | |
git-tree-sha1 = "d24a825a95a6d98c385001212dc9020d609f2d4f" | |
uuid = "856f2bd8-1eba-4b0a-8007-ebc267875bd4" | |
version = "1.8.1" | |
[[TOML]] | |
deps = ["Dates"] | |
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76" | |
[[TableTraits]] | |
deps = ["IteratorInterfaceExtensions"] | |
git-tree-sha1 = "c06b2f539df1c6efa794486abfb6ed2022561a39" | |
uuid = "3783bdb8-4a98-5b6b-af9a-565f29a5fe9c" | |
version = "1.0.1" | |
[[Tables]] | |
deps = ["DataAPI", "DataValueInterfaces", "IteratorInterfaceExtensions", "LinearAlgebra", "TableTraits", "Test"] | |
git-tree-sha1 = "bb1064c9a84c52e277f1096cf41434b675cd368b" | |
uuid = "bd369af6-aec1-5ad0-b16a-f7cc5008161c" | |
version = "1.6.1" | |
[[Tar]] | |
deps = ["ArgTools", "SHA"] | |
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e" | |
[[Test]] | |
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"] | |
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | |
[[TextWrap]] | |
git-tree-sha1 = "9250ef9b01b66667380cf3275b3f7488d0e25faf" | |
uuid = "b718987f-49a8-5099-9789-dcd902bef87d" | |
version = "1.0.1" | |
[[Tokenize]] | |
git-tree-sha1 = "0952c9cee34988092d73a5708780b3917166a0dd" | |
uuid = "0796e94c-ce3b-5d07-9a54-7f471281c624" | |
version = "0.5.21" | |
[[URIParser]] | |
deps = ["Unicode"] | |
git-tree-sha1 = "53a9f49546b8d2dd2e688d216421d050c9a31d0d" | |
uuid = "30578b45-9adc-5946-b283-645ec420af67" | |
version = "0.4.1" | |
[[URIs]] | |
git-tree-sha1 = "97bbe755a53fe859669cd907f2d96aee8d2c1355" | |
uuid = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4" | |
version = "1.3.0" | |
[[UUIDs]] | |
deps = ["Random", "SHA"] | |
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" | |
[[Unicode]] | |
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" | |
[[UrlDownload]] | |
deps = ["HTTP", "ProgressMeter"] | |
git-tree-sha1 = "05f86730c7a53c9da603bd506a4fc9ad0851171c" | |
uuid = "856ac37a-3032-4c1c-9122-f86d88358c8b" | |
version = "1.0.0" | |
[[VersionCheck]] | |
deps = ["Dates", "JSON3", "Logging", "Pkg", "Random", "Scratch", "UrlDownload"] | |
git-tree-sha1 = "89ef2431dd59344ebaf052d0737205854ded0c62" | |
uuid = "a637dc6b-bca1-447e-a4fa-35264c9d0580" | |
version = "0.2.0" | |
[[WeakRefStrings]] | |
deps = ["DataAPI", "InlineStrings", "Parsers"] | |
git-tree-sha1 = "c69f9da3ff2f4f02e811c3323c22e5dfcb584cfa" | |
uuid = "ea10d353-3f73-51f8-a26c-33c1cb351aa5" | |
version = "1.4.1" | |
[[XML2_jll]] | |
deps = ["Artifacts", "JLLWrappers", "Libdl", "Libiconv_jll", "Pkg", "Zlib_jll"] | |
git-tree-sha1 = "1acf5bdf07aa0907e0a37d3718bb88d4b687b74a" | |
uuid = "02c8fc9c-b97f-50b9-bbe4-9be30ff0a78a" | |
version = "2.9.12+0" | |
[[YAML]] | |
deps = ["Base64", "Dates", "Printf", "StringEncodings"] | |
git-tree-sha1 = "3c6e8b9f5cdaaa21340f841653942e1a6b6561e5" | |
uuid = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6" | |
version = "0.4.7" | |
[[Zlib_jll]] | |
deps = ["Libdl"] | |
uuid = "83775a58-1f1d-513f-b197-d71354ab007a" | |
[[nghttp2_jll]] | |
deps = ["Artifacts", "Libdl"] | |
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d" | |
[[p7zip_jll]] | |
deps = ["Artifacts", "Libdl"] | |
uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0" | |
""" | |
# ╔═╡ Cell order: | |
# ╠═1104aef8-6de4-4fb0-b0d1-6e85df6e86e0 | |
# ╠═c2e80b10-502e-46c8-b802-ee9956b63fcc | |
# ╠═a0d85997-d167-4c8b-a2f2-e50ef4c2193e | |
# ╠═b2667ebb-10d4-4233-804d-589f3d108dc6 | |
# ╠═29c0bdfa-a7dc-44c6-9e97-03ab9883828b | |
# ╠═f63d7226-ffcc-4402-bb2d-37cfe2d64593 | |
# ╠═09764303-330e-4c47-92ed-cb6ce13d629d | |
# ╠═adece903-915b-4f77-997d-e5fe5e49ebd7 | |
# ╠═50299fe8-6a8c-4121-8e20-7b0b83f66a65 | |
# ╠═a4c1b657-14d4-4035-aa7c-4ba78a6c9f34 | |
# ╠═82c6343d-59d7-4e5b-ac0f-a12c2ac133e1 | |
# ╠═7777a8b8-4e62-43bf-920f-9e0a422e51b8 | |
# ╠═3dacfdaa-8016-4bab-bf31-882e2cd88b8b | |
# ╠═b6eb4bbb-2fad-465c-897e-6442ac485c61 | |
# ╠═6ae6af95-6f00-480d-bf78-de1d8bf2a38b | |
# ╠═f9787fca-1aad-46f4-9676-5e17b0ad7f09 | |
# ╠═d29af1bd-4da0-459b-ab65-da31933ee77c | |
# ╠═7dd69c90-1d40-4bef-aa69-30acd53209d2 | |
# ╠═6f363e5c-dcec-4f5e-bcac-409356b873de | |
# ╠═24462235-7bc4-4de0-b377-ab038e4b3da3 | |
# ╠═b3b1eb3d-f098-4934-ba23-10cd9ce8887f | |
# ╠═3972b319-95ae-48cd-9910-a8e17b9afbdf | |
# ╠═87c9d856-18bd-4f66-9c07-d0ac8dd88b7c | |
# ╠═b6f5e3f2-34a7-4ffa-9636-88b4bb03e555 | |
# ╠═9cec384c-6ae3-4dd4-b2c8-8ad8e919e92f | |
# ╠═5ced7f6e-e84a-4cbf-9990-6cb3830362d5 | |
# ╠═5c5423f2-27f7-4a4f-a895-18dcde6f518e | |
# ╠═6eb6f2d5-2d5c-44e3-98c1-c933844547e7 | |
# ╠═18cc67cf-93a2-417b-b385-680c68ddeb8e | |
# ╠═e8b55050-3a62-4809-acc5-37cfb6afda4a | |
# ╠═9e29f394-a991-413f-be00-b4763accfd68 | |
# ╠═64ea16e4-4323-435f-9e13-9fe86ed31375 | |
# ╠═b208bfb8-e9ee-4f10-9dec-9248e30a7c9b | |
# ╠═478590e6-e01f-4fa3-8217-b03357a55cf3 | |
# ╠═ce069d56-3b12-4e6d-885b-83217e864b67 | |
# ╠═bc15b923-3d19-4daa-aa9a-f26ccc0f79c0 | |
# ╠═fcecf932-9084-49e9-9de8-a899bc0b5168 | |
# ╠═65044e1c-039e-412c-b960-ebc3be23d1d9 | |
# ╠═03ed3567-911c-4091-b4bb-f672009d1647 | |
# ╠═5ff78c5b-3466-473e-8234-50a362cdc035 | |
# ╠═d7460349-53b0-4c17-b9b8-23ac24f89c26 | |
# ╠═5f45667e-6a8a-47c5-96a3-2e5d94b8b0c8 | |
# ╠═421fe80d-6aee-44e7-b565-bab3d87fa7ad | |
# ╠═546ed22e-367c-4304-936b-e64c13a9593e | |
# ╠═7d0cbfcd-786c-49c9-a211-e941a87562fb | |
# ╠═085320e0-7eff-4f51-8e35-54d4a793f80c | |
# ╠═1161c5da-1bbe-4f20-be3f-436ca712a792 | |
# ╠═4e7e11ed-5f00-4560-aecd-a415421ef409 | |
# ╠═70757a88-96b5-4cb5-9430-6966cdc93878 | |
# ╠═05bb7631-fbe0-4cf8-9408-dc8afcc3853c | |
# ╠═22914aec-cc4c-43e0-a670-0e0e34af0766 | |
# ╠═a3a62e23-5ec5-4d3d-93dc-cb45c4a93a00 | |
# ╠═22b3e23a-e0b6-4d93-92ba-bd1da11dadfc | |
# ╠═b7482bb2-24eb-471a-9229-0bbbb9b3e6a9 | |
# ╠═dab899f2-b237-4edc-9263-171770373c9c | |
# ╠═e84ac231-c915-4a8d-bf77-566400e29721 | |
# ╠═231dbc05-6c9c-45de-8f1d-92ede14f0e0e | |
# ╠═737fe343-e840-4bff-9a02-b124137cc50f | |
# ╠═332dc5d3-b259-4bc5-ae06-3a3f1808f566 | |
# ╠═23e44d6d-adbe-4fc8-a6a3-6259feb3db56 | |
# ╠═2f29380e-4480-439c-9d9a-0d0660eec76e | |
# ╠═ac8700bf-5636-4e1c-8efe-81fe1e8cca9d | |
# ╠═5c02709d-3ab2-4a3f-99bc-5885032b5b6c | |
# ╠═be526029-3efd-49d8-a84e-97e57cb0a7d9 | |
# ╟─00000000-0000-0000-0000-000000000001 | |
# ╟─00000000-0000-0000-0000-000000000002 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment