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
.menu { | |
list-style-type: none; | |
padding: 0; | |
margin: 0; | |
height: 140px; | |
margin: 0 auto; | |
} | |
.menuitem { | |
display: inline-block; |
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
#slider { | |
position: relative; | |
margin: 0 auto; | |
width: 500px; | |
} | |
#left { | |
position: absolute; | |
left: 0; | |
} |
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
header { | |
height: 200px; | |
background-color: red; | |
position:fixed; | |
width: 100%; | |
top: 0; | |
left: 0; | |
} | |
#content { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
document.write("hello world"); |
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
def do_i_win my_choice, your_choice | |
if my_choice == 'rock' and your_choice == 'scissors' | |
return true | |
elsif my_choice == 'paper' and your_choice == 'rock' | |
return true | |
elsif my_choice == 'scissors' and your_choice == 'paper' | |
return true | |
end | |
return false | |
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
<?php | |
$user = 'root'; | |
$password = 'root'; | |
$db = 'TODO_Stenden'; | |
$host = 'localhost'; | |
$port = 3306; | |
$link = mysql_connect( | |
"$host:$port", | |
$user, |
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/ruby | |
require 'net/http' | |
require 'json' | |
url = ARGV[0] ? ARGV[0] : 'http://google.nl' | |
uri = URI('http://cc4.co/add.php') | |
params = { :u => url } | |
uri.query = URI.encode_www_form(params) |
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
<?php | |
$user = 'root'; | |
$password = 'root'; | |
$db = 'TODO_Stenden'; | |
$host = 'localhost'; | |
$port = 3306; | |
$link = mysql_connect( | |
"$host:$port", | |
$user, |
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
deuren = ['auto', 'geit', 'geit'].shuffle | |
puts "Kies een deur (1 t/m 3)" | |
gekozen_deur = gets.chomp.to_i-1 | |
puts "U heeft deur "+(gekozen_deur+1).to_s+" gekozen!" | |
quizmaster_deur = nil | |
deuren.each_with_index do |deur, index| | |
if index != gekozen_deur && deur == 'geit' |
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
body, html { | |
height: 100%; | |
} | |
body { | |
background: linear-gradient(0deg, blue, darkblue); | |
font-family: sans-serif; | |
} | |
h1 { |