Skip to content

Instantly share code, notes, and snippets.

View hmatsuda's full-sized avatar

Haruhiko Kobayashi hmatsuda

  • jicoohq
  • Tokyo, Japan
View GitHub Profile
@hmatsuda
hmatsuda / next-trace.md
Last active August 19, 2024 03:25
next.jsのtraceの使い方
$ node ./trace-to-tree.mjs .next/trace
Explanation:
module /Users/next-user/src/magic-ui/pages/index.js 24s (total 33s, self 163 ms) [read-resource 873 µs, next-babel-turbo-loader 135 ms]
       ════════╤═══════════════════════════════════ ═╤═        ═╤═       ═╤════   ═══════════╤════════════════════════════════════════
               └─ name of the processed module       │          │         │                  └─ timings of nested steps
                                                     │          │         └─ building the module itself (including overlapping parallel actions)
@hmatsuda
hmatsuda / shuffle_lunch.coffee
Created June 8, 2017 08:40
shuffle lunch bot
request = require('request')
module.exports = (robot) ->
robot.hear /ランチメンバー教えて(.*)?/, (msg) ->
groups = []
numberOfGroup = 4
request.get
url: "https://slack.com/api/users.list?token=#{process.env.HUBOT_SLACK_TOKEN}"
, (err, response, body) ->
# Slack APIからメンバーを取得