Snippets

Quick bits and pieces that could save you a lifetime!

Getting timestamps in Javascript

January 28, 2019

Timestamps are great to use when trying to avoid the differences in timezones and such. Now in Javascript, support for certain date related methods are broken in older browsers, so it's important to…

Show build times in XCode

January 27, 2019

For development purposes, it's good to get an understanding of how long an app takes to build. XCode has this hidden feature that will display how long it takes to run a specific build. Overtime, you…

How to add two Dictionaries together in Swift

January 26, 2019

In a lot of objects, it's easy to add them together, think arrays, integers, and strings. However, when you try to add two dictionaries together you will get an error. This is because we need to…

Understanding the different Android Dimension units

January 25, 2019

One of the most common android questions is; . Android has four different dimension units: , , and . Let's get a better understanding of these by looking at the Android Developer Documentation

How to exit Vim? (6 useful commands)

January 25, 2019

This is a highly common question for first time users of Vim. The answer is that there are many ways to quit vim. Press , type any of these commands, then press :

Ternary conditional operators in Python

January 25, 2019

Ternary operators are offered in most programming languages, and are great for simple conditionals. Now you might ask: Does Python have a ternary operator? The answer is yes:

How to Open a URL in Swift

January 24, 2019

A lot of times your iOS app may need to Deeplink into another app or open up a particular page. Fortunately, there is a function in that allows for this functionality. Let's see how this works…

Search by