Skip to content

Instantly share code, notes, and snippets.

@mhayes
mhayes / grid-import.html
Created July 18, 2013 15:51
Medium Grid Import
<link rel="stylesheet" href="stylesheets/foundation.css" />
<link rel="stylesheet" href="stylesheets/foundation-grid-5.css" />
@mhayes
mhayes / solution.txt
Created July 3, 2013 22:15
Homebrew - Fix bug with MySQL 5.6.12 on OSX Mountain Lion
Source: http://stackoverflow.com/questions/6317614/getting-mysql-work-on-osx-10-7-lion
I had the same problem, I managed to fix it. I did a lot of things, and I don't know for sure what it was, but going to MySQL 5.6.10 seems to have worked.
Uninstall MySQL 5.6.12:
brew unlink mysql
brew uninstall mysql
Go to the homebrew directory:
@mhayes
mhayes / gist:5631380
Last active December 17, 2015 15:19 — forked from ghaida/gist:5054687
<!-- Navigation -->
<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<h1>
<a href="#">
Top Bar Title
</a>
@mhayes
mhayes / wicked_pdf_test.rb
Last active December 14, 2015 20:39
One idea to count lines in a wicked_pdf to determine page breaks for arbitrary length content (i.e. text)
template =<<eos
<style>
#comments li {line-height:16px; margin:0; padding: 0;}
</style>
<h1>this is original text</h1>
<ul id="comments">
<li>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</li>
<li>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</
@mhayes
mhayes / Rakefile
Created February 7, 2013 17:37
Passing arguments in a Rakefile
require 'rake'
task :environment do
puts "load env..."
end
desc "This is a test"
namespace :migrate do
task :cloudfiles, [:arg1] => :environment do |t,args|
puts args[:arg1]
end
@mhayes
mhayes / README.md
Last active December 12, 2015 04:59
Running multiple versions of Foundation

How to Run Multiple Foundation Versions

Create Project

Create a folder for your Foundation project:

mkdir awesomeapp
@mhayes
mhayes / assets.yml
Created November 20, 2012 22:07
Use base packages in Jammit
compress_assets: on
gzip_assets: off
javascripts:
base: &base
- base1.js
- base2.js
- base3.js
admin:
- *base
@mhayes
mhayes / ssh_error.sh
Created November 20, 2012 19:46
SSH Connection Agent fails on Mac OS X
# If you run into this error:
# $> ssh-add ~/.ssh/id_rsa
# $> Could not open a connection to your authentication agent.
# Then place the following line in ~/.bash_profile
# Then run source ~/.bash_profile
eval `ssh-agent -s`
@mhayes
mhayes / Gemfile
Created October 16, 2012 15:04
Setting up Foundation Compass Project using Git
source :rubygems
gem "zurb-foundation", :git => "git@github.com:zurb/foundation.git"
gem "compass"
@mhayes
mhayes / public_keys.pub
Created October 13, 2012 00:19
Rails Rumble Public Keys
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyW+iJ5g//fX3Zepne86K6i9Jg4bH2vp7dHautBZqs5TzrPwKmsH4vr0KZ6jR9IP6gPusKInpNsg3WOTJWXt/R5qB/NezHjx8bDx6djuLFZmTiLC+yhhcxbrdGufxBqYbhunQVy2RvrvlB6hEVy+kw6GaMCETC1xRT9lD6yMAprpgl81z4pILY0eO1bXradhZp3mSZbodEU4S3dNaK1xncPmmB1QeAvCNjE9+sMzqL4BqYrx193PIQu/A7SUUdT/+8zU1xdyr9jaTNy0TmBWY4Vx49rtM2tWuBzeaghxqjTfE91EOHYJQ894EUJPgn+QKSbdqUYddDhgmCJS9b0Krww== mark@mark.local
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0c13IZTgrNN4c+PfuNWm92zvYYeBRPlgIhdDlQIQJ33Q4UXqJ3dIAERS5I7423Ue+Sxf43A+L6uWUv+JwpVL7qNtmTYQ6hTzdN4MXf6rdhNOBY6t2eXaRM7Ki+zAkXNIRm/zdkNX8PdwmAp1NGst1OisdvoMsrrdFt3Y2czo75Y2Z1i2Ppa5Rs4d1665wLF+3Gw+awov1BG95qNrm32oFh/DzJr2oMvNrbh60fcpqGZBp63bXYQQXYud1kyI0alHp15UJQE5/nG6hnFexPSr4MidBxGOzpeYz78XhTpqH7k1NbufumMkPYflCmAXMaXQwGdGVSgbHpgxwCwRIacLiQ== jordanhumphreys@whizzer.local