~rleek/website

34102447e560e8accb4f0ebac1c37f8cf0da694d — rleek 1 year, 3 days ago e338b09
happy halloween
A files/images/2019-10-19-halloween-pumpkins.jpg => files/images/2019-10-19-halloween-pumpkins.jpg +0 -0

A files/images/2019-10-19-halloween-pumpkins.jpg~ => files/images/2019-10-19-halloween-pumpkins.jpg~ +0 -0

M index.liquid => index.liquid +1 -1
@@ 5,7 5,7 @@ data:
    keywords: Richard Leek,Richard,Leek,Website,Blog
---

{% for post in collections.posts.pages reversed %}
{% for post in collections.posts.pages %}
<h3><a href="{{post.permalink}}">{{post.title}}</a></h3>
<p>{{post.excerpt}}</p>


R posts/switching-to-aerc.md => posts/2019-10-07-switching-to-aerc.md +0 -0

A posts/2019-10-19-happy-halloween.md => posts/2019-10-19-happy-halloween.md +10 -0
@@ 0,0 1,10 @@
---
title: Happy Halloween!
layout: default.liquid
is_draft: false
data:
    keywords: halloween,2019,pumpkins,zelda,carving,art
---

<img src="/files/images/2019-10-19-halloween-pumpkins.jpg" />
<br />Here's the pumpkins we carved this year for Halloween!

M posts/kingdom-hearts-iii.md => posts/kingdom-hearts-iii.md +2 -0
@@ 2,6 2,8 @@
title: Kingdom Hearts III
layout: posts.liquid
is_draft: true
data:
    keywords: blah
---
In 2003 I was seven years old and my parents bought two new games for the PlayStation 2. 
SSX 3 for my step-brother, and Kingdom Hearts for me. I have fond memories of that time

M posts/there-is-a-gap-in-my-digital-life.md => posts/there-is-a-gap-in-my-digital-life.md +2 -0
@@ 2,6 2,8 @@
title: There is a gap in my digital life
layout: posts.liquid
is_draft: true
data:
    keywords: blah
---

I got my first personal computer in the mid 2000s. It was a Christmas gift from my grandparents. One of those old Dell towers that came preinstalled with Windows XP. Of course this wasn't my first time using a PC, but this PC was mine.

A scan.html => scan.html +37 -0
@@ 0,0 1,37 @@
<!DOCTYPE html>
<html>
    <head>
        <title>Scan</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta charset="utf-8">
    </head>

    <button id="btn-open-scanner">Open Scanner!</button>
    <h3>Result</h3>
    <p id="result"></p>

    <script type="text/javascript">
        window.onload = function() {
            var button = document.getElementById('btn-open-scanner');
            var result = document.getElementById('result');

            button.addEventListener('click', openScanner);

            function openScanner() {
                try {
                    if (typeof nativeApp !== 'undefined') {
                        nativeApp.scanBarcode();
                    } else {
                        webkit.messageHandlers.barcodeScanner.postMessage({});
                    }
                } catch (e) {
                    alert(JSON.stringify(e));
                }
            }

            window.onBarcodeScanned = function(barcode) {
                result.innerText = barcode;
            }
        }
    </script>
</html>