-
Go to https://cachedview.com/
-
Navigate to the deleted repo, e.g. https://webcache.googleusercontent.com/search?q=cache:https://github.com/apcera/termtables
-
Copy latest known commit sha1 signature
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
Vue.js 11 hrs 1 min ███████████▌░░░░░░░░░ 55.2% | |
TypeScript 3 hrs 46 mins ███▉░░░░░░░░░░░░░░░░░ 18.9% | |
JavaScript 2 hrs 9 mins ██▎░░░░░░░░░░░░░░░░░░ 10.8% | |
JSON 1 hr 34 mins █▋░░░░░░░░░░░░░░░░░░░ 7.8% | |
Markdown 27 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.3% |
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
<script lang="ts" setup> | |
import { ref, onMounted } from 'vue' | |
import * as zrender from 'zrender' | |
import { ElMessage } from 'element-plus' | |
const renderRef = ref<HTMLDivElement>() | |
const start = () => { | |
if (!renderRef.value) return | |
const zr = zrender.init(renderRef.value, { |
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
import path from 'node:path' | |
import { URL, fileURLToPath } from 'node:url' | |
import { $ } from 'execa' | |
const __dirname = fileURLToPath(new URL('.', import.meta.url)) | |
const rootPath = path.resolve(__dirname, '..') | |
const $$ = $({ cwd: rootPath, stdio: 'inherit' }) | |
;(async () => { | |
await $$`prettier --write .` |
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
;(async () => { | |
const getSpaceMid = () => location.pathname.split('/').at(1) | |
const spaceName = document.querySelector('#h-name').textContent | |
const style = `background: #42b883; color: #fff; font-size: 16px; padding: 10px 15px; border-radius: 4px; font-weight: 600;` | |
const mid = window._bili_space_mid ?? getSpaceMid() | |
let res = await fetch(`https://api.bilibili.com/x/space/acc/relation?mid=${mid}`, { | |
credentials: 'include', | |
}) | |
res = await res.json() | |
const mtime = res?.data?.relation?.mtime |
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://github.com/sass/sass/issues/659#issuecomment-71759457 | |
@mixin variable-icon-font($icon-code) { | |
content: #{'\"\\'}#{$icon-code + '\"'}; | |
} | |
.icon { | |
@include variable-icon-font(e603); | |
} |
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 RE_MOBLE_DEVICE = /(iPhone|iPad|iPod|iOS|android)/i | |
const QQ_NUMBER = 123456 | |
if (RE_MOBLE_DEVICE.test(navigator.userAgent)) { | |
window.open( | |
`mqqwpa://im/chat?chat_type=wpa&uin=${QQ_NUMBER}&version=1&src_type=web&web_src=http://wpa.b.qq.com` | |
) | |
} else { | |
window.open( | |
`http://wpa.qq.com/msgrd?v=3&uin=${QQ_NUMBER}&site=在线客服&menu=yes` |
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 cache = (() => { | |
const store = {} | |
return ({ | |
set (key, value) { | |
store[key] = value | |
}, | |
has (key) { |
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
// 设置画笔颜色, hsl通过这个公式计算出的是很漂亮的彩虹色 | |
/* | |
H:Hue(色调)。0(或 360)表示红色,120 表示绿色,240 表示蓝色, | |
也可取其他数值来指定颜色。取值为:0 - 360 | |
S:Saturation(饱和度)。取值为:0.0% - 100.0% | |
L:Lightness(亮度)。取值为:0.0% - 100.0% | |
*/ | |
// count为循环总量 i为循环变量 | |
$.strokeStyle = `hsl(${Math.round((i * 360) / count)}, 100%, 50%)`; |
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
// 元素的偏移量 只读属性 | |
// 包含了元素在屏幕上占的所有可用空间 由元素的大小来决定 包括内边距边框和滚动条 | |
// !!! 不包括外边距 | |
// 元素的offsetTop和offsetLeft属性是到上级包含它的元素的距离 | |
// 计算元素在页面上的偏移量 将偏移量循环到根元素即可得到 | |
function getOffsetPos (element) { | |
var offsetTop = element.offsetTop, | |
offsetLeft = element.offsetLeft; |
NewerOlder