Snippets
A collection of code snippets, settings and other pieces of code that I thought were worth sharing.
My VS Code Settings
My settings.json file for Visual Studio Code
Check it out →
useScrollDirection React Hook
This React hook listens for when the user scrolls vertically, letting you hide the page's Header when reading content.
Check it out →
useScreenSize React Hook
React hook to listen for changes in the screen width
Check it out →
Send a tweet with Node.js
This script uses the twitter-api-v2 npm module to send tweets using the Twitter API.
Check it out →
My .prettierrc.js file
My Prettier config file for Node.js. Place at the root of the project.
Check it out →
Get your league's ESPN Fantasy Football scores using Typescript
Typescript function to call the ESPN Fantasy Football API and returns your league's current matchups.
Check it out →
FTX NodeJS Client
Core functions for a trading bot using FTX
Check it out →
DynamoDB.js
Utility functions for DynamoDB, including GET, ADD, UPDATE, and SCAN
Check it out →
[Git] Remove local branches that have been merged
This git command will delete your local branches that have been merged to the main branch.
Check it out →
Hash and encrypt data using the built-in crypto Node.js library
This script uses the built-in Node.js crypto library to create a SHA-256 hash and a Cipher for encrypting data.
Check it out →
Cloudinary Upload
Script that lets you upload images to your Cloudinary Media Library using Node.js
Check it out →
Binance NodeJS Client
NodeJS client for trading with the Binance API
Check it out →