Skip to content

Instantly share code, notes, and snippets.

@nicollehahn
nicollehahn / overflow-hidden
Created Oct 24, 2018
css positions to prevent content bleeding into nav
View overflow-hidden
nav, div.main {
position: relative;
overflow: hidden;
}
View fixed_navigation_sticky
.fixed-nav-bar {
position: fixed;
top: 0;
left: 0;
z-index: 9999;
width: 100%;
height: 50px;
background-color: #00a087;
}
@nicollehahn
nicollehahn / Scale on hover with transition
Last active Oct 24, 2018
Scale on hover with transition
View 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 / solarized.scss
Last active Sep 4, 2017 — forked from planetoftheweb/solarized.scss
The colors for the [solarized palette](http://ethanschoonover.com/solarized) in Hex format ready for Sass.
View solarized.scss
$lightgrey : #819090;
$gray : #708284;
$mediumgrey : #536870;
$darkgrey : #475B62;
$darkblue : #0A2933;
$darkerblue : #042029;
$paleryellow : #FCF4DC;
$paleyellow : #EAE3CB;
$yellow : #A57706;
$orange : #BD3613;
@nicollehahn
nicollehahn / .gitignore
Created Sep 2, 2017 — forked from octocat/.gitignore
Some common .gitignore configurations
View .gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@nicollehahn
nicollehahn / greeting_full_name
Created Jun 21, 2015
Ruby: first, middle, last name Greeting full name
View 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 / bigger_better_number
Created Jun 21, 2015
Ruby: Bigger better number
View 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.'