Skip to content

Instantly share code, notes, and snippets.

View mattdanielbrown's full-sized avatar

Matt Daniel Brown mattdanielbrown

View GitHub Profile
@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"
@mattdanielbrown
mattdanielbrown / shellcolors.temp.sh
Created July 18, 2023 23:50
Text styles in bash
shellcolors
#!/bin/bash
#####################################################
# Number of columns (width) of current terminal
#####################################################
export termcols=$(tput cols)
export termCols=$(tput cols)

CSS Modals (Modal v2)

The second version of my previous pen(CSS Modal). In this one, I showed that there are three different modals with their own unique ids and I am using different links to open and close them.

A Pen by Matt Daniel Brown on CodePen.

License.

@mattdanielbrown
mattdanielbrown / index.html
Created April 30, 2023 02:23
JavaScript Visualization: Promise.all (using GSAP)
<!-- MAIN -->
<main>
<!-- images/emojis -->
<!-- --------------------------------------------------------------------------------- -->
<svg viewBox="0 0 1440 1024" fill="none" id="v-images">
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0" transform="scale(0.015625)" />
</pattern>
@mattdanielbrown
mattdanielbrown / index.html
Created April 30, 2023 02:23
JavaScript Visualization: Promise.all (using GSAP)
<!-- MAIN -->
<main>
<!-- images/emojis -->
<!-- --------------------------------------------------------------------------------- -->
<svg viewBox="0 0 1440 1024" fill="none" id="v-images">
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0" transform="scale(0.015625)" />
</pattern>