Skip to content

Instantly share code, notes, and snippets.

View mattdanielbrown's full-sized avatar

Matt Daniel Brown mattdanielbrown

View GitHub Profile
@mattdanielbrown
mattdanielbrown / index.html
Created June 23, 2024 15:32
Time picker with dynamic clock
<div class="inpTime">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7 4V7" id="hourHand"/>
<path d="M7 2.5V7" id="minHand"/>
</svg>
<input type="time" value="09:41" id="timeInput">
</div>
@mattdanielbrown
mattdanielbrown / index.html
Created June 8, 2024 01:03
Transition Delay Mixin
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
@mattdanielbrown
mattdanielbrown / index.html
Created June 8, 2024 01:00
Singing Text To Speech
<menu>
<h1></h1>
</menu>
<main>
<ul class="words">
<div class="slider">
<li class="word">
<div class="position">
<input class="string" type="text" value="daisy">
</div>
@mattdanielbrown
mattdanielbrown / index.html
Created May 25, 2024 00:17
Javascript Asynchronous Functions : Promisified Functions (with `catch() ` )
<!-- Result is just pen's the output of
Javascript Console content in
effectively in fullscreen mode -->

A map of the sky that uses an azimuthal equidistant projection with star data. Longitudes and latitudes for the geo projection are obtained from declination and right ascension respectively (longitude is also inverted, because, unlike the earth globe, the celestial sphere is seen from the inside).

The boreal (northern) sky is shown at left, while the austral (southern) at right. Because right ascension is given in hours, both maps are divided in 24 slices. A circle is shown every 10 degrees of declination.

Star size indicates magnitude. Bigger circles depict brighter stars.

@mattdanielbrown
mattdanielbrown / pydf_renamer.py
Last active January 9, 2024 06:56
PyDF Renamer (v4.1.3) Prompts user for location to look for PDF files, asks if users wishes to rename any PDF files found there, and if user affirms batch renaming, the PDF files will be renamed using the first eight (8) words from the contents of each file (appending incrementing numeral for duplicated names).
"""
PyDF Renamer (v4.1.3)
Prompts user for location to look for PDF files,
asks if users wishes to rename any PDF files found there,
and if user affirms batch renaming, the PDF files will be
renamed using the first eight (8) words from the contents
of each file (appending incrementing numeral for
duplicated names).
@mattdanielbrown
mattdanielbrown / gistcat
Created November 6, 2023 00:38 — forked from itayd/gistcat
cat a file from gist, search by username + filename
#!/bin/bash
notags() {
while read line; do
echo $line | sed -e "s/<[^>]*>/ /g" -e "s/ / /g"
done
}
user=$1
wanted=$2
@mattdanielbrown
mattdanielbrown / bash-colors.md
Created October 22, 2023 18:29 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@mattdanielbrown
mattdanielbrown / ANSI-color-codes.h
Created October 22, 2023 18:29 — forked from RabaDabaDoba/ANSI-color-codes.h
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"