Snippets
A collection of code snippets I often use. Imported from the GitHub Gists REST API.
popout-btn.css
CSS Pop-out button
Codefibonacci_sequence.py
Generate the Fibonacci Sequence for the length given
Codepascals_triangle.py
Generate Pascal's Triangle for the number of rows given
Codedb-relationships.md
Relationships and foreign keys in SQL databases
Codefull-page-bg-img.css
CSS Full-page background image
Codeflex-rows.css
CSS Flexbox with specified number of boxes in rows
Codenpm-downloads-api.md
npm REST API endpoint for package downloads
Codecomma-thousands-separator.js
Add comma thousands separator: https://stackoverflow.com/a/2901298
Codefetch-api.js
JavaScript fetch() API: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
Codecenter-items-flexbox.css
Center items using CSS flexbox
Codelink-new-tab.html
HTML Hyperlink that opens in new tab
Codelink-bottom-border.css
CSS Bottom-border for links
Codecustom-text-selection.css
Custom text selection appearance
Codecustom-scrollbar.css
CSS Custom scrollbar
Codedarken-background-image.css
Darken background image: https://stackoverflow.com/a/23208450
Codeheader-blurred-background.css
Blur background of a header: https://stackoverflow.com/a/64606048
Codeget-youtube-videos.js
Get YouTube videos of a channel
Codeget-github-gists.js
Get all GitHub Gists of a user
Code404.js
Next.js Custom 404 page
Codegrouping-and-ordering.css
How to group and order CSS properties
Codescreen-media-queries.css
CSS screen media queries
Codereact-useeffect.md
React useEffect cheat sheet
Code