Skip to content

Instantly share code, notes, and snippets.

View thomas-lebeau's full-sized avatar
🐶

Thomas Lebeau thomas-lebeau

🐶
View GitHub Profile
.hyphenate() {
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word; // Non standard for webkit
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
@thomas-lebeau
thomas-lebeau / gist:4451b849778cffbeee3f
Last active October 11, 2015 07:38
JS: share links and counts
<a href="http://twitter.com/home?status=STATUS" title="Click to share this post on Twitter">Share on Twitter</a>
<a href="http://www.facebook.com/sharer.php?u=URL&t=TITLE">link or image</a>
<a href="https://m.google.com/app/plus/x/?v=compose&content=CONTENT">Image or text</a>
Facebook*: https://api.facebook.com/method/links.getStats?urls=%%URL%%&format=json
Twitter: http://urls.api.twitter.com/1/urls/count.json?url=%%URL%%
Reddit:http://buttons.reddit.com/button_info.json?url=%%URL%%
LinkedIn: http://www.linkedin.com/countserv/count/share?url=%%URL%%&format=json
Digg: http://widgets.digg.com/buttons/count?url=%%URL%%
Delicious: http://feeds.delicious.com/v2/json/urlinfo/data?url=%%URL%%