- Create file:
sudo touch /usr/local/bin/drush
- Make file executable:
sudo chmod +x /usr/local/bin/drush
- Open the file, and copy and paste the script to it, save it.
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
import { z, defineCollection } from ‘astro:content’; | |
import { glob } from ‘astro/loaders’; | |
const incidenten = defineCollection({ | |
loader: glob({ pattern: ‘*.md’, base: ‘./src/content/incidenten/’ }), | |
schema: z.object({ | |
_wp_id: z.number().optional().nullable(), | |
_uuid: z.string().optional().nullable(), | |
_published_at: z.date().optional().nullable(), | |
title: z.string(), |
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
/*! | |
* modernizr v3.9.1 | |
* Build https://modernizr.com/download?-inputtypes-setclasses-dontmin | |
* | |
* Copyright (c) | |
* Faruk Ates | |
* Paul Irish | |
* Alex Sexton | |
* Ryan Seddon | |
* Patrick Kettner |
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
html::before, | |
html::after { | |
display: none; | |
} | |
html::before { | |
content: to-string($breakpoints); | |
} | |
html::after { |
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
self.addEventListener('install', function(event) { | |
event.waitUntil( | |
caches.open('sw-v1').then(function(cache) { | |
return cache.addAll([ | |
'./', | |
'style.css', | |
'main.js' | |
]); | |
}) | |
); |
$('elementnaam')
.closest() > https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
.parent() > https://developer.mozilla.org/nl/docs/Web/API/ParentNode
.addClass, .removeClass, .hasClass
.ajax()
$('elementnaam') .closest() > https://developer.mozilla.org/en-US/docs/Web/API/Element/closest .parent() > https://developer.mozilla.org/nl/docs/Web/API/ParentNode .addClass, .removeClass, .hasClass .ajax() .scrollTop()
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
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { | |
// no easing, no acceleration | |
linear: function (t) { return t }, | |
// accelerating from zero velocity | |
easeInQuad: function (t) { return t*t }, | |
// decelerating to zero velocity |
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
<p> | |
<strong>Bold</strong> | |
<strong>Bold</strong> | |
</p> | |
<p> | |
<em>Italic</em> | |
<em>Italic</em> | |
</p> |
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
<img | |
src="my-cat.jpg" | |
srcset="my-cat-1-5x.jpg 1.5x, my-cat-2x.jpg 2x, my-cat-3x.jpg 3x" | |
alt="My cat in the garden"> |
NewerOlder