In this work, we aim at studying the diversity of human activity patterns in cities around the world. In order to do so, we use, as a proxy, the data provided by the online location-based social network Foursquare, where users make check-ins that indicate points of interest in the city. The data set comprise more than 90 million check-ins in 632 cities of 84 countries in 5 continents. We analyzed more than 11 million points of interest including all sort of places: airports, train stations, restaurants, cafes, bars, parks, hospitals, gyms and many others. With this information we obtained spatial and temporal patterns of activities of each city. We quantify similarities and differences of these patterns for all the cities involved, and construct a network connecting pairs of cities. The links of this network indicate the similarity of patterns between cities and is quantified with the relative entropy between two distributions. Then, we obtained the community structure of this network and the geographic distribution of communities. For comparison, we use a Machine Learning algorithm -unsupervised agglomerative clustering -to obtained clusters or communities of cities with similar patterns. The main result is that both approaches give the same classification of five communities belonging to five different continents worldwide. This suggest that human activity patterns can be universal with some geographical, historical and cultural variations on a planetary scale.