Skip to content

Instantly share code, notes, and snippets.

@mhayes
mhayes / grid-import.html
Created Jul 18, 2013
Medium Grid Import
View grid-import.html
<link rel="stylesheet" href="stylesheets/foundation.css" />
<link rel="stylesheet" href="stylesheets/foundation-grid-5.css" />
@mhayes
mhayes / f4-grid.html
Created Jul 18, 2013
Foundation 4.3 Grid
View f4-grid.html
<div class="row">
<div class="small-4 large-8 columns"></div>
<div class="small-8 large-4 columns"></div>
</div>
@mhayes
mhayes / f5-grid.html
Created Jul 18, 2013
Foundation 4.3 Medium Grid
View f5-grid.html
<div class="row">
<div class="small-4 medium-6 large-8 columns"></div>
<div class="small-8 medium-6 large-4 columns"></div>
</div>
@mhayes
mhayes / solution.txt
Created Jul 3, 2013
Homebrew - Fix bug with MySQL 5.6.12 on OSX Mountain Lion
View solution.txt
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:
View gist:5631380
<!-- 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 Dec 14, 2015
One idea to count lines in a wicked_pdf to determine page breaks for arbitrary length content (i.e. text)
View wicked_pdf_test.rb
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 Feb 7, 2013
Passing arguments in a Rakefile
View 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 Dec 12, 2015
Running multiple versions of Foundation
View README.md

How to Run Multiple Foundation Versions

Create Project

Create a folder for your Foundation project:

mkdir awesomeapp
@mhayes
mhayes / .bash_profile
Created Dec 4, 2012
Mountain Lion + rbenv + mysql2
View .bash_profile
export PATH="$HOME/.rbenv/bin:$PATH:/usr/local/mysql/bin"
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib
eval "$(rbenv init -)"
@mhayes
mhayes / assets.yml
Created Nov 20, 2012
Use base packages in Jammit
View assets.yml
compress_assets: on
gzip_assets: off
javascripts:
base: &base
- base1.js
- base2.js
- base3.js
admin:
- *base
You can’t perform that action at this time.