This thing apparently reduces something like HH:mm:ss or HH:mm to number of seconds.
var sec = 1;
var min = 60*sec;
var hour = 60*min;
function parseTime(time){| server { | |
| listen 80; | |
| server_name localhost; | |
| root /usr/share/nginx/html; | |
| index index.html; | |
| gzip on; | |
| gzip_min_length 256; | |
| gzip_types text/plain text/css application/javascript application/json; |
| // Preview: docs | |
| // Name: Open Cluster URL | |
| // Shortcut: cmd shift k | |
| import "@johnlindquist/kit"; | |
| const k8s = await npm("@kubernetes/client-node"); | |
| const kc = new k8s.KubeConfig(); | |
| kc.loadFromDefault(); |
| import Jimp from "npm:jimp"; | |
| const fileName = Deno.args[0]; | |
| console.time("time"); | |
| console.time("init"); | |
| const img = await Jimp.read(fileName); | |
| console.timeEnd("init"); |
| export const deleteObjectKey = <T extends Record<string, any>>( | |
| obj: T, | |
| path: string | |
| ): T => { | |
| const newObj = { ...obj }; | |
| const paths = path.split("."); | |
| paths.reduce((acc, key, idx) => { | |
| if (idx === paths.length - 1) { | |
| delete acc[key]; |
| git ls-files | while read f; do git log -n 1 -- "$f" | grep -I '^Author: '; done | sort -f | uniq -c | sort -nr |
| // ==UserScript== | |
| // @name Widen Multicraft Console | |
| // @namespace https://zettca.xyz/ | |
| // @version 0.1 | |
| // @description this script widens Multicraft console. | |
| // @author zettca | |
| // @match https://mc.shockbyte.com/index.php?r=server/log* | |
| // ==/UserScript== | |
| (function() { |
| // ==UserScript== | |
| // @name Widen Trello Lists | |
| // @namespace https://zettca.xyz/ | |
| // @version 0.1 | |
| // @description this script widens Trello lists, which are narrow af. | |
| // @author zettca | |
| // @match https://trello.com/b/* | |
| // @grant GM_addStyle | |
| // ==/UserScript== |
| const root = document.querySelector('body'); | |
| const touchStart = { x: 0, y: 0 }; | |
| root.addEventListener('touchstart', handleTouchStart, false); | |
| root.addEventListener('touchend', handleTouchEnd, false); | |
| function handleTouchStart(e) { | |
| touchStart.x = e.changedTouches[0].screenX; | |
| touchStart.y = e.changedTouches[0].screenY; | |
| } |