Skip to content

Instantly share code, notes, and snippets.

View luisnaranjo733's full-sized avatar

Luis Naranjo luisnaranjo733

View GitHub Profile
@luisnaranjo733
luisnaranjo733 / docker-compose.yml
Created March 29, 2017 01:00
Docker compose file
version: '2'
services:
nginx:
image: nginx:latest
container_name: ng01
ports:
- "8000:8000"
volumes:
- ./src:/src
- ./config/nginx:/etc/nginx/conf.d
@luisnaranjo733
luisnaranjo733 / define.py
Created September 2, 2012 22:25
A command line dictionary wrapper over the wordnik API
#!/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/
@luisnaranjo733
luisnaranjo733 / nb2html.py
Created May 16, 2012 00:29 — forked from fperez/nb2html.py
First draft of an ipython notebook html exporter for blogger
#!/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.