Snippets

Small Code Snippets and Demos

April 2020

Sum property values of an object in Javascript

javascript

April 08, 2020

How to run a bash script with NPM

npm

April 06, 2020

How to Disable Yellow Box Warnings In React Native

react native

April 03, 2020

How to select all text in an element with Javascript

javascript

April 02, 2020

How to save git output to a variable in Bash

bash

April 01, 2020

March 2020

How to pad the start and end of strings in Javascript

javascript

March 31, 2020

How to Get Random Images from Unsplash

other

March 30, 2020

How to Disable Right Click Context Menu in Javascript

javascript

March 29, 2020

How to Check If Local Storage Item is Set

javascript

March 28, 2020

How to Stop requestAnimationFrame in Javascript

javascript

March 27, 2020

Find and Kill a Process on a Specific Port on macOS

macos

March 26, 2020

Count Object Keys in Javascript

javascript

March 25, 2020

How To See Git Stash Changes

git

March 24, 2020

How to Create Parallelograms in CSS

css

March 23, 2020

Remove Duplicate Items In Arrays with the Javascript Set Object

javascript

March 22, 2020

A Simple Tree in CSS

css

March 21, 2020

Change a Commit Message Before It Has Been Pushed

git

March 20, 2020

Open an NPM Package's Home Page from the Command Line

npm

March 19, 2020

How to Center Images and Text in Github Markdown and README

git

March 18, 2020

A Simple Ice Cream Cone With CSS

css

March 17, 2020

How to List NPM Packages and Dependencies

node

March 16, 2020

How to Title Case a String in Javascript

javascript

March 15, 2020

How to Generate An Array of Years Between Two Dates In Javascript

javascript

March 14, 2020