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
Anchor: | |
<a name="programs"></a> | |
Link: | |
<a href="#programs" class="smoothScroll"> | |
Add to Footer: | |
<script src="js/smoothscroll.js"></script> |
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
$(function(){ | |
$(".smoothScroll").click(function(e) { | |
e.preventDefault(); | |
document.location.href = $(this).attr("href") | |
}) | |
}); |
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
$(function(){ | |
$(window).scroll(function(){ | |
var windscroll = $(window).scrollTop(); | |
$('body .section').each(function(i){ | |
if ($(this).position().top <= windscroll){ | |
$('nav li.active').removeClass('active'); | |
$('nav li').eq(i).addClass('active'); | |
}; | |
}); | |
}); |
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
.pace-running .loader { opacity:0 } | |
.pace-done .loader { | |
opacity:1; | |
-webkit-transition:opacity 1s linear; | |
-moz-transition:opacity 1s linear; | |
-o-transition:opacity 1s linear; | |
transition:opacity 1s linear; | |
} |
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 src="https://maps.googleapis.com/maps/api/js"></script> | |
<script> | |
function initialize() { | |
var myLatLng = {lat: 18.38162, lng: -66.133667}; | |
var mapCanvas = document.getElementById('map'); | |
var mapOptions = { | |
center: myLatLng, | |
zoom: 18, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
} |
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
sudo apt-get update # This will pull a list of updates for your system. | |
sudo apt-get upgrade # This will download install the updates from the previous command. | |
sudo apt-get install curl # This will install the program cURL. | |
\curl -L https://get.rvm.io | bash -s stable # This will tell cURL to go to that web address and download a stable version of RVM. | |
source ~/.rvm/scripts/rvm # This sets the source for rvm to use. | |
rvm requirements # This will check that your system has all of RVM's requirements. | |
rvm install ruby # This will use rvm to install ruby | |
rvm use ruby --default # This will tell rvm to use ruby by default. | |
rvm rubygems current # This will download the latest version of rubygems. | |
gem install rails # This will download the latest version of rails. |
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
vim ~/.bashrc | |
make sure in your bashrc file you have the following: | |
export PATH=$HOME/local/bin:$PATH | |
export PATH="$PATH:$HOME/npm/bin" | |
# this one is optional, add it it doesn't work at the end | |
export NODE_PATH="$NODE_PATH:$HOME/npm/lib/node_modules" |
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
.live-background { | |
background-image: url('http://placehold.it/1500x1200'); | |
background-repeat: no-repeat; | |
background-position: center center; | |
background-size: cover; | |
min-height: 100vh; | |
min-width: 100vw; | |
} | |
.overlay{ |
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
$('#contact_form').validate({ | |
debug: true, | |
rules: { | |
name: "required", // should be: "user[username]" | |
email: { // should be: "user[email]" | |
required: true, | |
email: true | |
} | |
}, | |
messages: { |
OlderNewer