Skip to content

Instantly share code, notes, and snippets.

View thejqs's full-sized avatar

Jacob Quinn Sanders. thejqs

View GitHub Profile

Keybase proof

I hereby claim:

  • I am thejqs on github.
  • I am thatjqs (https://keybase.io/thatjqs) on keybase.
  • I have a public key ASCEPw76mMis3ryGDAXl0ov7qOdOpD34H1lcyv3By2iBPAo

To claim this, I am signing this object:

with open('iliad.txt') as iliad:
# a dictionary to collect words as keys and number of occurrences as the value
most_common_words = {}
for line in iliad:
# print(line)
# break
# make a list of words out of each line
word_list = line.split()
# print(word_list)
# break
@thejqs
thejqs / iliad_search.py
Last active February 3, 2020 03:16
search the text of The Iliad
search_term = 'Ajax'
with open('iliad.txt') as in_file:
# how many times our search_term has occurred
term_count = 0
# how many lines contain at least two of our search_term
mult_term_line = 0
# lowercase because of line.lower() below -- we want to compare lowercase only against lowercase
search_term = search_term.lower()
for line in in_file:
line = line.lower()
### Keybase proof
I hereby claim:
* I am thejqs on github.
* I am thejqs (https://keybase.io/thejqs) on keybase.
* I have a public key ASCOU7USqHuPuVQh0gqIDLDTQrtqCnZbkA_t_u9OxNxh5wo
To claim this, I am signing this object:
var stores = []
var unicorns = []
var uniques = new Set()
var layer = new L.StamenTileLayer('toner-background')
var southWest = L.latLng(39, -81)
var northEast = L.latLng(44, -74)
var bounds = L.latLngBounds(southWest, northEast)
var map = new L.Map('map', {maxBounds: bounds, minZoom: 7}).setView([41, -77.5], 8).locate({setView: true, maxZoom: 10})
map.addLayer(layer)