Skip to content

Instantly share code, notes, and snippets.

View loonyzhang's full-sized avatar

地中海的倔强 loonyzhang

View GitHub Profile
@loonyzhang
loonyzhang / reset.css
Created January 16, 2024 08:05
css reset by Keith J. Grant
@layer reset {
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
margin: unset;
}
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Vue 3",
"compilerOptions": {
"lib": ["esnext"],
"module": "esnext",
"target": "es2020",
"strict": true,
function createTransformUnit({
viewportWidth,
targetUnit,
precision,
minPixelValue,
}) {
return (value) => {
let result
value = parseFloat(value)
if (value <= minPixelValue) result = `${minPixelValue}px`
function abortableFetch(request, opts) {
const controller = new AbortController();
const signal = controller.signal;
return {
abort: () => controller.abort(),
ready: fetch(request, { ...opts, signal })
};
}
@loonyzhang
loonyzhang / .vimrc
Created December 1, 2020 03:05
vim配置文件
set number
syntax on
set encoding=utf-8
set autoindent
set tabstop=2
set expandtab
set softtabstop=2
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>免费解析-VIP视频在线解析</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.4.1/milligram.css">
<style>
html, body { height: 100%; }
@loonyzhang
loonyzhang / nodedb.sql
Created November 10, 2020 17:57
blog table sql
-- --------------------------------------------------------
-- 主机: 127.0.0.1
-- 服务器版本: 10.5.7-MariaDB-1:10.5.7+maria~focal - mariadb.org binary distribution
-- 服务器操作系统: debian-linux-gnu
-- HeidiSQL 版本: 11.1.0.6116
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;