Install the Java prerequisite:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mirror of the instructions available here: | |
# http://www.lowefamily.com.au/2016/06/02/installing-ubiquiti-unifi-controller-5-on-raspberry-pi/ | |
# | |
# These commands CANNOT be run in a script. | |
# They're just for reference. | |
# Install on Raspbian Jessie, or upgrade from Wheezy. | |
# Make sure all packages are upgraded (update && upgrade). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sim(word1, word2, lch_threshold=2.15, verbose=False): | |
"""Determine if two (already lemmatized) words are similar or not. | |
Call with verbose=True to print the WordNet senses from each word | |
that are considered similar. | |
The documentation for the NLTK WordNet Interface is available here: | |
http://nltk.googlecode.com/svn/trunk/doc/howto/wordnet.html | |
""" | |
from nltk.corpus import wordnet as wn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum update -y | |
curl -sSL https://s3.amazonaws.com/download.fpcomplete.com/centos/7/fpco.repo | tee /etc/yum.repos.d/fpco.repo | |
yum -y install stack | |
sudo -H -u ec2-user -- stack setup | |
# TODO(2016-04-14): Maybe download files and run `stack build`. | |
# NOTE: This script is mostly just for fun // a learning exercise. It's | |
# probably better to use something like Travis CI that can cache the | |
# ~/.stack/ directory to make build times reasonable. Though the | |
# whole point of this is to run on Amazon Linux for building static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add these, though they didn't seem to take effect for me. | |
server=8.8.8.8 | |
server=8.8.4.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2013 Wesley Baugh | |
"""Tools for text classification. | |
Extracted from the [infer](https://github.com/bwbaugh/infer) library. | |
""" | |
from __future__ import division | |
import math | |
from collections import defaultdict, namedtuple, Counter | |
from fractions import Fraction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Original blog post: <https://mnx.io/blog/a-proper-server-naming-scheme/> | |
# Original word list: <http://web.archive.org/web/20091003023412/http://tothink.com/mnemonic/wordlist.txt> | |
# Sample usage: `curl <gist> | tail --lines +4 | shuf | head --lines 1` | |
acrobat | |
africa | |
alaska | |
albert | |
albino | |
album | |
alcohol |
OlderNewer