Skip to content

Instantly share code, notes, and snippets.

View plasticmind's full-sized avatar

Jesse Gardner plasticmind

View GitHub Profile
@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">
@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.
@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 / 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 / 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) {