Github Pull Request Template for Gitflow

Here's a quick helpful template that we've refined through our work at Boombotix and OneLogin: a short pull-request template that can be used to inform team members of the status and scope of a particular feature branch. Click here for the template Preview
- Github Pull Request Template for Gitflow

Read more

Bangs (exclamation points) in front of function definitions in Javascript?

I recently came across a function declaration with a Javascript syntax that I had never seen before. !function() { // some logic } This ! bang is called the unary operator. I immediately started playing around in the Node console to try and understand this syntax. Without the bang, this function declaration will actually throw an error: function() { // nothing here } // => SyntaxError: Unexpected token ( Weird right? The reason for this is that the function defined with the ! converts what would normally be a function
- Bangs (exclamation points) in front of function definitions in Javascript?

Read more

Deploy Yard documentation server to Heroku

In a recent set of Rails services I built, my team wanted to quickly deploy to Heroku for testing. We also keep a YARD documentation server running and up to date for every deploy. Turn out there is not a simple way to do this on Heroku, as you can only run one public-facing HTTP server per application. My solution was to create a second heroku application cd /path/to/your/repo heroku create repo-name-doc git add remote docs git
- Deploy Yard documentation server to Heroku

Read more

DIY Philips-Hue-Style LED Lights with Node.js + Backbone!

Video Demo Backstory My roommate works for Apple, and travels to China for work. He brought back a spool of LED lights, and hacked together a script for an Arduino that played a series of 12 lights on repeat. We then installed the lights in the ceiling in the upstairs of our apartment in San Francisco. It looked like this: Criteria for Success We decided we wanted to create a simple UI that could be used to pick colors. Our
- DIY Philips-Hue-Style LED Lights with Node.js + Backbone!

Read more

How to delete merged branches on Git and GitHub

Recently at OneLogin we decided to prune and purge all merged branches in one of our large Git repos. Having never had to do this with more then a handful of branches, I had relied on the GitHub branches UI. This UI is less than ideal when working with over about a dozen branches, so I started looking into scripts to help automate the process. The best information I found was in this StackOverflow question: http://stackoverflow.com/questions/6127328
- How to delete merged branches on Git and GitHub

Read more

Mac OS X Tutorial - How To Fix "The operation can’t be completed because the item “***” is in use." error

Ever gotten this pestering error when trying to throw something away in Mac OS X? I even see this behavior persistent in OS X 10.9 Mavericks, the newest release. I believe it has something to do with Finder's quicklook function. While relaunching the Finder is always a solution, I wanted to present this terminal based solution as a faster alternative. So, see this error? All you've gotta do is open up Terminal.app (click Spotlight menu at the top
- Mac OS X Tutorial - How To Fix "The operation can’t be completed because the item “***” is in use." error

Read more