Skip to content

Instantly share code, notes, and snippets.

@hspinks
hspinks / _products_grid.html.erb
Created October 23, 2013 04:59
One controller of the Products application that displays a grid of products, updates those products via Ajax on a form submission, then attempts to lay out the refilled container of products using Masonry. The Masonry is working fine, but fires too soon on the Ajax calls.
<%= products.each do |p| %>
<div class="product">
<%= image_tag p.picture.url %>
<div>
<h3><%= p.title %></h3>
</div>
</div>
<% end %>
@hspinks
hspinks / gist:7094712
Created October 22, 2013 03:22
Attempting to install IE7 ievm for VirtualBox
$ curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | IEVMS_VERSIONS="7" bash
Checking for VirtualBox
Checking for Oracle VM VirtualBox Extension Pack
Pack no. 0: Oracle VM VirtualBox Extension Pack
Downloading unar from http://theunarchiver.googlecode.com/files/unar1.5.zip to unar1.5.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4201k 100 4201k 0 0 1647k 0 0:00:02 0:00:02 --:--:-- 1712k
Archive: unar1.5.zip
inflating: lsar