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 March 21, 2026 01:28
๐Ÿ“Š Weekly development breakdown
Java 48 mins โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‹โ–‘โ–‘โ–‘ 84.1%
Groovy 3 mins โ–ˆโ–Žโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 6.4%
Gradle 2 mins โ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 5.0%
Properties 1 min โ–Œโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 2.7%
Java Pr... 0 secs โ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 1.0%
@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"