Skip to content

Instantly share code, notes, and snippets.

View pverhaert's full-sized avatar

Patrick Verhaert pverhaert

View GitHub Profile
@pverhaert
pverhaert / index.html
Last active May 16, 2024 15:33
Campuses Thomas More with Bootstrap and fetch API
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Thomas More Campuses</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css">
<style>
.list-group-item {
transition: .25s;
@pverhaert
pverhaert / index.html
Last active April 22, 2024 12:27
Photo Gallery (with Bootstrap 5.3 and JavaScript)
<!DOCTYPE html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Photo Gallery</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css">
<style>
</style>
</head>
@pverhaert
pverhaert / Genres table
Last active October 23, 2023 07:20
Laravel 9/10: Genres and Records
// Insert some genres (inside up-function, after create-method)
DB::table('genres')->insert(
[
['name' => 'pop/rock', 'created_at' => now()],
['name' => 'punk', 'created_at' => now()],
['name' => 'industrial', 'created_at' => now()],
['name' => 'hardrock', 'created_at' => now()],
['name' => 'new wave', 'created_at' => now()],
['name' => 'dance', 'created_at' => now()],
['name' => 'reggae', 'created_at' => now()],
@pverhaert
pverhaert / logo.blade.php
Last active May 19, 2022 07:55
Vinyl Shop logo component
<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" {{ $attributes }}>
<defs>
<radialGradient href="#a" id="d" gradientUnits="userSpaceOnUse"
gradientTransform="rotate(135 303.86 230.216) scale(1.22978 2.77397)" cx="289.429" cy="209.669"
fx="289.429" fy="209.669" r="92.5"/>
<linearGradient id="a">
<stop style="stop-color:#fff" offset="0"/>
<stop style="stop-color:#fff;stop-opacity:0" offset="1"/>
</linearGradient>
<radialGradient href="#b" id="e" gradientUnits="userSpaceOnUse"
@pverhaert
pverhaert / package.json
Last active December 28, 2020 17:34
PhpStorm File Templates For 1ITF Web Advanced
{
"name": "#[[$name$]]#",
"version": "#[[1.0.0]]#",
"description": "#[[$description$]]#",
"main": "index.js",
"author": {
"name": "${USER}",
"email": "#[[john.doe@example.com]]#"
},
"repository": {
@pverhaert
pverhaert / pwgen.php
Last active February 21, 2020 07:54
htaccess hash password generator
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.3.2/css/uikit.min.css"/>
<title>.htaccess secure folder</title>
</head>
<body>
@pverhaert
pverhaert / Genres table
Last active October 15, 2021 13:42
Laravel Genres, Records (for L7)
// Insert some genres (inside up-function, after create-method)
DB::table('genres')->insert(
[
['name' => 'pop/rock', 'created_at' => now()],
['name' => 'punk', 'created_at' => now()],
['name' => 'industrial', 'created_at' => now()],
['name' => 'hardrock', 'created_at' => now()],
['name' => 'new wave', 'created_at' => now()],
['name' => 'dance', 'created_at' => now()],
['name' => 'reggae', 'created_at' => now()],
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<!doctype html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
<style>
.green {
@pverhaert
pverhaert / 1itf5.html
Created May 17, 2018 09:27
jQuery 1IRF5
<!doctype html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
<style>
.green {