Skip to content

yodebu/peripheral_brain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Science Peripheral Brain

There is a concept in the field of medical education that I have always loved: the peripheral brain. Like many fields, the amount of medical information — from studies to surgical techniques — a medical student or doctor has to know is massive. The most important information becomes part of our long-term memory, but what about the rest? It goes in a peripheral brain: a repository of all the knowledge that is important, but not important enough to keep in your head.

Like medicine, data science has a staggering amount of information — from linear regression to SQL to causal logic. It is frankly why some of us love this field: there is always something new to learn. Taking a lesson from medicine, ChrisAlbon.com is my peripheral brain on data science and quantitative political science.

Specifically, it is a colleciton of iPython Notebooks covering everything from web scraping in Python to basic mathematics to statistics. This website is static, each ipynb file is "wrapped" in an html template for styling.

The workflow for adding posts is as follows:

  1. Write a post in an iPython Notebook.
  2. Export the ipynb file to basic html.
  3. Paste the header and footer in template.partial above and below the notebook's contents (and change the title), respectively.
  4. Add the html file and ipynb file to the appropriate folder.
  5. Edit index.html to add a link to the html file.

Repo Structure:

  • index.html - The site's homepage.
  • readme.md - This file.

assets/

This is a folder to place the assets used to create the site that might be useful later.

  • assets/clean-templates/ipython_nb_css_raw.css - The original css file used to style ipython notebooks. This is kept around just in case as reference.

  • cassets/clean-templates/main-template-bare-bones.html - The bare bones html5 template with incredible notes.

  • assets/clean-templates/main-template-no-comments.html - The bare bones html5 template with no notes.

  • html/nb_to_html_all.command - A script for converting all .pynb files in the current directory into their basic template.

  • html/nb_to_html_single.command - A script for converting a single .pynb file into its basic template.

  • template.partial - A partial file containing the header and footer used to wrap the ipython notebooks.

css/

  • css/normalize_legacy.css - A css file to normalize between browsers.
  • css/normalize.css - A css file to normalize between browsers.
  • css/notebooks.css - A css file for styling the notebooks get are pasted in.
  • css/styles.css - A css file to style the site.

python | regex | rstats etc

A folder containing the ipython notebooks and html files.

js/

Javascript a file to fix ie9 problems.

Credits

About

A collection of tutorials and posts on data science, quantitiatve research, and scientific programming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages