Skip to content

Instantly share code, notes, and snippets.

🙃
Needs Coffee.

Tony Boyles AABoyles

🙃
Needs Coffee.
Block or report user

Report or block AABoyles

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ScrapeRAZ.js
# From https://s3.us-east-2.amazonaws.com/podcast.intelligence.org/razmedia/razfeed.xml
let vals = []
document.querySelectorAll('rss channel item link').forEach(l => {
if(l.innerHTML) vals.push(l.innerHTML)
})
copy(vals.join('\n'))
# save as [urls.txt](https://gist.githubusercontent.com/AABoyles/da593afbbdea77aaa593b40f375695ca/raw/df2e2bbadc174b0cbadfdc47eafb01f1cccb7fe6/urls.txt)
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>MicrobeTrace</title>
<link rel="canonical" href="https://microbetrace.cdc.gov/" />
</head>
<body>
<noscript>
View index.html
<html>
<head>
<style>
html, body {
height: 100%;
}
</style>
</head>
<body>
<script src="https://d3js.org/d3.v5.min.js"></script>
@AABoyles
AABoyles / run.sh
Last active May 9, 2018
Set up a Mac to build MicrobeTrace
View run.sh
#!/bin/bash
# Step 1: Download Node
curl https://nodejs.org/dist/v10.0.0/node-v10.0.0-darwin-x64.tar.gz | tar -xz
# Step 2: Install Node
export PATH=/Users/`whoami`/node-v10.0.0-darwin-x64/bin:$PATH
# Step 3: Download MicrobeTrace
git clone https://github.com/CDCgov/MicrobeTRACE.git && cd MicrobeTrace
@AABoyles
AABoyles / SCF.R
Created Jan 26, 2017
SupremeCourtFill
View SCF.R
library(readr)
library(dplyr)
nominees <- read_csv("https://docs.google.com/spreadsheets/d/1xsjTL6DbfEyR57MoZD3lIG8tTU-yblRA9ehQuaoj9Wg/pub?gid=0&single=true&output=csv")
confirmations <- nominees %>%
filter(Result == "confirmed")
longConfirmations <- confirmations %>%
filter(Days > 62)
View keybase.md

Keybase proof

I hereby claim:

  • I am aaboyles on github.
  • I am aaboyles (https://keybase.io/aaboyles) on keybase.
  • I have a public key whose fingerprint is 2D01 6EB3 79A8 368C 05F4 B9EB 118A F15A CF8A 3984

To claim this, I am signing this object:

@AABoyles
AABoyles / ocr
Last active Mar 8, 2016
scripts
View ocr
#!/usr/bin/env bash
# Dependencies: tesseract-ocr imagemagick scrot xsel
SCR_IMG=`mktemp`
trap "rm $SCR_IMG*" EXIT
scrot -s $SCR_IMG.png
mogrify -modulate 100,0 -resize 400% $SCR_IMG.png #should increase detection rate
tesseract $SCR_IMG.png $SCR_IMG &> /dev/null
cat $SCR_IMG.txt | xsel -bi
View bad.py
import random
exclusive = 0
def bad(thing_name, chance):
x = random.random()
if x < chance:
print (thing_name)
if thing_name in ("The person is in prison", "The person is on probation", "The person is in a nursing home", "The person is unemployed"):
exclusive = 1
@AABoyles
AABoyles / ocr.sh
Created Oct 23, 2015
Run this, select a screen region with some un-copyable text, and paste it like normal text.
View ocr.sh
#!/bin/bash
# Dependencies: tesseract-ocr imagemagick scrot xsel
SCR_IMG=`mktemp`
trap "rm $SCR_IMG*" EXIT
scrot -s $SCR_IMG.png
mogrify -modulate 100,0 -resize 400% $SCR_IMG.png #should increase detection rate
tesseract $SCR_IMG.png $SCR_IMG &> /dev/null
cat $SCR_IMG.txt | xsel -bi
@AABoyles
AABoyles / Resume.md
Created Oct 15, 2015
My Resume. In Markdown.
View Resume.md

Anthony A. Boyles

Contact

Anthony@Boyles.cc (617) 935-5515 AABoyles.com

Work Experience

You can’t perform that action at this time.