- bootstrap with typeahead
- jquery
This will use bootstrap with typeahead to create an autocomplete search.
| from scrapy.utils.project import get_project_settings | |
| def stop_reactor(): | |
| reactor.stop() #Stops reactor to prevent script from hanging | |
| if __name__ == '__main__': | |
| #Handles engine_stopped to stop twisted reactor | |
| dispatcher.connect(stop_reactor, signal=signals.engine_stopped) | |
| #!/usr/bin/env python | |
| # http://www.rabbitmq.com/tutorials/tutorial-two-python.html | |
| import pika | |
| import sys | |
| connection = pika.BlockingConnection(pika.ConnectionParameters( | |
| host='localhost')) | |
| channel = connection.channel() | |
| message = ' '.join(sys.argv[1:]) or "Hello World!" |
| Function | Shortcut |
|---|---|
| previous tab | ⌘ + left arrow |
| next tab | ⌘ + right arrow |
| go to tab | ⌘ + number |
| go to window | ⌘ + Option + Number |
| go to split pane by direction | ⌘ + Option + arrow |
| go to split pane by order of use | ⌘ + ] , ⌘ + [ |
| split window horizontally (same profile) | ⌘ + D |
| split window vertically (same profile) | ⌘ + d |
| # install via MacPorts | |
| sudo port install openssl | |
| sudo env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/opt/local/lib" CFLAGS="-I/opt/local/include" pip install cryptography | |
| # install via Homebrew | |
| brew install openssl | |
| env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include" pip install cryptography |