forked from jackyzha0/quartz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PUSH NOTE : Typescript.md * PUSH NOTE : Svelte.md * PUSH NOTE : Snippets Index.md * PUSH NOTE : CODE-1 Read File to String in rust.md * PUSH NOTE : Rust.md * PUSH NOTE : Programming.md * PUSH NOTE : Flutter & Dart.md * PUSH NOTE : Shortcuts.md * PUSH NOTE : Creating Trig SVGs with Latex.md * PUSH ATTACHMENT : triangles 1.svg * PUSH NOTE : Triganometry Index.md * PUSH NOTE : More Functions.md * PUSH NOTE : Math Index.md * PUSH NOTE : Math Constellation Game Ideas.md * PUSH NOTE : Logarithms.md * PUSH NOTE : Important Formulas.md * PUSH NOTE : Formulas.md * PUSH NOTE : Exponents.md * PUSH NOTE : Drawing Functions & Back Again.md * PUSH NOTE : Completing The Square.md * PUSH NOTE : Big Unorganized Math Notes.md * PUSH NOTE : Absolute Values in Algebra.md * PUSH NOTE : ∆-Landing.md * PUSH NOTE : Using Quartz & Github Publisher.md * PUSH NOTE : Textbook Collection.md * PUSH NOTE : My Obsidian Setup.md * PUSH NOTE : My Obsidian Plugins.md * PUSH NOTE : My Big Huge Collection of Links.md * PUSH NOTE : Linguistics.md * PUSH NOTE : Japanese.md * PUSH NOTE : Goals.md * PUSH NOTE : Domains.md * PUSH NOTE : digital garden resources.md * PUSH NOTE : Books.md
- Loading branch information
1 parent
73be855
commit 06f508b
Showing
34 changed files
with
167 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ tags: | |
- personal | ||
publish: true | ||
--- | ||
|
||
A place for me to talk about books. | ||
|
||
## Favorite books | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
Interesting!!! | ||
## Resources | ||
[Flame](https://docs.flame-engine.org/latest/) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
[[❀Code/Rust|Rust]] | ||
[[Flutter & Dart|Flutter & Dart]] | ||
[[Typescript|Typescript]] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
[Rust by Practice](https://github.com/sunface/rust-by-practice) |
17 changes: 17 additions & 0 deletions
17
content/Code/Snippets/CODE-1 Read File to String in rust.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
created :: 12-05-2023 | ||
codelang :: Rust | ||
|
||
```rust | ||
let file: Result<String, Error> = fs::read_to_string("part1_input.txt"); | ||
match file { | ||
Ok(f) => { | ||
//do something with the file like return f | ||
} | ||
Err(e) => panic!("{}", e), //or handle error nromally without panicking | ||
``` | ||
|
||
It returns a Result you have to handle, and it assumes i will be in the folder the command is **run in**, not the folder its built in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
|
||
|
||
Below are all my local snippets. Mostly just little notes to myself so I don't google how to open a txt file in rust for the 39th time | ||
|
||
| File | codelang | | ||
| -------------------------------------------------------------------------------------------- | -------- | | ||
| [[❀Code/Snippets/CODE-1 Read File to String in rust.md\|CODE-1 Read File to String in rust]] | Rust | | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
This is by far my favorite framework for making sites. | ||
## Sveltekit | ||
This is what my wip markdown blog framework is written in. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
I'm gonna learn typescript, partially so I can contribute to [quartz](https://quartz.jzhao.xyz/) but also so I don't have to keep relying solely on my pure JavaScript knowledge. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
Take the following graph | ||
![[drawing functions 2.svg|drawing functions 2.svg]] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
Exponents are pretty easy to understand if you understand what squaring and cubing are, but exponential functions are a little wacky. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
You can't have math without formulas!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
||
## Continuous Growth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ tags: | |
- math | ||
--- | ||
|
||
|
||
## Quadratic formula | ||
The classic | ||
$$ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ tags: | |
- learning | ||
- school | ||
--- | ||
|
||
Logarithms are weird. | ||
|
||
Logarithms are really, *really* weird. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ publish: true | |
--- | ||
|
||
|
||
|
||
This is where I'll have various shortcuts. | ||
|
||
## Quickly Foil $(x-b)^2$ | ||
|
53 changes: 53 additions & 0 deletions
53
content/Learning/Math/Triganometry/Creating Trig SVGs with Latex.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
After spending way too much time I figured out how to create triangles with tikz like the following! | ||
|
||
|
||
|
||
![[triangles 1.svg|triangles 1.svg]] | ||
|
||
|
||
- Install MikTex and Texstudio | ||
- Navigate to Texstudio's folder and open up the texstudio.ini | ||
- Add the following line under the `[texmaker]` block | ||
- `Tools\Commands\dvi2svg-no-fonts="txs:///latex | dvisvgm --no-fonts %.dvi"` | ||
- Use this to embed (web safe) fonts instead of paths: `Tools\Commands\dvi2svg="txs:///latex | dvisvgm --font-format=woff %.dvi"` | ||
- Now open up texstudio and create a .tex file with the property standalone | ||
- `\documentclass[12pt, tikz, border=5mm]{standalone}` at the top of the file | ||
- Now go to **Tools->User->dvi2svg** | ||
- Now open the folder with your .tex file and you'll find your .svg file! | ||
- I further went in and edited the width and height to be 500px since its tiny by default | ||
|
||
There you go! | ||
|
||
|
||
The latex code for this triangle: | ||
```latex | ||
\documentclass[12pt, tikz, border=5mm]{standalone} | ||
\usetikzlibrary{angles, | ||
quotes} | ||
\usepackage{siunitx, xcolor} | ||
\begin{document} | ||
\nopagecolor | ||
\begin{tikzpicture}[ | ||
my angle/.style = {draw, fill=teal!30, | ||
angle radius=7mm, | ||
angle eccentricity=1.7, | ||
right, inner sep=1pt, | ||
font=\footnotesize} | ||
] | ||
\draw (0,0) coordinate[label=below:$A$] (a) -- | ||
(4,0) node[midway,below] {$a$} coordinate[label=below:$C$] (c) -- | ||
(0,4) node[midway,above] {$b$} coordinate[label=above:$B$] (b) -- cycle node[left,midway] {$c$}; | ||
\pic[my angle, "$\SI{45}{\degree}$"] {angle = b--c--a}; | ||
\draw (0,.8) (0,.4)-|(.4,0); | ||
\end{tikzpicture} | ||
\end{document} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
## Basic triangle jargon | ||
|
||
[[Creating Trig SVGs with Latex|Creating Trig SVGs with Latex]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.