Skip to content

Instantly share code, notes, and snippets.

View mattparmett's full-sized avatar

Matt Parmett mattparmett

View GitHub Profile
@mattparmett
mattparmett / mutt-with-gmail-gpg-macosx.md
Created November 28, 2023 00:25 — forked from syncom/mutt-with-gmail-gpg-macosx.md
Configure Mutt to work with Gmail + GPG on Mac OS X

Mutt (or NeoMutt) with Gmail and GPG, Mutiple Accounts

This note describes how to set up the Mutt or NeoMutt email client to work for Gmail and GnuPG, for two Gmail accounts. The method can be trivially extended to more than two accounts. The configuration should work for both macOS and Linux.

Software versions

@mattparmett
mattparmett / ug.css
Created January 1, 2018 23:38
Ultimate-Guitar Lite Userstyle
/* Hide all elements of the page, and set bg to white */
body {
visibility: hidden;
background-image: none;
background-color: white;
}
/* Unhide search bar, song title, tab, comments */
div#search_bar_simple, h1, pre.js-tab-content, div.cm_cnt {
visibility: visible!important;
#KeychainDB.py
#A script which enables the use of
#the Pythonista keychain as a persistent
#database. The database is accessed like a dict.
#Usage:
# from keychaindb import KeychainDB
# kdb = KeychainDB()
# kdb['key']
#Unfortunately the keychain can only hold
@mattparmett
mattparmett / pss_api_docs_v1.md
Created March 25, 2013 01:20
Penn Study Spaces API v1 Documentation

PennStudySpaces API V1 Docs

Queries

GET http://www.pennstudyspaces.com/api?capacity=1&shr=10&smin=15&ehr=11&emin=15&date=2398610000000&format=json

Parameters

  • capacity: the number of people that will be occupying the desired room (required, integer)
  • Reservation time range:
    • shr: start hour (required, integer)
    • smin: start minutes (required, integer)
  • ehr: end hour (required, integer)
<!-- adds markdown support to TmTheme file -->
<dict>
<key>name</key>
<string>diff: deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#EAE3CA</string>
@mattparmett
mattparmett / pcr_api_docs_v2.md
Created December 9, 2012 17:50
PCR API Documentation

Penn Course Review API overview

Version 2, 12/1/2012

Purpose: This document (1) helps us write the API and (2) is used by API consumers to understand its functionality.

Notes

This document borrows heavily from the original Penn Registrar Courses API documentation, of which this PCR API is a super-set. Whenever we link to things, we link to the canonical alias for them. In general, things that use IDs (i.e., shorter things) are canonical. Everything is permanent unless we specify explicitly.

@mattparmett
mattparmett / show-hide-wql-descriptions.html
Created October 11, 2012 23:46
Show/Hide WQL descriptions
<!-- jquery -->
<script type="text/javascript" src="./WQL_files/jquery-1.8.2.min.js"></script>
<!-- jquery code to show description on hover -->
<script type="text/javascript">
//Assumes descriptions are in divs with class = cell contents
$(td).hover(
function () {
//Get the cell name, so we can make the right description visible
var descName = $(this).text()