Initial commit

This commit is contained in:
2024-03-09 22:41:35 +00:00
commit f596b5ad14
36 changed files with 770 additions and 0 deletions

12
src/content/blog.ts Normal file
View File

@@ -0,0 +1,12 @@
import { getCollection } from "astro:content";
export async function getBlogs() {
const blogs = await getCollection("blog");
for (let i = 0; i < blogs.length; i++) {
const blog = blogs[i];
if (blog.slug === "markdown-style-guide") {
blogs.splice(i, 1);
}
}
return blogs;
}

View File

@@ -0,0 +1,40 @@
---
title: '2024 & the grand plan for my life'
description: 'things i will do before i die'
pubDate: 'Mar 09 2024'
heroImage: /grand-plan-for-my-life-hero.webp
---
the following are things i will do in my lifetime, in order of time:
1. prototype and make an untethered consumer AR device
2. move to san francisco and continue work on AR
3. use the money to start working on space tech
4. get employed at a space tech company to gain experience
5. work on space tech on my own
6. achieve, or accelerate human's development to [kardashev scale](https://en.wikipedia.org/wiki/Kardashev_scale) I
## why?
i can come up with many rational reasons for why i want to achieve the aforementioned goals. i shall admit, however, that coolness is the primary motivation behind everything (in general, more people should do things purely on the basis that it is cool.)
## more on AR
i think AR headsets are the obvious next step after smartphones and personal computers. in an AR device, digital objects seamlessly blend in with the users reality. rather than stealing the user's focus away, it assists in the user's task at hand in an unobtrusive way. a task as simple as telling the time should be an act of second-nature rather than a deliberate act of fetching the device, turn on the screen, then make out the time in the sea of other distractions presented to the user.
i think the technology to create this AR device is here, and all i have to do is piece the puzzles together. to keep to the point of the post, i shall elaborate on this topic in a separate post.
## more on space tech
there is much of space that is yet to be explored and exploited. for example, asteroids contain trillions of dollars worth of minerals that are waiting for humans to be used. coupled with space manufacturing, many heavy industries and manufacturing can be offloaded from Earth, reducing their environmental impact, while reaping the benefit of zero-g manufacturing, and more freedom to expand and grow.
again, to keep it succinct, i will elaborate further in a separate post.
## plan for 2024
i will build [poly](https://polygui.org), a language-agnostic, cross-platform GUI framework, to a usable enough stage that i can do a alpha/beta release and collect feedbacks from developers.
in the meantime, i will do research on AR and potentially hack together a prototype that i will daily-drive. this shall be the first step towards the eventual goal of building a consumer-grade AR device.
## stay tuned
[follow me on x/twitter](https://x.com/kennethnym) if you wish to follow along on my journey. more is in the oven.

View File

@@ -0,0 +1,214 @@
---
title: 'Markdown Style Guide'
description: 'Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.'
pubDate: 'Jul 01 2022'
heroImage: '/blog-placeholder-1.jpg'
---
Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.
## Headings
The following HTML `<h1>``<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
# H1
## H2
### H3
#### H4
##### H5
###### H6
## Paragraph
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
## Images
#### Syntax
```markdown
![Alt text](./full/or/relative/path/of/image)
```
#### Output
![blog placeholder](/blog-placeholder-about.jpg)
## Blockquotes
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
### Blockquote without attribution
#### Syntax
```markdown
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use _Markdown syntax_ within a blockquote.
```
#### Output
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use _Markdown syntax_ within a blockquote.
### Blockquote with attribution
#### Syntax
```markdown
> Don't communicate by sharing memory, share memory by communicating.<br>
> — <cite>Rob Pike[^1]</cite>
```
#### Output
> Don't communicate by sharing memory, share memory by communicating.<br>
> — <cite>Rob Pike[^1]</cite>
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
## Tables
#### Syntax
```markdown
| Italics | Bold | Code |
| --------- | -------- | ------ |
| _italics_ | **bold** | `code` |
```
#### Output
| Italics | Bold | Code |
| --------- | -------- | ------ |
| _italics_ | **bold** | `code` |
## Code Blocks
#### Syntax
we can use 3 backticks ``` in new line and write snippet and close with 3 backticks on new line and to highlight language specific syntac, write one word of language name after first 3 backticks, for eg. html, javascript, css, markdown, typescript, txt, bash
````markdown
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
````
Output
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
## List Types
### Ordered List
#### Syntax
```markdown
1. First item
2. Second item
3. Third item
```
#### Output
1. First item
2. Second item
3. Third item
### Unordered List
#### Syntax
```markdown
- List item
- Another item
- And another item
```
#### Output
- List item
- Another item
- And another item
### Nested list
#### Syntax
```markdown
- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese
```
#### Output
- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese
## Other Elements — abbr, sub, sup, kbd, mark
#### Syntax
```markdown
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
```
#### Output
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.

16
src/content/config.ts Normal file
View File

@@ -0,0 +1,16 @@
import { defineCollection, z } from 'astro:content';
const blog = defineCollection({
type: 'content',
// Type-check frontmatter using a schema
schema: z.object({
title: z.string(),
description: z.string(),
// Transform string to Date object
pubDate: z.coerce.date(),
updatedDate: z.coerce.date().optional(),
heroImage: z.string().optional(),
}),
});
export const collections = { blog };