Adam Garrett-Harris

Adam Garrett-Harris

Written by Adam Garrett-Harris who lives and works in Silicon Slopes. You should follow him on Twitter

Export from Markdown with Frontmatter to Contentful

21 July, 2018

Originally, I tried to do it by hand, and recruit help… Then I realized Contentful has an import tool… But my data is stored in a bunch of…

Reading Redux Part 2 - getState

21 February, 2018

Last time , I got Redux cloned to my computer, built it, ran the tests, and read the file. Now, I’ll read some more code. At the bottom of…

Reading Redux Part 1 - index.js

12 January, 2018

I got inspired by my friend, Safia Abdulla , who blogs about the source code of Node over at her blog . I can see how it’s helping her get…

2017

11 January, 2018

2017 was a pretty great year! Here’s a recap of some things (not in chronological order). I read 91 books I quit my job and got a new job as…

2016

01 January, 2017

2016 was a pretty great year! Here’s a recap of some things (not in chronological order). I read 75 books I switched to the mobile web team…

Strict Mode in JavaScript

04 December, 2016

I explain a lot of stuff that strict mode changed about JavaScript. Of course, this isn’t a comprehensive list, but it’s a lot.

You Can Define Functions Within a Loop

30 May, 2016

ES2015 allows you to define functions within a loop using the let keyword.

Don't Make Functions Within a Loop

08 May, 2016

The eslint/jshint/jslint error “Don’t make functions within a loop” can be confusing. I explain why it can be a problem and what you can do…

How to Get Started Making Mobile Apps with Cordova

27 November, 2015

Cordova is a great way to make hybrid mobile apps using web technology (HTML, CSS, and JavaScript). This video explains how to get started…

Web of Tomorrow Podcast

24 November, 2015

I recently started a podcast about web development for beginners. I teamed up with my friend Riley Carrasquillo , who is new to programming…

How to Create Amazon Affiliate Links

07 October, 2015

I started using Amazon Affiliate links to see if I can earn a little money from my websites and when you go to get a link for a product, you…

How to Publish a Jekyll Development Branch with Netlify

20 August, 2015

I recently discovered Netlify, which is a static website hosting service. They have a free plan, which is perfect for test sites. You can…

Get The Current Year In Jekyll

25 July, 2015

At the bottom of several of my websites I have a copyright notice with the current year and I realized that I would have to go and update…

How to Start Learning Javascript

26 June, 2015

I first started learning “web development” when there probably wasn’t such a thing as web development. There were webmasters. And I wanted…

Gitignore Generator Project

11 June, 2015

I was hanging out in Chicago while my wife was in class learning web design , and I thought I would make a website to generate a file…

How to Bring svg Elements to the Front

06 June, 2015

Often, with svg visualizations, I need to bring an element to the front. For example, if two elements overlap, then when I hover on one, I…

How to Display Event Data With Jekyll

26 May, 2015

I recently added a list of upcoming events to a jekyll site, and wanted to document my method. Structure the Data First, create a file…

Starting a Podcast

16 May, 2015

My friend, Jonathan, and I decided to start a podcast, and so we did! You can check it out over at orbit.fm/talkingdudes . It’s a podcast…

How to Redirect Pages in Jekyll

21 April, 2015

If you change the url of a page or post on WordPress, it automatically redirects from the old url to the new one. But since Jekyll is just…

How to Run Vim with Minimal Settings

05 April, 2015

Sometimes I just need to run a very simple version of vim to check something out, to test for a bug in Neovim, to make an animated gif , or…

How to Easily Embed YouTube Videos in Jekyll Sites Without a Plugin

04 April, 2015

If you’re constantly embedding videos on your site, it can be a pain to include the YouTube embed code each time. And if you’re hosting on…

Brain Crack

17 March, 2015

I know this video is 9 years old, but I only recently discovered it, and I love the idea here: that we don’t execute our ideas because we’re…

Vim Slides from Utah Code Camp

14 March, 2015

I had a great time talking at Utah Code Camp for the first time this year. Here are my slides if you want to check them out. Also, here is a…

New Css Transitions Controls in Chrome Devtools

13 March, 2015

A coworker of mine, pointed out an awesome new feature of Chrome Devtools. When you have a css transtition in the styles pane, you may…

How to Create Vim Animated Gifs

11 March, 2015

I wanted to come up with a consistent way to make gifs that show just one vim plugin at a time. Here’s what I came up with. And here’s the…

How to Switch from Vim to Neovim

10 March, 2015

I just switched over from vim to neovim, and it’s really easy, in fact it’s actually so easy that you can fit it in a tweet , but I wanted…

How to Switch from Vundle to vim-plug

10 March, 2015

I just switched over from vundle to vim-plug . Part of the reason why is because I’m now trying out Neovim , which allows for asynchronous…

What it Feels Like to Use Vim

08 March, 2015

Updated Vim Cheatsheet

07 March, 2015

I got so much great feedback on Reddit , that I decided to update my vim cheatsheet to make it a little bit more clear.

2014

01 March, 2015

2014 was a pretty great year! Here’s a recap of some things. I got a job at Domo I learned d3.js I made a 2048 clone with d3.js I climbed…

How to Convert a Wordpress Site to Jekyll with Github Pages

26 February, 2015

