Skip to content

Instantly share code, notes, and snippets.

View donnywals's full-sized avatar

Donny Wals donnywals

View GitHub Profile
@donnywals
donnywals / index.html
Created April 2, 2012 09:43
Opdracht 1 van front end (donny wals)
<!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" />
@donnywals
donnywals / gist:2349409
Created April 10, 2012 08:41
Les 2 front end
<!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>
/**
* Responsive blog layout te doen
*/
article {
display: inline-block;
vertical-align: top;
}
nav li {
display: block;
// 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']."',
<?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'];
@donnywals
donnywals / dabblet.css
Created March 22, 2013 08:21
Inline-block not done
/**
* Inline-block not done
*/
* {
box-sizing: border-box;
}
section:nth-of-type(2) {
font-size: 32px;
@donnywals
donnywals / mamp_alias
Created August 22, 2014 08:42
MAMP command line alias
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"
/*
* see http://krijnhoetmer.nl/stuff/javascript/media-queries/
*/
var App = App || {};
(function(){
var screenSizeTest = function(mediaQuery){
return window.matchMedia(mediaQuery).matches;
}
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;
}
class MainViewController: UIViewController() {
var viewModel = WebsiteList()
func tabsButtonPressed() {
let vc = ListView(vm: viewModel)
// present the vc
}
}
class ListView: UIViewController {