Skip to content

Instantly share code, notes, and snippets.

View joelg's full-sized avatar

Joel Gascoigne joelg

View GitHub Profile
@joelg
joelg / customised_buffer_button.html
Created August 18, 2011 02:24
Customised Buffer Button
<a href="http://bufferapp.com/add" class="buffer-add-button" data-text="{text of the tweet goes here}" data-url="{url to shorten goes here (can be blank)}" data-no-replace="true" data-via="{optional referring Twitter username (without @)}">Buffer</a>
<script type="text/javascript" src="http://static.bufferapp.com/js/button.v2.js"></script>
@joelg
joelg / buffer-tumblr.html
Created June 16, 2011 06:02
Buffer Button in Tumblr
<!-- add the following just before {/block:Posts}: -->
<!-- You can change the value inside "data-via" to be your own Twitter account -->
<!-- You can change "count" to be "horizontal", "veritcal" or "none" -->
<a href="http://bufferapp.com/add" class="buffer-add-button" data-text="{Title}" data-url="{Permalink}" data-count="vertical" data-via="bufferapp">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script>
@joelg
joelg / strawberryjam-buffer.html
Created May 30, 2011 07:30
Strawberry Jam Buffer Integration
<!-- Note: use encodeURIComponent() for URL and text in the href -->
<script type="text/javascript" src="http://static.bufferapp.com/js/button.v3.js"></script>
<a href="http://bufferapp.com/add?url=(URL to shorten)&text=(the tweet text)" class="buffer-add-button" data-url="(URL to shorten)" data-text="(the tweet text)" data-no-replace="true" data-source="strawberryjam">Add to Buffer</a>
@joelg
joelg / sharebar.html
Created May 27, 2011 18:15
Buffer Button settings for Sharebar Wordpress Plugin
<!-- code for Big Button: -->
<a href="http://bufferapp.com/add" class="buffer-add-button" data-text="[title]" data-url="[url]" data-via="[twitter]" data-count="vertical">Buffer</a>
<script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script>
<!-- code for Small Button: -->
<a href="http://bufferapp.com/add" class="buffer-add-button" data-text="[title]" data-url="[url]" data-via="[twitter]" data-count="horizontal">Buffer</a>
<script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script>
@joelg
joelg / refynr-buffer.html
Created May 13, 2011 17:33
Refynr Buffer integration
<script type="text/javascript" src="http://static.bufferapp.com/js/button.v2.js"></script>
<a data-url="(URL to shorten)" data-text="(the tweet text)" data-no-replace="true" data-source="refynr">Add to Buffer</a>
@joelg
joelg / gist:932496
Created April 20, 2011 19:40
Code for the Buffer Button in Wordpress
<a href="http://bufferapp.com/add" class="buffer-add-button" data-text="<?php the_title(); ?>" data-url="<?php the_permalink(); ?>" data-via="(Your Twitter username, without @)" data-count="horizontal">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script>
@joelg
joelg / buffer-button.html
Created April 5, 2011 17:49
The HTML code to add the Buffer button to your blog
<a href="http://bufferapp.com/add" class="buffer-add-button" data-text="{title of post goes here}" data-url="{full URL of post goes here}" data-via="{your twitter username here (without @)}" data-count="none, horizontal or vertical">Buffer</a>
<script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script>
#!/usr/bin/env ruby
def hello_loop(names)
names.each do |name|
puts "Hello #{name}"
end
end
hello_loop(["Gafitescu", "D_Roch", "Steven Ng", "n0x13", "hosheng", "Pratik Desal", "r kumar", "Ashley Moran", "persiancoffee", "Andre Fischer"])
<?php
function hello($name)
{
echo "Hello $name";
}
#!/usr/bin/env ruby
def hello(name)
puts "Hello #{name}"
end
hello("Joel")