{"id":782,"date":"2014-04-03T12:16:57","date_gmt":"2014-04-03T19:16:57","guid":{"rendered":"http:\/\/blog.latenightsw.com\/?p=782"},"modified":"2014-04-03T12:16:57","modified_gmt":"2014-04-03T19:16:57","slug":"lnsyearview","status":"publish","type":"post","link":"https:\/\/markalldritt.com\/?p=782","title":{"rendered":"LNSYearView"},"content":{"rendered":"<p>I&#8217;ve always quite liked how <a href=\"http:\/\/github.com\/alldritt\">GitHub<\/a> displays a summary of ones activity over the past year.<\/p>\n\n<p><img src=\"http:\/\/blog.latenightsw.com\/wp-content\/uploads\/2014\/04\/GitHubContributions.png\" alt=\"GitHub Contributions\" \/><\/p>\n\n<p>I have been working on a side project for the last while which needs a view like this so I decided to create my own.  I ended up spending a lot of time in the NSCalendar and NSDateComponents classes which I had never used before.  Here&#8217;s how it turned out:<\/p>\n\n<p><img src=\"http:\/\/blog.latenightsw.com\/wp-content\/uploads\/2014\/04\/LNSYearView.png\" alt=\"LNSYearView\" \/><\/p>\n\n<p>The code is available <a href=\"http:\/\/github.com\/alldritt\/LNSYearView\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A GitHib year-at-a-glance inspired Cocoa (Mac) view.<\/p><div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/markalldritt.com\/?p=782\">Continue Reading<span class=\"screen-reader-text\">LNSYearView<\/span><\/a><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[15],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7AQk-cC","_links":{"self":[{"href":"https:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/posts\/782"}],"collection":[{"href":"https:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/markalldritt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=782"}],"version-history":[{"count":5,"href":"https:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/posts\/782\/revisions"}],"predecessor-version":[{"id":791,"href":"https:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/posts\/782\/revisions\/791"}],"wp:attachment":[{"href":"https:\/\/markalldritt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/markalldritt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/markalldritt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}