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 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 / css-vars-for-viewport-width-minus-scrollbar.markdown
Created April 30, 2023 01:56
CSS Vars for viewport width minus scrollbar
@mattdanielbrown
mattdanielbrown / index.html
Created March 30, 2023 08:32
MediaPipe - Hands
<body>
<style>
.square-box {
width: 33%;
height: 0;
padding-top: 33%;
position: absolute;
right: 20px;
top: 20px;
}
@mattdanielbrown
mattdanielbrown / string-to-bool-conversion.js
Created February 24, 2023 19:03
Convert a string to a boolean in JavaScript
// To convert a string to a boolean in JavaScript you need to:
/**
* check if your string is not null or undefined,
* convert the string to lowercase,compare
* converted string with true value.
*/
const isTrue = (str) => str && str.toLowerCase() === 'true';
@mattdanielbrown
mattdanielbrown / gist
Created February 24, 2023 18:58 — forked from itayd/gist
bash gist cli
#!/bin/bash
require() {
for what in $*; do
if !(which $what >& /dev/null); then
echo "error: $what is required to run this script, please install it"
exit 1
fi
done
}
@mattdanielbrown
mattdanielbrown / google-search-page-project-by-shoumique.markdown
Created February 24, 2023 05:08
google search page project by shoumique

google search page project by shoumique

Google search page by shoumique, this is a tutorial I have made while working on webcell. Some css codes have been taken from google.

A Pen by Matt Daniel Brown on CodePen.

License.