- Live slides
- Use and arrow keys to step through
- Video of talk from Pycon 2013
- I had the pleasure of giving this talk at Pycon 2013 in a slightly shorter form.
- Presentation markdown source
- Links to repository with actual markdown source that is used for HTML5 slides
- Landslide
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/python | |
# Dispatch - synchronize two folders | |
import os | |
import filecmp | |
import shutil | |
from stat import * | |
class Dispatch: | |
''' This class represents a synchronization object ''' |
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
from PySide import QtGui | |
class CustomSortFilterProxyModel(QtGui.QSortFilterProxyModel): | |
""" | |
Implements a QSortFilterProxyModel that allows for custom | |
filtering. Add new filter functions using addFilterFunction(). | |
New functions should accept two arguments, the column to be | |
filtered and the currently set filter string, and should | |
return True to accept the row, False otherwise. |
Do you use an usb mouse and keyboard and have laptop_mode installed under your Arch linux ? Then maybe you have the same problems as me - mouse and keyboard getting inactive every 2 seconds or so.
To solve this, go to /etc/laptop-mode/conf.d
and copy usb-autosuspend.conf
to /etc/laptop-mode/conf.d/board-specific
.
After that run lsusb
and get the ID of the usb device you want, e.g., 093a:2500
.
Open the board-specific/usb-autosuspend.conf
file and find the AUTOSUSPEND_USBID_BLACKLIST
conf option.
Put the desired usb IDs there. You might need to run sudo laptop_mode
afterwards to reload the configs.
NewerOlder