Skip to content

Instantly share code, notes, and snippets.

View plasticmind's full-sized avatar

Jesse Gardner plasticmind

View GitHub Profile
@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" ) ) {
@plasticmind
plasticmind / gist:707e65d61cbe57baa49cc9c5a4748844
Created December 12, 2019 04:24
Cubes Visualization for Processing
import ddf.minim.*;
import ddf.minim.analysis.*;
Minim minim;
AudioPlayer song;
FFT fft;
// Group frequency bands into 3 zones
// Note: dropping the top 64% of the frequency
// bandwidth since we can't hear it
@plasticmind
plasticmind / gist:8bbfcfc3e7b07de7897b8e88c6d567ef
Created March 20, 2018 13:32
DigiPublish Panel: The Current State of Digital Publishing and Its Challenges in Business
# Panel
Elizabeth Brady, Director Audience Engagement, People, @sheerling
Brian Kroski, Former Chief Digital Officer, AMI, @briankroski
Garrett Bewkes, Publisher, National Review, @egbewkes
Linda Li, Director, Global Strategy and Dev, NYT @multilinda
## Biggest Challenges for the Year
- Linda Li (NYT): NYT has 2.6 million digital subscribers — need to change the perception about how consumers feel about the company as a brand; convincing people to pay for news.