Skip to content

Instantly share code, notes, and snippets.

View mdschweda's full-sized avatar

Marcus Schweda mdschweda

  • Gschwind Software
  • Aachen, DE
View GitHub Profile
@mdschweda
mdschweda / index.html
Created April 2, 2024 00:01
Plyr + dash.js quality toggle w/ Auto
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="https://cdn.plyr.io/static/icons/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quality Toggle</title>
</head>
<body>
<video playsinline controls></video>
@mdschweda
mdschweda / userscript.js
Created April 20, 2022 22:09
UserScript: Copy Selected Links
// ==UserScript==
// @name Copy Selected Links
// @description Copies selected links on pressing a hotkey (default: Alt+C / Option+C)
// @version 1
// @match *://*/*
// ==/UserScript==
// Configuration
const preferUI = false;
const hotkey = e => e.altKey && ["c", "C"].includes(e.key);
@mdschweda
mdschweda / toc.css
Last active June 7, 2017 19:40
Stackedit TOC sidebar
.toc {
position: fixed;
left: 0;
top: 0;
bottom: 0;
padding: 2em 1em;
overflow-y: auto;
background: white;
}
@mdschweda
mdschweda / Folder structure
Last active April 3, 2023 16:28
Multiple projects DocFX structure
+-- doc
⁞ +-- api
⁞ ⁞ +-- ProjectA
⁞ ⁞ ⁞ +-- index.md
⁞ ⁞ +-- ProjectB
⁞ ⁞ +-- index.md
⁞ +-- docfx.json
⁞ +-- toc.yml
+-- src
+-- ProjectA
@mdschweda
mdschweda / build.ps1
Last active November 25, 2016 18:49
Installing prerequisites for .NET Core projects
$Global:required = "netcore", "nuget", "docfx"
. $PSScriptRoot\tools\prerequisites.ps1
$tooldir = "$env:LOCALAPPDATA\.build"
$docs = "$PSScriptRoot\docs\docfx.json"
$projects =
"$PSScriptRoot\src\projectA",
"$PSScriptRoot\src\projectB"
$projects.ForEach({ & dotnet build $_ })
@mdschweda
mdschweda / vs-code-install-extensions.ps1
Last active October 28, 2021 09:38
Batch install Visual Studio Code extensions
# Script for batch installing Visual Studio Code extensions
# Specify extensions to be checked & installed by modifying $extensions
$extensions =
# Look & Feel
"azemoh.one-monokai",
"emmanuelbeziat.vscode-great-icons",
# Editing
"HookyQR.beautify",
"ow.vscode-subword-navigation",