1

Improve page speeds

This commit is contained in:
Evan Pratten 2020-09-11 12:59:05 -04:00
parent bccf1ef80d
commit c411f08523
No known key found for this signature in database
GPG Key ID: 93AC7B3D071356D3
8 changed files with 27 additions and 4 deletions

View File

@ -16,16 +16,21 @@
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
{% if page.uses contains "masonry" %}
<!-- Masonry for card grids -->
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
{% endif %}
{% if page.uses contains "qrcodes" %}
<!-- QR Codes -->
<script src="/assets/js/qrcode.min.js"></script>
<script type="text/javascript">
new QRCode(document.getElementById("btcqr"), "bitcoin://{{site.btc_address}}");
new QRCode(document.getElementById("stlrqr"), "web+stellar:pay?destination={{site.stellar_address}}");
</script>
{% endif %}
{% if page.uses contains "katex" %}
<!-- Load KaTeX -->
<script src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js" crossorigin="anonymous"
@ -45,9 +50,12 @@
return katex.renderToString(tex.replace(/%.*/g, ''), { displayMode: true });
});
</script>
{% endif %}
{% if page.uses contains "tikz" %}
<!-- TikZJax loader -->
<script src="https://tikzjax.com/v1/tikzjax.js"></script>
{% endif %}
<!-- Tracking API -->
<script src="https://api.retrylife.ca/tracking/external/retrylife.ca"></script>
@ -85,13 +93,13 @@
</script>
{% if page.requires_twitter %}
{% if page.uses contains "twitter" %}
<!-- Twitter embeds -->
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
{% endif %}
{% if page.requires_graphs %}
{% if page.uses contains "graphs" %}
<!-- Roughviz -->
<script src="https://unpkg.com/rough-viz@1.0.5"></script>
{% endif %}

View File

@ -1,4 +1,5 @@
<!DOCTYPE html>
<head>
<title>{{page.title}} | {{ site.title }}</title>
<meta charset="utf-8" />
@ -14,11 +15,15 @@
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
{% if page.uses contains "katex" %}
<!-- Katex -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css">
{% endif %}
{% if page.uses contains "tikz" %}
<!-- TikZJax -->
<link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css">
{% endif %}
<!-- Site style -->
<link rel="stylesheet" href="{{site.baseurl}}/assets/css/color-theme.css">

View File

@ -4,10 +4,11 @@ title: "Building images from binary data"
description: "Simple, yet fun"
date: 2019-09-11 12:41:00
categories: python images
requires_twitter: true
redirect_from:
- /post/ef7b3166/
- /ef7b3166/
uses:
- twitter
---
During a computer science class today, we were talking about embedding code and metadata in *jpg* and *bmp* files. @exvacuum was showing off a program he wrote that watched a directory for new image files, and would display them on a canvas. He then showed us a special image. In this image, he had injected some metadata into the last few pixels, which were not rendered, but told his program where to position the image on the canvas, and it's size.

View File

@ -4,10 +4,11 @@ title: "LudumDare46 Recap"
description: "Recapping the development of <em>Micromanaged Mike</em>"
date: 2020-04-20 12:00:00
categories: gamedev gamejam team
requires_twitter: true
redirect_from:
- /post/ebsdjtd9/
- /ebsdjtd9/
uses:
- twitter
---
Over the past weekend I teamed up with @rsninja722, @wm-c, @exvacuum, @marshmarlow, and our friends Sally and Matt to participate in the [LudumDare46](https://ldjam.com/events/ludum-dare/46) game jam. This post will outline the game development process.

View File

@ -7,6 +7,8 @@ categories: frc
redirect_from:
- /post/6j49kjl4/
- /6j49kjl4/
uses:
- katex
---
I am starting a new little series here called "Notes from FRC". The idea is that I am going to write about what I have learned over the past three years of working (almost daily) with robots, and hopefully someone in the future will find them useful. The production source code I based this post around is available [here](https://github.com/frc5024/lib5k/blob/cd8ad407146b514cf857c1d8ac82ac8f3067812b/common_drive/src/main/java/io/github/frc5024/common_drive/calculation/DifferentialDriveCalculation.java).

View File

@ -11,6 +11,8 @@ excerpt: >-
redirect_from:
- /post/68dj2jl4/
- /68dj2jl4/
uses:
- katex
---
This post is a continuation on my "Notes from FRC" series. If you haven't already, I recommend reading my post on [Converting joystick data to tank-drive outputs](/blog/2020/08/03/joystick-to-voltage). Some concepts in this post were introduced there. Like last time, to see the production code behind this post, check [here](https://github.com/frc5024/lib5k/blob/ab90994b2a0c769abfdde9a834133725c3ce3a38/common_drive/src/main/java/io/github/frc5024/common_drive/DriveTrainBase.java) and [here](https://github.com/frc5024/lib5k/tree/master/purepursuit/src/main/java/io/github/frc5024/purepursuit/pathgen).

View File

@ -4,6 +4,8 @@ description: Looking to make a donation?
layout: page
backing_img: /assets/images/money_transfer__monochromatic.svg
backing_scalar: "height:90%;"
uses:
- qrcodes
---
You probably ended up here from my GitHub page. Since I still am not 18, I can't finish signing up to [GitHub Sponsors](). Due to this, I had to get a little creative with my donations setup.

View File

@ -1,5 +1,7 @@
---
title: Home
uses:
- masonry
---
{% include head.html %}