Upgrade to Pro — share decks privately, control downloads, hide ads and more …

今年がんばったこと

Tiny Mouse
November 24, 2023
83

 今年がんばったこと

DevFest Nagoya 2023/11/24
浜松IT合同勉強会 2023/12/16

Tiny Mouse

November 24, 2023
Tweet

Transcript

  1. n @tinymouse_jp n SI 企業の SE n 日曜プログラマ n 二児の父

    n 静岡県浜松市出身 n 東京都品川区在住。名古屋市在住。 n Windows 愛用。iPhone Android スマホ n Android の会浜松支部、Hamamatsu.js 、 よちよちサンデープログラミングの会→なごや個人開発者の集い Tiny Mouse
  2. .NET MAUI (Multi-Platform App UI) n Microsoft が提供。2022 年に正式リリース n

    Android、iOS、macOS、Windows で実行できるアプリ を開発できる n XAML+C# で記述する。Xamarin.Forms の後継 n XAML で UI を書くのは、個人的につらい
  3. .NET Blazor n Microsoft が提供。2018 年から n ウェブブラウザで実行されるアプリを開発できる n HTML+C#

    で記述する n サーバで実行されて HTML がレンダリングされるタイプ 「Blazor Server アプリ」と、クライアントのブラウザ上で 実行されるタイプ「Blazor WebAssembly アプリ」がある
  4. ブラウザで音声認識してみた n 一部のブラウザ(Google Chrome など)は SpeechRecognition API が使える。ブラウザで動作する JavaScript プログラムで音声認識できる。

    window.SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition; var recognition = new SpeechRecognition(); recognition.lang = 'ja'; recognition.onresult = function(event){ var results = event.results; for (var i = event.resultIndex; i < results.length; i++) { var text = results[i][0].transcript; console.log("text:", text); } } recognition.start();
  5. GAS で ChatGT API を使ってみた const messages = [ {

    'role': 'user', 'content': 'Google Apps Script とは何ですか。' }, ]; const apiKey = PropertiesService.getScriptProperties().getProperty('ApiKey'); const apiUrl = "https://api.openai.com/v1/chat/completions"; const options = { 'muteHttpExceptions' : true, 'headers': { 'Authorization': 'Bearer ' + apiKey, 'Content-type': 'application/json', 'X-Slack-No-Retry': 1 }, 'method': 'POST', 'payload': JSON.stringify({ 'model': 'gpt-3.5-turbo', 'max_tokens' : 1024, 'temperature' : 0.9, 'messages': messages }) }; const response = UrlFetchApp.fetch(apiUrl, options); console.log("response:", response); const result = JSON.parse(response.getContentText()); console.log("result:", result); console.log(result.choices[0].message.content);
  6. Alpine.js n 新しい、軽量の JavaScript フレームワーク n Vue.js もどき。コンポーネントは作らない <script defer

    src="https://unpkg.com/[email protected]/dist/cdn.min.js"></script> <div x-data='{ name: "Alpine.js" }'> <p>Hello, <span x-text='name' />.</p> </div>
  7. Google AppSheet n ウェブアプリを作成できるノーコード開発プラットフォーム n Google が 2020 年に買収 n

    ウェブブラウザで管理画面で設定してアプリを作成する n Google Spreadsheet を始めに、多くのデータベースを 参照できる仕組が用意されている n 登録画面や一覧表示は簡単に作成できる n 条件に応じて表示や挙動を変えるなどの設定もかなりで きる