Skip to content

Instantly share code, notes, and snippets.


Reuben Cummings reubano

View GitHub Profile
reubano / get_title_and_url_from_front_browser.applescript
Last active Sep 5, 2019 — forked from dongyuwei/get_title_and_url.applescript
Applescript to get frontmost tab’s url and title of various browsers.
View get_title_and_url_from_front_browser.applescript
# This example will return both the URL and title for the frontmost tab of the active browser, separated by a newline.
# Keep in mind that by using `using terms from`, we’re basically requiring that referenced browser to be available on the system
# (i.e., to use this on "Google Chrome Canary" or "Chromium", "Google Chrome" needs to be installed).
# This is required to be able to use a variable in `tell application`. If it is undesirable, the accompanying example should be used instead.
tell application "System Events" to set frontApp to name of first process whose frontmost is true
set currentTabUrl to ""
set currentTabTitle to ""
if (frontApp is "Safari") or (frontApp is "Webkit") then
reubano /
Created May 9, 2018 — forked from twolfson/
Terms of use and privacy policy evaluation
reubano /
Last active Nov 15, 2017 — forked from ndunn219/
This code shows how to check a sitemap to make sure there are no links pointing to missing pages and to see if 301s are working correctly. It is explained at
import requests
from bs4 import BeautifulSoup
sitemap = ''
r = requests.get(sitemap)
html = r.content
soup = BeautifulSoup(html, 'html.parser')
links = soup.find_all('a')
reubano /
Last active Aug 21, 2017
GHI (github-issues) setup steps
gem install ghi
echo 'generate a personal access token for ghi with repo permissions'
git config --global ghi.token <GHI_TOKEN_WITH_REPO_PERMS>


usage: manage [-m CONFIG_MODE] [-f CONFIG_FILE] [-?]
              {runserver,serve,lint,test,shell} ...

positional arguments:
    runserver           Runs the flask development server Overrides the built-
                        in `runserver` behavior
View requirements.txt
reubano / geopython_meza_demo.rst
Last active May 11, 2017
Code from my GeoPython talk
View geopython_meza_demo.rst
pip install meza
# readers
>>> from meza import io
>>> records ='kibo_peak.geojson')
reubano / count_votes
Last active Jun 20, 2017
Voting script and sample ballot file used for [Open Data Day Arusha 2017](
View count_votes
#!/usr/bin/env python2
import csv, sys
from io import open
from collections import defaultdict
from pyvotecore.schulze_stv import SchulzeSTV
reubano / Digital Project - Development Contract - Agency (or Company) to Example contract for use by Creative, Digital and Marketing Agencies (or any company for that matter) to use when contracting a Freelance Web Developer on digital projects.
View Digital Project - Development Contract - Agency (or Company) to

I've shared this contact for use by Creative, Digital and Marketing Agencies (or any company for that matter) to use when contracting a Freelance Web Developer on digital projects. Feel free to fork, amend and use for your own projects however please be nice and credit where credit is due and take a note of the disclaimer on this document.

My aim is to create a realistic, agreeable contract with as little unreadable jargon as possible. Hopefully this example contract achieves that and is useful to you, feel free to comment so I can amend.

PS: feel free to remove this section (of course) when using in your final docs.


reubano / Contract Killer
Last active Oct 17, 2016 — forked from malarkey/Contract Killer
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

You can’t perform that action at this time.