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
TypeScript 23 hrs 16 mins ███████████████▉░░░░░ 75.6% | |
JavaScript 3 hrs 1 min ██░░░░░░░░░░░░░░░░░░░ 9.8% | |
JSON 1 hr 22 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.5% | |
CSS 1 hr 14 mins ▊░░░░░░░░░░░░░░░░░░░░ 4.0% | |
Markdown 44 mins ▌░░░░░░░░░░░░░░░░░░░░ |
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
⭐ Total Stars: 103 | |
➕ Total Commits: 1.4k | |
🔀 Total PRs: 8 | |
🚩 Total Issues: 36 | |
📦 Contributed to: 19 |
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
class Person { | |
constructor(public name: string) {} | |
} | |
class People extends Person { | |
constructor(public age: number) { | |
super('here is my name') // super() is used to call the constructor of the parent class | |
} | |
} |
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
let url = 'https://quest.myxxts.club/api/count' | |
let data = await fetch(url).then((res) => {return res.text()}) | |
document.getElementById('test').innerHTML = await data |
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
{ | |
"name": "xxxx", | |
"scripts": { | |
"commit": "git add . && cz && git push", | |
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", | |
"init:Cli": "npm install -g commitizen && npm install -g conventional-changelog-cli && brew install cloc", | |
}, | |
"devDependencies": { | |
"cz-conventional-changelog": "3.3.0" | |
}, |
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
/* | |
* @FilePath: /typecho 1.2.0-rc.1/Users/wibus/Desktop/test.ts | |
* @author: Wibus | |
* @Date: 2022-04-05 18:12:47 | |
* @LastEditors: Wibus | |
* @LastEditTime: 2022-04-05 18:12:47 | |
* Coding With IU | |
*/ | |
export function execute() { | |
if (!this.parameter.parentId) { // 如果没有指定父级,则不需要进行execute |
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
<html lang="en"><head> | |
<meta charset="UTF-8"> | |
<meta name="author" content="iveseenthedark"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="theme-color" content="#333333"> | |
<title>A S C I I C A M</title> | |
<style>#ascii-cam pre,body,html{width:100vw;height:100vh;margin:0}*{box-sizing:border-box}body{overflow:hidden;background-color:#000;color:#eee;font-family:monospace}#logo,#enable-cam-msg{transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.fade{transition:opacity 0.25s ease-in-out}#logo{line-height:1.5}#ascii-cam{opacity:0}#ascii-cam pre{position:absolute;top:0;left:0;overflow:hidden;line-height:0.6;user-select:none;mix-blend-mode:screen;font-size:1.2em;font-size:2vh}@media (max-height:50em){#ascii-cam pre{font-size:1em}}@media (min-height:60em){#ascii-cam pre{font-size:1.2em}}#ascii-cam #r-output{color:red}#ascii-cam #g-output{color:#0f0}#ascii-cam #b-output{color:#00f}#enable-cam-msg{opacity:0;font-size:3rem;background-color:white;color: |
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
/** | |
* ASCII - CAM | |
* Fork from @iveseenthedatk | |
* https: //hellogithub.com/onefile/code/126093303b6b414dbab9d623c957fdd4 | |
**/ | |
(() => { | |
'use strict'; | |
let interval; // 用于记录定时器的id | |
let r_layer, g_layer, b_layer; // 用于记录每个颜色通道的canvas |
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 collection1 = [ 1, 2, 3, 4 ]; | |
const collection2 = [ 1, 2, 3, 4, 5 ]; | |
// 比较两个集合的长度 | |
// 如果集合1的长度小于集合2的长度,意味着集合1有可能是集合2的子集(如果集合1的元素都在集合2中) | |
// 反之,意味着集合1有可能是集合2的父集(如果集合2的元素都在集合1中) | |
// 但是无论如何,判断长度后都需要判断是否有交集 | |
function compareLength(collection1, collection2) { | |
if (collection1.length < collection2.length) { | |
return -1; |
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
# 分别输出百十个位数字 | |
num = input("请输入一个数字:") # 输入一个数字 | |
num = int(num) # 将字符串转换为整数 | |
# 作答区域 1. 常规运算 | |
print("---常规运算--- ps: num的类型是int") | |
print("百位数字是:", num // 100) # 取整数 | |
print("十位数字是:", num // 10 % 10) # 取余数 | |
print("个位数字是:", num % 10) # 取余数 | |
# 结束作答 |
OlderNewer