Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

bmpvieira/python101-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python 101: for biologists, by biologists

Backend for course given in 2012 at the University of Lisbon.

Purpose

Get markdown files from Dropbox and/or Github and render them to HTML5 presentations with interactive Python code examples.

Course repo

Technologies

How to print slides

Hacked way

  1. Disable Deck.js scale In: views/tmpl/base.dust Replace: $(function() {$.deck('.slide'); With: $(function() {$.deck('.slide'); $.deck('disableScale');});
  2. Disable all font color black (for syntax higlight) and :after :before none (optional) In: public/pkg/deck.js/deck.core.css Comment: @media print { * {}}
  3. Fix CodeMirror2 box size In: public/css/style.css AddTo: .deck-container .CodeMirror {} Line: font-size: 18pt !important;

Correct way (TODO)

  1. Implement everything in a print button
  2. Avoid using CSS transform, footer after, print only classes, etc in favor of something like @page { @top-left {content: element(footer)}}
  3. Disable Deck.js scale and resize CodeMirror2 font before print with button

Copyright

© 2012 Bruno Vieira

About

Back-end of the Python 101 course for biologists

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published