Skip to content

Instantly share code, notes, and snippets.

View richardsondx's full-sized avatar

Richardson Dackam richardsondx

View GitHub Profile
@richardsondx
richardsondx / gist:2361419
Created April 11, 2012 19:00 — forked from stuross/gist:1649731
hack to fill gaps in masonry
/**
* jQuery Masonry v2.1.01
* A dynamic layout plugin for jQuery
* The flip-side of CSS Floats
* http://masonry.desandro.com
*
* Licensed under the MIT license.
* Copyright 2011 David DeSandro
*/
@richardsondx
richardsondx / pages _microposts.html.erb
Created April 4, 2012 19:50 — forked from radar/pages _microposts.html.erb
Endless page won't work with partial call instead of @render (which display my post with no css style)
<% for micropost in @microposts %>
<tr>
<td class="tdeux"><div class="head1"><%= image_tag("#{ micropost.to_guys ? "guys" : "girl" }-head.png") %></div></td>
<td valign="top"><p class="peopleposts"><%= link_to micropost.content, page_path(micropost) %></p></td>
<td class="td2"><div class="share1"><%= tweet_button(:via => "hmdy", :url => "http://localhost:3000/pages/#{micropost.id}", :text => "#{@micropost.content}", :lang => "en", :related => "helpmedateyou", :count => "none") %></div></td>
</tr>
<% end %>