Skip to content

Instantly share code, notes, and snippets.

View jamieparkinson's full-sized avatar
🤖

Jamie Parkinson jamieparkinson

🤖
View GitHub Profile
@jamieparkinson
jamieparkinson / README.md
Last active September 28, 2022 12:46
Prismic image downloader

Prismic image downloader

For downloading full-res Prismic images in a choice of formats. The image you want must've loaded on the page before you click the bookmarklet, as otherwise the lazy loading gets in the way.

You can make it into a bookmarklet here - unfortunately we can't put js links in markdown here.

@jamieparkinson
jamieparkinson / hcbs.md
Last active April 14, 2022 08:31
Hot Cross Buns

Hot cross buns

This is wildly overengineered but very nice. Inspiration from Justin Gellatly, Dan Lepard, Michael James & Helen Evans.

Ingredients

Makes about 12-14.

Pre-soak

  • 150g stout
  • 200g raisins
@jamieparkinson
jamieparkinson / steps.md
Created February 17, 2021 10:52
Importing virtualenvs into IntelliJ
  1. Make a virtualenv (eg with virtualfish)
  2. Project Structure > Platform Settings > SDKs > (add) > Add Python SDK
  3. Existing environment > Choose ~/.virtualenvs/<name>/bin/python3.7
  4. Project Settings > Modules > (add) > Import module > (select root directory of Python app)
  5. Create module from existing sources, confirm sources
  6. Choose SDK created in step 3
  7. (optional) Mark sources
  8. Module in sidebar > Dependencies > (update SDK)
@jamieparkinson
jamieparkinson / cinnamon_buns.md
Last active February 2, 2021 10:46
Extremely soft cinnamon buns

Extremely soft cinnamon buns

This is an original recipe that values softness and longevity above all else. It is vaguely based upon recipes by (in no particular order): Dan Lepard, Magnus Nilsson, Felicity Cloake, Trine Hahnemann, Richard Bertinet.

The primary departure from most other recipes is the use of a tangzhong which allows a relatively high hydration, and very soft, dough. Additionally, the butter is added to the dough after gluten is developed, like in a brioche, rather than in melted form at the outset. A very small portion of rye flour is included both for flavour and for its crumb-softening and anti-staling properties due to the presence of pentosans. A proportion of UK plain flour (around 8% protein) is used as well as bread flour to drop the gluten content slightly in order to make the buns a little less chewy, whilst maintaining the gluten strength necessary for

@jamieparkinson
jamieparkinson / pizza_dough.md
Last active January 2, 2021 15:04
Pizza dough

Pizza dough

Based on Vaughn Tan's recipe plus general thoughts absorbed from reading stuff online. Makes 2 balls for 2 11"-12" pizzas.

Flour (320g)

  • 40% 00 (128g) [cumulative 128g]
  • 25% strong white (80g) [208g]
  • 30% stoneground white (96g) [304g]
  • 5% wholemeal/heritage (16g) [320g]
@jamieparkinson
jamieparkinson / desiderata.md
Created October 7, 2020 13:55
Ingest/merger versioning

Desired behaviour for ingest versioning

Works

Given a work already in the index:

  • The same work with a higher transformer version always overrides it
  • The same work with the same transformer version and more sources merged in overrides it
  • The same work with the same transformer version which have been unlinked from some/all sources overrides it
  • The same work with the same transformer version which has been redirected overrides it
@jamieparkinson
jamieparkinson / shingara.md
Last active October 3, 2020 21:01
Phulkopi'r Shingara recipe transcription
@jamieparkinson
jamieparkinson / tf-idf-things.json
Last active September 30, 2020 11:09
TF-IDF per-field document frequency proof
PUT tf-idf-test
PUT tf-idf-test/_mapping
{
"properties": {
"thing": {
"type": "text"
},
"secret": {
"type": "text"
@jamieparkinson
jamieparkinson / jupytenv.sh
Created May 19, 2020 09:55
Create a Jupyter kernel using a virtualenv
#!/usr/bin/env bash
set -e
VIRTUALENVS_DIR=${WORKON_HOME:-$HOME/.virtualenvs}
if [ -z "$1" ]; then
echo "Please specify an environment name!"
exit -1
fi
ENV_NAME=$1
@jamieparkinson
jamieparkinson / recipe.md
Last active April 29, 2022 09:38
Chilli oil

Chilli oil (Sichuan-ish)

Ingredients

  • 1L sunflower oil
  • ~140g Korean chilli flakes (best substitute for erjiangtao colour)
  • ~50g other dried chillis, a mix of grinds from very coarse to very fine
  • Maybe half a cup (?) sesame seeds
  • ~5 star anise
  • ~8 green cardamom
  • 2 cao guo, halved