svg Vertically and horizontally responsive circle with text Recently in building out a dashboard to show the number of github issues for a given search, I wanted to show a circle containing a count. When we think about responsiveness in web pages we mostly think about making things that respond to a horizonal constraint. However, for a dashboard,
ReStructuredText Including parts of README.rst in your sphinx docs This will probably be of use to about 3 people, and I'm one of them. If you feel your eyes glazing over, don't fret and look at this kitten picture instead: The problem I wanted to add some content to both our docs (built via sphinx
Code Ubuntu: Spotify Screensaver Toggle New version: I've updated the script to use D-bus with spotify for Linux version 0.4.8 see Spotify Screensaver Toggle with D-bus [https://muffinresearch.co.uk/archives/2010/11/03/spotify-screensaver-toggle-with-dbus/] for further information. In a previous post, Lock Screen and Pause Spotify [https://muffinresearch.co.uk/
Code Python: Transposing Lists With map and zip I'm re-writing a piece of code to print into columns within a terminal and I wanted to join the nth items of each list together. Zip allows you to do just that >>> my_list=[[1,2,3],[4,5,6],[7,8,9,10]] >
Code Loopy Control Structures Tim's Loopy Control Structures [http://nefariousdesigns.co.uk/archive/2006/05/loopy/] is an in-depth post detailing the ins and outs of programming control structures. Makes good follow up reading as to my recent getElementsByClassName script [https://muffinresearch.co.uk/archives/2006/04/29/getelementsbyclassname-deluxe-edition/]. Tim was one
Code Regex Buddy I have had Regex Buddy [http://www.regexbuddy.com/] for both windows and Linux for about 4/5 months now and I really don't know what I would do without it. Regex buddy makes it easy to build up regular expressions with the explanation for each step of