From f3ef8ecca99b945be77e1febcf30e29591e18709 Mon Sep 17 00:00:00 2001 From: Oliver Kennedy Date: Wed, 10 May 2017 05:26:24 -0400 Subject: [PATCH 1/2] Update index.erb --- src/teaching/cse-562/2017sp/index.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/src/teaching/cse-562/2017sp/index.erb b/src/teaching/cse-562/2017sp/index.erb index fe6b8f4b..9cf14a6e 100644 --- a/src/teaching/cse-562/2017sp/index.erb +++ b/src/teaching/cse-562/2017sp/index.erb @@ -145,6 +145,7 @@ classContent: topic: Final Exam Review meta: slides: slides/2017-05-09-FinalReview.pdf + video: https://youtu.be/7XwBFIW4VJQ - date: May. 11 topic: Final Exam meta: From 9451fdb2852c2783a7d3451b608eb9d8fa904dc9 Mon Sep 17 00:00:00 2001 From: Oliver Kennedy Date: Thu, 11 May 2017 09:45:25 +0200 Subject: [PATCH 2/2] Generating citation lists --- Rakefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Rakefile b/Rakefile index 83cf88e3..d1449d19 100644 --- a/Rakefile +++ b/Rakefile @@ -188,3 +188,32 @@ end task :collab => "artifacts/okennedy_collaborators.tsv" +file "artifacts/oracle_papers.txt" => [ $db.files, "artifacts", "Rakefile" ].flatten do + File.open("artifacts/oracle_papers.txt", "w+") do |fh| + fh.puts $db["publications"]. + where { |pub| pub.fetch("projects", []).include? "mimir" }. + map { |pub| + pub = LabMetadata::complete_venue(pub) + case pub["type"] + when "conference", "journal", "workshop", "abstract" then + [ pub["title"], + pub["authors"].join(", "), + "#{LabMetadata::venue_name(pub, size: :full_parens)} #{pub["year"]}", + pub["urls"].map { |k,v| "#{k.capitalize}: #{v}" }, + LabMetadata.bibtex_for(pub).split("\n") + ].flatten + when "thesis" then + [ pub["title"], + pub["authors"].join(", "), + "Thesis #{pub["degree"]} #{pub["year"]}", + pub["urls"].map { |k,v| "#{k.capitalize}: #{v}" }, + LabMetadata.bibtex_for(pub).split("\n") + ].flatten + else nil + end + }. + compact. + map { |record| "> #{record.join("\n ")}" }. + join("\n\n") + end +end \ No newline at end of file