Skip to content

Commit

Permalink
Add timetable
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Jan 18, 2022
1 parent 34838ba commit aa9c5da
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 15 deletions.
16 changes: 16 additions & 0 deletions code-r/timetable-from-ics.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

library(tidyverse)
ics = calendar::ic_read("tds-calendar-2022.ics")
names(ics)
names(ics) = gsub(pattern = ";TZID=GMT Standard Time", replacement = "", x = names(ics))
head(ics$DTSTART)
calendar::ic_date(.Last.value)

tt_csv = ics %>%
mutate_at(vars(matches("DT")), calendar::ic_date) %>%
mutate(date = as.Date(DTSTART), duration = DTEND - DTSTART) %>%
select(SUMMARY, DESCRIPTION, date, duration)
names(tt_csv) = tolower(names(tt_csv))

readr::write_csv(tt_csv, "timetable.csv")
readLines("timetable.ics")
136 changes: 136 additions & 0 deletions tds-calendar-2022.ics
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
BEGIN:VCALENDAR
METHOD:PUBLISH
PRODID:Microsoft Exchange Server 2010
VERSION:2.0
X-WR-CALNAME:TDS2022
BEGIN:VTIMEZONE
TZID:GMT Standard Time
BEGIN:STANDARD
DTSTART:16010101T020000
TZOFFSETFROM:+0100
TZOFFSETTO:+0000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T010000
TZOFFSETFROM:+0000
TZOFFSETTO:+0100
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DESCRIPTION:\n_____________________________________________________________
___________________\nMicrosoft Teams meeting\nJoin on your computer or mob
ile app\nClick here to join the meeting<https://teams.microsoft.com/l/meet
up-join/19%3ameeting_MWNiZDJkNGUtMTQxOC00ODFkLWExMGYtZTViYmFkNjM0OTJj%40th
read.v2/0?context=%7b%22Tid%22%3a%22bdeaeda8-c81d-45ce-863e-5232a535b7cb%2
2%2c%22Oid%22%3a%22db432bda-89ab-48ff-8016-978914bd784a%22%7d>\nLearn more
<https://aka.ms/JoinTeamsMeeting> | Meeting options<https://teams.microsof
t.com/meetingOptions/?organizerId=db432bda-89ab-48ff-8016-978914bd784a&ten
antId=bdeaeda8-c81d-45ce-863e-5232a535b7cb&threadId=19_meeting_MWNiZDJkNGU
[email protected]&messageId=0&language=en-GB
>\n_______________________________________________________________________
_________\n
UID:040000008200E00074C5B7101A82E008000000006F23FF3BA0EDD701000000000000000
0100000008E8D11F5E73B65428850CC712926B101
SUMMARY:TDS Lecture 1
DTSTART;TZID=GMT Standard Time:20220124T110000
DTEND;TZID=GMT Standard Time:20220124T120000
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20220118T150313Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:0
LOCATION:
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-DONOTFORWARDMEETING:FALSE
X-MICROSOFT-DISALLOW-COUNTER:FALSE
END:VEVENT
BEGIN:VEVENT
DESCRIPTION:\n
RRULE:FREQ=WEEKLY;UNTIL=20220224T090000Z;INTERVAL=1;BYDAY=TH;WKST=SU
UID:040000008200E00074C5B7101A82E008000000000DB677A29FEDD701000000000000000
0100000008BD5FC7FF671954F9AF99DBDD0AAE286
SUMMARY:TDS Practical
DTSTART;TZID=GMT Standard Time:20220203T090000
DTEND;TZID=GMT Standard Time:20220203T120000
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20220118T150313Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:0
LOCATION:
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-INSTTYPE:1
X-MICROSOFT-DONOTFORWARDMEETING:FALSE
X-MICROSOFT-DISALLOW-COUNTER:FALSE
END:VEVENT
BEGIN:VEVENT
DESCRIPTION:\n
UID:040000008200E00074C5B7101A82E00800000000B0E1F114A0EDD701000000000000000
0100000001D243A41BFDF9B4CAEB23B307A17418B
SUMMARY:TDS seminar
DTSTART;TZID=GMT Standard Time:20220216T130000
DTEND;TZID=GMT Standard Time:20220216T160000
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20220118T150313Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:0
LOCATION:
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-DONOTFORWARDMEETING:FALSE
X-MICROSOFT-DISALLOW-COUNTER:FALSE
END:VEVENT
BEGIN:VEVENT
DESCRIPTION:Getting these in the calendar. Details soon.\n\n_______________
_________________________________________________________________\nMicroso
ft Teams meeting\nJoin on your computer or mobile app\nClick here to join
the meeting<https://teams.microsoft.com/l/meetup-join/19%3ameeting_MGM5NTY
4OGMtYTJhYS00NjY0LWFiOTQtYThkYzcxZjhiZDdk%40thread.v2/0?context=%7b%22Tid%
22%3a%22bdeaeda8-c81d-45ce-863e-5232a535b7cb%22%2c%22Oid%22%3a%22db432bda-
89ab-48ff-8016-978914bd784a%22%7d>\nLearn more<https://aka.ms/JoinTeamsMee
ting> | Meeting options<https://teams.microsoft.com/meetingOptions/?organi
zerId=db432bda-89ab-48ff-8016-978914bd784a&tenantId=bdeaeda8-c81d-45ce-863
e-5232a535b7cb&threadId=19_meeting_MGM5NTY4OGMtYTJhYS00NjY0LWFiOTQtYThkYzc
[email protected]&messageId=0&language=en-GB>\n_________________________
_______________________________________________________\n
UID:040000008200E00074C5B7101A82E00800000000FDF0AFE59FEDD701000000000000000
01000000057A574E3517EC34497A87E6FF56A41BF
SUMMARY:TDS Practical
DTSTART;TZID=GMT Standard Time:20220331T090000
DTEND;TZID=GMT Standard Time:20220331T120000
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20220118T150313Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:0
LOCATION:
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-DONOTFORWARDMEETING:FALSE
X-MICROSOFT-DISALLOW-COUNTER:FALSE
END:VEVENT
END:VCALENDAR
30 changes: 15 additions & 15 deletions tds.bib
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ @article{banister_sustainable_2008
}

@article{beddoe_overcoming_2009,
title = {Overcoming Systemic Roadblocks to Sustainability: The Evolutionary Redesign of Worldviews, Institutions, and Technologies},
title = {Overcoming Systemic Roadblocks to Sustainability: {{The}} Evolutionary Redesign of Worldviews, Institutions, and Technologies},
author = {Beddoe, Rachael and Costanza, Robert and Farley, Joshua and Garza, Eric and Kent, Jennifer and Kubiszewski, Ida and Martinez, Luz and McCowen, Tracy and Murphy, Kathleen and Myers, Norman and Ogden, Zach and Stapleton, Kevin and Woodward, John},
year = {2009},
journal = {Proceedings of the National Academy of Sciences},
Expand All @@ -25,7 +25,7 @@ @article{beddoe_overcoming_2009
}

@article{boeing_osmnx_2017,
title = {{{OSMnx}}: New {{Methods}} for {{Acquiring}}, {{Constructing}}, {{Analyzing}}, and {{Visualizing Complex Street Networks}}},
title = {{{OSMnx}}: {{New Methods}} for {{Acquiring}}, {{Constructing}}, {{Analyzing}}, and {{Visualizing Complex Street Networks}}},
shorttitle = {{{OSMnx}}},
author = {Boeing, Geoff},
year = {2017},
Expand Down Expand Up @@ -53,7 +53,7 @@ @inproceedings{fernandez_natural_2016
}

@book{fox_data_2018,
title = {Data {{Science}} for {{Transport}}: A {{Self}}-{{Study Guide}} with {{Computer Exercises}}},
title = {Data {{Science}} for {{Transport}}: {{A Self-Study Guide}} with {{Computer Exercises}}},
shorttitle = {Data {{Science}} for {{Transport}}},
author = {Fox, Charles},
year = {2018},
Expand All @@ -66,7 +66,7 @@ @book{fox_data_2018
}

@book{gillespie_efficient_2016,
title = {Efficient {{R Programming}}: A {{Practical Guide}} to {{Smarter Programming}}},
title = {Efficient {{R Programming}}: {{A Practical Guide}} to {{Smarter Programming}}},
author = {Gillespie, Colin and Lovelace, Robin},
year = {2016},
publisher = {{O'Reilly Media}},
Expand All @@ -75,7 +75,7 @@ @book{gillespie_efficient_2016
}

@article{goodman_scenarios_2019,
title = {Scenarios of Cycling to School in {{England}}, and Associated Health and Carbon Impacts: Application of the `{{Propensity}} to {{Cycle Tool}}'},
title = {Scenarios of Cycling to School in {{England}}, and Associated Health and Carbon Impacts: {{Application}} of the `{{Propensity}} to {{Cycle Tool}}'},
shorttitle = {Scenarios of Cycling to School in {{England}}, and Associated Health and Carbon Impacts},
author = {Goodman, Anna and Rojas, Ilan Fridman and Woodcock, James and Aldred, Rachel and Berkoff, Nikolai and Morgan, Malcolm and Abbas, Ali and Lovelace, Robin},
year = {2019},
Expand All @@ -89,7 +89,7 @@ @article{goodman_scenarios_2019
}

@article{graells-garrido_adoptiondriven_2020,
title = {Adoption-{{Driven Data Science}} for {{Transportation Planning}}: Methodology, {{Case Study}}, and {{Lessons Learned}}},
title = {Adoption-{{Driven Data Science}} for {{Transportation Planning}}: {{Methodology}}, {{Case Study}}, and {{Lessons Learned}}},
shorttitle = {Adoption-{{Driven Data Science}} for {{Transportation Planning}}},
author = {{Graells-Garrido}, Eduardo and {Pe{\~n}a-Araya}, Vanessa and Bravo, Loreto},
year = {2020},
Expand All @@ -116,7 +116,7 @@ @book{grolemund_r_2016
}

@article{gschwender_using_2016,
title = {Using {{Smart Card}} and {{GPS Data}} for {{Policy}} and {{Planning}}: The {{Case}} of {{Transantiago}}},
title = {Using {{Smart Card}} and {{GPS Data}} for {{Policy}} and {{Planning}}: {{The Case}} of {{Transantiago}}},
shorttitle = {Using {{Smart Card}} and {{GPS Data}} for {{Policy}} and {{Planning}}},
author = {Gschwender, Antonio and Munizaga, Marcela and Simonetti, Carolina},
year = {2016},
Expand All @@ -131,7 +131,7 @@ @article{gschwender_using_2016
}

@book{james_introduction_2013a,
title = {An {{Introduction}} to {{Statistical Learning}}: With {{Applications}} in {{R}}},
title = {An {{Introduction}} to {{Statistical Learning}}: {{With Applications}} in {{R}}},
shorttitle = {An {{Introduction}} to {{Statistical Learning}}},
author = {James, Gareth and Witten, Daniela and Hastie, Trevor and Tibshirani, Robert},
year = {2013},
Expand All @@ -158,7 +158,7 @@ @book{lovelace_geocomputation_2019

@article{lovelace_open_2020,
ids = {lovelace_open_2020a},
title = {Open Access Transport Models: A Leverage Point in Sustainable Transport Planning},
title = {Open Access Transport Models: {{A}} Leverage Point in Sustainable Transport Planning},
shorttitle = {Open Access Transport Models},
author = {Lovelace, Robin and Parkin, John and Cohen, Tom},
year = {2020},
Expand Down Expand Up @@ -187,7 +187,7 @@ @article{lovelace_open_2021
}

@article{lovelace_propensity_2017,
title = {The {{Propensity}} to {{Cycle Tool}}: An Open Source Online System for Sustainable Transport Planning},
title = {The {{Propensity}} to {{Cycle Tool}}: {{An}} Open Source Online System for Sustainable Transport Planning},
shorttitle = {The {{Propensity}} to {{Cycle Tool}}},
author = {Lovelace, Robin and Goodman, Anna and Aldred, Rachel and Berkoff, Nikolai and Abbas, Ali and Woodcock, James},
year = {2017},
Expand All @@ -212,7 +212,7 @@ @techreport{lovelace_reproducible_2020
}

@article{lovelace_stats19_2019,
title = {Stats19: A Package for Working with Open Road Crash Data},
title = {Stats19: {{A}} Package for Working with Open Road Crash Data},
author = {Lovelace, Robin and Morgan, Malcolm and Hama, Layik and Padgham, Mark},
year = {2019},
journal = {Journal of Open Source Software},
Expand All @@ -221,7 +221,7 @@ @article{lovelace_stats19_2019
}

@article{lovelace_stplanr_2018,
title = {Stplanr: A {{Package}} for {{Transport Planning}}},
title = {Stplanr: {{A Package}} for {{Transport Planning}}},
author = {Lovelace, Robin and Ellison, Richard},
year = {2018},
journal = {The R Journal},
Expand All @@ -233,7 +233,7 @@ @article{lovelace_stplanr_2018
}

@book{monbiot_out_2017,
title = {Out of the {{Wreckage}}: A {{New Politics}} for an {{Age}} of {{Crisis}}},
title = {Out of the {{Wreckage}}: {{A New Politics}} for an {{Age}} of {{Crisis}}},
shorttitle = {Out of the {{Wreckage}}},
author = {Monbiot, George},
year = {2017},
Expand Down Expand Up @@ -331,7 +331,7 @@ @book{ortuzars._modelling_2001
}

@book{parkin_designing_2018,
title = {Designing for {{Cycle Traffic}}: International {{Principles}} and {{Practice}}},
title = {Designing for {{Cycle Traffic}}: {{International Principles}} and {{Practice}}},
shorttitle = {Designing for {{Cycle Traffic}}},
author = {Parkin, John},
year = {2018},
Expand Down Expand Up @@ -440,7 +440,7 @@ @book{tufte_visual_2001
}

@book{xie_markdown_2018,
title = {R {{Markdown}}: The {{Definitive Guide}}},
title = {R {{Markdown}}: {{The Definitive Guide}}},
shorttitle = {R {{Markdown}}},
author = {Xie, Yihui and Allaire, J. J. and Grolemund, Garrett},
year = {2018},
Expand Down
27 changes: 27 additions & 0 deletions timetable.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
summary,description,date,duration
TDS Lecture 1,"\n_____________________________________________________________
___________________\nMicrosoft Teams meeting\nJoin on your computer or mob
ile app\nClick here to join the meeting<https://teams.microsoft.com/l/meet
up-join/19%3ameeting_MWNiZDJkNGUtMTQxOC00ODFkLWExMGYtZTViYmFkNjM0OTJj%40th
read.v2/0?context=%7b%22Tid%22%3a%22bdeaeda8-c81d-45ce-863e-5232a535b7cb%2
2%2c%22Oid%22%3a%22db432bda-89ab-48ff-8016-978914bd784a%22%7d>\nLearn more
<https://aka.ms/JoinTeamsMeeting> | Meeting options<https://teams.microsof
t.com/meetingOptions/?organizerId=db432bda-89ab-48ff-8016-978914bd784a&ten
antId=bdeaeda8-c81d-45ce-863e-5232a535b7cb&threadId=19_meeting_MWNiZDJkNGU
[email protected]&messageId=0&language=en-GB
>\n_______________________________________________________________________
_________\n",2022-01-24,0
TDS Practical,\n,2022-02-03,0
TDS seminar,\n,2022-02-16,0
TDS Practical,"Getting these in the calendar. Details soon.\n\n_______________
_________________________________________________________________\nMicroso
ft Teams meeting\nJoin on your computer or mobile app\nClick here to join
the meeting<https://teams.microsoft.com/l/meetup-join/19%3ameeting_MGM5NTY
4OGMtYTJhYS00NjY0LWFiOTQtYThkYzcxZjhiZDdk%40thread.v2/0?context=%7b%22Tid%
22%3a%22bdeaeda8-c81d-45ce-863e-5232a535b7cb%22%2c%22Oid%22%3a%22db432bda-
89ab-48ff-8016-978914bd784a%22%7d>\nLearn more<https://aka.ms/JoinTeamsMee
ting> | Meeting options<https://teams.microsoft.com/meetingOptions/?organi
zerId=db432bda-89ab-48ff-8016-978914bd784a&tenantId=bdeaeda8-c81d-45ce-863
e-5232a535b7cb&threadId=19_meeting_MGM5NTY4OGMtYTJhYS00NjY0LWFiOTQtYThkYzc
[email protected]&messageId=0&language=en-GB>\n_________________________
_______________________________________________________\n",2022-03-31,0

0 comments on commit aa9c5da

Please sign in to comment.