Skip to content

Instantly share code, notes, and snippets.

@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
@mhayes
mhayes / php-html-entity-parse.php
Created September 20, 2012 02:55
Parse HTML Entities for JS Highlighting
<h1>Before</h1>
<pre><code><? echo htmlentities('
<p>good news everyone!</p>
') ?></code></pre>
<?
function code_example($code, $lang) {
echo "<pre><code data-language='" . $lang . "'>" . htmlentities($code) . "</code></pre>";
}
@mhayes
mhayes / expo.css
Created September 18, 2012 22:04
media queries
@media only screen and (device-width: 768px), (device-width: 800px) {
.pattern-feed .columns-feed:last-child {display:none;}
.playground-feed .columns-feed:last-child {display:none;}
.events-feed .columns-feed:last-child {display:none;}
.jobs-feed .columns-feed:last-child {display:none;}
}
@mhayes
mhayes / flutes.txt
Created September 10, 2012 20:57
flute player
___
,'._,`.
(-.___.-)
(-.___.-)
`-.___.-'
(( @ @| . __
\ ` | ,\ |`. @| | | _.-._
__`.`=-=mm===mm:: | | |`. | | | ,'=` '=`.
( `-'|:/ /:/ `/ @| | | |, @| @| /---)W(---\
\ \ / / / / @| | ' (----| |----) ,~
@mhayes
mhayes / initialize_accordion.js
Created August 10, 2012 18:51
Foundation Elements
$(document).foundationAccordion();
@mhayes
mhayes / initialize.js
Created August 10, 2012 18:48
Foundation Tabs
$(document).foundationTabs();
@mhayes
mhayes / initialize.js
Created August 10, 2012 18:46
Foundation Navigation
$(document).foundationNavigation();
@mhayes
mhayes / changed.js
Created August 10, 2012 18:30
Foundation Custom Forms
// When something changes
$("#changedSelectInput").foundationCustomForms();