This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
nginx: | |
image: nginx:latest | |
container_name: ng01 | |
ports: | |
- "8000:8000" | |
volumes: | |
- ./src:/src | |
- ./config/nginx:/etc/nginx/conf.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
I frequently look up word meanings online. | |
It's kind of a hassle to fire up the browser, and search online after a while. | |
It's a lot easier for me to do it from the command line, when my terminal is one keyboard shortcut away. | |
I wrote this script using the wordnik api that does just that. | |
I suggest you put this somewhere in your PATH, make it executable. | |
Make sure you get a Wornik API key at http://developer.wordnik.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""A really simple notebook to rst/html exporter. | |
Usage | |
./nb2html.py file.ipynb | |
Produces 'file.rst' and 'file.html', along with auto-generated figure files | |
called nb_figure_NN.png. |
NewerOlder