Skip to content

Commit

Permalink
Apply formatter to all files
Browse files Browse the repository at this point in the history
  • Loading branch information
villasv committed Dec 30, 2023
1 parent cd59526 commit f47b23d
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 14 deletions.
4 changes: 4 additions & 0 deletions app/(aspects)/coffee/cupping/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ from a cupping spoon aspirating the coffee over the palate to obtain the
organoleptic (flavor) profile of each coffee.

The goal is to evaluate several aspects:

- Fragrance of the dry grounds
- Aroma of the coffee brew
- Acidity in the tongue (a.k.a brightness, sourness)
Expand All @@ -28,14 +29,17 @@ The goal is to evaluate several aspects:
- Astringency? #TODO https://coffeeadastra.com/2022/08/01/the-mechanism-behind-astringency-in-coffee/

## Protocol

Materials:

- Coffee
- Grinder
- Kettle
- Scale
- Spoon (two is best)

Method:

1. Weigh 9 g of coffee beans
2. Grind the coffees, purging between samples (@7.0/P100)
3. Evaluate its fragrances
Expand Down
5 changes: 5 additions & 0 deletions app/(aspects)/coffee/percolation/page.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Percolation Brewing

## Bloom

The main goal of blooming is to degass the coffee. The bubbling up of CO2
insulates solubles (decreasing yield) and contributes to channeling (decreasing
uniformity of extraction). The blooming pour doesn't need to prioritize high
Expand All @@ -10,6 +11,7 @@ advocate for a cooler bloom.
[SamoBloom]: https://www.youtube.com/watch?v=eVF7DOxOUFA

## Bypass

It's when water goes around the beans, instead of through. The higher the water level relative to the coffee bed, the more bypass in a regular filter.

No-Bypass Filters
Expand All @@ -32,6 +34,7 @@ Next Level
## Recipes

### Matt Winton's Five Pours ~ James Hoffman's Single Cup V60

A simple 5-pour recipe for medium-coarse grinds that makes use of high
agitation. Popularized by Matt Winston ([MW1][], [MW2]) and recommended for
single-cup brews by James Hoffman ([JH1][]).
Expand All @@ -51,6 +54,7 @@ single-cup brews by James Hoffman ([JH1][]).
5. Pour the remaining 50 g and swirl

### Lance Hedrick's Vibrant V60

A recipe that prioritizes vibrancy and fruity notes instead of clarity and high
extractions. According to [Lance](https://www.youtube.com/watch?v=rAdgJNK0csc),
it's also forgiving of conical burrs because it aims to capture fines on the
Expand All @@ -69,6 +73,7 @@ sides of the filter through controlled agitation.
5. Gently stir the upper layer of the liquid until it finishes draining

### Kissaten Coffee Dome - 喫茶店 コーヒードーム

An unnamed and very pretty technique traditional in Japanese coffee shops,
divulged by [Brewing Habits](https://www.youtube.com/watch?v=kqQDYf8BmIA).
Sometimes called Osmotic Flow by [CAFEC](https://cafec-jp.com/brewing-guide/)'s
Expand Down
1 change: 0 additions & 1 deletion app/(aspects)/food/rice/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ After gelatinization, continued heating or agitation begins to break down those
swollen starch granules, leaching amylose and increasing the viscosity of the
surrounding liquid. This process known as pasting results in sticky and mushy
rice (overcooked).

8 changes: 4 additions & 4 deletions app/(aspects)/words/life/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const LifeWasAStronglyPurposed = stretchable(
hereinafter described.
</Blockquote>
<Paragraph>That was the purpose of LIFE - an</Paragraph>
</>
</>,
);

const idealizedByHenryLuceAndPortrayedInABenStillerMovie = stretchable(
Expand Down Expand Up @@ -55,7 +55,7 @@ const idealizedByHenryLuceAndPortrayedInABenStillerMovie = stretchable(
the original vision of the real world iconic LIFE, it was even more
touching. I vowed to never lose sight of that aspiration.
</Paragraph>
</>
</>,
);

const InspiredByHenryLucesLIFE = stretchable(
Expand All @@ -72,7 +72,7 @@ const InspiredByHenryLucesLIFE = stretchable(
that resonates with my own daydreaming.
</Paragraph>
<Paragraph>I want to</Paragraph>
</span>
</span>,
);

const ThatIsThePurposeOfLife = stretchable(
Expand All @@ -87,7 +87,7 @@ const ThatIsThePurposeOfLife = stretchable(
complete. Yours doesn't have to be the same. It probably shouldn't be the
same.
</Paragraph>
</span>
</span>,
);

export default function Page() {
Expand Down
4 changes: 2 additions & 2 deletions components/factory-old.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface Note {
}

export async function getAllNotes(
notesPath: string = NOTES_PATH
notesPath: string = NOTES_PATH,
): Promise<Note[]> {
if (NOTES_CACHE) return NOTES_CACHE;
const subpaths = await fs.readdir(notesPath);
Expand All @@ -32,7 +32,7 @@ export async function getAllNotes(
return (await fs.stat(relativeSubpath)).isDirectory()
? getAllNotes(relativeSubpath)
: [await loadNote(relativeSubpath)];
})
}),
);
return (NOTES_CACHE = files.flat());
}
Expand Down
10 changes: 5 additions & 5 deletions components/factory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const NEXT_PAGE_FILES = ["page.tsx", "page.mdx"];
export async function listPages(
basePath: string,
relativePath: string,
skipLevel: number
skipLevel: number,
): Promise<Page[]> {
const children = await fs.readdir(path.join(basePath, relativePath));
const pages = await Promise.all(
Expand All @@ -29,14 +29,14 @@ export async function listPages(
: NEXT_PAGE_FILES.includes(fileName) && skipLevel <= 0
? [await loadPage({ basePath, relativePath, fileName })]
: [];
})
}),
);
return pages.flat();
}

async function getPageTitle(
filePath: string,
content: string
content: string,
): Promise<string | undefined> {
if (filePath.endsWith("mdx")) {
return getPageTitleFromMarkdown(filePath);
Expand All @@ -52,15 +52,15 @@ async function getPageTitle(
const mdxRelativePath = mdxMatch[1];
const mdxPath = path.join(
path.dirname(filePath),
mdxRelativePath + ".mdx"
mdxRelativePath + ".mdx",
);
return getPageTitleFromMarkdown(mdxPath);
}
}
}

async function getPageTitleFromMarkdown(
filePath: string
filePath: string,
): Promise<string | undefined> {
const markdown = await fs.readFile(filePath, { encoding: "utf-8" });
const titles = markdown.match(/(?<=^#\s+)[^\n]*/m);
Expand Down
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const withBundleAnalyzer = require("@next/bundle-analyzer")({
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"],
};

module.exports = [withMDX, withBundleAnalyzer].reduce(
(config, plugin) => plugin(config),
nextConfig
nextConfig,
);

0 comments on commit f47b23d

Please sign in to comment.