Skip to content

Instantly share code, notes, and snippets.

View Chamuth's full-sized avatar
🏠
Working from home

Chamuth Chamandana Chamuth

🏠
Working from home
View GitHub Profile
@Chamuth
Chamuth / drupal-views-share-global-text-field
Created June 10, 2017 04:18 — forked from chrisjlee/drupal-views-share-global-text-field
share url's for facebook, twitter, pinterest with just get variables
<ul>
<li class="share-text">Share this>/li>
<li class="share-tw"><a href="http://twitter.com/share?text=[title]"><span></span></a></li>
<li class="share-fb"><a href="http://www.facebook.com/sharer.php?u=/node/[nid]&p=[title]"><span></span></a></li>
<li class="share-pinterest"><a href="http://pinterest.com/pin/create/button/?url=/node/[nid]&description=[title]"><span></span></a></li>
</ul>
@Chamuth
Chamuth / 0_reuse_code.js
Created July 6, 2017 15:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console