Skip to content

Instantly share code, notes, and snippets.

View engineerhikaru's full-sized avatar
🏠
Working from home

ENGINEER HIKARU engineerhikaru

🏠
Working from home
View GitHub Profile
@engineerhikaru
engineerhikaru / code-sheet-output-html.gs
Last active April 23, 2024 10:44
GASコード(スプレッドシートの表をHTMLに変換してGoogleドライブに出力する)
function myFunction() {
const spreadsheetId = 'spreadsheet_id';
const sheetName = 'シート1';
const driveFolderId = "drive_folder_id";
const linkSymbol = '★';
// スプレッドシートのデータを取得
const spreadsheet = SpreadsheetApp.openById(spreadsheetId);
const sheet = spreadsheet.getSheetByName(sheetName);
const lastRow = sheet.getLastRow();
@engineerhikaru
engineerhikaru / code-has-today-data-for-oa.gs
Created February 23, 2024 14:07
GASコード(今日の日付に一致するデータがあるか)
function myFunction() {
const spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
// データ元シート
const fromSheet = spreadsheet.getSheetByName('シート7');
// 出力先シート
const toSheet = spreadsheet.getSheetByName('シート6');
// データ元シートから値を取得
@engineerhikaru
engineerhikaru / nextjs-folder-structure.md
Last active February 23, 2025 00:17
Next.jsのディレクトリ構成

依存ライブラリなど

  • TailwindCSS, shadcn/ui
  • ESLint
  • Prettier
  • zod

ディレクトリ構成

@engineerhikaru
engineerhikaru / code-transcription-for-oa.gs
Last active February 20, 2024 09:56
GASコード(値を転記する)
function onEdit(e) {
// 転記元シート
const fromSheet = e.source.getSheetByName('シート4');
// 転記先シート
const toSheet = e.source.getSheetByName('シート5');
// 転記元シート以外なら処理を抜ける
const currentSheetName = e.source.getSheetName();
if (currentSheetName != 'シート4') {