Skip to content

Instantly share code, notes, and snippets.

@emilyyleung
emilyyleung / redis-clear
Created November 29, 2023 04:26 — forked from dimasch/redis-clear
Clear a redis cache in Docker
docker exec -it container-name redis-cli FLUSHALL
@emilyyleung
emilyyleung / GithubContributionGraph.md
Last active July 6, 2023 13:41
Github Contribution Graph

Github Contribution Graph

Following this guide

Updated some of the CSS styling for simplification

image

// When you want to quickly obtain the base64 image string for referencing
// https://stackoverflow.com/questions/22172604/convert-image-from-url-to-base64
const getBase64FromUrl = async (url) => {
const data = await fetch(url);
const blob = await data.blob();
return new Promise((resolve) => {
const reader = new FileReader();
reader.readAsDataURL(blob);
reader.onloadend = () => {
@emilyyleung
emilyyleung / styles.css
Created October 1, 2021 23:56
Re-creating Bragdocs with Eleventy
/*
Styling for the content section of each Bragdoc entry, such as:
- Links
- Images
- Blockquotes
- Codeblocks
- Tables
*/
{
"metadata": {
"type": "Object",
"generator": "io_three",
"version": "4.4"
},
"geometries": [
{
"uuid": "B09832FD-CAC7-11E8-B188-1D14EB75342A",
"type": "Geometry",
{
"hello": "world"
}
@emilyyleung
emilyyleung / hello.txt
Last active September 27, 2017 08:00
This is a gist
Hello World This Is Edited