Skip to content
Permalink
Browse files

Prettify all the things

  • Loading branch information...
jasikpark committed Apr 30, 2019
1 parent 5666721 commit f7a9e08da18d7cf0e3822ee8c9f6c30361d5b46f
@@ -110,5 +110,3 @@ Which would be O(n) and worse than the dynamic programming version
`a^n = a^{n/2} * a^{n/2} * a` if n is odd

- Solve the power function analysis

`
@@ -5,4 +5,5 @@ title = "CSCE 222.509 | Cultural Assignment"
type = "post"
+++

Hello World idk who I was supposed to be researching but here's the blog post about them.
Hello World idk who I was supposed to be researching but here's the blog post
about them.
@@ -7,4 +7,4 @@ Date = "2019-04-17T02:03:04-05:00"
Title = "I Finally Set Up Percy CI on My Blog"
+++

I finally set up some stuff. It cool.
I finally set up some stuff. It cool.
@@ -7,12 +7,29 @@ title = "How to Add MathJax to Your Hugo Blog"
type = "post"
+++

At first when trying to set up my blog with math support, I consulted the [Hugo Documentation](https://gohugo.io/content-management/formats/#enable-mathjax) to find out what it said about it. It just said to add the MathJax script to a partial template that would be included in every page that needed MathJax, such as the footer partial template.
At first when trying to set up my blog with math support, I consulted the
[Hugo Documentation](https://gohugo.io/content-management/formats/#enable-mathjax)
to find out what it said about it. It just said to add the MathJax script to a
partial template that would be included in every page that needed MathJax, such
as the footer partial template.

The problem was that I am using my theme as a git submodule, which means that I cannot edit anything within it without making a pull request to the remote repository, in this case being https://github.com/budparr/gohugo-theme-ananke. So I asked [Bud Parr](https://github.com/budparr), the author of the theme, how to add this script to the partial template without editing the theme.
The problem was that I am using my theme as a git submodule, which means that I
cannot edit anything within it without making a pull request to the remote
repository, in this case being https://github.com/budparr/gohugo-theme-ananke.
So I asked [Bud Parr](https://github.com/budparr), the author of the theme, how
to add this script to the partial template without editing the theme.

In this [github issue](https://github.com/budparr/gohugo-theme-ananke/issues/129), [Bud Parr](https://github.com/budparr) answered my question, stating that all I needed to do was make a duplicate of https://github.com/budparr/gohugo-theme-ananke/blob/master/layouts/partials/site-scripts.html, which is a partial template for adding scripts to every page, and move the duplicate from `/themes/ananke/layouts/partials/site-scripts.html` to `/layouts/partials/site-scripts.html`.
In this [github issue](https://github.com/budparr/gohugo-theme-ananke/issues/129),
[Bud Parr](https://github.com/budparr) answered my question, stating that all I
needed to do was make a duplicate of
https://github.com/budparr/gohugo-theme-ananke/blob/master/layouts/partials/site-scripts.html,
which is a partial template for adding scripts to every page, and move the
duplicate from `/themes/ananke/layouts/partials/site-scripts.html` to
`/layouts/partials/site-scripts.html`.

After that, I updated my script to include [David Granjon's](https://divadnojnarg.github.io/blog/mathjax/) improvements to setting up MathJax with Hugo, which involved making MathJax not skip code blocks and fixing the CSS of codeblocks that MathJax decided were math. But you can really just copy and paste it.
After that, I updated my script to include [David Granjon's](https://divadnojnarg.github.io/blog/mathjax/)
improvements to setting up MathJax with Hugo, which involved making MathJax not
skip code blocks and fixing the CSS of codeblocks that MathJax decided were
math. But you can really just copy and paste it.

{{< gist jasikpark f07f3bf8bbf11a731425bf14825360fd >}}
@@ -7,9 +7,10 @@ Date = "2019-04-23T19:07:05-05:00"
Title = "jasik.xyz Resources"
+++

This page will track info that I've picked up over time about [Hugo](https://gohugo.io) and other technologies while creating [jasik.xyz](https://jasik.xyz).
This page will track info that I've picked up over time about [Hugo](https://gohugo.io)
and other technologies while creating [jasik.xyz](https://jasik.xyz).

- [Add Tags to Your Hugo Blog Using Taxonomies | Jake Wiesler](https://www.jakewiesler.com/blog/hugo-taxonomies/)
- [flex-wrap - CSS: Cascading Style Sheets | MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap)
- [CSS2 - :first-child and :last-child](https://quirksmode.org/css/selectors/firstchild.html)
- [A Call for ::nth-everything | CSS-Tricks](https://css-tricks.com/a-call-for-nth-everything/)
- [A Call for ::nth-everything | CSS-Tricks](https://css-tricks.com/a-call-for-nth-everything/)
@@ -10,6 +10,7 @@ type = "post"
> this is James Laffrey’s recipe that I’ve written down for deliciousness
## ingredients

- muffin tins
- glass with mouth wider than muffin tin cups
- 6 lbs of ground meat (a mix of beef and lamb)
@@ -20,19 +21,26 @@ type = "post"
- pre-made pie crust
- instant potatoes

----
---

1. brown the ground beef
2. add your onions and cook until they are translucent.
3. add pepper and salt and thyme. and a whole chunk of garlic.
4. add frozen peas and carrots to the mix.
5. *If you want to make the meat filling the night before, stop here and refrigerate it.*
5. if you refrigerated the meat filling, heat it up and be sure to heat up all of the fat embedded in it. If there isn’t enough, just add some butter.
6. add flour to the meat filling and coat everything thoroughly.
7. then add any beef stock you have. Gatsby used aus jus. Use whatever you want though.
8. now take a glass that has a larger mouth than your muffin tins and use it to cut out pie crusts.
9. brush these with butter and then flour to prevent them from sticking as you set them on a plate to the side.
10. poke the bottom of each crust with a fork to prevent bubbles.
11. bake them in the oven at 350°F for 5 minutes, blind baking the crust.
12. once the crusts are done, take your meat filling and fill to about 2/3 of the crust. Add a 1/4 cup scoop of instant potatoes to the top and bake at 350°F for about 8 minutes.
13. Tada! You now have amazing mini shepherd’s pies
2. add your onions and cook until they are translucent.
3. add pepper and salt and thyme. and a whole chunk of garlic.
4. add frozen peas and carrots to the mix.
5. _If you want to make the meat filling the night before, stop here and
refrigerate it._
6. if you refrigerated the meat filling, heat it up and be sure to heat up all
of the fat embedded in it. If there isn’t enough, just add some butter.
7. add flour to the meat filling and coat everything thoroughly.
8. then add any beef stock you have. Gatsby used aus jus. Use whatever you want
though.
9. now take a glass that has a larger mouth than your muffin tins and use it to
cut out pie crusts.
10. brush these with butter and then flour to prevent them from sticking as you
set them on a plate to the side.
11. poke the bottom of each crust with a fork to prevent bubbles.
12. bake them in the oven at 350°F for 5 minutes, blind baking the crust.
13. once the crusts are done, take your meat filling and fill to about 2/3 of
the crust. Add a 1/4 cup scoop of instant potatoes to the top and bake at
350°F for about 8 minutes.
14. Tada! You now have amazing mini shepherd’s pies
@@ -3,8 +3,9 @@ date = "2018-09-02 00:03:22 +0000"
title = "My First Post"
type = "post"
+++
# First Post

Hi, I'm Caleb Jasik. I have absolutely no clue what I'm doing on the internet, but I'm going to try to record my notes from going to college here, and improve my writing skills as well hopefully.
Hi, I'm Caleb Jasik. I have absolutely no clue what I'm doing on the internet,
but I'm going to try to record my notes from going to college here, and improve
my writing skills as well hopefully.

I'll be sure to post here every three days.
@@ -7,17 +7,23 @@ type = "post"

## Characteristics of periodic motion

Amplitude is maximum magnitude of displacement from equilibrium Period, \\(T\\), is the time for one cycle Frequency, \\(F\\) is the number of cycles per unit of time = \\(F = \\frac{1}{T}\\) Angular Frequency,
Amplitude is maximum magnitude of displacement from equilibrium Period, \\(T\\),
is the time for one cycle Frequency, \\(F\\) is the number of cycles per unit of
time = \\(F = \\frac{1}{T}\\) Angular Frequency,

Test Your Understanding of Section 4.1 in the book

## Simple harmonic motion:
## Simple harmonic motion

When the restoring force is directly proportional to the displacement from equilibrium, the resulting motion is called simple harmonic motion, i.e., \\(F_x = -kx\\).
When the restoring force is directly proportional to the displacement from
equilibrium, the resulting motion is called simple harmonic motion, i.e., \\(F_x
= -kx\\).

Simple harmonic motion can be considered a projection of uniform circular motion.
Simple harmonic motion can be considered a projection of uniform circular
motion.

Characteristics of SHM For a body that is vibrating via an ideal spring: \\(F_x = -kx = m a_x = x\\omega^2\\)
Characteristics of SHM For a body that is vibrating via an ideal spring: \\(F_x
= -kx = m a_x = x\\omega^2\\)

If you increase the mass of an object in SMH, the frequency will decrease.

@@ -31,13 +37,16 @@ Displacement as a function of time in SHM

Graphs of displacement, velocity, and acceleration:

The displacement as a function of time for SHM with phase angle \\(\\phi\\) is \\(x = Acos(\\omega t + \\phi)\\)
The displacement as a function of time for SHM with phase angle \\(\\phi\\) is
\\(x = Acos(\\omega t + \\phi)\\)

The velocity is \\(\\frac{dx}{dt} = v_x = -A\\omega sin(\\omega t + \\phi)\\)

The acceleration is \\(\\frac{d^2x}{dt^2} = a_x = -A\\omega^2 cos(\\omega t + \\phi) = -\\omega^2 x\\)
The acceleration is \\(\\frac{d^2x}{dt^2} = a_x = -A\\omega^2 cos(\\omega t +
\\phi) = -\\omega^2 x\\)

The phase angle, \\(\\phi\\) refers to where in the period that you begin the curve.
The phase angle, \\(\\phi\\) refers to where in the period that you begin the
curve.

Total mechanical energy is conserved:

@@ -5,24 +5,30 @@ tags = ["tamu", "phys221", "classes"]
title = "PHYS 221.501 | More on Simple Harmonic Motion"
type = "post"
+++
## Total mechanical energy is conserved in SHM:

## Total mechanical energy is conserved in SHM

\\(E = \frac{1}{2}mv_x^2 + \frac{1}{2}kx^2 = \frac{1}{2}kA^2 = constant\\)

Choose \\(t’\\) such that \\(x(t') = Acos(\omega t' + \phi) = -\frac{1}{2}A\\)

\\(v_x(t') = -\omega A sin(\omega t' + \phi)\) -> \(v_x = -\omega Asin(\frac{2\pi}{3}) = \\) oh well….
\\(v_x(t') = -\omega A sin(\omega t' + \phi)\) -> \(v_x = -\omega
Asin(\frac{2\pi}{3}) = \\) oh well….

## Energy diagrams for SHM:
## Energy diagrams for SHM

Graph these with respect to constant system energy:
\\(PE = \frac{1}{2}kA^2 cos^2(\omega t + \phi)\\)
\\(KE = \frac{1}{2}kA^2 sin^2(\omega t + \phi)\\)
Graph these with respect to constant system energy: \\(PE = \frac{1}{2}kA^2
cos^2(\omega t + \phi)\\) \\(KE = \frac{1}{2}kA^2 sin^2(\omega t + \phi)\\)

If you graph the potential energy \\(U\\) and the total energy \\(E\\), \\(E\\) will be at a constant height, and \\(U\\) will be in the shape of a parabola.
If you graph the potential energy \\(U\\) and the total energy \\(E\\), \\(E\\)
will be at a constant height, and \\(U\\) will be in the shape of a parabola.

The max \\(U\\) will be when \\(cos^2(\omega t + \phi)\\) is at a maximum, so it will reduce to \\(\frac{1}{4}kA^2\\), describing the max \\(U\\).
The max \\(U\\) will be when \\(cos^2(\omega t + \phi)\\) is at a maximum, so it
will reduce to \\(\frac{1}{4}kA^2\\), describing the max \\(U\\).

The max \\(K\\) will be when \\(sin^2(\omega t + \phi)\\) is at a maximum, so it will reduce to \\(\frac{1}{4}kA^2\\), describing the max \\(K\\), which is the same as the max \\(U\\).
The max \\(K\\) will be when \\(sin^2(\omega t + \phi)\\) is at a maximum, so it
will reduce to \\(\frac{1}{4}kA^2\\), describing the max \\(K\\), which is the
same as the max \\(U\\).

\\(x_0 = x(0) = Acos(\phi)\\)

@@ -37,41 +43,46 @@ The max \\(K\\) will be when \\(sin^2(\omega t + \phi)\\) is at a maximum, so it
\\(F = -kx\\)

## Energy and Momentum in SHM
📸 of a mass on a spring describing the equilibrium position, amplitude, k-ratio, and velocity.

\\(Total energy = E_1 = \frac{1}{2}kA_1^2 = \frac{1}{2}Mv_1^2\\)
\\(v_1 = \sqrt{\frac{k}{M}A_1}\\)
📸 of a mass on a spring describing the equilibrium position, amplitude,
k-ratio, and velocity.

\\(Total energy = E_1 = \frac{1}{2}kA_1^2 = \frac{1}{2}Mv_1^2\\) \\(v_1 =
\sqrt{\frac{k}{M}A_1}\\)

If we drop putty with a mass of \\(m\\), momentum is conserved.

\\(Mv_1 = (M + m)v_2\\)
\\(v_2 = \frac{M}{M + m}v_1\\)
\\(Mv_1 = (M + m)v_2\\) \\(v_2 = \frac{M}{M + m}v_1\\)

\\(E_2 = \frac{1}{2}(M + m)v_2^2 = \frac{1}{2}\frac{M^2}{M + m}v_1^2 = \frac{M}{M + m}(\frac{1}{2}Mv_1^2) = \frac{M}{M + m}E_1\\)
\\(E_2 = \frac{1}{2}(M + m)v_2^2 = \frac{1}{2}\frac{M^2}{M + m}v_1^2 =
\frac{M}{M + m}(\frac{1}{2}Mv_1^2) = \frac{M}{M + m}E_1\\)

\\(E_2 = \frac{1}{2}kA_2^2 = \frac{M}{M + m}E_1\\)

## Vertical SHM
If a body oscillates from a spring, the restoring force has magnitude \(kx\). Therefore the vertical motion is SHM.

\\(F = k\delta l\\)
\\(k\delta l = mg\\)
If a body oscillates from a spring, the restoring force has magnitude \(kx\).
Therefore the vertical motion is SHM.

\\(F = k\delta l\\) \\(k\delta l = mg\\)

If we have a weight on a vertically suspended spring, the net force is:

\\(F_{net} = k(\delta l -x) -mg = k\delta l -kx -mg = -kx\\)
\\(F\_{net} = k(\delta l -x) -mg = k\delta l -kx -mg = -kx\\)

## Angular SHM
A coil spring exerts a restoring torque \\(\tau_z = I\alpha = -\kappa\theta\) where \(\kappa\\) is called the torsion.

A coil spring exerts a restoring torque \\(\tau_z = I\alpha = -\kappa\theta\)
where \(\kappa\\) is called the torsion.

Get a screenshot of page 441 of the book.

**Remember: T describes the time to go from +A to +A, not +A to -A**
**Remember: T describes the time to go from +A to +A, not +A to -A.**

\\(\phi = \arctan(-\frac{v_{0x}}{\omega x_0})\\)
\\(\phi = \arctan(-\frac{v\_{0x}}{\omega x_0})\\)

\\(\tan(\phi) = -\frac{v_{0x}}{\omega x_0}\\)
\\(\tan(\phi) = -\frac{v\_{0x}}{\omega x_0}\\)

\\(v_{0x} = -\omega A\sin(\phi)\\)
\\(v\_{0x} = -\omega A\sin(\phi)\\)

\\(x_0 = A\cos(\phi)\\)
@@ -8,7 +8,9 @@ title = "Posting Code"
type = "post"
+++

Here's a little "Hello World" code snippet to show how C++ highlighting works on the website. I wonder if adding Github gists is a better idea, but idk. It's fine.
Here's a little "Hello World" code snippet to show how C++ highlighting works on
the website. I wonder if adding Github gists is a better idea, but idk. It's
fine.

{{< highlight cpp >}}
#include <iostream>
@@ -21,4 +21,4 @@ using namespace std;
int main() {
cout << "aloha texas" << endl;
}
```
```
@@ -6,6 +6,7 @@ title = "Starbucks at Zachry"
type = "post"
+++

Here's a pic of me hanging out at the Starbucks at the new Texas A&M University Zachry Engineering Building Starbucks.
Here's a pic of me hanging out at the Starbucks at the new Texas A&M University
Zachry Engineering Building Starbucks.

![](/uploads/IMG_1941.JPG)
@@ -7,4 +7,5 @@ type = "post"
+++

Here's a really poorly edited video of my siblings and I playing tennis badly.

{{< youtube SC122wb9fD8 >}}
@@ -1,10 +1,17 @@
{{ partial "header.html" . }}
<div class="par">
{{ range (where (.Pages.GroupByDate "2006") ".Key" "!=" "0001") }}
<div><div style="display:flex;justify-content:center" class="pd"><h2>{{ .Key }}</h2></div></div>
{{ range .Pages }}
<div><div class="pd">{{ .Date.Format "01/02" }}</div><a href="{{ .Permalink }}">{{ .Page.Title }}</a></div>
{{ end }}
{{ end }}
{{ range (where (.Pages.GroupByDate "2006") ".Key" "!=" "0001") }}
<div>
<div style="display:flex;justify-content:center" class="pd">
<h2>{{ .Key }}</h2>
</div>
</div>
{{ range.Pages }}
<div>
<div class="pd">{{ .Date.Format "01/02" }}</div>
<a href="{{ .Permalink }}">{{ .Page.Title }}</a>
</div>
{{ end }}
{{ end }}
</div>
{{ partial "footer.html" . }}
@@ -1,12 +1,18 @@
{{ partial "header.html" . }}
<strong>{{ .Title }}</strong>
<hr/>
<hr />
{{ .Content }}
<div class="navi-parent">
<div>This page was last modified <a href="https://github.com/jasikpark/jasik-xyz/commit/{{ .GitInfo.Hash }}">{{ .Lastmod.Format "January 2, 2006" }}</a></div>
<div>
This page was last modified
<a
href="https://github.com/jasikpark/jasik-xyz/commit/{{ .GitInfo.Hash }}"
>{{ .Lastmod.Format "January 2, 2006" }}</a
>
</div>
</div>
<div class="navi-parent">
{{with .PrevPage}}<a href="{{.Permalink}}">← {{.Title}}</a>{{end}}
{{with .NextPage}}<a href="{{.Permalink}}">{{.Title}} →</a>{{end}}
<div class="navi-parent">
{{ with.PrevPage }}<a href="{{.Permalink}}">← {{.Title}}</a> {{ end }}
{{ with.NextPage }}<a href="{{.Permalink}}">{{.Title}} →</a>{{ end }}
</div>
{{ partial "footer.html" . }}
@@ -1,10 +1,17 @@
{{ partial "header.html" . }}
<div class="par">
{{ range (where (.Pages.GroupByDate "2006") ".Key" "!=" "0001") }}
<div><div style="display:flex;justify-content:center" class="pd"><h2>{{ .Key }}</h2></div></div>
{{ range (where .Pages "Type" "post")}}
<div><div class="pd">{{ .Date.Format "01/02" }}</div><a href="{{ .Permalink }}">{{ .Page.Title }}</a></div>
{{ end }}
{{ end }}
{{ range (where (.Pages.GroupByDate "2006") ".Key" "!=" "0001") }}
<div>
<div style="display:flex;justify-content:center" class="pd">
<h2>{{ .Key }}</h2>
</div>
</div>
{{ range (where .Pages "Type" "post")}}
<div>
<div class="pd">{{ .Date.Format "01/02" }}</div>
<a href="{{ .Permalink }}">{{ .Page.Title }}</a>
</div>
{{ end }}
{{ end }}
</div>
{{ partial "footer.html" . }}

0 comments on commit f7a9e08

Please sign in to comment.
You can’t perform that action at this time.