I recently converted a site from Wordpress to Github Pages. It’s not a fancy site. It’s just normal pages and posts with contact form, so I…

Learning Emacs - Part 1

12 February, 2015

It seems like there are a lot of die-hard fans of vim or emacs out there, and if you use a console editor, you’re in one camp or the other…

What I Look For in an Open Source Project

07 February, 2015

I don’t have a ton of experience with open source, but I’m really starting to get into it. I’ve had some ups and downs as I’ve put some…

Vim Cheatsheet

26 January, 2015

Update - I’ve updated the cheatsheet here I was talking to my friend who works in IT and occasionally has to use vim. And he hates it. He…

Firebase Pianobar Widget

15 December, 2014

I’ve been using pianobar for a while now to listen to Pandora in the command line. I’ve also been experimenting with Firebase to make…

My iTerm 2 Setup

09 December, 2014

I started using iTerm 2 recently, mostly because of the ability to use the mouse inside tmux and vim so that my coworkers can still scroll…

Problem with tmux When Upgrading to Yosemite

17 November, 2014

When I updated to Yosemite and started tmux, I get this warning every time I open a new tmux window: But running this fixed the problem:

How to Learn Vim

17 August, 2014

I’ve learned vim over the past year. Here’s some of the things I recommand to start learning vim. Don’t learn vim unless you want to Here’s…

Google Bookshelves Widget

02 June, 2014

I have previously made a Google Bookshelves Wordpress plugin , but since I’m not using Wordpress anymore, I thought I would build basically…

Mini 2048 Game

19 May, 2014

This weekend I decided to build a little clone based off of 2048, but instead of forking the main 2048 game , I decided to build one from…

Android Automation

11 April, 2014

In my last post about releasing for android, I had a long list of commands that you had to run, to finally create a releasable apk file…

Here's how I created 20,000 fake contacts on the iPhone

10 April, 2014

I needed to get a large number of fake contacts onto an iPhone recently for testing purposes, but I couldn’t find any example data that I…

Remote Debugging in Phonegap with Chrome Devtools

07 March, 2014

The requirements are: Phonegap 3.3 or higher An android device running Android 4.4 Kitkat or higher Chrome 30+ on the desktop Here’s the…

How to Get Phonegap Working on Mac OS X Mavericks

31 October, 2013

After I upgraded from Mountain Lion to Mavericks, all of a sudden, phonegap wasn’t working anymore. I noticed that the problem was that it…

How to Precompile Handlebars Templates

23 October, 2013

First you need to install handlebars with node by running this command. If you don’t have node, go ahead and install it first . It’s…

How to Use the Paypal Phonegap Plugin for Android

19 October, 2013

Update - The PhoneGap Plugin is now deprecated Here’s a quick tutorial on what I did to accept paypal payments on android with the PayPal…

How to Setup Remote Debugging in Phonegap

17 October, 2013

Update - There is now an easier way to debug android apps in android Kit Kat (4.4.2) without needing to use weinre ( Remote Debugging in…

How to Sign and Publish a Phonegap App in the Google Play Store

16 October, 2013

Update - I’ve now figured out an easier way to do this in one command instead of 5 ( Android Automation ) So you’ve got your awesome app…

STAR Council Website

13 October, 2013

I had the privilege of working with STAR Council, which provides substance abuse education and treatment, in Texas, and has its main…

The Church at Round Rock Website Redesign

14 August, 2013

I recently got to help my friend Robert install and customize a new theme for his church’s website. It uses the Churchope theme, which is…

Kaye Tolson - Music

22 May, 2013

I had the opportunity to put together a site for Kaye Tolson, a local musician from my hometown of Stephenville Texas. It was a lot of fun…

Paradigm Church App

07 March, 2013

I just launched the app for Paradigm Church with pulls data from their website ( paradigmchurch.com ). It allows them to log into their…

Paradigm Church Website

06 March, 2013

When my good friend, Nick Cooper at Paradigm Church in Norman Ok, asked me to make him a smartphone app, I said yes, because I’ve always…

The Church At Round Rock

11 February, 2013

My friend Robert Stephens just started a church plant in Round Rock. When I found out, I really wanted to lend my services and help out with…

Another Free Wordpress Plugin

02 November, 2012

After I made the Starbucks plugin, I realized that I keep track of all of my books that I’m reading in Google Books, but there wasn’t a…

Parallax Scrolling Responsive Site

26 October, 2012

I just launched a new site for my best friend to promote a Bible study he’s hosting for 20 something year olds called 20something. I…

Fitness Blog

03 October, 2012

I had a lot of fun putting this site together for my brother-in-law, Paul Jordan, who is a beachbody coach and personal trainer in Portland…

Personal Site for Journalist

02 October, 2012

I made this for my good friend who happens to be my wife’s best friend. She’s the Religion Editor at Tyler Morning Telegraph. This is just a…

Resume Site

20 September, 2012

This is a responsive site that I made for my best friend. Since the whole point of the website is to display his resume, I decided to use…

Wordpress Plugin To Get Free Coffee

19 September, 2012

Update - This plugin is no longer supported because Starbucks changed their site so that you now have to login to reload your card, which…

Larinda Ray - Real Estate

23 August, 2012

I’m very excited that I just launched the first site in my new business! Larinda Ray was great to work with. She wanted a simple site to…