Git Product home page Git Product logo

calcofficehour's Introduction

CalcOfficeHours

This package helps find good times for office hours by finding when the students in a course are available and unavailable using their course schedules.

Cookie

We need to get the cookie for SISR. Get this from your Web browser. From Firefox, you can get it via the Preferences -> Privacy & Security and in the Cookies and and Site Data.

I get it via the Developer Tools in the Network panel by clicking on a request and looking at the Request Headers.

Unfortunately, Firefox doesn't store this cooking in the cookies.sqlite database so the package RBrowserCookies cannot extract it from there.

Computing the Availability

library(CalcOfficeHours)
sisr = RCurl::getCurlHandle(cookie = cookie("sisr.cookie"), followlocation = TRUE, cookiejar = "")
tm = mkTimes("141B", "STA", term = "202203", con = sisr)
plot(tm)

Existing and Intermediate Objects

We can break this into separate steps when we want the intermediate objects for other purposes, e.g., the roster, the student schedules.

We may already have the roster

ros = SISRTools::getRoster("141B", "202203", curl = sisr)

We can then pass this to mkTimes()

tm = mkTimes(ros = ros, con = sisr)
plot(tm)

However, we can also fetch the student schedules separately so we have them later.

tms = getStudentTimes(ros, sisr, "202203")

and then pass the result to mkTimes()

tm = mkTimes(studentTimes = tms)
plot(tm)

An example of the resulting display is

Sample

Guess when the course classes are?!

calcofficehour's People

Contributors

duncantl avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.