Skip to content

Instantly share code, notes, and snippets.

@keqing77
keqing77 / index.css
Created June 24, 2024 14:36
maintainPage
@import url("https://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700");
body {
background: #eeeef4;
color: #999;
font-family: Roboto;
}
h1 {
font-weight: 100;
@keqing77
keqing77 / Slider.tsx
Last active June 13, 2024 16:35
Table
// Box:灵活的通用容器,适用于任何布局和样式需求。
// Stack:用于垂直或水平排列子组件,提供简洁的布局方式。
// Sheet:预样式化的容器,适用于卡片、面板等需要一致外观的场景
"use client";
import Box from "@mui/joy/Box";
import Slider from "@mui/joy/Slider";
import Typography from "@mui/joy/Typography";
import ExampleTextareaComment from "./ExampleTextareaComment";
@keqing77
keqing77 / App.tsx
Last active May 20, 2024 16:51
react-window markdown
"use client";
import Box from "@mui/joy/Box";
import Sheet from "@mui/joy/Sheet";
import Table from "@mui/joy/Table";
import { FixedSizeList as List } from "react-window";
const generateMarkdownTable = (numRows: number) => {
const header = `
| date | key | new_confirmed|new_deceased|new_recovered|new_tested|cumulative_confirmed|cumulative_decreased|cumulative_recovered|cumulative_tested|
|--:|:--|:--|--:|--:|--:|--:|--:|--:|--:|--:|`;
@keqing77
keqing77 / Powseshell_gitalias.ps1
Last active May 19, 2024 15:13
Powershell profile
function sw() {
git switch $args
}
function unresolve() {
git checkout --conflict=merge --
}
# temporarily ignoring files
function ignore() {
@keqing77
keqing77 / shortcut.md
Created September 4, 2023 11:17
Shortcut (Mac、VS Code、IDEA、Arc)

Mac

Mac 系统内置快捷键

Commands Usage Mean
Command + A 全选 Select All
Command + X 剪切 Cut
Command + C 复制 Copy
Command + V 粘贴 Paste
{
// $0 — tab stop final cursor position
// $1, $2 for tab stops — tab stop to specify the cursor location and allow the user to customize the the name of the component
// ${1:label}, ${2:another} for placeholders.
// ${TM_FILENAME_BASE} — variable for getting the current filename
// \t
// /capitalize
// JS & TS import snippets
"Print to console": {