https://github.com/banool/pycon-au-2019
Code snippets from my Pycon AU 2019 presentation
https://github.com/banool/pycon-au-2019
Last synced: 9 months ago
JSON representation
Code snippets from my Pycon AU 2019 presentation
- Host: GitHub
- URL: https://github.com/banool/pycon-au-2019
- Owner: banool
- Created: 2019-06-29T19:25:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-03T20:38:34.000Z (almost 7 years ago)
- Last Synced: 2025-06-20T18:46:54.163Z (12 months ago)
- Language: JavaScript
- Size: 6.34 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pycon AU 2019
## No time to idle about: Profiling import time in Python
**YouTube recording:** TBA
This repo holds all the code snippets (and much more) from my presentation at Pycon AU 2019.
This time around I'm using [pipenv](https://github.com/pypa/pipenv) to specify requirements, Python version, etc. Before playing with these snippets, run `pipenv install` from this directory and source the environment with `pipenv shell`.
See the summary for my presentation here: https://2019.pycon-au.org/talks/no-time-to-idle-about-profiling-import-time-in-python
There is also a PDF of the presentation. I haven't included the source itself in case FB doesn't want other people using their slide deck, but later on I might migrate the speech to a non-fb slide deck and upload it here 😀😀🐍🐍.
To generate all of the output and have a look, try something like this:
```
echo 0_simple/ 1_simple_36/ 2_simple_faster/ 3_shared_import/ 4_unclear/ 5_demandimport/ | tr ' ' '\n' | xargs -n 1 python generate.py
python3 -m http.server
```
Btw to copy code snippets into Keynote, you can do the following:
- Open Terminal (Terminal.app, not iTerm 2).
- Open your code in vim. Get yourself a nice theme with a black background.
- Increase the size of the text. I got it to where it would paste into Keynote as size 48 Menlo font.
- Copy the code into a text box in Keynote. Put a black box behind the text.