Skip to content

Instantly share code, notes, and snippets.

View jeremyzilar's full-sized avatar
🖤
Make things 5% better for humans

Jeremy Zilar jeremyzilar

🖤
Make things 5% better for humans
View GitHub Profile
@jeremyzilar
jeremyzilar / brooklynrail-newsletter-css
Last active April 17, 2020 17:58
Brooklyn Rail Newsletter CSS
<link href="https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Public+Sans:ital,wght@0,100;0,400;0,700;1,100;1,400;1,700&display=swap" rel="stylesheet">
<style type="text/css">
h1 {
font-family: 'Amiri', serif !important;
font-size: 32px !important;
font-weight:200 !important;
line-height: 42px !important;
word-spacing: -.1em;
text-align: center !important;
/*
* * * * * ==============================
* * * * * ==============================
* * * * * ==============================
* * * * * ==============================
========================================
========================================
========================================
----------------------------------------
USWDS 2.0.0 Beta 6
@jeremyzilar
jeremyzilar / gist:b0840dfad7d8a444f5419c9775d9d5cd
Created December 22, 2018 04:49
Back Soon! — A simple pop-up to use during a government shutdown
<!-- Back Soon! — https://github.com/GSA/back-soon -->
<script type="text/javascript">
document.onclick = function(e){
if(e.target.id == 'bs' || e.target.id == 'bs_close'){
bs.style.display = 'none';
}
};
</script>
<style media="screen">
#bs{
@jeremyzilar
jeremyzilar / Popup JS set cookie
Created June 12, 2018 19:04
This is a bit of JS that sets a cookie for a popup
@jeremyzilar
jeremyzilar / git-commit.js
Last active January 2, 2018 22:04
Get Commit Data via GitHub API
// How we are getting the commit data for each page on digitalgov.gov and displaying the date/time each file was last updated.
// Full file is at: https://github.com/GSA/digitalgov.gov/blob/master/themes/digital.gov/static/js/external.js
// https://digital.gov/
jQuery(document).ready(function($) {
// Get the file path via HUGO in a data attr
// e.g. /about/about.md
var filepath = $('.last_commit').attr('data-filepath');
@jeremyzilar
jeremyzilar / trello.md
Last active July 4, 2023 01:57
Copy Trello Board as text or markdown

Copy Trello Board as text or markdown

Wouldn't it be nice to copy out your Trello board as plain text or markdown to be able to put it in a weekly memo, shipping notice or release notes? Now you can!

How to use this

Copy this line of JS and paste it into the CONSOLE in your browser. The results will be saved to your clipboard.

Option 1: Copy your Trello Board as Markdown

This will copy your columns + cards as markdown right to left

var s = []; s.push("# " + jQuery(".board-header").children()[0].innerText); jQuery.fn.reverse = [].reverse; jQuery(".list:has(.list-header-name)").reverse().each(function() {s.push("\n## " + jQuery(this).find(".list-header-name-assist")[0].innerText + "\n"); jQuery(this).find(".list-card-title").each(function() {s.push("* " + this.innerText); }); }); copy(s.join("\n"));
@jeremyzilar
jeremyzilar / keybase.md
Last active August 29, 2015 14:22
keybase

Keybase proof

I hereby claim:

  • I am jeremyzilar on github.
  • I am jeremyzilar (https://keybase.io/jeremyzilar) on keybase.
  • I have a public key whose fingerprint is 23DD DF47 8F0C 1524 BB19 C9AB B4E4 A2DF EBBD 20E9

To claim this, I am signing this object: