Skip to content

Instantly share code, notes, and snippets.

View timcheadle's full-sized avatar

Tim Cheadle timcheadle

View GitHub Profile
@timcheadle
timcheadle / README.md
Last active January 26, 2023 00:56
Make /robots.txt aware of the Rails environment

Make /robots.txt aware of the Rails environment

You probably don't want Google crawling your development staging app. Here's how to fix that.

$ mv public/robots.txt config/robots.production.txt
$ cp config/robots.production.txt config/robots.development.txt

Now edit config/routes.rb to add a route for /robots.txt, and add the controller code.

@timcheadle
timcheadle / archive.txt
Created May 6, 2012 17:14
Archive Links from Blog Carnival
May 03, 2012: http://practicegoodtheory.blogspot.com/2012/05/objectivist-roundup-may-3-2012.html
Apr 26, 2012: http://rationaljenn.blogspot.com/2012/04/objectivist-round-up-249.html
Apr 19, 2012: http://jasonstotts.com/2012/04/objectivist-blog-carnival-13/
Apr 12, 2012: http://ruleofreason.blogspot.com/2012/04/objectivist-round-up.html
Mar 29, 2012: http://theplayfulspiritrachel.blogspot.com/2012/03/objectivist-round-up.html
Mar 22, 2012: http://witlab.blogspot.com/2012/03/objectivist-round-up.html
Mar 16, 2012: http://ruleofreason.blogspot.com/2012/03/objectivist-round-up_15.html
Mar 11, 2012: http://practicegoodtheory.blogspot.com/2012/03/greece-defautls.html
Mar 01, 2012: http://ruleofreason.blogspot.com/2012/03/objectivist-round-up.html
Feb 23, 2012: http://rationaljenn.blogspot.com/2012/02/objectivist-round-up-241.html
@timcheadle
timcheadle / File List
Created October 30, 2011 03:26
Compass Sprites Example
$ find images/icons
images/icons
images/icons/minus.png
images/icons/plus.png
@timcheadle
timcheadle / nivo-slider.css
Created June 3, 2011 14:15
Nivo Slider Image Advance on Click
.slider {
cursor: pointer;
}
.nivo-directionNav a {
position:absolute;
top:45%;
z-index:9;
cursor:pointer;
display: none;