Inspired by this tweet.
Starting with this code: https://github.com/ka-weihe/fastest-levenshtein/blob/master/mod.ts
I asked:
Explain this code:
Inspired by this tweet.
Starting with this code: https://github.com/ka-weihe/fastest-levenshtein/blob/master/mod.ts
I asked:
Explain this code:
I wanted to see if GPT-3 could explain a mathematical expression for me, as a follow-on from Using GPT-3 to explain how code works. I grabbed an example from this page of the GitHub documentation.
Here's my conversation with GPT-3 as plain text - except I added > to the lines that I entered to differentiate them from the GPT-3 output:
> Explain this:
>
> $$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$
Ingredients (serves 2)
For the sausages and eggs:
| #!/usr/local/bin/perl | |
| ############################################################################## | |
| # Counter Version 1.1.1 # | |
| # Copyright 1996 Matt Wright mattw@scriptarchive.com # | |
| # Created 10/27/95 Last Modified 4/25/96 # | |
| # Scripts Archive at: http://www.scriptarchive.com/ # | |
| ############################################################################## | |
| # COPYRIGHT NOTICE # | |
| # Copyright 1996 Matthew M. Wright All Rights Reserved. # | |
| # # |
Prompt: a step by step tutorial for getting started with Datasette
This is a guide for getting started with Datasette. Datasette is a tool for creating and publishing data-driven websites. It is designed to make it easy to publish structured data, such as the results of a database query, in a way that is highly visible and interactive.
Datasette can be used to create websites that allow users to explore and visualize data, or to build applications that expose data via APIs. It can also be used as a static site generator, creating a completely static HTML website that can be deployed anywhere.
This guide will cover the basics of how to install and use Datasette. It will also show you how to create a simple data-driven website using Datasette.
A backup copy of the code from https://david.rothlis.net/declarative-schema-migration-for-sqlite/
Code is MIT licensed, written by William Manley, copyright © 2019-2022 Stb-tester.com Ltd
CSV downloaded from from https://geodata.myfwc.com/datasets/myfwc::manatee-carcass-recovery-locations-in-florida/about
Commands run during the demo:
sqlite-utils insert manatees.db locations \
Manatee_Carcass_Recovery_Locations_in_Florida.csv --csv
| from datasette import hookimpl | |
| from datasette.utils.asgi import Response | |
| import os | |
| REDACT = {"GPG_KEY"} | |
| async def env(request): | |
| output = [] | |
| for key, value in os.environ.items(): |
| [ | |
| { | |
| "name": "datasette-leaflet", | |
| "static": true, | |
| "templates": false, | |
| "version": "0.2.2", | |
| "hooks": [ | |
| "extra_body_script", | |
| "extra_template_vars" | |
| ] |