-
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.
updated old blog posts and tweaked theme
- Loading branch information
1 parent
cbfb9ea
commit 8133cd6
Showing
17 changed files
with
357 additions
and
61 deletions.
There are no files selected for viewing
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,12 +1,55 @@ | ||
Embedding js in pelican | ||
####################### | ||
######################### | ||
|
||
:date: 2024-01-22 | ||
:tags: pelican, javascript, chart.js | ||
:authors: Matt Gibson | ||
:modified: 2024-04-04 | ||
|
||
This is a stub. An example of how to embed a javascript file in a pelican article. | ||
|
||
Sometimes I like to write a little js in my blog posts. Here is an example of how to embed a javascript file in a pelican article. | ||
|
||
.. raw:: html | ||
|
||
<div id="demo"></div> | ||
<script src="{static}/js/demo.js"></script> | ||
|
||
Below the fold, is an example of embedding a js chart into a pelican article. Specifically, we have the crude marriage rates in Australia for 2000 to 2022. Not many surprises here, the crude marriage rate has been in decline for the past 20 years, barring some minor fluctions most dramatically due to Covid. | ||
|
||
.. raw:: html | ||
|
||
<div> | ||
<canvas id="myChart"></canvas> | ||
</div> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | ||
|
||
<script> | ||
const ctx = document.getElementById('myChart'); | ||
new Chart(ctx, { | ||
type: 'line', | ||
data: { | ||
labels: ['2020', '2019', '2018','2017', '2016', '2015', '2014', '2013', '2012', '2011', '2010', '2009', '2008', '2007', '2006', '2005', '2004', '2003', '2002', '2001', '2000'].toReversed(), | ||
datasets: [{ | ||
label: 'marriages per 1,000 residents in Australia', | ||
data: [3.1, 4.5, 4.8, 4.6, 4.9, 4.8, 5.2, 5.1, 5.4, 5.4, 5.4, 5.5, 5.5, 5.5, 5.5, 5.4, 5.5, 5.4, 5.4, 5.3, 5.9].toReversed(), | ||
borderWidth: 1 | ||
}] | ||
}, | ||
options: { | ||
scales: { | ||
y: { | ||
beginAtZero: true | ||
} | ||
}, | ||
animation: { | ||
duration: 0 | ||
} | ||
} | ||
}); | ||
</script> | ||
|
||
source data: `Parliamentary library <https://www.aph.gov.au/About_Parliament/Parliamentary_Departments/Parliamentary_Library/FlagPost/2021/December/Marriage_and_divorce>`_ | ||
|
||
Note `this website <https://www.statista.com/statistics/610957/australia-crude-marriage-rate/>`_ here is wrong because the `ABS changed there methods <https://www.abs.gov.au/statistics/people/people-and-communities/marriages-and-divorces-australia/latest-release#marriages>`_. Pretty cheeky to charge you $199 USD per year for bad collation of public data. |
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,7 +1,23 @@ | ||
The Wild West of the Jupyter | ||
The Wild West of Jupyter | ||
############################# | ||
|
||
:date: 2024-02-13 | ||
:authors: Matt Gibson | ||
|
||
this is a stub. There's some wacky stuff in the Jupyter ecosystem. | ||
There's some wacky stuff in the Jupyter ecosystem, but I think on thing that really stood out for me is the extension of jupyter notebooks into web development and the interaction with javascript. So web assembly is a thing and you can run C code little isolated javascripts instances, maybe even from your CDN, so of course you want to compile `Python in WASM <https://pyodide.org/en/stable/>`_, and now you're wondering, didn't Jupyter do some fancy refactoring and that I think about I can put a webserver in there too... | ||
|
||
|
||
Behold `JupyterLite <https://jupyterlite.readthedocs.io/en/latest/quickstart/embed-repl.html>`_: | ||
|
||
.. raw:: html | ||
|
||
<iframe | ||
src="https://jupyterlite.github.io/demo/repl/index.html?kernel=python&code=print('hello world')" | ||
width="100%" | ||
height="100%" | ||
></iframe> | ||
|
||
Wow! Just what you always wanted free notebook hosting! you can install packages, you can code, | ||
|
||
powered by this: | ||
https://jupyterlite.readthedocs.io/en/latest/_images/jupyterlite-diagram.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Year, CrudeMarriageRate | ||
2020, 3.1 | ||
2019, 4.5 | ||
2018, 4.8 | ||
2017, 4.6 | ||
2016, 4.9 | ||
2015, 4.8 | ||
2014, 5.2 | ||
2013, 5.1 | ||
2012, 5.4 | ||
2011, 5.4 | ||
2010, 5.4 | ||
2009, 5.5 | ||
2008, 5.5 | ||
2007, 5.5 | ||
2006, 5.5 | ||
2005, 5.4 | ||
2004, 5.5 | ||
2003, 5.4 | ||
2002, 5.4 | ||
2001, 5.3 | ||
2000, 5.9 |
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,12 @@ | ||
Year Men Women | ||
2021 30.8 29.4 | ||
2020 30.6 29.2 | ||
2019 30.7 29.3 | ||
2018 30.7 29.2 | ||
2017 30.4 28.8 | ||
2016 30.3 28.7 | ||
2015 30.1 28.5 | ||
2014 30.0 28.4 | ||
2013 29.9 28.3 | ||
2007 29.6 27.6 | ||
1997 27.8 25.9 |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
Title: About Me | ||
Author: Matt Gibson | ||
Summary: About me page | ||
save_as: index.html | ||
--- | ||
|
||
I am a software and machine learning developer in [Sydney](http://en.wikipedia.org/wiki/Sydney), NSW, Australia. I like [computing](https://en.wikipedia.org/wiki/MOS_Technology_6502), [data](https://search.r-project.org/CRAN/refmans/vcd/html/HorseKicks.html), [machine learning](https://pytorch.org/) and [cooking](https://web.archive.org/web/20160210065535/http://www.seriouseats.com/the-food-lab/?ref=nav_main). I'm delighted by the scientific enterprise which allows us ["to see a World in a Grain of Sand"](https://www.poetryfoundation.org/poems/43650/auguries-of-innocence). | ||
|
||
I'm also quite keen on gibbons 🐒. | ||
|
||
I acknowledge and pay my respects to the Traditional Custodians of the land on which I work and live, and their elders past, present, and emerging. Sovereignty was never ceded. | ||
|
||
This second version of my homepage hosted by Github Pages and created using [Pelican](https://github.com/getpelican/pelican). |
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,29 @@ | ||
--- | ||
Title: CV | ||
Author: Matt Gibson | ||
Summary: My CV | ||
--- | ||
|
||
Looking for work. My email can be found on my github commits. | ||
|
||
### Experience | ||
|
||
|
||
- Contract Developer | ||
- Machine Learning Researcher | ||
- Research Engineer | ||
- Data Scientist | ||
- Data Analyst | ||
|
||
### Education | ||
|
||
|
||
- Ph.D. UNSW, CS (Computer Vision and Machine learning) | ||
- M.Sc. University of Sydney, Maths (Algebraic Combinatorics) | ||
- B.Sc. University of Auckland, Maths (H1) + Computation and Logic | ||
|
||
### Skills | ||
|
||
- Tools: Linux, Tensorflow, Pytorch | ||
- Techniques: Deep Learning, Computer Vision, Time Series | ||
- Languages: Python, Javascript, R, SQL, C, HTML, CSS |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
Oops, something went wrong.