Skip to content

Instantly share code, notes, and snippets.

View plasticmind's full-sized avatar

Jesse Gardner plasticmind

View GitHub Profile
@plasticmind
plasticmind / LoadGitHubPage.js
Last active December 3, 2024 14:43
Load GitHub Page
javascript:(function(){let path=window.location.pathname.split('/');if(path[2]==='blob'){path.splice(2,1);window.location.href=`https://${path[0]}.github.io/${path.slice(3).join('/')}`;}else{alert('Not on a GitHub blob URL!');}})();
@plasticmind
plasticmind / better-lats.css
Last active November 21, 2024 14:07
Better LATS
:root {
/* NYS Primary Blue Ramp (*700) */
--nys-blue-100: #E5EDED;
--nys-blue-200: #AEC0CF;
--nys-blue-300: #7F9BB2;
--nys-blue-400: #5F829F;
--nys-blue-500: #376487;
--nys-blue-600: #1B4E77;
--nys-blue-700: #154973; /* Primary */
--nys-blue-800: #103756;
@plasticmind
plasticmind / outlook-web-boost.css
Last active August 1, 2024 11:56
Outlook for Web Arc Boost
div[aria-label^="Unread "] span[title] {
font-weight: 900 !important;
color: #000 !important;
}
div[aria-label^="Unread "] div {
background-color: #ff0 !important
}
div[aria-label*="Flagged"] div {
background-color: #fcc !important
}
@plasticmind
plasticmind / export-project-list.js
Created March 27, 2024 13:35
Output UXPin Projects to CSV
// Copy/paste this into your browser's console after the UXPin Dashboard has fully loaded
function arrayToCSV(data) {
const csvRows = [];
// Get the headers
const headers = Object.keys(data[0]);
csvRows.push(headers.join(','));
// Loop over the rows and push to csvRows
for (const row of data) {
@plasticmind
plasticmind / bookmarklet.js
Last active February 22, 2024 14:15
LATS Timesheet Jumpstart
javascript:(function(){var e=["Monday","Tuesday","Wednesday","Thursday","Friday"],t=document.getElementById('timesheetTable'),n=t.getElementsByTagName('tr');if(!t)return;for(var r=0;r<n.length;r++){var a=n[r],o=a.querySelector('.k-header.timesheetGridHeader');if(o){var d=o.textContent.trim();if(['Day In','Lunch Out','Lunch In','Day Out'].includes(d)){var i=a.getElementsByTagName('input');for(var u=0;u<i.length;u++){var c=i[u];if('text'===c.type&&e.includes(c.title.split(' ').pop()))switch(d){case'Day In':c.value='8:30 AM';break;case'Lunch Out':c.value='11:30 AM';break;case'Lunch In':c.value='12:00 PM';break;case'Day Out':c.value='4:30 PM';}}}}}})();
@plasticmind
plasticmind / index.html
Created February 3, 2021 19:51
Time Visualization - Chrono
<html>
<head>
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
<link rel="preload" href="https://fonts.gstatic.com/s/fira+mono/v14/S6uyw4BMUTPHjx4wXiWtFCc.woff2" as="font" crossorigin>
</head>
<body>
<div class="day"></div>
<div class="day outline"></div>
<div class="chrono">
<div class="minutes">
#!/usr/bin/env bash
xset s off -dpms
exec matchbox-window-manager &
while true; do
python3 /home/plasticmind/App/big_date.py
done
import tkinter as tk
from string import ascii_letters
from datetime import date
my_date = date.today()
my_date.strftime('%A')
def show_date():
s = my_date.strftime('%a').upper()
#s = 'Manual text here...'
@plasticmind
plasticmind / coronavirus-news-04-06-2020.md
Last active April 6, 2020 20:40
Coronavirus Updates: Monday, April 6, 2020

This post appeared is written by Daniel Hanson and appeared originally at: https://www.facebook.com/photo.php?fbid=10222159161191103&set=a.2392855263881&type=3

===

It’s the Monday between Palm Sunday and Easter, a moment for reflection on life and death. Here’s a 10 minute quick summary of some salient corona news.

The curve is bending and flattening. Social distancing is working, and as a consequence, we’ve gone from doubling the number of deaths in the US every three days to doubling them every four. That’s great news, and it should reduce the total number of deaths from this disease meaningfully. Still, more than 10,000 Americans have died from this disease as of this morning.

Hospitalization is a leading indicator; people tend to be hospitalized before they die from the disease. Typically, death from coronavirus comes about 16 days after being admitted to the hospital, and in this respect, it seems that New York has turned the corner. NY had fewer deaths yesterday than it has since mid-March, but that

@plasticmind
plasticmind / functions.php
Last active July 14, 2022 09:41
Adding column count class to Gutenberg columns block
<?php
/**
* inject_class_column_count
*
* @param string $content The block content about to be appended.
* @param array $block The full block, including name and attributes
* @return $content;
*/
function inject_class_column_count( $content, $block ) {
if ( ! is_block_type( $block, "core/columns" ) ) {