Testing Routes with Mocha and Chai While working on a restful api built with express I was trying to find an easy way to test my routes along with my unit tests using chai so I came up with a simple typescript class to fake http requests and responses so that I can verify that the request status and response body are set correctly and figured I’d share it here.
Video Background For Your ViewController I’ve always thought video backgrounds were a cool feature on websites, ever since back in the day when tumblr had a live cam stream of outside their office in NYC as the background for their login screen. I had forgotten how cool it was, however, I was recently reminded by OnePlus.com’s cool background on their 5g Page. …Then, I was developing and application for a storage company and was using a picture of their storage yard in grayscale as the background for the login screen and thought it would be really cool to actually have drone flyover footage of the storage yard as the background for the login screen instead.
Are you new to XCode and love the increase in productivity that vim bindings provide? Then you will be disappointed to find that Apple has neglected to include vim support in XCode. Now, you might be saying “well I’m sure there is a vim plugin for xcode,” but you would be wrong. In its infinite wisdom, Apple removed third party plugin support as of Xcode 8. Now don’t get too upset.
This is really nice to use Hugo uses the excellent go html/template library for its template engine. It is an extremely lightweight engine that provides a very small amount of logic. In our experience that it is just the right amount of logic to be able to create a good static website. If you have used other template systems from different languages or frameworks you will find a lot of similarities in go templates.