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
{ | |
"Opleiding_SK123ID": "10", | |
"Brinnummer": "24GE", | |
"Brinvolgnummer": 2, | |
"Opleidingscode": 34035, | |
"OpleidingscodeSamen": 34035, | |
"NaamOpleiding": "Bedrijfskunde", | |
"SoortOpleiding": "Bachelor", | |
"SoortHo": "HBO", | |
"Bekostiging": "Niet-Bekostigd", |
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
location / { | |
index index.php; | |
### main rewrite | |
try_files $uri $uri/ /index.php?symphony-page=$uri&$args; | |
} | |
# Symphony admin redirects | |
location ~ ^/symphony(/?.*)$ { |
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
// scroll | |
var parallaxEmts = $("[data-parallax]"); | |
for (var x=0,max=parallaxEmts.length;x<max;x++) { | |
var emt = $(parallaxEmts[x]); | |
emt.data("page-y", emt.offset().top); | |
}; | |
function parallax() { | |
if (documentIsHidden()) return; |
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
import Vue from 'vue'; | |
import TWEEN from 'tween.js'; | |
var scrollDownAnimation = false; | |
var scrollDownFunction = function(el) { | |
var scrolledToBottom = el.scrollHeight - el.scrollTop === el.clientHeight; | |
if (scrolledToBottom) return; | |
if (scrollDownAnimation) { | |
scrollDownAnimation.stop(); |
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
~/wp-cli.phar core download | |
~/wp-cli.phar core config --dbname=vuetest --dbuser=homestead --dbpass=secret | |
~/wp-cli.phar core install --title=Vuetest --url=http://vuetest.dev --admin_user=supervisor --admin_password=secret --admin_email=me@domain.com |
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
This should be a part of the Carousel app, but whatever. You'll need ExifTool and FFMPEG. | |
exiftool -all= -tagsfromfile @ -all:all -unsafe -icc_profile -overwrite_original . | |
exiftool -if 'not $datetimeoriginal' '-DateTimeOriginal=1980:01:01 00:00:00' -overwrite_original . | |
ffmpeg -i "input.avi" -metadata "ICRD=1980:01:01 00:00:00" -codec copy "output.avi" |
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
Add to something like functions.php | |
// https://www.skyverge.com/blog/down-the-rabbit-hole-wordpress-and-timezones/ | |
function wp_get_timezone_string() { | |
// if site timezone string exists, return it | |
if ( $timezone = get_option( 'timezone_string' ) ) | |
return $timezone; | |
// get UTC offset, if it isn't set then return UTC |
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
$(function(){ | |
var documentHeight, | |
windowHeight, | |
creativeShipping, | |
creativeShippingBottom; | |
// Do not use $(document).height();, chrome returns wrong value | |
//documentHeight = $(document).height(); |
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
#!/bin/bash | |
Curpath="`pwd`" | |
WatchEnabled=false | |
SassEnabled=false | |
JsEnabled=false | |
VersionEnabled=false | |
while [ $# -gt 0 ] | |
do |
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
<h4(.*?)>|</h4>|<h2(.*?)>|</h2>|<h3>|</h3>|<p(.*?)>|</p>|<span(.*?)>|</span>|_{2,}| |class="(.*?)"|height="(.*?)"|width="(.*?)"|alt=""|target="(.*?)"|style="(.*?")|<div(.*?)>|</div>|<table(.*?)>|</table>|<tr>|</tr>|<td(.*?)>|</td(.*?)>|<tbody>|</tbody>|http://www\.cmhf\.nl |