https://tailwindcomponents.com/cheatsheet/
https://nerdcave.com/tailwind-cheat-sheet
| import PopperTooltip from 'tooltip.js'; | |
| new Vue({ | |
| el: '#app', | |
| mounted() { | |
| document.querySelectorAll('[data-tooltip]').forEach(elem => { | |
| new PopperTooltip(elem, { | |
| placement: elem.dataset.tooltipPlacement || 'top', | |
| title: elem.dataset.tooltip |
| alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
https://en.wikipedia.org/wiki/ACID
pets == collection
| const newS = { | |
| codeFold: { "background-color": "rgb(241, 248, 255)", height: "40px", "font - size": "14px", "font-weight": 700, }, | |
| codeFoldContent: { color: "rgb(33, 37, 41)", }, | |
| codeFoldGutter: { 'background-color': 'rgb(219, 237, 255)', }, | |
| content: {width: "100%", }, | |
| contentText: { color: "rgb(33, 37, 41)", }, | |
| diffAdded: { background: "rgb(230, 255, 237)", color: "rgb(36, 41, 46)", }, | |
| diffContainer: { width: "100%", background: "rgb(255, 255, 255)", 'border-collapse': "collapse", }, | |
| diffRemoved: { background: "rgb(255, 238, 240)", color: "rgb(36, 41, 46)", }, | |
| emptyLine: { "background-color": "rgb(250, 251, 252)", }, |
| import React, { useState, useCallback, useMemo } from "react"; | |
| import ReactDOM from "react-dom"; | |
| import { Input, Button } from "antd"; | |
| import { diffLines, formatLines } from "unidiff"; | |
| import { parseDiff, Diff, Hunk } from "react-diff-view"; | |
| import { useInput } from "./hooks"; | |
| import "antd/dist/antd.min.css"; | |
| import "react-diff-view/style/index.css"; | |
| import tokenize from "./tokenize"; |
| import {useState} from 'react'; | |
| export const useInput = initialValue => { | |
| const [value, onChange] = useState(initialValue); | |
| return { | |
| value, | |
| onChange(e) { | |
| onChange(e.target.value); | |
| }, |
| { | |
| "added_words": | |
| [ | |
| "jsoniary", | |
| "const" | |
| ], | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "caret_style": "phase", | |
| "close_windows_when_empty": true, |