Skip to content

Instantly share code, notes, and snippets.

View ColinEberhardt's full-sized avatar

Colin Eberhardt ColinEberhardt

View GitHub Profile
Create an interesting and engaging narrative for a runner based on their annual running statistics.
name: Jerry
distance: 1,740 miles
distance comparison: run around the world in 14 years
total runs: 251
hours run: 261
streak: 11
climb: 9,723 metres
climb comparison: El Capitan four times
@ColinEberhardt
ColinEberhardt / gist:e288fe34fadaafc76d3b6ab74557f61c
Last active November 29, 2021 17:16
running report GPT3 prompt
Write a narrative that describes when an athlete tends to go running, make it fun and inspiring.
name: Colin
gender: M
long runs: Thursday or Monday
workouts: Sunday or Monday
time of day: morning
mostly runs on: weekday
narrative: We are creatures of habit, runners more so than most! You're most likely to find Colin pulling on his trainers and hitting the road (or trail) on a weekday. Colin is a morning runner, heading out as the sun starts to rise and when the roads are nice and quiet. We've analysed the data, and he tends to go for long runs on a Thursday or a Monday and works out on a Sunday or a Monday.
@ColinEberhardt
ColinEberhardt / gist:ac17a65ea68be6b5b2fe0d1cf5056bf7
Created November 19, 2021 13:24
prompt text for AI train guy
Comment on: complexion
Location: isolated at home
Situation: Jeff needs more brand recognition
Conversation: Hi Col, yeah, yeah, look at your complexion boy. You are grey-abysmal, like a haunted dishcloth. Yeah, yeah, yeah, hilario, I know, I know. I've had a few, so it's alco-lol. Listen, I've just had a virtual conflab with Jeff Lynton, the Jeff Lynton. Une problemo significato regarding the pencil cases, yeah, yeah. He's got fudgey knickers about brand recognition and market placement, yeh. He wants them to be aspirational with a hint of science fiction. So you need to inflate your thought space with ome very hot fart. So quack on. Don't fear success, fear the urban fox. Have a campaccuccu on me Col. You are as ever a damp crab. Ciao, and bella ontario. See ya Col.
Comment on: bracelet
Location: isolated at home
Situation: Jeff wants us to on an algorithm
Conversation: Look at you with your little bracelet, your little wrist-bracelet ya. Makes you look like you once had a girlfriend, ya, hilario, I know,
@ColinEberhardt
ColinEberhardt / data.json
Created June 29, 2021 21:08
timezone viz
This file has been truncated, but you can view the full file.
[[[-0.2688888888888889,-0.014444444444444444,0.15583333333333332,-1.038888888888889,2.0858333333333334,-0.5055555555555555,-0.35444444444444445,-0.88,1.5,2.1077777777777778,2.168888888888889,0.22666666666666666,2.172222222222222,-0.7188888888888889,2.4544444444444444,1.0033333333333334,-0.6125,0.8788888888888889,0.15583333333333332,1.5,-11.777222222222223,-9.993333333333334,-4.28,-4.28,-3.8444444444444446,-6,-7.016666666666667,-3.9747222222222223,-5.88,-4,-4.937777777777778,-8,-5.7844444444444445,-4.461111111111111,-3.488888888888889,-6,-7.072222222222222,-5.603611111111111,-7,-4.596388888888889,-1.2444444444444445,-9.294444444444444,-8,-7,-5.536388888888889,-7.564444444444445,-5.946666666666666,-8,-3.9966666666666666,-3.5144444444444445,-5.1194444444444445,-6.0344444444444445,-5.233333333333333,-3.8777777777777778,-4.24,-5.493333333333333,-7.397777777777778,-6,-6,-6,-6,-6,-6,-6,-6,-5.1194444444444445,-8.961388888888889,-6,-6,-4.543333333333333,-5.1433333333333335,-8,-5.753333333333333,-4.072222222222222,-6.6
// the code from this gist: https://gist.github.com/jdunkerley/323b0d1d2a9b7f96d570778402389566
// re-implemented in AssemblyScript
import "wasi";
import { Console, FileSystem, Descriptor } from "as-wasi";
class Nullable<T> {
constructor(public value: T, public isNull: bool = false) {}
@ColinEberhardt
ColinEberhardt / index.js
Created July 16, 2020 11:06
Google TImeline Data Scrape
const fetch = require("node-fetch");
const xpath = require("xpath");
const dom = require("xmldom").DOMParser;
const moment = require("moment");
const namespace = `xmlns="http://www.opengis.net/kml/2.2"`;
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
@ColinEberhardt
ColinEberhardt / .block
Created September 20, 2019 08:48
Line annotation ticks
license: mit
@ColinEberhardt
ColinEberhardt / .block
Last active September 28, 2019 14:49
Most popular programming languages on StackOverflow
license: mit
@ColinEberhardt
ColinEberhardt / .block
Created May 15, 2019 15:55
Line / Area Chart
license: mit
@ColinEberhardt
ColinEberhardt / .block
Last active November 23, 2018 11:11
Cryptocurrency average order price versus size
license: mit