copy from https://github.com/arry-lee/wereader
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
// This example illustrates a Callback Property, a property whose | |
// value is lazily evaluated by a callback function. | |
// Use a CallbackProperty when your data can't be pre-computed | |
// or needs to be derived from other properties at runtime. | |
var viewer = new Cesium.Viewer("cesiumContainer"); | |
viewer.clock.shouldAnimate = true; | |
var startLatitude = 35; | |
var startLongitude = -120; | |
var endLongitude; |
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
ttestset |
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
<template> | |
<ul id="main"> | |
<li v-for="(item, index) in circleData" :key="index" :class="{'active': item.is_latest_sign_user}"> | |
<div> | |
<span>{{ item.nick_name }}</span> | |
<span>签到</span> | |
</div> | |
</li> | |
</ul> | |
</template> |
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 main = async () => { | |
const libUrl = 'https://cdn.jsdelivr.net/npm/marked/marked.min.js'; | |
const lib = await System.import(libUrl); | |
if(lib) { | |
const marked = lib.default; | |
const markdown = `# markddown` | |
app.innerHTML = marked.parse(markdown); | |
} | |
}; | |
main(); |
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 main = async () => { | |
const cssUrl = 'https://cdn.bootcdn.net/ajax/libs/tailwindcss/2.2.19/tailwind.min.css'; | |
const lib = await System.import(cssUrl) | |
if(lib && lib.default) { | |
root.adoptedStyleSheets = [...root.adoptedStyleSheets, lib.default] | |
} | |
} | |
main(); |
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
// test Array.from | |
// 第一个参数为来源的值 | |
// 第二个参数为映射转化函数(可选) | |
// 第三个为第二个参数提供this(可选) | |
let helper = { | |
diff: 1, | |
add(value) { | |
return value + this.diff; | |
} |
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
// ==UserScript== | |
// @name print juejin | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author abearxiong | |
// @match *://juejin.cn/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=juejin.cn | |
// @grant none | |
// ==/UserScript== |
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 os | |
import shutil | |
# path可以根据具体情况设置 | |
path = '/Users/xion/归档/km/web' | |
delete_list = [] | |
def get_py(path): |
NewerOlder