Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
USE __DATABASE__; | |
SET @username = 'azizur'; | |
SET @password = MD5('password'); | |
SET @fullname = 'Azizur Rahman'; | |
SET @email = '[email protected]'; | |
SET @url = 'http://azizur.com/'; | |
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_status`, `display_name`) VALUES (@username, @password, @fullname, @email, @url, NOW(), '0', @fullname); |
$(document).ready(function(){ | |
setInterval(countdomains(), 1000); | |
function countdomains(){ | |
var cb; | |
$(".letters").each(function(){ | |
cb = $(this); | |
$.getJSON("/api/domain/countByLetter?letter="+$(this).data('letter'), null, function(data){ | |
cb.text(data); | |
}); | |
}); |
.designs/ | |
wp-content/* | |
!wp-content/themes | |
wp-content/themes/**/node_modules | |
wp-content/themes/**/.sass-cache |
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.