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 | |
// Make sure Carbon is available | |
function renderCalendar($dt) { | |
// Make sure to start at the beginnen of the month | |
$dt->startOfMonth(); | |
// Set the headings (weeknumber + weekdays) | |
$headings = ['Weeknumber', 'Mondag', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saterday', 'Sunday']; |
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
function fetch(urls, callback) { | |
var requests = []; | |
var data = []; | |
for (var i = 0; i < urls.length; i++) { | |
requests.push($.get(urls[i])); | |
} | |
$.when.apply($, requests).then(function() { | |
if (typeof arguments[0] === 'object') { |
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 validator = require('validator'); | |
var validates = true; | |
var errors = []; | |
module.exports = function(input, validation, cb) { | |
// Loop through the validation rules | |
for (var field in validation) { | |
// Get the validation rules | |
var rules = validation[field].split('|'); |
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
{ | |
"beforeQuit": "Weet je zeker dat je wilt afsluiten?", | |
"loading": "Een ogenblik geduld...", | |
"loadingVideo": "Video wordt geladen, een ogenblik geduld", | |
"searchLoading": "Zoeken...", | |
"noResults": "Er zijn geen resultaten gevonden voor deze zoekopdracht.", | |
"search": "Zoeken", | |
"movies": "Films", |
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
*, *:before, *:after { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
.row:after { | |
content: ""; | |
display: table; | |
clear: both; |