This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { IncomingWebhookClient } from 'https://unpkg.com/@slack/webhook@latest/dist/cjs/index.js'; | |
import fs from 'fs'; | |
const url = 'YOUR_SLACK_WEBHOOK_URL'; // Incoming Webhook URL | |
const channel = '#general'; // 送信先チャンネル | |
const message = '画像を送信します'; // メッセージ | |
const filePath = 'image.jpg'; // 送信する画像ファイルのパス | |
(async () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
自身の技術専門職について発表する際に、聞き手が知りたがるであろう疑問や問いを以下のように箇条書きで示します: | |
技術専門職としての役割や責任は何ですか? | |
最近取り組んでいるプロジェクトや課題は何ですか? | |
業務上の課題や障害にどのように対処していますか? | |
最新の技術トレンドや業界の動向をどのように把握していますか? | |
チームとのコラボレーションやコミュニケーションはどのように行っていますか? | |
今後の展望やキャリアパスについてどのような考えがありますか? | |
技術やスキルの向上のために何をしていますか? | |
他の部署や職種との連携や協力体制はどのように構築していますか? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<link | |
href="https://unpkg.com/gridjs/dist/theme/mermaid.min.css" | |
rel="stylesheet" | |
/> | |
</head> | |
<body> | |
<div id="wrapper"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
テストだよ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "array", | |
"items": { | |
"$ref": "#/$defs/table" | |
}, | |
"$defs": { | |
"table": { | |
"name": "table", | |
"type": "object", | |
"properties": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from "http"; | |
import fs from "fs"; | |
import path from "path"; | |
import { fileURLToPath } from 'url'; | |
const __filename = fileURLToPath(import.meta.url); | |
const __dirname = path.dirname(__filename); | |
const server = http.createServer((req, res) => { | |
const reqPath = req.url; | |
const sanitizedPath = path.normalize(reqPath).replace(/^(\.\.[\/\\])+/, ''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getBitsAfter33(ipv6) { | |
function hexTo2Bits(v, bitLength = 4) { | |
if(v >= 10) { | |
v = "ABCDEF"[v - 10] | |
} | |
return (new Array(bitLength).fill("0").join("") + parseInt(v, 16).toString(2)).slice(-bitLength); | |
} | |
function bit2toHex(num) { | |
var p = num.split("").reverse().map((v, i) => Math.pow(2, i) * parseInt(v)).reduce((memo, v) => memo + v, 0); | |
if(p < 10) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// いい感じに同期します | |
// 新規タスクの追加 | |
// 変更点の更新 | |
// GoogleTasksの読み込み | |
function update() { | |
new MainService().update(); | |
} | |
function onOpen() { | |
const customMenu = SpreadsheetApp.getUi() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function exportCalendarEvents() { | |
// カレンダーIDを入力してください | |
var calendarId = "primary"; | |
// フォーマット | |
var format = "yyyy/MM/dd HH:mm:ss"; | |
// 今日の日付を取得 | |
var today = new Date(); | |
// 今日の0時0分0秒を計算 | |
var startOfDay = new Date(today.getFullYear(), today.getMonth(), today.getDate()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const headers = ["ID", "タスク名", "開始日", "終了日", "日数", "依存タスク"]; | |
function setup() { | |
const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("シート1"); | |
if(sheet.getRange(1, 1).getValue() == "入力用") { | |
throw new Error("すでに実行済みです"); | |
} | |
sheet.appendRow(["入力用"]) | |
sheet.appendRow(headers) | |