Skip to content

Instantly share code, notes, and snippets.

View hxueh's full-sized avatar

hxueh

View GitHub Profile
#!/usr/bin/env sh
LEDGER_DIR="/path/to/directory"
LEDGER_NAME="Ledger"
GPG_PUB_KEY="YOURGPGFINGERPRINT"
NOW=$($(which date) --iso-8601=seconds)
CURRENT_MONTH=$($(which date) +%Y-%m)
BACKBLAZE_BUCKET="YOURBUCKETNAME"
BACKBLAZE_REMOTE_FILE_DIR="Ledger"
@hxueh
hxueh / matrix.html
Last active January 8, 2019 20:46
matrix.html in CS50 2017 Pset6 Similarities (more comfortable)
<table class="table table-sm">
<thead>
<tr>
<!--There are three empty cell in the first header-->
<th></th>
<th></th>
<th></th>
<!--s2 is the string2, according to application.py-->
{% for character in s2 %}
<th>{{character}}</th>