<picture>
<source srcset="/large.jpg"
media="(prefers-color-scheme: dark)">
<source srcset="/small.jpg"
media="(prefers-color-scheme: light)">
<img src="/large.jpg" />
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
<template> | |
<div class="app-wrapper"> | |
<app-header></app-header> | |
<main class="main-content"> | |
<slot></slot> | |
</main> | |
<app-footer></app-footer> |
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
# https://www.npmjs.com/package/string-width 87,290,385 weekly downloads | |
# vs | |
# https://www.npmjs.com/package/string-width-cjs 64 weekly downloads |
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
*, | |
:before, | |
:after { | |
box-sizing: border-box; | |
border-width: 0; | |
border-style: solid; | |
border-color: #e5e7eb; | |
} | |
:before, | |
:after { |
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
*, | |
:before, | |
:after { | |
box-sizing: border-box; | |
border-width: 0; | |
border-style: solid; | |
border-color: #e5e7eb; | |
} | |
:before, | |
:after { |
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 YAML = require("yaml"); | |
const data = { | |
overview: { | |
str: "this is a string", | |
num: 5, | |
}, | |
}; | |
const yml = YAML.stringify(data, { |
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
#!/bin/bash | |
# A sample Bash script, by Ryan | |
DT=$(date '+%Y-%m-%d-%H%M%S') | |
OUTPUT_NAME="converted-$DT.mp4" | |
OUTPUT_FOLDER=$(dirname "$1") | |
OUTPUT_PATH="$OUTPUT_FOLDER/$OUTPUT_NAME" | |
echo "converting input video $1 to $OUTPUT_NAME mp4" |
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
from datetime import date | |
import random | |
import sublime_plugin | |
def callback(s): | |
print('saved: ', s) | |
class SuperSaveCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
self.view.insert(edit, 0, "saving all the files") |
Following the steps documented to get tailwind to work with snowpack, nothing happens.
My script uses npm-run-all
as an intermediate parallel or sequential step to handle tailwind.
"scripts": {
"tailwind:start": "postcss ./public/tailwind.css -o ./public/tailwind.include.css -w",
"tailwind:build": "postcss ./public/tailwind.css -o ./public/tailwind.include.css --env production",
"snowpack:start": "snowpack dev",
"snowpack:build": "snowpack build",
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
select elements inside of shadow root - Google Search | |
Better History - Chrome Web Store | |
Better History - Chrome Web Store | |
chrome better history - Google Search | |
make pr draft pr - Google Search | |
run stage if azure piepelines - Google Search | |
azure pipelines only dev - Google Search | |
github foot notes - Google Search | |
macos get number of windows open - Google Search | |
strapi - Google Search |
NewerOlder