Skip to content

Instantly share code, notes, and snippets.

View pqnga's full-sized avatar

ngapham@kobiton.com pqnga

  • Ho Chi Minh City, Vietnam
View GitHub Profile
@azsromej
azsromej / archives.html
Created March 7, 2012 18:19
Jekyll generator plugin to group posts by month for archives page
---
layout: default
title: Archives
---
<h1>{{ page.title }}</h1>
<div class="archives">
{% for month in page.months %}
<h2>{{ month | date:"%B" }} <small>{{ month | date:"%Y" }}</small></h2>
<ul>
{% for post in page.posts_by_month[month] %}
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "songsearch.settings")
application = get_wsgi_application()
from songsearch.main.models import *
import hashlib
@chrxn
chrxn / md-cal.sh
Last active March 6, 2023 07:09 — forked from jdbrice/md-cal.sh
Generate markdown table calendar. Use wiki links to individual days
# modified to use gdate for macos -- obtain 'gdate' by running `brew install coreutils`
startdate=2020-01-01
enddate=2020-12-31
# controls the link format for each day:
# [[ $linkformat | $displayformat ]]
linkformat="%Y-%b-%d-%a"
displayformat="%d"
# marker for empty days in calendar view