Skip to content

Instantly share code, notes, and snippets.

View azylstra's full-sized avatar

Alex Zylstra azylstra

View GitHub Profile
@azylstra
azylstra / apod.py
Last active September 15, 2018 23:46
A simple python3 script to automatically download the latest Astronomy Picture of the Day (APOD) as an image and set it as the desktop background for all spaces in OS X. Because OS X is a bit unfriendly in how it lets you change the background, python launches an applescript that steps through each space individually. Note that this assumes you …
#!/usr/bin/env python3
# Download the daily APOD picture and set it as the system wallpaper on OS X
# @author Alex Zylstra
# @date 2013/10/05
__author__ = 'Alex Zylstra'
__date__ = '2013-10-05'
import urllib.request
import os
@azylstra
azylstra / WindowManager.py
Created March 29, 2014 22:32
Python/tkinter window manager
# The MIT License (MIT)
# Copyright (c) 2014 Alex Zylstra
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: