Skip to content

Instantly share code, notes, and snippets.

View lungati's full-sized avatar

Samuel Lungati lungati

  • Twiga Foods
  • Kenya
  • 18:03 (UTC +03:00)
  • X @lg543ke
View GitHub Profile
@lungati
lungati / Contract Killer 3.md
Created May 4, 2017 10:39 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

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

Keybase proof

I hereby claim:

  • I am lungati on github.
  • I am lungati (https://keybase.io/lungati) on keybase.
  • I have a public key ASCU0kvNqlYN-aW2QVNl1bPVLPa9Oid6NNf3BDyt3qvt8Ao

To claim this, I am signing this object:

@lungati
lungati / download_paper.py
Last active January 11, 2016 09:07 — forked from ninenine/download_paper.py
Download Kenyan Daily Nation and Business Daily
#!/usr/env python
# coding: utf-8
import requests
from datetime import date, timedelta
from os.path import isfile, expanduser, exists, join
from os import makedirs
def getDateSuffix(t):
if 4 <= t.day <= 20 or 24 <= t.day <= 30:
@lungati
lungati / gist_javascript
Last active January 11, 2016 09:15
javascript function to count words and order by occurence
//instructions: run in the console of your browser with index page open
var i,x,
dict = [],
uniqueDict = [],
txt = document.body.textContent.toLowerCase().replace(/[&\/\\#,+()$~%.'":*?<>{}(\d+)\[\]]|[\n$]/gmi,'').trim(),
txt2 = txt.split(' ');
txt2.forEach(function (element, index) {
if(element.length>0){
reg = new RegExp('\\b'+element+'\\b','gi');