You can use a keyboard shortcut if you need to change the editor split layout from horizontal to vertical or vice versa. on Windows and Linux, press Alt + Shift + 0 (zero, no the letter o)
This file contains 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
const dontTreadOnMe = (e) => e.stopImmediatePropagation(); | |
document.addEventListener('paste', dontTreadOnMe, true); |
This file contains 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
class Test extends HTMLElement { | |
constructor() { | |
super(); | |
const sheet = new CSSStyleSheet(); | |
sheet.replaceSync('a { color: green; }'); /* wins!? */ | |
this.attachShadow({mode: 'open'}); | |
this.shadowRoot.adoptedStyleSheets = [sheet]; | |
this.template = document.createElement('template'); | |
this.template.innerHTML = ` | |
<style> |
This file contains 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": { | |
"snippets": { | |
} | |
}, | |
"css": { | |
"snippets": { | |
"ar": "aspect-ratio: ${1}", | |
"bbm": "background-blend-mode: ${1}", | |
"bs": "block-size: ${1}", |
This file contains 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 { | |
--accent-light: #c6e0ff; | |
--accent: #0071af; | |
--accent-rgb: 0 113 175; | |
--accent-dark: #003b5e; | |
} | |
body { | |
font-family: system-ui, -apple-system, 'BlinkMacSystemFont', 'Segoe UI', 'Helvetica', 'Arial', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; | |
font-size: 1rem; | |
line-height: calc( 1em + .35rem ); |
How to delete all Git branches which have been merged?
To delete all local branches that are already merged into the currently checked out branch:
git branch --merged | egrep -v "(^\*|master|main|dev|develop)" | xargs git branch -d
Maybe you wanto check first for those branches:
This file contains 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
… | |
{% if page.header.flex.id and page.header.flex.router %} | |
{% set event = grav.get('flex').object( page.header.flex.id, page.header.flex.router )%} | |
{# {% set event = header.event %} #} | |
{% endif %} | |
{% block content %} | |
<h1 class="headline"> | |
{{ event.title }} |
This file contains 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 { | |
background-color: hsl( 0 0% 80% .5); | |
aspect-ratio: 16 / 9; | |
} |
This file contains 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
// ~/.gitconfig | |
[user] | |
name = Sebastian Bille | |
email = personal@example.com | |
[includeIf "gitdir:~/code/work/"] | |
path = ~/code/work/.gitconfig |
Important Pens I look for alot because you cannot have it all in you head…
NewerOlder