Skip to content

Instantly share code, notes, and snippets.

View tbreuss's full-sized avatar
🚴‍♂️
Biking

tebe tbreuss

🚴‍♂️
Biking
View GitHub Profile
@tbreuss
tbreuss / vue3-routing-without-build-step.html
Last active February 25, 2025 18:28
Vue 3 router example in one HTML file without build step
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Vue.js CDN Test</title>
</head>
<body>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<div id="app-basic">{{ message }}</div>
@tbreuss
tbreuss / ivi.js-example-nested-components.html
Last active December 17, 2023 07:51
Simple ivi.js example with nested components using context
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ivi example</title>
</head>
<body>
<script type="module">
@tbreuss
tbreuss / split-xml.php
Created December 7, 2024 05:44
Splits a large XML file with many elements into individual XML files per element using PHP and DOMDocument
<?php
/**
* Splits a large XML file with many elements into individual XML files per element using PHP and DOMDocument
*
* The script does the following:
* - Load original XML
* - Create template XML and remove elements
* - For each element of the original XML
* - Create a clone of the template XML
* - Add element of the original XML to the clone