morris.js is a really nice chart lib for jQuery, that provides line, bar and donut charts.
“PhoneJS contains everything you’ll need to create native client applications using HTML5 and JavaScript with a single codebase and deliver solutions that target today’s most popular smartphones and tablet devices.
With a touch-optimized user experience, natively rendered widgets, straightforward page navigation, view management, and data access layers, PhoneJS is a single page application (SPA) framework for your next iOS, Android and WindowsPhone application, ready for online publication or packaged as a store-ready native app using Apache Cordova (PhoneGap).”
Really thinking about using it for one of my upcoming projects. Best documentation I have seen for a long time. Will build a test app next year :)
Make a use of your favicon with badges, images or videos
favicon.js or on Github
1 2 3 4 5 |
function get_linkedin() { $json_string = $this->file_get_contents_curl("http://www.linkedin.com/countserv/count/share?url=$this->url&format=json"); $json = json_decode($json_string, true); return isset($json['count'])?intval($json['count']):0; } |
Shares only
1 2 3 4 5 |
function get_likes($url) { $json_string = file_get_contents('http://graph.facebook.com/?ids=' . $url); $json = json_decode($json_string, true); return intval( $json[$url]['shares'] ); } |
Shares & Likes
1 2 3 4 5 6 7 8 9 10 11 12 |
function get_likes($url) { $json_string = file_get_contents(‘http://graph.facebook.com/?ids=’ . $url); $json = json_decode($json_string, true); $like_count = 0; if (isset($json[$url]['shares'])) $like_count += intval($json[$url]['shares']); if (isset($json[$url]['likes'])) $like_count += intval($json[$url]['likes']); return $like_count; } |
1 2 3 4 5 |
function get_tweets($url) { $json_string = file_get_contents('http://urls.api.twitter.com/1/urls/count.json?url=' . $url); $json = json_decode($json_string, true); return intval( $json['count'] ); } |
Sourcetree is a free Git & Mercurial client for Windows or Mac. I moved to Bitbucket a couple of months ago to help me deploy projects. Sourcetree is a solid tool to easily maintain the sources.
1 |
rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/ |