Skip to content

Instantly share code, notes, and snippets.

View xiezipei's full-sized avatar
๐ŸŽฏ
Focusing

xiezipei xiezipei

๐ŸŽฏ
Focusing
View GitHub Profile
@xiezipei
xiezipei / ๐Ÿ“Š Weekly development breakdown
Last active September 1, 2025 01:22
๐Ÿ“Š Weekly development breakdown
TypeScript 5 hrs 43 mins โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–Žโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 35.0%
Java 3 hrs 2 mins โ–ˆโ–ˆโ–ˆโ–‰โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 18.6%
Vue.js 2 hrs 42 mins โ–ˆโ–ˆโ–ˆโ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 16.6%
HTML 2 hrs 29 mins โ–ˆโ–ˆโ–ˆโ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 15.2%
JSON 56 mins โ–ˆโ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 5.8%
@xiezipei
xiezipei / helloByExpress.js
Created July 8, 2019 07:21
Express ็š„ Hello World ็š„็คบไพ‹
const express = require('express'); // ๅฏผๅ…ฅ Express ๆจกๅ—
const app = express(); // ๅˆ›ๅปบ express() ๅฎžไพ‹
// ่ทฏ็”ฑๅฎšไน‰
// ็›‘ๅฌๆ น่ทฏๅพ„`/`
app.get('/', (req, res) => {
res.send('Hello World!');
});
// ๅœจ3000็ซฏๅฃๅฏๅŠจๆœๅŠกๅ™จๅนถๆ‰“ๅฐๆ—ฅๅฟ—
@xiezipei
xiezipei / helloByNode.js
Last active July 8, 2019 07:22
็”จ Node.js ็š„ HTTP ๅŒ…ๆฅๅˆ›ๅปบไธ€ไธช็ฎ€ๅ•็š„ web ๆœๅŠกๅ™จ
// ่ฐƒ็”จ HTTP ๆจกๅ—
const http = require("http");
// ๅˆ›ๅปบ HTTP ๆœๅŠกๅ™จๅนถ็›‘ๅฌ 8000 ็ซฏๅฃ็š„ๆ‰€ๆœ‰่ฏทๆฑ‚
http.createServer((request, response) => {
// ็”จ HTTP ็Šถๆ€็ ๅ’Œๅ†…ๅฎน็ฑปๅž‹ๆฅ่ฎพๅฎš HTTP ๅ“ๅบ”ๅคด
response.writeHead(200, {'Content-Type': 'text/plain'});
// ๅ‘้€ๅ“ๅบ”ไฝ“ "Hello World"