(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.
(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.
Install the line_profiler
module:
[driti@ubuntu ]$ pip install line_profiler
Add the @profile
decorator and run:
[driti@ubuntu ]$ kernprof.py -l -v example.py
#!/bin/bash | |
# Updates your desktop with an hourly updated image from (in this case Ocean Beach, SF) a webcam jpeg url. | |
# Uses: cronjob, curl, convert, gsettings | |
# Example screenshot: https://dl.dropbox.com/u/1907097/live_webcam_wallpaper_ubuntu.png | |
# My cronjob setup, runs on minute :01 every hour | |
# 1 * * * * /path/to/live_webcam_wallpaper_ubuntu.sh &> /dev/null | |
if [[ -z "$DBUS_SESSION_BUS_ADDRESS" ]]; then | |
source "$HOME/.dbus/session-bus"/*-0 && export DBUS_SESSION_BUS_ADDRESS |