Skip to content

Instantly share code, notes, and snippets.

View koaning's full-sized avatar

vincent d warmerdam koaning

View GitHub Profile
@koaning
koaning / build_instructions.py
Created June 13, 2022 16:57
Prodigy Instructions
import base64
import pathlib
from jinja2 import Environment, FileSystemLoader, select_autoescape
env = Environment(
loader=FileSystemLoader("images"),
autoescape=select_autoescape()
)
template = env.get_template("instructions.template")
@koaning
koaning / bionic.py
Last active August 11, 2022 14:05
A custom recipe for Prodigy that mimics Bionic Reading.
import pyphen
import prodigy
from prodigy.components.loaders import JSONL
from prodigy.components.db import connect
hyphenator = pyphen.Pyphen(lang="en_US")
def construct_html(text):
hyphend = hyphenator.inserted(text)
@koaning
koaning / polars.ipynb
Created November 1, 2021 20:54
A benchmark with Polars.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@koaning
koaning / before.ipynb
Created October 30, 2021 13:26
Before nbqa
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@koaning
koaning / resume.json
Last active July 28, 2021 18:58
resume
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Vincent D. Warmerdam",
"label": "Senior Data Professional & Research Advocate",
"image": "",
"email": "[email protected]",
"url": "https://koaning.io",
"summary": "",
"location": {
@koaning
koaning / new-benchmark.ipynb
Last active July 6, 2020 19:53
benchmark two
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@koaning
koaning / benchmark.ipynb
Last active June 28, 2020 19:11
benchmark
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@koaning
koaning / mean_squared_terror.ipynb
Last active June 29, 2020 07:29
mean squared terror
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@koaning
koaning / domain.yml
Created June 26, 2020 08:47
Another intent
intents:
- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- bot_challenge
- give_joke
- give_another
@koaning
koaning / domain.yml
Created June 26, 2020 08:44
more jokes
responses:
utter_joke:
- text: Are you sure you can handle my jokes? You might laugh your Ash off.
- text: Why did the Squirtle cross the road? To get to the other tide!
- text: What appears over Ash’s head when he gets an idea? A LightBulbasaur
- text: Where did Brock take Nurse Joy for a date? The PokeBall
- text: What’s better than one Pikachu? PikaTWO
- text: What does Moeowth see when it looks in the mirror? A copy-cat!
- text: When does a Gastly eat breakfast? In the moaning.
- text: Which Pokemon does Dracula like most? Koffin'