Skip to content

Instantly share code, notes, and snippets.

Reuben Cummings reubano

View GitHub Profile
@reubano
reubano / README.md
Created May 9, 2018 — forked from twolfson/README.md
Terms of use and privacy policy evaluation
View README.md
@reubano
reubano / sitemap_checker.py
Last active Nov 15, 2017 — forked from ndunn219/sitemap_checker.py
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 https://www.webucator.com/blog/2016/05/checking-your-sitemap-for-broken-links-with-python/
View sitemap_checker.py
import requests
from bs4 import BeautifulSoup
sitemap = 'http://www.nasa.gov/sitemap/sitemap_nasa.html'
r = requests.get(sitemap)
html = r.content
soup = BeautifulSoup(html, 'html.parser')
links = soup.find_all('a')
@reubano
reubano / ghi-setup.md
Last active Aug 21, 2017
GHI (github-issues) setup steps
View ghi-setup.md
gem install ghi
open https://github.com/settings/tokens 
echo 'generate a personal access token for ghi with repo permissions'
git config --global ghi.token <GHI_TOKEN_WITH_REPO_PERMS>
View examples.md

manage

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

positional arguments:
  {runserver,serve,lint,test,shell}
    runserver           Runs the flask development server Overrides the built-
                        in `runserver` behavior
View requirements.txt
boto3==1.4.4
s3fs==0.1.1
pydicom==0.9.9
@reubano
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 = io.read('kibo_peak.geojson')
@reubano
reubano / count_votes
Last active Jun 20, 2017
Voting script and sample ballot file used for [Open Data Day Arusha 2017](https://www.reubano.xyz/blog/arusha-s-first-open-data-day/)
View count_votes
#!/usr/bin/env python2
#
import csv, sys
from io import open
from collections import defaultdict
from pyvotecore.schulze_stv import SchulzeSTV
notation = SchulzeSTV.BALLOT_NOTATION_RANKING
@reubano
reubano / Digital Project - Development Contract - Agency (or Company) to Freelancer.md 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 Freelancer.md

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
reubano / Contract Killer 3.md
Last active Oct 17, 2016 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer 3.md

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

View markdown.md

Markdown example

Markdown let's you do stuff like:

  • make bold text
  • or write in italics
  • and even strikethrough
You can’t perform that action at this time.