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
set shortmess=I " Read :help shortmess for everything else. |
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
.search { | |
/* Roundness */ | |
border: 1px solid #BABABA; | |
border-radius: 20px; | |
height: 35px; | |
width: 300px; | |
padding: 8px; | |
background: white; |
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
.comment_box { | |
/* Cosmetic */ | |
margin-left: 30px; | |
margin-top: 50px; | |
border-radius: 7px; | |
border-color: #BABABA; | |
box-shadow: 1px 5px 2px #EDEDED; | |
height: 130px; | |
width: 300px; /* Was 470px */ |
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
/* Fade in and out link colors with CSS3. */ | |
a { color: #5588E0; transition:.3s linear; -webkit-transition:.3s linear; } | |
a:hover { color: #E07355; } |
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
var re = /^\s+$/; | |
/* | |
* ^ - start of string | |
* \s - anything whitespace | |
* + - 1 or more | |
* $ - the end of the string | |
*/ | |
if (" ".match(re)) { |
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
describe ".full_date" do | |
it 'returns a full date' do | |
d.full_date.should =~ /^[A-Z]\w+ \d{1,2} \d{4}$/ | |
end | |
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
# In zsh you can use <esc>+h to automatically open a help file for the given command | |
$ git # + <esc>+h | |
# Becomes | |
$ run-help git |
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
require 'sinatra' | |
require 'rate' | |
get '/random-date' do | |
d = Rate::Date.new | |
d.full_date.strftime("%b %d %Y") | |
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
if RUBY_VERSION < 1.9 | |
# Do something based on the version... | |
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
#!/usr/bin/env ruby | |
require 'fileutils' | |
include FileUtils::DryRun # Will only print what your command does. Useful if you're using | |
# something like `rm -rf`. | |
mkdir('test') | |
cd('test') |