Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling refs/heads/patch-nodepy into Dev #775

Merged
merged 2 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 44 additions & 2 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,48 @@ declare module 'astro:content' {
collection: "journal";
data: InferEntrySchema<"journal">
} & { render(): Render[".md"] };
"08-18.md": {
id: "08-18.md";
slug: "08-18";
body: string;
collection: "journal";
data: InferEntrySchema<"journal">
} & { render(): Render[".md"] };
"08-19.md": {
id: "08-19.md";
slug: "08-19";
body: string;
collection: "journal";
data: InferEntrySchema<"journal">
} & { render(): Render[".md"] };
"08-20.md": {
id: "08-20.md";
slug: "08-20";
body: string;
collection: "journal";
data: InferEntrySchema<"journal">
} & { render(): Render[".md"] };
"08-21.md": {
id: "08-21.md";
slug: "08-21";
body: string;
collection: "journal";
data: InferEntrySchema<"journal">
} & { render(): Render[".md"] };
"08-22.md": {
id: "08-22.md";
slug: "08-22";
body: string;
collection: "journal";
data: InferEntrySchema<"journal">
} & { render(): Render[".md"] };
"08-23.md": {
id: "08-23.md";
slug: "08-23";
body: string;
collection: "journal";
data: InferEntrySchema<"journal">
} & { render(): Render[".md"] };
"asset.mdx": {
id: "asset.mdx";
slug: "asset";
Expand Down Expand Up @@ -1835,8 +1877,8 @@ declare module 'astro:content' {
} & { render(): Render[".mdx"] };
};
"stock": {
"aapl.mdx": {
id: "aapl.mdx";
"aapl/aapl.mdx": {
id: "aapl/aapl.mdx";
slug: "aapl";
body: string;
collection: "stock";
Expand Down
48 changes: 24 additions & 24 deletions src/content/.obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"state": {
"type": "markdown",
"state": {
"file": "journal/08-22.md",
"file": "journal/08-23.md",
"mode": "source",
"source": false
}
Expand Down Expand Up @@ -93,7 +93,7 @@
"state": {
"type": "backlink",
"state": {
"file": "journal/08-22.md",
"file": "journal/08-23.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand All @@ -110,7 +110,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "journal/08-22.md",
"file": "journal/08-23.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
Expand All @@ -133,7 +133,7 @@
"state": {
"type": "outline",
"state": {
"file": "journal/08-22.md"
"file": "journal/08-23.md"
}
}
}
Expand All @@ -157,24 +157,30 @@
},
"active": "1e65db65e2721f35",
"lastOpenFiles": [
"journal/08-22.md",
"journal/08-23.md",
"stock/aapl/_charts",
"application/appwrite/_sdk/appwrite-python.mdx",
"stock/aapl/aapl.mdx",
"application/docker/_core/CoreGlob.astro",
"application/docker/_core/NotesGlob.astro",
"application/docker/_core/dockerfile.mdx",
"application/docker/_core",
"application/docker/_notes/NotesGlob.astro",
"application/docker/_notes",
"application/docker/_gui",
"journal/08-21.md",
"journal/08-20.md",
"journal/08-22.md",
"journal/08-19.md",
"journal/08-18.md",
"journal/08-17.md",
"journal/08-19.md",
"journal/08-16.md",
"project/rentearth/_graph/data-structure.mdx",
"project/rentearth/_notes/llc-formation.mdx",
"project/rentearth/_graph/legal-document-model.mdx",
"project/rentearth/_graph/data-structure-model.mdx",
"project/rentearth/_graph/GraphGlob.astro",
"project/rentearth/_notes/atlas.mdx",
"project/rentearth/_notes/brainstorm.mdx",
"project/rentearth/_notes/NotesGlob.astro",
"project/rentearth/_notes/glob.astro",
"project/rentearth/_notes",
"application/n8n/_notes-n8n/trigger.md",
"application/n8n/_notes-n8n/plugins.md",
"application/n8n/_notes-n8n/n8n-supabase.md",
"application/n8n/_journal/j1.md",
"application/appwrite/_notes/appwrite_notes.md",
"application/automation/_notes-n8n/n8n-supabase.md",
"journal/08-16.md",
"application/automation/_notes/n8n-supabase.md",
"journal/08-15.md",
"journal/08-14.md",
Expand All @@ -186,12 +192,6 @@
"application/pocketbase/_notes/pocketbase_notes.md",
"application/pocketbase/_data/_backups/pocketbase_backups.md",
"application/pocketbase/_data/_notes/pocketbase_notes.md",
"application/pocketbase/_data/pocketbase_notes.md",
"journal/08-12.md",
"journal/08-11.md",
"journal/08-10.md",
"journal/08-09.md",
"application/n8n/_notes/n8n-supabase.md",
"application/n8n/_notes/supabase-cache.md"
"application/pocketbase/_data/pocketbase_notes.md"
]
}
66 changes: 66 additions & 0 deletions src/content/application/appwrite/_sdk/appwrite-python.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
title: Appwrite Python
description: |
The Appwrite Python SDK allows Python developers to interact with Appwrite's API, facilitating tasks like user authentication, database operations, storage, and more.
By using this SDK, Python developers can seamlessly integrate and manage Appwrite services in their applications, without delving into the complexities of direct API calls.
---

### Appwrite Python SDK

Step aside traditional backends, the Appwrite Python SDK is in town, rolling out the red carpet for Pythonistas eager to elevate their web and mobile projects!
This snazzy toolkit doesn't just connect Python applications to the Appwrite server; it's a golden ticket to a carnival of backend delights.
From the tantalizing whirlwind of user authentication to the magic show of database operations and the high-flying trapeze of storage management, the SDK transforms mundane backend tasks into a spectacle.
No more wrestling with manual API requests – just harness the SDK's sleek methods and watch as Appwrite's vast services dance harmoniously with your Python code.
Whether you're orchestrating a symphony of user data or choreographing a ballet of notifications, the Appwrite Python SDK ensures every act is a showstopper or a stormtrooper muhahaha.

#### Appwrite Python SDK Install

Python wizards, gather 'round! Elevate your coding cauldron with a sprinkle of Appwrite magic by simply chanting `pip install appwrite`.
And just like that, your Python broomstick is turbocharged and ready to soar through the backend skies!

Calling the `appwrite` in python is really easy! Just add this below:

```python

from appwrite.client import Client

client = Client()

client = (client
.set_endpoint('https://ap.kbve.com/v1') # Your API Endpoint
.set_project('[PROJECT_ID]') # Your project ID
.set_key('919c2db5d4...a2a3346ad2') # Your secret API key
)

```

And you will be good to go!

##### Appwrite Python SDK Demo

Here is a quick and easy demo for Appwrite python below!

```python

from appwrite.client import Client
from appwrite.id import ID
from appwrite.services.users import Users

client = Client()

client = (client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('[PROJECT_ID]') # Your project ID
.set_key('919c2db5d4...a2a3346ad2') # Your secret API key
)

users = Users(client)

user = users.create(
user_id=ID.unique(),
email='[email protected]',
phone=None,
password='password'
)

```
5 changes: 4 additions & 1 deletion src/content/application/appwrite/_sdk/appwrite-sdk.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
title: Appwrite SDK
description: Appwrite SDK Notes and Information
description: |
Dive into the future of backend development with the Appwrite SDK!
This nifty toolkit is like a Swiss Army knife for developers, packing authentication, database ops, and real-time magic all under one sleek hood.
So, Pythonistas and JavaScript jedis, forget those clunky server woes; let Appwrite's symphony of services turn your code into a backend ballet!
---

## SDK
Expand Down
18 changes: 18 additions & 0 deletions src/content/application/docker/_core/CoreGlob.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
const core = await Astro.glob('./*.md*');
import MDXJS from '@w/MDXJS.astro';
---
{
core.map((note) => (
<MDXJS transparent={false}>
<div>
<article class="">
<h2>{note.frontmatter.title}</h2>
<p>{note.frontmatter.description}</p>

<note.Content />
</article>
</div>
</MDXJS>
))
}
4 changes: 4 additions & 0 deletions src/content/application/docker/_core/dockerfile.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: DockerFile
description: Notes on creating a dockerfile for the image build
---
18 changes: 18 additions & 0 deletions src/content/application/docker/_notes/NotesGlob.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
const notes = await Astro.glob('./*.md*');
import MDXJS from '@w/MDXJS.astro';
---
{
notes.map((note) => (
<MDXJS transparent={false}>
<div>
<article class="">
<h2>{note.frontmatter.title}</h2>
<p>{note.frontmatter.description}</p>

<note.Content />
</article>
</div>
</MDXJS>
))
}
4 changes: 4 additions & 0 deletions src/content/application/obs/obs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ import Details from "@w/Details.astro";
import MDXLayer from "@l/MDXLayer.astro";
import Widget from "@w/Widget.astro";
import MDXJS from "@w/MDXJS.astro";
import MDXHero from "@w/MDXHero.astro";

<MDXLayer title={frontmatter.title} description={frontmatter.description}>
<Widget img={frontmatter.img} skeleton={false}>

<MDXHero content={frontmatter} />

<MDXJS>


Expand Down
2 changes: 2 additions & 0 deletions src/content/journal/08-22.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ tags:
- 9:30am - The market looks like a bull trap, honestly I am hoping that the feds do another pause on the rates and keep the slow increase going.
- 9:33am - Going to clean up some more of my notes and maybe use a bit more of the GPT.
- 5:32pm - Off of work and now I am going to see if I can push these notes through.
- 9:25pm - Added charts to the stocks but need to do some more updating and configurations! There are a couple of interesting test cases that we could pivot around and make a bit better for `meme.sh`.
- 11:16pm - I went through the RentEarth and was able to clone and repo through everything, I should make it into a template in the future but for now this seems to be more than good enough.
## Quote

> The ultimate promise of technology is to make us master of a world that we command by the push of a button.
Expand Down
28 changes: 28 additions & 0 deletions src/content/journal/08-23.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
layout: ../../layouts/theme/mdx.astro
title: "August : 23"
category: Daily
date: 2023-08-23
client: Self
img: https://images.unsplash.com/photo-1691183336426-10e4a01f19ec?fit=crop&q=85&w=1400&h=700
description: Daily Log for August, 23 of each year.
tags:
- daily
---

## Notes

- 8:10am - I believe I got the general flow of the docker container! Yay!
- 6:51pm - Going to sync the notes in between the sessions. Okay, now I need to add github actions to the `NodePy`. so that it can build the images without having any major issues. As for the key storage, I am thinking that it would be an AES style encryption, so that there would not be any major issues.
- 7:40pm - I added the docker image creation test casing, under the workflow.

## Quote

> You cannot escape the responsibility of tomorrow by evading it today.
> — <cite>Abraham Lincoln</cite>
---

## Tasks

- [ ]
15 changes: 15 additions & 0 deletions src/content/stock/aapl.mdx → src/content/stock/aapl/aapl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ description: Apple is a multinational company that engages in electronics and so
ticker: aapl
dividend: true
exchange: NASDAQ
slug: aapl
tags:
- technology
- us
Expand All @@ -19,9 +20,21 @@ import Details from "@w/Details.astro";
import MDXLayer from "@l/MDXLayer.astro";
import Widget from "@w/Widget.astro";
import MDXJS from "@w/MDXJS.astro";
import TradingView from "@w/TradingView.astro";
import MDXHero from "@w/MDXHero.astro";

<MDXLayer title={frontmatter.title} description={frontmatter.description}>
<Widget img={frontmatter.img} skeleton={false}>

<MDXHero content={frontmatter} />


<MDXJS>

<TradingView data={`${frontmatter.exchange}:${frontmatter.ticker}`} />

</MDXJS>

<MDXJS>


Expand Down Expand Up @@ -50,5 +63,7 @@ Testing the charts for AAPL


</MDXJS>


</Widget>
</MDXLayer>
Loading