Skip to content
View 6starlong's full-sized avatar

Block or report 6starlong

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
6starlong/README.md

Hi, I'm Starlong.👋

☕ A caffeine-driven developer.


Coffee Mode
const coder = {
  caffeine: 0,

  refill() {
    this.caffeine++
    console.log(`☕ 咖啡因水平增加到: ${this.caffeine}`)
    return this
  },

  async code() {
    const states = [
      { emoji: '😴', output: '无法集中注意力...' },
      { emoji: '👨‍💻', output: '专注模式,代码流畅' },
      { emoji: '⚡', output: '灵感爆发,代码如行云流水!' },
      { emoji: '🚀', output: '超神状态,一小时抵一天!' },
      { emoji: '🤯', output: '咖啡因过载,思维混乱...' },
    ]

    // 咖啡因过量警告
    if (this.caffeine > 3) console.log('⚠️ 警告:咖啡因摄入过量!')

    const level = Math.min(states.length - 1, this.caffeine)
    console.log(`🧠 当前咖啡因等级: ${level}`)

    // 咖啡因延迟效应:咖啡因水平越高,响应越快
    await new Promise(r => setTimeout(r, this.caffeine ? 500 / this.caffeine : 2000))

    this.caffeine = Math.max(0, this.caffeine - 1)
    console.log(`⏬ 咖啡因消耗后水平: ${this.caffeine}`)

    const result = `${states[level].emoji} ${states[level].output}`
    console.log(`📝 输出结果: ${result}`)

    return result
  },

  sleep() {
    console.log('💤 休息中...')
    this.caffeine = 0
    return this
  },
}

// 示例
await coder.code() // 无咖啡
await coder.refill().code() // 一杯咖啡
await coder.refill().refill().code() // 两杯咖啡
await coder.refill().refill().refill().code() // 三杯咖啡
await coder.sleep() // 休息
Technologies
My Stats
streak graph languages graph activity-graph graph
Find me on

Profile Views

Pinned Loading

  1. 6starlong.github.io 6starlong.github.io Public

    My personal website

    Vue 3

  2. vitesse-uni vitesse-uni Public template

    🏕 Vitesse + uni-app 快速开始启动模板 template uniapp vite uni-app

    CSS 2

  3. eslint-config eslint-config Public

    Forked from antfu/eslint-config

    Anthony's ESLint config preset

    TypeScript