This file contains hidden or 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" /> | |
<link rel="stylesheet" href="style.css" /> | |
<title>Front end les 1</title> | |
</head> | |
<body> | |
<header> | |
<img class="logo" src="http://placekitten.com/190/70" /> |
This file contains hidden or 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> | |
<title>Video in html5</title> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<video controls> | |
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4"></source> | |
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm"></source> |
This file contains hidden or 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
/** | |
* Responsive blog layout te doen | |
*/ | |
article { | |
display: inline-block; | |
vertical-align: top; | |
} | |
nav li { | |
display: block; |
This file contains hidden or 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
// Dit is fout, volgens mij. | |
$query = "UPDATE product SET (name, description, price, link, image) VALUES ('$_POST[name]', '$_POST[description]', '$_POST[price]', '$_POST[link]', '$product[image]') WHERE ID = '".$product['ID']."';"; | |
// Zo doe ik het altijd: | |
$query = " | |
UPDATE product | |
SET | |
name = '".$_POST['name']."', | |
description = '".$_POST['description']."', | |
price = '".$_POST['price']."', | |
link = '".$_POST['link']."', |
This file contains hidden or 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 | |
echo "<h1>stuff in GET</h1>"; | |
var_dump($_GET); | |
echo "<br /><br />"; | |
echo "<h1>stuff in POST</h1>"; | |
var_dump($_POST); | |
echo "<br /><br />"; | |
if(isset($_GET['val'])) { | |
$val = $_GET['val']; |
This file contains hidden or 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
/** | |
* Inline-block not done | |
*/ | |
* { | |
box-sizing: border-box; | |
} | |
section:nth-of-type(2) { | |
font-size: 32px; |
This file contains hidden or 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
alias mamp-stop="sudo killall MAMP" | |
alias mamp-start="open -a MAMP" | |
alias mamp-restart="mamp-stop; mamp-start" | |
alias vhosts-open="open -t /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf" |
This file contains hidden or 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
/* | |
* see http://krijnhoetmer.nl/stuff/javascript/media-queries/ | |
*/ | |
var App = App || {}; | |
(function(){ | |
var screenSizeTest = function(mediaQuery){ | |
return window.matchMedia(mediaQuery).matches; | |
} |
This file contains hidden or 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
var App = window.App || {}; | |
App.Popovers = function(){ | |
var getPopoverLeft = function(trigger_pos, $trigger_el, $popover) { | |
var left = trigger_pos.left + $trigger_el.outerWidth()/2; | |
left += $trigger_el.outerWidth(true) - $trigger_el.outerWidth(); | |
left -= $popover.outerWidth()/2; | |
return left; | |
} |
This file contains hidden or 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
class MainViewController: UIViewController() { | |
var viewModel = WebsiteList() | |
func tabsButtonPressed() { | |
let vc = ListView(vm: viewModel) | |
// present the vc | |
} | |
} | |
class ListView: UIViewController { |
OlderNewer