Skip to content

Instantly share code, notes, and snippets.

Avatar

Joseph Friedrich ch7ck

  • Oakland, CA
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am ch7ck on github.
  • I am j0elog (https://keybase.io/j0elog) on keybase.
  • I have a public key whose fingerprint is 25D5 843D C798 EBC4 07FB 3402 E5D6 ECAC B9D4 D11E

To claim this, I am signing this object:

@ch7ck
ch7ck / whiteboardCleaner.md
Created Jun 3, 2019 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!
View whiteboardCleaner.md

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@ch7ck
ch7ck / topThirtyHN.py
Created Nov 22, 2016
Grab top 30 HN Titles
View topThirtyHN.py
#!/usr/bin/python
#TODO
import requests
from bs4 import BeautifulSoup
r = requests.get('http://news.ycombinator.com')
soup = BeautifulSoup(r.text, 'lxml')
@ch7ck
ch7ck / US Zip Codes from 2013 Government Data
Created Nov 9, 2016 — forked from erichurst/US Zip Codes from 2013 Government Data
All US zip codes with their corresponding latitude and longitude coordinates. Comma delimited for your database goodness. Source: http://www.census.gov/geo/maps-data/data/gazetteer.html
View US Zip Codes from 2013 Government Data
This file has been truncated, but you can view the full file.
ZIP,LAT,LNG
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158345, -66.932911
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.445147, -66.559696
View keybase.md

Keybase proof

I hereby claim:

  • I am ch7ck on github.
  • I am j0elog (https://keybase.io/j0elog) on keybase.
  • I have a public key whose fingerprint is 25D5 843D C798 EBC4 07FB 3402 E5D6 ECAC B9D4 D11E

To claim this, I am signing this object:

View Abbreviations.py
US_states = {
'AK': 'Alaska',
'AL': 'Alabama',
'AR': 'Arkansas',
'AS': 'American Samoa',
'AZ': 'Arizona',
'CA': 'California',
'CO': 'Colorado',
'CT': 'Connecticut',
'DC': 'District of Columbia',
You can’t perform that action at this time.