{"id":2088,"date":"2013-06-04T18:41:46","date_gmt":"2013-06-04T16:41:46","guid":{"rendered":"http:\/\/planetozh.com\/blog\/?p=2088"},"modified":"2015-02-01T10:53:20","modified_gmt":"2015-02-01T09:53:20","slug":"generate-github-like-contribution-graph-for-fun-and-for-t-shirts","status":"publish","type":"post","link":"https:\/\/planetozh.com\/blog\/2013\/06\/generate-github-like-contribution-graph-for-fun-and-for-t-shirts\/","title":{"rendered":"Generate Github-like contribution graph &#8211; for fun and for t-shirts"},"content":{"rendered":"<p>I really like how Github displays your yearly code contributions, in that 52&#215;7 green dot matrix. It&#39;s cute, informative, and has become iconic enough that any nerd knows what it refers to.<\/p>\n<p><a href=\"https:\/\/github.com\/ozh\"><img decoding=\"async\" src=\"http:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/06\/contributions.gif\" alt=\"contributions\" width=\"90%\" class=\"aligncenter size-full wp-image-2091\" \/><\/a><\/p>\n<p>I like it so I funcoded a script that will <a href=\"https:\/\/github.com\/contributions\">deliver a message after 365 days of running<\/a> &#8212; fun, but kinda slow, right?<\/p>\n<p>So, I made something more interactive and instantly fun, something you can play with: I&#39;m delighted to introduce <a href=\"http:\/\/ozh.org\/contribution\/\">contribution<\/a>, a site to &quot;Generate Github-like contribution graph&quot; and print them on a t-shirt (or just save them as a PNG for whatever use you&#39;ll like)<\/p>\n<p>It&#39;s neat with short messages that fit the grid, works best with capital letters but hey, experiment:<\/p>\n<p><a href=\"http:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/06\/at_ozh.png\"><img decoding=\"async\" src=\"http:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/06\/at_ozh.png\" alt=\"at_ozh\" width=\"90%\" class=\"aligncenter size-full wp-image-2090\" srcset=\"https:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/06\/at_ozh.png 1276w, https:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/06\/at_ozh-300x40.png 300w, https:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/06\/at_ozh-1024x138.png 1024w\" sizes=\"(max-width: 1276px) 100vw, 1276px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/06\/hello-world.png\"><img decoding=\"async\" src=\"http:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/06\/hello-world.png\" alt=\"hello-world\" width=\"90%\" class=\"aligncenter size-medium wp-image-2089\" srcset=\"https:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/06\/hello-world.png 1276w, https:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/06\/hello-world-300x40.png 300w, https:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/06\/hello-world-1024x138.png 1024w\" sizes=\"(max-width: 1276px) 100vw, 1276px\" \/><\/a><\/p>\n<p>I&#39;ve had great fun coding that site, especially the server side PHP script that generates the matrix from the letter input. It was also my first experiment using Bootstrap and I must say it&#39;s pretty neat for the design-impaired people like myself.<\/p>\n<p>The t-shirt printing is powered by Zazzle: their API is decently documented and I&#39;ve bought a couple of shirts from them in the past and have been pleased by the quality. I ordered myself a tshirt with &quot;@ozh&quot;, can&#39;t wait to show it off at work :><\/p>\n<p>Go ahead, play with <a href=\"http:\/\/ozh.org\/contribution\/\">contribution<\/a> and make some cool contrib graph. You&#39;ll be the coolest looking nerd on the beach this summer :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I really like how Github displays your yearly code contributions, in that 52&#215;7 green dot matrix. It&#39;s cute, informative, and has become iconic enough that any nerd knows what it refers to. I like it so I funcoded a script that will deliver a message after 365 days of running &#8212; fun, but kinda slow, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[397,1,375],"class_list":["post-2088","post","type-post","status-publish","format-standard","hentry","category-published","tag-github","tag-my-life","tag-tshirt"],"_links":{"self":[{"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/posts\/2088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/comments?post=2088"}],"version-history":[{"count":10,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/posts\/2088\/revisions"}],"predecessor-version":[{"id":3460,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/posts\/2088\/revisions\/3460"}],"wp:attachment":[{"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/media?parent=2088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/categories?post=2088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/tags?post=2088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}