Improve page speeds
This commit is contained in:
parent
bccf1ef80d
commit
c411f08523
@ -16,16 +16,21 @@
|
|||||||
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
|
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
|
|
||||||
|
{% if page.uses contains "masonry" %}
|
||||||
<!-- Masonry for card grids -->
|
<!-- Masonry for card grids -->
|
||||||
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
|
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.uses contains "qrcodes" %}
|
||||||
<!-- QR Codes -->
|
<!-- QR Codes -->
|
||||||
<script src="/assets/js/qrcode.min.js"></script>
|
<script src="/assets/js/qrcode.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
new QRCode(document.getElementById("btcqr"), "bitcoin://{{site.btc_address}}");
|
new QRCode(document.getElementById("btcqr"), "bitcoin://{{site.btc_address}}");
|
||||||
new QRCode(document.getElementById("stlrqr"), "web+stellar:pay?destination={{site.stellar_address}}");
|
new QRCode(document.getElementById("stlrqr"), "web+stellar:pay?destination={{site.stellar_address}}");
|
||||||
</script>
|
</script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.uses contains "katex" %}
|
||||||
<!-- Load KaTeX -->
|
<!-- Load KaTeX -->
|
||||||
<script src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js" crossorigin="anonymous"></script>
|
<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"
|
<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 });
|
return katex.renderToString(tex.replace(/%.*/g, ''), { displayMode: true });
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.uses contains "tikz" %}
|
||||||
<!-- TikZJax loader -->
|
<!-- TikZJax loader -->
|
||||||
<script src="https://tikzjax.com/v1/tikzjax.js"></script>
|
<script src="https://tikzjax.com/v1/tikzjax.js"></script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- Tracking API -->
|
<!-- Tracking API -->
|
||||||
<script src="https://api.retrylife.ca/tracking/external/retrylife.ca"></script>
|
<script src="https://api.retrylife.ca/tracking/external/retrylife.ca"></script>
|
||||||
@ -85,13 +93,13 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
{% if page.requires_twitter %}
|
{% if page.uses contains "twitter" %}
|
||||||
<!-- Twitter embeds -->
|
<!-- Twitter embeds -->
|
||||||
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if page.requires_graphs %}
|
{% if page.uses contains "graphs" %}
|
||||||
<!-- Roughviz -->
|
<!-- Roughviz -->
|
||||||
<script src="https://unpkg.com/rough-viz@1.0.5"></script>
|
<script src="https://unpkg.com/rough-viz@1.0.5"></script>
|
||||||
{% endif %}
|
{% endif %}
|
@ -1,4 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>{{page.title}} | {{ site.title }}</title>
|
<title>{{page.title}} | {{ site.title }}</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
@ -14,11 +15,15 @@
|
|||||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
|
<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">
|
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
||||||
|
|
||||||
|
{% if page.uses contains "katex" %}
|
||||||
<!-- Katex -->
|
<!-- Katex -->
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css">
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.uses contains "tikz" %}
|
||||||
<!-- TikZJax -->
|
<!-- TikZJax -->
|
||||||
<link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css">
|
<link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css">
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- Site style -->
|
<!-- Site style -->
|
||||||
<link rel="stylesheet" href="{{site.baseurl}}/assets/css/color-theme.css">
|
<link rel="stylesheet" href="{{site.baseurl}}/assets/css/color-theme.css">
|
||||||
|
@ -4,10 +4,11 @@ title: "Building images from binary data"
|
|||||||
description: "Simple, yet fun"
|
description: "Simple, yet fun"
|
||||||
date: 2019-09-11 12:41:00
|
date: 2019-09-11 12:41:00
|
||||||
categories: python images
|
categories: python images
|
||||||
requires_twitter: true
|
|
||||||
redirect_from:
|
redirect_from:
|
||||||
- /post/ef7b3166/
|
- /post/ef7b3166/
|
||||||
- /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.
|
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.
|
||||||
|
@ -4,10 +4,11 @@ title: "LudumDare46 Recap"
|
|||||||
description: "Recapping the development of <em>Micromanaged Mike</em>"
|
description: "Recapping the development of <em>Micromanaged Mike</em>"
|
||||||
date: 2020-04-20 12:00:00
|
date: 2020-04-20 12:00:00
|
||||||
categories: gamedev gamejam team
|
categories: gamedev gamejam team
|
||||||
requires_twitter: true
|
|
||||||
redirect_from:
|
redirect_from:
|
||||||
- /post/ebsdjtd9/
|
- /post/ebsdjtd9/
|
||||||
- /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.
|
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.
|
||||||
|
@ -7,6 +7,8 @@ categories: frc
|
|||||||
redirect_from:
|
redirect_from:
|
||||||
- /post/6j49kjl4/
|
- /post/6j49kjl4/
|
||||||
- /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).
|
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).
|
||||||
|
@ -11,6 +11,8 @@ excerpt: >-
|
|||||||
redirect_from:
|
redirect_from:
|
||||||
- /post/68dj2jl4/
|
- /post/68dj2jl4/
|
||||||
- /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).
|
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).
|
||||||
|
@ -4,6 +4,8 @@ description: Looking to make a donation?
|
|||||||
layout: page
|
layout: page
|
||||||
backing_img: /assets/images/money_transfer__monochromatic.svg
|
backing_img: /assets/images/money_transfer__monochromatic.svg
|
||||||
backing_scalar: "height:90%;"
|
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.
|
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.
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: Home
|
title: Home
|
||||||
|
uses:
|
||||||
|
- masonry
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user