Skip to content

Instantly share code, notes, and snippets.

View philipashlock's full-sized avatar

Philip Ashlock philipashlock

View GitHub Profile
@philipashlock
philipashlock / userChrome.css
Created February 8, 2019 20:03
Firefox userChrome.css for use with Tree Style Tab on Mac OS
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Adapted from https://www.reddit.com/r/FirefoxCSS/comments/ao3ydl/configuring_firefox_for_tree_style_tab_usage/ */
/* hide native tabs and sidebar header */
#TabsToolbar-customization-target {
visibility: collapse;
}
@philipashlock
philipashlock / Screen Shot 2022-11-11 at 11.11.11 PM.png.html
Created November 14, 2022 04:30
Screen Shot 2022-11-11 at 11.11.11 PM.png
<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAA8EAAAXdCAYAAADJjF/aAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAomVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAJAAAAABAAAAkAAAAAEABJKGAAcAAAASAAAAkKABAAMAAAABAAEAAKACAAQAAAABAAADwaADAAQAAAABAAAF3QAAAABBU0NJSQAAAFNjcmVlbnNob3R0HVcAAAAACXBIWXMAABYlAAAWJQFJUiTwAAADC2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj4xNDQvMTwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+MTQ0LzE8L3RpZmY6WVJ
@philipashlock
philipashlock / index.html
Last active March 15, 2021 10:39
ISO 8601 Date Validation
<html lang="en">
<head>
</head>
<body>
<pre>
<script type="text/javascript">
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
@philipashlock
philipashlock / index.html
Created June 2, 2017 17:21
USC Title 44 diff for S1088
This file has been truncated, but you can view the full file.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="usc.css" />
<title>
United States Code Document
</title>
<!-- AUTHORITIES-PUBLICATION-NAME:United States Code Preliminary Release -->
@philipashlock
philipashlock / index.html
Created June 2, 2017 16:50
USC Diff of title44 chap35 subchap I sec3502 for S1088
<style>
del {
background-color : #F2A5A5;
}
.new {
background-color: #BFF2AA;
}
</style>
<pre>
@philipashlock
philipashlock / index.html
Last active June 2, 2017 16:48
USC diff of title44 chap35 subchap Isec3518 for S1088
<head>
<style>
del {
background-color : #F2A5A5;
}
.new {
background-color: #BFF2AA;
}
</style>
@philipashlock
philipashlock / pod-schema-v1.1-draft-example.json
Last active May 16, 2017 12:16
Project Open Data schema example - v1.1 draft
{
"@context": "https://project-open-data.cio.gov/v1.1/schema/catalog.jsonld",
"@id": "http://www.agency.gov/data.json",
"@type": "dcat:Catalog",
"conformsTo": "https://project-open-data.cio.gov/v1.1/schema",
"describedBy": "https://project-open-data.cio.gov/v1.1/schema/catalog.json",
"dataset": [
{
"@type": "dcat:Dataset",
"accessLevel": "public",
@philipashlock
philipashlock / gsa-office-codes-all.csv
Last active May 1, 2017 22:53
GSA Office Codes - All
10P
10PC
10PCE
10PCP
10PCPA
10PCPB
10PCPC
10PM
10PMA
10PMAA
code name
AA Office of the Administrator
AK Office of Civil Rights
B Office of the Chief Financial Officer
C Office of Human Resource Management
D Office of Mission Assurance
E Office of Small Business Utilization
G Civilan Board of Contract Appeals
H Office of Administrative Services
I Office of the Chief Information Officer