This file contains hidden or 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 fs = require("fs"); | |
const childProcess = require("child_process"); | |
childProcess.exec("./node_modules/.bin/elm-analyse", (e, out) => { | |
let file; | |
let all = {}; | |
for (let line of out.split("\n")) { | |
if (line.startsWith("-")) { | |
file = line.slice(2); | |
continue; |
This file contains hidden or 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
# List all containers (only IDs) | |
docker ps -aq | |
# Stop all running containers | |
docker stop $(docker ps -aq) | |
# Remove all containers | |
docker rm $(docker ps -aq) | |
# Remove all images |
This file contains hidden or 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
import { globalStyle, GlobalStyleRule } from "@vanilla-extract/css"; | |
interface RecursiveGlobalStyle { | |
[k: string]: GlobalStyleRule | RecursiveGlobalStyle; | |
} | |
function globalUtil(selector: string, styles: RecursiveGlobalStyle) { | |
const write = ( | |
key: string[], | |
value: RecursiveGlobalStyle | GlobalStyleRule |
This file contains hidden or 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 {htmlTagNames} = require('html-tag-names') | |
// get a list of all known html tag names and convert it into a map example: | |
// {body: true, head: true, li: true, h1: true, p: true} and so on | |
const tags = htmlTagNames.reduce((res, tag) => { | |
res[tag] = true | |
return res | |
}, {}) |
OlderNewer