Skip to content

Instantly share code, notes, and snippets.

@zyocum
zyocum / William-B-Taylor-2019-06-22.txt
Created October 23, 2019 02:06
Opening Statement of Ambassador William B. Taylor - October 22, 2019
Opening Statement of Ambassador William B. Taylor - October 22, 2019
Mr. Chairman, I appreciate the opportunity to appear today to provide my perspective on the events that are the subject of the Committees’ inquiry. My sole purpose is to provide the Committees with my views about the strategic importance of Ukraine to the United States as well as additional information about the incidents in question.
I have dedicated my life to serving U.S. interests at home and abroad in both military and civilian roles. My background and experience are nonpartisan and I have been honored to serve under every administration, Republican and Democratic, since 1985.
For 50 years, I have served the country, starting as a cadet at West Point, then as an infantry officer for six years, including with the 101“ Airborne Division in Vietnam; then at the Department of Energy; then as a member of a Senate staff; then at NATO; then with the State Department here and abroad—in Afghanistan, Iraq, Jerusalem, and Ukraine; and more rece
@zyocum
zyocum / automata.py
Last active July 24, 2019 22:17
1-Dimensional Cellular Automata
#!/usr/bin/env python3
"""Generate 1-dimensional automata based on various rules"""
def ngrams(iterable, n=1):
"""Generate ngrams from an iterable"""
return zip(*(iterable[i:] for i in range(n)))
def states(state, rule, left_pad='0', right_pad='0'):
"""Generate a stream of states from an initial state and a rule"""
next_state = ''.join(rule[''.join(window)] for window in ngrams(state, 3))
@zyocum
zyocum / scrape_limecrime.py
Last active February 5, 2019 00:55
Scrape Limecrime
#!/usr/bin/env python3
"""Collect data from limecrime.com"""
import json
from requests_html import HTMLSession
LIMECRIME = 'https://www.limecrime.com/'
#!/usr/bin/env python3
"""Compute pair-wise cluster-level comparison metrics
These metrics are proposed by:
https://www.cs.umd.edu/class/spring2012/cmsc828L/Papers/MenestrinaVLDB10.pdf"""
import random
from string import ascii_lowercase as alphabet
from math import sqrt, log
@zyocum
zyocum / sVim.css
Created April 28, 2018 03:01
sVimcss
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#sVim-command {
@zyocum
zyocum / sVim.rc
Last active April 28, 2018 03:52
sVimrc
" Settings
set nosmoothscroll
let fullpagescrollpercent = 100
let lastactivetablimit = 50;
let lastclosedtablimit = 50;
let scrollduration = 25
let scrollstep = 65
let zoomstep = 15
let hintcharacters = "1234567890";
@zyocum
zyocum / scrape_assist2sell.py
Last active February 10, 2018 16:58 — forked from theriley106/housingScrape.py
Scraping Valid Addresses from all US ZipCodes
#!/usr/bin/env python3
"""Scrape first 10 address results for each U.S. Zip Code from assist2sell.com"""
import json
import sys
from itertools import chain
import zipcode as zc
@zyocum
zyocum / init.lua
Created December 22, 2017 22:12
Hammerspoon config
-----------------------------------------------
-- Set up
-----------------------------------------------
local hyper = {"cmd", "alt", "ctrl"}
hs.window.animationDuration = 0.05
-----------------------------------------------
-- hyper left for left one half window
#!/usr/bin/env python3
"""Compute pair-wise cluster-level comparison metrics
These metrics are taken from:
https://www.cs.umd.edu/class/spring2012/cmsc828L/Papers/MenestrinaVLDB10.pdf"""
import random
from string import ascii_lowercase as alphabet
from math import sqrt, log
* activities
* cooking
* dining
* fitness
* gaming
* recreation
* beleif
* religion
* secular
* care