Instantly share code, notes, and snippets.

View program4.rb
# 3.times do
# puts "Hello!"
# end
# 3.times do
# p "Hello! "
# end
# number = 0
# while (number <= 10) do
View program2.rb
# def choose
# puts "Do you like programming? Yes or no please."
# choice = gets.chomp
# if (choice.downcase == "yes")
# puts "That\'s great!"
# elsif (choice.downcase == "no")
# puts "That\'s too bad!"
# else
# puts "That wasn\'t a yes or no."
# end
View program2.rb
if (5+5==10)
puts "this is true"
else
puts "this is false"
end
View program.rb
# my_name = "Sem"
# puts "hello"
# p "hello"
# def greeting(name)
# p "hello "+name
# end
# greeting(my_name)
def greeting
puts "Please enyter your name:"
View sinterklaas.js
// Verse line 1
$("#ln13").on("keyup", function() {
var line = $("#ln13").val();
if (line === "") {
$("#ln13").css("border", "1px solid black");
$("#vf1-1").html("");
$("#vf1-2").html("");
$("#vf1-3").html("");
$("#vf1-4").html("");
$("#vf1-5").html("");
View sinterklaas.html
<!DOCTYPE html>
<html lang="en">
<!-- Head of document -->
<head>
<!-- Meta tags -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Page title -->
<title>Surprise voor Greet</title>
View sripts.js
// Twitter
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
// Google Map
function initMap() {
var myLatLng = {lat: 52.4483653, lng: 4.8176345};
var map = new google.maps.Map(document.getElementById('map'), {
center: myLatLng,
zoom: 14
});
var marker = new google.maps.Marker({
View styles.css
/* --------------------- */
/* Body styling */
body {
position: relative;
background-image: url("../img/wild-sea.png");
overflow: auto;
}
* {
font-family: Fahkwang, Futura, Helvetica, Trebuchet, sans-serif;
}
View index.html
<!DOCTYPE html>
<html lang="en">
<!-- Head of document -->
<head>
<!-- Meta tags -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Page title -->
<title>Sem van Lent</title>
View portfolio-broken.js
// Twitter function
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
// Google Map function
function initMap() {
var myLatLng = {lat: 52.4483653, lng: 4.8176345};
var map = new google.maps.Map(document.getElementById('map'), {
center: myLatLng,
zoom: 14
});
var marker = new google.maps.Marker({