GithubHelp home page GithubHelp logo

cvalerosa / prefresher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iqss/prefresher

0.0 0.0 0.0 36.63 MB

Math Prefresher Text

Home Page: https://iqss.github.io/prefresher/

License: GNU General Public License v3.0

CSS 0.06% TeX 88.71% Shell 0.17% R 11.06%

prefresher's Introduction

Math Prefresher Text

Github All Releases

(view this book on a browser or in a PDF)

The Harvard Gov Prefresher is held each year in August. All relevant information is on our website, including the day-to-day schedule. The 2019 Prefresher instructors are Shannon Parker and Meg Schwenzfeier, and the faculty sponsor is Gary King.

The booklet maintained in this repository is the text for the Prefresher, and is the accumulation of continuous improvements by previous instructors for the past 25 years (See the title page for the full list). Shiro Kuriwaki is the repository maintainer.

How the book is compiled

The text for the book is originally written in RMarkdown following the bookdown template, which allows interweaving prose and code. RMarkdown is converted into markdown (with generated code output) and again converted into a book by pandoc. Two formats are provided: a HTML version and a PDF (generated by TeX). The HTML version is hosted on a website listed above.

The repository is also associated with a set of scripts that automatically compiles and deploys the new book to the URL (https://iqss.github.io/prefresher/). Here is basically how it works:

  1. A Travis-CI app is linked to this repository. The .travis.yml file in the repository is what Travis runs.
  2. First, Travis creates a virtual machine, downloads all the materials on the master branch of the repository, starts a R session, and installs the R packages listed in DESCRIPTION.
  3. Then, according to the .travis.yml file, Travis runs the shell scripts _build.sh. This compiles the Rmd files and images into a html book format (in the virtual machine).
  4. Then, Travis runs the second script, _deploy.sh. This shell script clones the gh-pages branch of the repo into a sub-directory of the repository (called book-deploy). Then, it removes the content of that cloned copy and then copies the compiled html (in _book) into book-deploy. It tracks that contents of book-deploy and pushes it back up to the gh-pages branch.
  5. The repository is separately setup with Github Pages, which is designed to notice any index.html and associated html files in the gh-pages branch and upload the html into a book format at https://iqss.github.io/prefresher/.
  6. Every time a commit is pushed to a branch, it will trigger Travis to run procedures 1 through 6. This is the same for pull requests to merge those branches into master. Travis will check beforehand if the merged branch will compile. This is useful to test out the compilation in the cloud before you alter master.

This system follows the guidelines outline in the bookdown manual.

Contributing

This material is maintained under a GPL License, and other insturctors are welcome to fork, clone, or make copies of the material. Comments and suggestions are also always welcome.

You may also be interested in a paper about the prefresher:

The "Math Prefresher" and The Collective Future of Political Science Graduate Training, by Gary King, Shiro Kuriwaki, and Yon Soo Park.

prefresher's People

Contributors

kuriwaki avatar yonsoopark avatar tylersimko avatar hrendleman avatar schwenzfeier avatar juandodyk 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.