Skip to content

Instantly share code, notes, and snippets.

View tatsuyasusukida's full-sized avatar

Tatsuya Sususkida tatsuyasusukida

View GitHub Profile
@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
@tatsuyasusukida
tatsuyasusukida / .env.example
Last active April 20, 2022 03:03
Node.js Auth0 Web API Example (API Part)
PORT=3000
AUTH0_JWKS_URI=https://example.jp.auth0.com/.well-known/jwks.json
AUTH0_AUDIENCE=column-auth0-webapi
AUTH0_ISSUER=https://example.jp.auth0.com/
@tatsuyasusukida
tatsuyasusukida / .env
Last active April 20, 2022 05:59
Gist Push Example
MESSAGE=HELLO WORLD
@tatsuyasusukida
tatsuyasusukida / .env
Last active April 20, 2022 06:22
Gist Push Example
MESSAGE=HELLO WORLD
@tatsuyasusukida
tatsuyasusukida / .gitignore
Last active April 20, 2022 14:01
Node.js async/await examples
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@tatsuyasusukida
tatsuyasusukida / .env
Last active April 21, 2022 04:07
Cloud Run Cloud SQL Example
PORT=3000
DB_URL=mysql://dbuser:dbpass@localhost:3306/dbname
@tatsuyasusukida
tatsuyasusukida / .gitignore
Last active April 26, 2022 00:21
Node.js SerialPort Mock Example
/node_modules/
@tatsuyasusukida
tatsuyasusukida / Deferred.js
Last active April 26, 2022 01:45
Node.js SerialPort Request Queue Example
class Deferred {
constructor () { // <1>
this.promise = new Promise((resolve, reject) => {
this._resolve = resolve
this._reject = reject
})
}
resolve (result) { // <2>
this._resolve(result)