Skip to content

Instantly share code, notes, and snippets.

View nielsdoorn's full-sized avatar
🏗️
Building better software testing education

Niels Doorn nielsdoorn

🏗️
Building better software testing education
View GitHub Profile
@nielsdoorn
nielsdoorn / dabblet.css
Last active August 29, 2015 14:17
Untitled
.menu {
list-style-type: none;
padding: 0;
margin: 0;
height: 140px;
margin: 0 auto;
}
.menuitem {
display: inline-block;
#slider {
position: relative;
margin: 0 auto;
width: 500px;
}
#left {
position: absolute;
left: 0;
}
@nielsdoorn
nielsdoorn / dabblet.css
Created March 13, 2015 08:28 — forked from LeaVerou/dabblet.css
Untitled
header {
height: 200px;
background-color: red;
position:fixed;
width: 100%;
top: 0;
left: 0;
}
#content {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
document.write("hello world");
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
<?php
$user = 'root';
$password = 'root';
$db = 'TODO_Stenden';
$host = 'localhost';
$port = 3306;
$link = mysql_connect(
"$host:$port",
$user,
#!/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)
<?php
$user = 'root';
$password = 'root';
$db = 'TODO_Stenden';
$host = 'localhost';
$port = 3306;
$link = mysql_connect(
"$host:$port",
$user,
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'
@nielsdoorn
nielsdoorn / index.css
Created November 18, 2014 07:24
cordova begin
body, html {
height: 100%;
}
body {
background: linear-gradient(0deg, blue, darkblue);
font-family: sans-serif;
}
h1 {