Skip to content

Instantly share code, notes, and snippets.

Allison Parrish aparrish

Block or report user

Report or block aparrish

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
@aparrish
aparrish / understanding-word-vectors.ipynb
Last active Aug 17, 2019
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
View understanding-word-vectors.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / spacy-extraction-medley.ipynb
Created Aug 1, 2019
Example code for extracting things with spacy and writing them out to text files and then reading them in again.
View spacy-extraction-medley.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / enough-python.ipynb
Last active Jul 29, 2019
Just enough Python!
View enough-python.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / pronouncing-sonnets.ipynb
Last active Jul 25, 2019
A quick demonstration of using the CMU rhyming dictionary (and the pronouncing python module) to compose sonnets. Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
View pronouncing-sonnets.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / spacy_intro.ipynb
Last active Jul 25, 2019
NLP Concepts with spaCy. Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
View spacy_intro.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / environment.yml
Last active Jul 23, 2019
Flat, randomness, curves, asemic writing
View environment.yml
name: rwet
channels:
- conda-forge
dependencies:
- python
- numpy
@aparrish
aparrish / semantic_similarity_chatbot.ipynb
Created Jul 17, 2018
Semantic similarity chatbot (with movie dialog). Gist mirror of Colab notebook here: https://colab.research.google.com/drive/1XlmtcyMdPRQC6bw2HQYb3UPtVGKqUJ0a Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
View semantic_similarity_chatbot.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / inform7_assertions.txt
Created Jul 9, 2014
"Inform 7 Assertions," a series of prose poems generated from "Writing with Inform" (http://inform7.com/learn/man/WritingWithInform.txt). I found every indented code snippet in the book that contained the phrase "is a(n)" and sorted them in alphabetical order.
View inform7_assertions.txt
A Bee Chamber is a kind of room. The printed name of a Bee
Chamber is usually "Hexagonal Room". The description of a
Bee Chamber is usually "Waxy, translucent walls surround
you on six sides; the floor and ceiling are made of the
same material, gently uneven. There are exits in every
direction, cut into the faces or the corners."
A Bengal tiger is a kind of animal.
A DVD is a kind of artwork.
@aparrish
aparrish / facebook_app_token.py
Last active Jun 18, 2019
simple python script to fetch an access token for a Facebook application (not a user token)
View facebook_app_token.py
# fetch an access token for a Facebook application
#
# run like so:
#
# $ python facebook_app_token.py --app_id=<your app id> --secret=<your secret>
#
# ... where <your app id> is your Facebook application ID, and <your secret>
# is the application secret for that application (both can be retrieved from
# the Facebook developer app)
@aparrish
aparrish / fitbit_auth_example.py
Created Jan 6, 2013
A simple Tornado application that implements OAuth login and authenticated requests for Fitbit.
View fitbit_auth_example.py
# simple tornado app that implements fitbit oauth login.
# requires tornado 2.4-ish. run on the command line like so:
# $ python fitbit_auth_example.py --port=<your port> \
# --fitbit_consumer_key=<your consumer key> \
# --fitbit_consumer_secret=<your consumer secret>
#
# make sure to set your fitbit app's callback URL to
# http://your-app-url.example.com/login
import tornado.web
You can’t perform that action at this time.