Skip to content

Instantly share code, notes, and snippets.

Allison Morgan allisonmorgan

Block or report user

Report or block allisonmorgan

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
@allisonmorgan
allisonmorgan / acronym_count.txt
Last active Oct 23, 2018
Counting punctuation in DBLP titles
View acronym_count.txt
1959 2 80
1960 0 9
1961 0 26
1962 7 147
1963 1 13
1964 4 42
1965 4 75
1966 20 157
1967 37 279
1968 65 549
View test_webdriver.py
from requests.packages.urllib3.exceptions import InsecureRequestWarning
from selenium import webdriver
def get_url(url):
print("Requesting fresh HTML")
driver = webdriver.Safari()
res = driver.get(url)
r = driver.page_source
driver.close()
@allisonmorgan
allisonmorgan / intro.md
Last active Jul 18, 2018
Salsa Analysis
View intro.md

Steps to evaluating salsa success:

  1. Used an API to get information on 500 recipes which contain the query string “salsa” and have been classified as a “condiment or sauce”.

  2. Tried to clean and stem the ingredients from these recipes the best I could (see util.py). Note in some cases the ingredient was listed ambiguously: onion, versus red, white or green onion. I did not standardize on those.

The process resulted in a feature matrix of each recipe (500 rows by 228 ingredients). Each row is filled with zeros or ones indicating the presence of an ingredient. (Information about amounts was much trickier to obtain and standardize.)

  1. Ran an ordered logistic regression model for predicting these recipes ratings (scale of 1 to 5), where my covariates were the first 60 most common ingredients (these ingredients described 90% of all recipes). The significant variables (p < 0.05) were:
View sudoku.py
"""
The Sudoku Problem Formulation for the PuLP Modeller
https://github.com/coin-or/pulp/blob/master/examples/Sudoku1.py
Authors: Antony Phillips, Dr Stuart Mitcehll
Adapted: Allison Morgan (12/27/2017)
"""
# Import PuLP modeler functions
from pulp import *
@allisonmorgan
allisonmorgan / cookie_count.ipynb
Last active Dec 13, 2017
Code for generating cookie bar charts
View cookie_count.ipynb
@allisonmorgan
allisonmorgan / nips.txt
Created Sep 13, 2017
NIPS titles with low creativity (temperature = 0.1)
View nips.txt
A Constrained Visual Search in the Sparse Prediction of Spiking Neurons
A Convex Optimization of Continuous Speech Recognition
Statistical Models
A Sparse Probabilistic Inference for Sparse Prediction of Sparse Prediction of Sparse Parameter for Sparse Prediction of Spiking Neurons
A Constrained Structured Stochastic Gradient Descent and Control of Spiking Neurons
A Constrained Structured Structured Stochastic Gradient Methods for Multi-Class Detection with a Single Channel Machines
A Continuous Speech Recognition
Sparse Prediction of Sparse Prediction of Sparse Parallel Probabilistic Models
A Model of Semi-Supervised Learning of Statistical Models
A Constrained Learning of Spiking Neurons
@allisonmorgan
allisonmorgan / chi.txt
Created Sep 13, 2017
CHI titles with high creativity (temperature = 0.9)
View chi.txt
Social LifeBiers
The Scace: Interaction Using Competed Strategy for Enhancing Graphs
Awareness of Psychological Streams & Hots Using Hand Getting Medical Text Tracking Systems
Graphical exploration system for a design" by design symposium
From Mythology: The Desktop DIY versus Automation Between Cyberspaces
Workplace: A Multimodal Anary and Bray Models Behavior using Collaborative Center in the Classroom
Designing design and improving community in examination
Exploring evaluation, and new technical convergents in review participatory design
Practical techniques for social responses to incragre
A Single Practical Long Works for Architectural Impairment around Organizations
@allisonmorgan
allisonmorgan / chi.txt
Created Sep 13, 2017
CHI titles with low creativity (temperature = 0.1)
View chi.txt
A comparative methods for the design of a study of the design of a study of the social and the design of a study
The effect of computer interaction to support selection techniques for computer interaction
The effect of the contextual interaction to support context
Streaming and the contextual design for the role of the contextual interaction
The effect of selection techniques for computer interaction
The effect of the context of the interactive strategies for the effects of a study of the design of a study of a study of a study
Comparing and the design of a study of the design of a study of the design of a study of the design of a study of a computer interaction
The effect of the contextual design for the design of a study of a study of a study of the context
Streaming the effect of computer interaction in the context
Statistical interaction in the wild: a study of a study of a study of the web
@allisonmorgan
allisonmorgan / scrape_medium.py
Last active Sep 13, 2017
Python script for grabbing popular Medium headlines from the Internet Archive
View scrape_medium.py
from bs4 import BeautifulSoup
import requests
# Request archive listing from InternetArchive
r = requests.get("http://web.archive.org/cdx/search/cdx?url=medium.com/topic/popular")
# Collect every available archived version
titles = []
version = "https://web.archive.org/web/{timestamp}/https://medium.com/topic/popular"
@allisonmorgan
allisonmorgan / medium.txt
Last active Sep 12, 2017
Medium headline (mid-level creativity)
View medium.txt
The Fat After Website About You disian of the World
The Netrrobility is a Newsigation of Exactual
The Company isn’t the Startup in a blockchains considers with the Best a list of the week advice about the week #89
All Office Accaling The World you should program on of the really can a not in the news why you should process on the week #87
The Saily Back About Live the Wonder for Movie Movie Scens
The Failed in American And The Bealing the Best Movie Reading to Get And The Better an About My Best Not of Actually Season is Actually Internet Working in a Better the Best The Best Movie Startup People With You Don’t Have That Trump Billions Their Services Is Story of Startups Are Than Web the Best Mave Your Life Mover About I Company Sans Thrones Are Life People Marked From Progressive It Trans
Creating a fround in the Best Google First Off My Story in And The World an App Sex a Successful
The Internet With You Don’t Have a Do Story of The Best The State About We distipt’ Silicon and Me Prillions Friends About The
You can’t perform that action at this time.