A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| """ | |
| Add copy to clipboard from IPython! | |
| To install, just copy it to your profile/startup directory, typically: | |
| ~/.ipython/profile_default/startup/ | |
| Example usage: | |
| %clip hello world | |
| # will store "hello world" | 
| # -*- coding: utf-8 -*- | |
| """ | |
| wakatime.amqp | |
| ~~~~~~~~~~~~~ | |
| Setup for Celery distributed task queue. | |
| """ | |
| import socket | 
| # Initialize the scroll | |
| page = es.search( | |
| index = 'yourIndex', | |
| doc_type = 'yourType', | |
| scroll = '2m', | |
| search_type = 'scan', | |
| size = 1000, | |
| body = { | |
| # Your query's body | |
| }) | 
Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
| [ { "gentilico" : "afegãne", | |
| "nome_pais" : "Afeganistão", | |
| "nome_pais_int" : "Afghanistan", | |
| "sigla" : "AF" | |
| }, | |
| { "gentilico" : "sul-africana", | |
| "nome_pais" : "África do Sul", | |
| "nome_pais_int" : "South Africa", | |
| "sigla" : "ZA" | |
| }, |