(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # simple AVR Makefile | |
| # | |
| # written by michael cousins (http://github.com/mcous) | |
| # released to the public domain | |
| # Makefile | |
| # | |
| # targets: | |
| # all: compiles the source code | |
| # test: tests the isp connection to the mcu |
| George Carlin INVOICE | |
| [email protected] | |
| To: Invoice #6 | |
| Stephen Hawking Date: May 13, 2014 | |
| [email protected] | |
| +-----------------------------------------------------------------+ | |
| | Quantity | Description | Unit Price | Total | |
| DOWNLOAD_HANDLERS = { | |
| 'http': 'myspider.socks5_http.Socks5DownloadHandler', | |
| 'https': 'myspider.socks5_http.Socks5DownloadHandler' | |
| } |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # useful for running ssl server on localhost | |
| # which in turn is useful for working with WebSocket Secure (wss) | |
| # copied from http://www.piware.de/2011/01/creating-an-https-server-in-python/ |
| To change a field name in django 1.7+ | |
| 1. Edit the field name in the model (but remember the old field name: you need it for step 3!) | |
| 2. Create an empty migration | |
| $ python manage.py makemigrations --empty myApp | |
| 3. Edit the empty migration (it's in the migrations folder in your app folder, and will be the most recent migration) by adding | |
| migrations.RenameField('MyModel', 'old_field_name', 'new_field_name'), | |
| to the operations list. |
| Place fonts in $HOME/.fonts or other directory of choice. | |
| Create file $HOME/.config/fontconfig/fonts.conf with following content: | |
| <?xml version="1.0"?> | |
| <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
| <!-- ~/.fonts.conf for per-user font configuration --> | |
| <fontconfig> | |
| <dir>~/.fonts</dir> | |
| </fontconfig> |
| from django.contrib import admin | |
| from polls.models import Poll, Choice | |
| from django.contrib.auth.models import User | |
| from django.contrib.admin import AdminSite | |
| from polls.views import index | |
| class MyAdminSite(AdminSite): |