Paprika doesn't have their API documented, so this is me reverse-engineering it from an Android device
This file contains hidden or 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
| # To run you'll need some secrets: | |
| # 1. SERPAPI_API_KEY secret in env var - get from https://serpapi.com/ | |
| # 2. OPENAI_API_KEY secret in env var - get from https://openai.com | |
| import streamlit as st | |
| import json, os | |
| from langchain.prompts import PromptTemplate | |
| from langchain.llms import OpenAI | |
| from serpapi import GoogleSearch |
UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!
- liblinear-ruby: Ruby interface to LIBLINEAR using SWIG
This file contains hidden or 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
| # Requires Ruby 1.9 and OS X | |
| # The letters in your game... include repeats | |
| game_letters = %w() | |
| # Words that have been played already | |
| played = %w() | |
| def to_hash(letters) | |
| letters.inject({}) do |h,l| | |
| h[l] ||= 0 |
This file contains hidden or 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
| --colour | |
| -I app |
