Skip to content

Instantly share code, notes, and snippets.

View JonathanReeve's full-sized avatar

Jonathan Reeve JonathanReeve

View GitHub Profile
@JonathanReeve
JonathanReeve / dhsi-twitter-bot.py
Created June 5, 2019 14:57
The Twitter Bot "Alternate DHSIs," which finds DHSI initialisms from Project Gutenberg texts.
import re
import requests
import json
import time
import tweepy
from secrets import *
# This requires that you have a file, secrets.py
# Which contains the keys below.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JonathanReeve
JonathanReeve / word-embeddings.ipynb
Created August 6, 2018 21:09
Jonathan: word embeddings
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JonathanReeve
JonathanReeve / spacy-experiments.ipynb
Created February 23, 2018 21:51
Spacy Experiments
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JonathanReeve
JonathanReeve / gatsby-characters-PCA.ipynb
Last active November 5, 2016 19:01
Gatsby Characters PCA
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JonathanReeve
JonathanReeve / git-pull.php
Created February 22, 2015 16:12
Push to deploy with GitHub. This script performs a "git pull" on a webserver when it receives a webhook post signal from GitHub.
<?php
// When used in conjunction with GitHub web hooks, this script listens for
// a signal from GitHub. When GitHub tells us that the master or develop
// branches of our repo have been updated, we change into those directories
// and run `git pull`, which updates our code to the latest version.
function print_log( $log ) {
file_put_contents( 'logs/github.txt', print_r( $log, TRUE ), FILE_APPEND );
}
@JonathanReeve
JonathanReeve / issue-scraper
Created January 13, 2015 21:13
GitHub issue scraper to print issues from multiple repositories containing a label
#Not yet working!
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
import requests
import json