Skip to content

Instantly share code, notes, and snippets.

@kemsakurai
kemsakurai / get_one_person_from_participants.js
Last active January 14, 2024 11:19 — forked from willnet/sample_from_atendees.js
google meet参加者から誰か一人をランダムで選択するスクリプト|参加者をランダムにシャッフルするスクリプト
(function() {
let facilitator;
if (document.querySelector("[aria-label='参加者']")) {
const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word) => !word.match(/\(|メイン|ミュート|主催者|あなたの画面共有|その他の操作|keep_off|more_vert|keep_pin|keep_pin_outline|domain_disabled/))
const names_set = new Set(names_array)
const names_uniq_array = Array.from(names_set)
facilitator = names_uniq_array[Math.floor(Math.random() * names_uniq_array.length)]
}
if (!facilitator) {
// chromeを利用して、ユーザ一覧を表示しつつconsoleで↓を実行すると、現在の参加者からランダムで一人表示することができます
@kemsakurai
kemsakurai / ExportKindle.js
Last active March 9, 2024 06:17 — forked from usayamadx/ExportKindle.js
Amazon Kindle Export Cloud Readerから、kindleの書籍一覧をTSV形式で取得して、クリップボードへコピーする。Chrome dev tools の console で実行する
// init
let xhr = new XMLHttpRequest()
let domain = 'https://read.amazon.co.jp/'
let items = []
let tsvData = ""
// function
function getItemsList(paginationToken = null) {
// https://read.amazon.co.jp/kindle-library/search?query=&libraryType=BOOKS&paginationToken=19&sortType=recency&querySize=50
let url = domain + 'kindle-library/search?query=&libraryType=BOOKS' + ( paginationToken ? '&paginationToken=' + paginationToken : '' ) + '&sortType=recency&querySize=50'

これはYaSTのチームメンバーが、チームの一連の出来事を定義する手助けとなるチーム憲章テンプレートです。
あなたのチームの状況を考慮して、このテンプレートの項目を追加/削除/変更してください。

チーム憲章が存在する理由

まず最初に、チーム憲章の存在意義について全ての人が疑問を持つでしょう。
しかし、チーム憲章にはいくつかの正当な存在理由があります。:

>多くのチームは、チームの目標、役割、責任、および/またはチームが決定を下す方法などについて調整されていません。

@kemsakurai
kemsakurai / ps-snapshot.sh
Last active September 16, 2018 16:00 — forked from studiotomi/ps-snapshot.sh
Back up postgres db to google cloud storage
#!/bin/bash
# Requirements:
# - gcloud/gsutil is installed on the box
# - gcloud is logged in as a user with write access to Google Cloud Storage
# - The file has execution rights so that it can be run in cron
# - The Google Cloud Storage bucket already exits
# Exit on any error
set -e