Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# Here is the python2 script to see StackOverflow 2015 election candidates who're going to the next phase along with their vote-counts.
# For this script to work, you must need to install Python's BeautifulSoup html parser.
# Created by Stack Overflow user Avinash Raj ( http://stackoverflow.com/users/3297613/avinash-raj )
from bs4 import BeautifulSoup
import urllib2
s = urllib2.urlopen('http://stackoverflow.com/election/6?tab=primary')
soup = BeautifulSoup(s)
@adamreisnz
adamreisnz / release.sh
Last active June 24, 2024 20:44
A script to automate merging of release branches
#!/usr/bin/env bash
# Assuming you have a master and dev branch, and that you make new
# release branches named as the version they correspond to, e.g. 1.0.3
# Usage: ./release.sh 1.0.3
# Get version argument and verify
version=$1
if [ -z "$version" ]; then
echo "Please specify a version"