Skip to content

Instantly share code, notes, and snippets.

View plasticmind's full-sized avatar

Jesse Gardner plasticmind

View GitHub Profile
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...'
#!/usr/bin/env bash
xset s off -dpms
exec matchbox-window-manager &
while true; do
python3 /home/plasticmind/App/big_date.py
done
@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 / 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) {
@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 / 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 / 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 / lit-component.md
Created February 20, 2026 17:24
Lit Component Claude Code Skill
name lit-components
description Build web components with Lit 3.x. Covers component definition, reactive properties, templates, styles, lifecycle, events, Shadow DOM, slots, controllers, and SSR. Use when writing Lit components or reviewing Lit code. Also use when the user mentions LitElement, @customElement, @property, @state, html tagged template, css tagged template, shadow DOM, web components with Lit, or reactive properties.

Lit Web Components

Build fast, lightweight web components using Lit 3.x. Lit adds reactivity and declarative templates on top of the Web Components standards, weighing ~5KB compressed.

Reference: https://lit.dev/docs/