Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am lizrush on github.
  • I am lizmrush (https://keybase.io/lizmrush) on keybase.
  • I have a public key ASB6-gzJP3cpfNim4uQAcLQM3-eycPIPOvzVtnxc1MCaHwo

To claim this, I am signing this object:

Speaking Experience

Conferences:

@lizrush
lizrush / generateparagraph.py
Created December 22, 2015 23:54
Example case of calling another algorithm within an algo -- no auth needed
import Algorithmia
def apply(input):
trigrams = input[0]
beginToken = input[1]
endToken = input[2]
paragraphLength = input[3]
triInput = [trigrams, beginToken, endToken]
@lizrush
lizrush / generate-short-story.py
Last active December 9, 2015 22:40
Sample entry for Algorithmia Shorties
import Algorithmia
import os
import re
from random import randint
client = Algorithmia.client('YOUR_API_KEY_HERE')
trigrams_file = 'data://.algo/ngram/GenerateTrigramFrequencies/temp/right-ho-trigrams.txt'
book_title = 'full_book.txt'
book = ''
book_word_length = 7500