Skip to content

Instantly share code, notes, and snippets.

View tatsuyasusukida's full-sized avatar

Tatsuya Sususkida tatsuyasusukida

View GitHub Profile
@tatsuyasusukida
tatsuyasusukida / !README-nodejs-basic-auth.md
Last active May 3, 2022 01:50
😀 Node.jsでBasic認証を設定する方法【動画版あり】

😀 Node.jsでBasic認証を設定する方法

はじめに

この記事ではNode.jsでBasic認証を行う方法について説明します。説明にあたり、下記4つのケースを想定します。

  • Expressを使い、npmパッケージを使うケース
@tatsuyasusukida
tatsuyasusukida / !README-fitbit-web-api.md
Last active September 14, 2022 06:33
❤️ Fitbit Web APIを利用して心拍数の生データを取得する方法

❤️ Fitbit Web APIを利用して心拍数の生データを取得する方法

この記事について

この記事ではNode.jsで Fitbit Web API を利用して心拍数の生データを取得する方法について紹介します。

@tatsuyasusukida
tatsuyasusukida / !README-javascript-audio.md
Last active October 24, 2024 21:35
🎵 How to record audio using the Web Audio API in JavaScript

🎵 How to record audio using the Web Audio API in JavaScript

Demo video: How to record audio using the Web Audio API in JavaScript

About this article

This article describes how to record audio using the Web Audio API in JavaScript. The related resources are shown below.

@tatsuyasusukida
tatsuyasusukida / !README-javascript-media-audio.md
Last active September 5, 2023 12:22
🎤 How to record audio using the MediaStream Recording API in JavaScript

🎤 How to record audio using the MediaStream Recording API in JavaScript

@tatsuyasusukida
tatsuyasusukida / !README-javascript-media-photo.md
Last active May 4, 2022 23:30
📷 ブラウザで写真を撮影する方法
@tatsuyasusukida
tatsuyasusukida / !README-javascript-media-video.md
Last active November 4, 2024 11:42
🎥 How to record a video with JavaScript [demo video available]

🎥 How to record a video with JavaScript [demo video available]

Demo video: How to record a video with JavaScript

About this article

This article describes how to shoot a video from JavaScript using the MediaStream Recording API. The related resources are shown below.

@tatsuyasusukida
tatsuyasusukida / main.js
Last active September 6, 2022 18:51
Node.js Cloud Run Example
const http = require('http')
if (require.main === module) {
main()
}
async function main () {
try {
const server = http.createServer() // <1>
@tatsuyasusukida
tatsuyasusukida / go.mod
Last active April 19, 2022 06:16
Cloud Run Golang Example
module loremipsum.co.jp/column-cloudrun-go
go 1.18
@tatsuyasusukida
tatsuyasusukida / .gitignore
Last active April 19, 2022 06:51
Node.js Puppeteer Screenshot Example
/img/
/node_modules/
@tatsuyasusukida
tatsuyasusukida / .env.example
Last active April 19, 2022 10:21
Node.js Auth0 Web App Example
PORT=3000
AUTH0_ISSUER_BASE_URL=https://example.jp.auth0.com
AUTH0_CLIENT_ID=1234567890abcdefghijklmnopqrstuv
AUTH0_BASE_URL=http://localhost:3000
AUTH0_SECRET=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef