Skip to content

Instantly share code, notes, and snippets.

@bills-appworks
bills-appworks / oauth-flow-device.pu
Created April 5, 2025 06:53
OAuth概要フロー(クライアント:ブラウザレスデバイス版)
@startuml
title
OAuthフロー
フロー:デバイス認可フロー(+(オプション)リフレッシュトークン)
クライアントタイプ:ブラウザレスデバイス
end title
actor "リソースオーナー\n(ユーザー)" as user
@bills-appworks
bills-appworks / oauth-flow-public-spa.pu
Created April 4, 2025 23:55
OAuth概要フロー(クライアント:シングルページアプリケーション版)
@startuml
title
OAuthフロー(PKCE/PAR/DPoP含む)
フロー:認可コードグラント(+リフレッシュトークン)
クライアントタイプ:シングルページアプリケーション(OAuth:Public)
end title
actor "リソースオーナー\n(ユーザー)" as user
@bills-appworks
bills-appworks / oauth-flow-public-nativeapp.pu
Created April 4, 2025 11:20
OAuth概要フロー(クライアント:ネイティブアプリ版)
@startuml
title
OAuthフロー(PKCE/PAR/DPoP含む)
フロー:認可コードグラント(+リフレッシュトークン)
クライアントタイプ:ネイティブアプリ(OAuth:Public)
end title
actor "リソースオーナー\n(ユーザー)" as user
@bills-appworks
bills-appworks / oauth-flow-confidential-webservice.pu
Last active April 4, 2025 23:58
OAuth概要フロー(クライアント:ウェブサービス版)
@startuml
title
OAuthフロー(PKCE/PAR/DPoP含む)
フロー:認可コードグラント(+リフレッシュトークン)
クライアントタイプ:ウェブサービス(OAuth:Confidential)
end title
actor "リソースオーナー\n(ユーザー)" as user
@bills-appworks
bills-appworks / video-20250218-01.pu
Last active February 20, 2025 10:26
Bluesky video post sequence
@startuml
skinparam monochrome reverse
skinparam sequence {
GroupBackgroundColor Aqua
}
"client" -> "PDS" : <b>1</b> getServiceAuth
activate "PDS"
"client" <-- "PDS" : <b>2</b>
@bills-appworks
bills-appworks / 2021-shizen.gv
Created December 9, 2020 10:50
放送大学 教養学部 自然と環境コース 2021年度 履修順参考
/**
* @fileoverview 放送大学 教養学部 自然と環境コース 2021年度 履修順参考
* @author twitter:@billstw
*
* 放送大学 授業科目案内 教養学部 2021年度
* https://www.ouj.ac.jp/hp/kamoku/2021/kyouyou/C/index.html
*
* 放送大学 2021年度 第1学期 学部授業科目案内
* https://www.ouj.ac.jp/booklet/assets/pdf/2021/08_2021-1_gakubu_kamoku.pdf
*/
@bills-appworks
bills-appworks / async-await-02.js
Created July 25, 2019 12:41
Promise/async/await for calling asynchronous API like synchronous
'use strict';
const start_time = Date.now();
function timestamp_log(message) {
const duration = Date.now() - start_time;
console.log(`[${duration}]: ${message}`);
}
timestamp_log('script start');
@bills-appworks
bills-appworks / async-await-01.js
Created July 25, 2019 11:48
Promise/async/await for calling asynchronous API like synchronous
'use strict';
const start_time = Date.now();
function timestamp_log(message) {
const duration = Date.now() - start_time;
console.log(`[${duration}]: ${message}`);
}
timestamp_log('script start');
@bills-appworks
bills-appworks / Promise-02.js
Created July 22, 2019 15:04
Promise/async/await for calling asynchronous API like synchronous
'use strict';
const start_time = Date.now();
function timestamp_log(message) {
const duration = Date.now() - start_time;
console.log(`[${duration}]: ${message}`);
}
timestamp_log('script start');
@bills-appworks
bills-appworks / Promise-01.js
Created July 18, 2019 14:51
Promise/async/await for calling asynchronous API like synchronous
'use strict';
const start_time = Date.now();
function timestamp_log(message) {
const duration = Date.now() - start_time;
console.log(`[${duration}]: ${message}`);
}
timestamp_log('script start');