OffCoding

When creating an AWS EC2 instance, there is a User Data section where you can include scripts that will be run immediately upon instance creation. I was attempting to use AWS CloudFormation to define the infrastructure of my current project and ran into the issue of how to include the...
[Read More]

When developing a node.js application with custom libraries, dealing with relative pathing in your requires can become irritating. It requires (heh) that you evaluate where you are in the project’s directory structure for each reference. I’ve found that always using absolute paths simplifies the process and avoids accidental reference errors,...
[Read More]

I’ve been working on a bash script for standing up a newly created Linux machine. This particular setup will be running node.js supported by the process manager pm2. In addition, I will be using the Node Version Manager (nvm), to pull down and install node.
[Read More]

Angular has a very handy $first (and $last) variable for use when implementing an ng-repeat. Along with ng-class, the following allows you to apply a style to all but the first item in the iteration. You can negate the expression with ! as you would expect.
[Read More]