This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project :orm => :datamapper, :script => :jquery, :renderer => :erb | |
git :init | |
git :add, "." | |
git :commit, "initial commit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generate_domain_key | |
charset = %w{ 2 3 4 6 7 9 A C D E F G H J K L M N P Q R T V W X Y Z} | |
(0...16).map{ charset[rand(charset.size + 1)] }.join | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(window).load(function(){ | |
$().hatchShow(); | |
}); | |
jQuery.fn.hatchShow = function(){ | |
$('.hsjs').css('display','inner-block').css('white-space','pre').each(function(){ | |
var t = $(this); | |
t.wrap("<span class='hatchshow_temp' style='display:block'>"); | |
var pw = t.parent().width(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@first_month = 5 | |
@last_month = 8 | |
@year_for_first_month = 2009 | |
@year_for_last_month = 2011 | |
# the old code: | |
(@year_for_first_month..@year_for_last_month).each do|year| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.colourlovers.com/palette/1824236/5-Step_Value_Scale | |
Color (Hex) Lowlight (Hex) Color (RGB) | |
#000000 #000000 0, 0, 0 | |
#404040 #393939 64, 64, 64 | |
#808080 #727272 128, 128, 128 | |
#C0C0C0 #ACACAC 192, 192, 192 | |
#FFFFFF #E5E5E5 255, 255, 255 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bookmark{ | |
background: #b00; | |
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b00), color-stop(100%,#900)); | |
background-image: -webkit-linear-gradient(top, #b00 0%, #900 100%); | |
background-image: -moz-linear-gradient(top, #b00 0%, #900 100%); | |
background-image: -o-linear-gradient(top, #b00 0%, #900 100%); | |
background-image: -ms-linear-gradient(top, #b00 0%, #b00 100%); | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b00', endColorstr='#900',GradientType=0 ); | |
background-image: linear-gradient(top, #b00 0%, #900 100%); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype.contains = function(substring){ | |
return this.indexOf(substring) != -1; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to get GitHub Pages for projects, while maintaining your root Jekyll page. | |
This is a good start ... https://help.github.com/articles/creating-project-pages-manually | |
In this case, I'm getting Parentheticals posted as a GitHub Project Page | |
cd into your local copy: | |
$ cd parentheticals | |
$ parentheticals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{background:#f4f4f4;color:#444} | |
a{color:#b00 !important;text-decoration:none} | |
.randoclass{text-transform:uppercase} |