CWestify.com

Random projects all by Chris West.
⇩ Continue ⇩
Menu

JavaScript Snippet – suffixFileSize() Apr 6, 2018
at 11:04PM

If you would like to convert the amount of bytes (or bits) into the corresponding measure when the size is a kilobyte or bigger (or a kilobit or bigger) you can use the following JavaScript function: Here are some examples of using it: // Convert bytes console.log(suffixFileSize(1023)); // 1023 B […]

Google Sheets Data As JSON & JSONP Mar 25, 2018
at 12:14AM

Google Sheets is a pretty simple way to make free spreadsheets and to quickly store data. Did you know that you can actually retrieve this data via JSON & JSONP? Here’s how you can do it in just a few easy steps: Open the desired Google Spreadsheet. Go to File […]

JavaScript Snippet – isPowerOf(x, base) Mar 20, 2018
at 8:48AM

After reading this reddit entry I decided to write up a little snippet with documentation: Feel free to use it whenever and wherever. Happy coding! 😎

Install Watchtower Library on Mac Using Wineskin Winery Mar 15, 2018
at 1:49AM

Here is how you install Watchtower Library on Mac: Either insert the Watchtower Library disc or if you have the Watchtower Library setup files in a folder make sure you can find it. Download Wineskin Winery. Unzip Wineskin Winery if the downloaded file from the previous step is a ZIP […]

Ciphly – Top Programming Resources Feb 20, 2018
at 8:08AM

If you want to either look for the top programming resources on the web or add your link, visit the brand new site Ciphly.com. The Top Sites You Want To See! This new site allows you to see the top programming resources by language and category (library, documentation, etc.). Scoring […]

Search Engine Using Google Sheets Jan 14, 2018
at 8:10PM

Have you ever wanted to make a simple search engine? There are plenty of ways to do it. One way that I have been using in my simple search engine for a while is leveraging Google Sheets. Creating Your Own Google Sheets Search Engine Here are a few simple steps […]

JavaScript Snippet – Remove Duplicate Characters from Strings Jan 6, 2018
at 11:18PM

If you ever need to remove all duplicate characters from a string you can use this snippet which takes advantage of how the String.prototype.replace() function works along with regular expressions: Feel free to use this function in your code. Happy coding 😎

Easy Gradient Buttons for Bootstrap v4 Dec 23, 2017
at 12:44AM

I just started a job that is using Bootstrap v4. I’m happy with the functionality but I miss having a not so plain looking button. Here is the CSS code I am using to add easy gradients on my Bootstrap v4 buttons: .btn { background-image: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.2) 49%, […]

Responsive YouTube Embed Dec 11, 2017
at 10:56AM

YouTube URL Replace the URL below with whatever YouTube video’s URL you want to make responsive embed code for. Embed Code You can select and copy the code below to embed this responsive video in your site. Example Embed If you resize the window you will see the video change […]

JW.ORG Languages Aug 22, 2017
at 7:37AM

As of today, JW.org has content in 908 languages! You can check out the latest statistics yourself below: