Skip to content

Instantly share code, notes, and snippets.

Avatar

Philip Ashlock philipashlock

View GitHub Profile
@philipashlock
philipashlock / userChrome.css
Created Feb 8, 2019
Firefox userChrome.css for use with Tree Style Tab on Mac OS
View userChrome.css
@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 / index.html
Created Jun 2, 2017
USC Title 44 diff for S1088
View index.html
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 Jun 2, 2017
USC Diff of title44 chap35 subchap I sec3502 for S1088
View index.html
<style>
del {
background-color : #F2A5A5;
}
.new {
background-color: #BFF2AA;
}
</style>
<pre>
@philipashlock
philipashlock / index.html
Last active Jun 2, 2017
USC diff of title44 chap35 subchap Isec3518 for S1088
View index.html
<head>
<style>
del {
background-color : #F2A5A5;
}
.new {
background-color: #BFF2AA;
}
</style>
View gsa-office-codes-all.csv
10P
10PC
10PCE
10PCP
10PCPA
10PCPB
10PCPC
10PM
10PMA
10PMAA
View gsa-office-codes.csv
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
@philipashlock
philipashlock / indicator_metadata-updates-08-2016.csv
Created Aug 31, 2016
SDG Indicator Metadata Updates from August 15th
View indicator_metadata-updates-08-2016.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 3 columns, instead of 2. in line 5.
Description of Excel Flagged Discrepancy,CORRECT NAME: Final SDG List-UNSD (via Abdulla) Aug15 2016,INCORRECT OR MISFORMATTED NAME : NRP indicators names FROM WEB SITE (https://gsa.github.io/sdg-indicators/ as of Aug22 2016)
change needed in NRP name,3.1.1 Maternal mortality ratio,3.1.1 Maternal mortality ratio (per 100 000 live births)
TYPO in NRP site (decimal missing),3.6.1 Death rate due to road traffic injuries,3.6 Death rate due to road traffic injuries
change needed in NRP name,3.b.2 Total net official development assistance to medical research and basic health sectors,3.b.2 Total net official development assistance to the medical research and basic health sectors
change needed in NRP name,"5.4.1 Proportion of time spent on unpaid domestic and care work, by sex, age and location","5.4.1 Percentage of time spent on unpaid domestic and care work, by sex, age and location"
TYPO in NRP site name,5.c.1 Proportion of countries with systems to track and make public allocations for gender equality and womenÕ
@philipashlock
philipashlock / catalog-sample-extended.csv
Created Nov 24, 2015
Project Open Data Metadata Schema v1.1 as a CSV with dot delimited class names for fields
View catalog-sample-extended.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
accessLevel,accrualPeriodicity,bureauCode,conformsTo,contactPoint.fn,contactPoint.hasEmail,describedBy,dataQuality,description,distribution.downloadURL,distribution.format,distribution.mediaType,identifier,issued,keyword,landingPage,language,license,modified,primaryITInvestmentUII,programCode,publisher.name,references,rights,spatial,systemOfRecords,temporal,theme,title,isPartOf
public,R/P1Y,018:10,http://www.agency.gov/widget-taxonomy/,Jane Doe,mailto:jane.doe@agency.gov,http://www.agency.gov/datasets/widgets-dictionary.html,true,This dataset provides national statistics on the production of widgets,https://data.agency.gov/datasets/widgets-statistics/widgets.csv,CSV,text/csv,http://dx.doi.org/10.7927/H4PZ56R2,2011-11-22,"widget,manufacturing,factory",http://agency.gov/widgets/data,en-US,http://creativecommons.org/publicdomain/zero/1.0/,2011-11-19T12:00:00Z,021-006227212,018:001,"Widget Services,Office of Citizen Services and Innovative Technologies,General Services Administration,U.S. Government","http://agen
View osx-for-hackers.sh
# 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
View performance-gov-themes.txt
Administration of Justice
Agriculture
Commerce and Housing Credit
Community and Regional Development
Economic Security and Policy
Education, Training, Employment, and Social Services
Energy
General Government
General Science, Space, and Technology
Health