Skip to content

Instantly share code, notes, and snippets.

View petermikitsh's full-sized avatar
🏳️‍🌈

Peter Mikitsh petermikitsh

🏳️‍🌈
View GitHub Profile
@petermikitsh
petermikitsh / index.html
Created March 26, 2020 20:18
Angular 8
<!DOCTYPE html>
<html>
<head>
<title>Angular 8</title>
</head>
<body>
<app-root></app-root>
<script src="https://unpkg.com/reflect-metadata@0.1.13/Reflect.js"></script>
<script src="https://unpkg.com/zone.js@0.10.3/dist/zone.js"></script>
<script src="https://unpkg.com/@reactivex/rxjs@6.5.4/dist/global/rxjs.umd.js"></script>
@petermikitsh
petermikitsh / react-shadow-dom.html
Created September 29, 2021 23:18
react-shadow-dom.html
<!DOCTYPE html>
<html>
<head>
<title>React + Shadow DOM</title>
</head>
<body style="margin: 0">
<global-navigation>
<div slot="breadcrumbContent" style="color: red">Breadcrumbs</div>
<div slot="pageContent" style="color: blue">Page Content</div>
</global-navigation>
@petermikitsh
petermikitsh / index.js
Created March 7, 2022 07:41
Form post demo
const express = require('express');
const app = express();
const port = 3000;
app.get('/', (req, res) => {
res.setHeader('Content-Type', 'text/html');
res.send(`
<form action="/Form.do" method="POST">
<div>
<button>Submit the form</button>