A collection of code snippets I often use. Imported from the GitHub Gists REST API.
is_prime.py
Check if a number is prime
Visitprime_factors.py
Find the prime factors of the number given
Visitfib_seq.py
Generate the Fibonacci sequence for the length given
Visitpascal_tri.py
Generate Pascal's triangle for the number of rows given
Visitdb-relationships.md
Relationships and foreign keys in SQL databases
Visitfull-page-bg-img.css
CSS Full-page background image
Visitflex-rows.css
CSS Flexbox with specified number of boxes in rows
Visitnpm-downloads-api.py
npm REST API endpoint for package downloads
Visitcomma-thousands-separator.js
Add comma thousands separator: https://stackoverflow.com/a/2901298
Visitfetch-api.js
JavaScript fetch() API: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
Visitcenter-items-flexbox.css
Center items using CSS flexbox
Visitlink-new-tab.html
HTML Hyperlink that opens in new tab
Visitlink-bottom-border.css
CSS Bottom-border for links
Visitcustom-text-selection.css
Custom text selection appearance
Visitcustom-scrollbar.css
CSS Custom scrollbar
Visitdarken-background-image.css
Darken background image: https://stackoverflow.com/a/23208450
Visitheader-blurred-background.css
Blur background of a header: https://stackoverflow.com/a/64606048
Visitget-youtube-videos.js
Get YouTube videos of a channel
Visitget-github-gists.js
Get all GitHub Gists of a user
Visit404.js
Next.js Custom 404 page
Visitscreen-media-queries.css
CSS screen media queries
Visitreact-useeffect.md
React useEffect cheat sheet
Visit