Skip to content

Instantly share code, notes, and snippets.

@nicollehahn
nicollehahn / bigger_better_number
Created June 21, 2015 14:13
Ruby: Bigger better number
puts 'Would you please enter the number you find most special?'
number = gets.chomp
puts 'So, you\'re favorite number is ' + number.to_s + ' is a wonderful number.'
betternumber = number.to_i + 1
puts 'But, ' + betternumber.to_s + ' is way better and more exciting.'
@nicollehahn
nicollehahn / greeting_full_name
Created June 21, 2015 14:56
Ruby: first, middle, last name Greeting full name
puts "Hello, there. I would like to find out who you are. What is your first name? "
first = gets.chomp
puts "May I ask also what is your middle name? "
middle = gets.chomp
puts "I am totally going out there, finish it up, please.... What is your last name?"
last = gets.chomp
puts 'Pleased to meet you, ' + first + ' ' + middle + ' ' + last + '.'
puts ''
print 'I am a cool chickster named Ruby. Are you ready to go on a wild ride with me? You\'re life will never be the same.'
@nicollehahn
nicollehahn / .gitignore
Created September 2, 2017 02:24 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@nicollehahn
nicollehahn / solarized.scss
Last active September 4, 2017 19:51 — forked from planetoftheweb/solarized.scss
The colors for the [solarized palette](http://ethanschoonover.com/solarized) in Hex format ready for Sass.
$lightgrey : #819090;
$gray : #708284;
$mediumgrey : #536870;
$darkgrey : #475B62;
$darkblue : #0A2933;
$darkerblue : #042029;
$paleryellow : #FCF4DC;
$paleyellow : #EAE3CB;
$yellow : #A57706;
$orange : #BD3613;
@nicollehahn
nicollehahn / Scale on hover with transition
Last active October 24, 2018 15:01
Scale on hover with transition
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
thx to CSS Tricks! https://css-tricks.com/snippets/css/scale-on-hover-with-webkit-transition/
@nicollehahn
nicollehahn / fixed_navigation_sticky
Created October 24, 2018 15:22
fixed_navigation_sticky
.fixed-nav-bar {
position: fixed;
top: 0;
left: 0;
z-index: 9999;
width: 100%;
height: 50px;
background-color: #00a087;
}
@nicollehahn
nicollehahn / overflow-hidden
Created October 24, 2018 17:37
css positions to prevent content bleeding into nav
nav, div.main {
position: relative;
overflow: hidden;
}