今週のデイリーノートを分析してまとめてください。
- デイリーノートを今から添付します。
- 段落は切らずに箇条書きでまとめて。
- 全体で5行程度、コンパクトにお願いします。
- Markdown 形式でコピーできるように出力してください。
PowerShell 上で実行する。
今週のデイリーノートを分析してまとめてください。
- デイリーノートを今から添付します。
- 段落は切らずに箇条書きでまとめて。
- 全体で5行程度、コンパクトにお願いします。
- Markdown 形式でコピーできるように出力してください。
PowerShell 上で実行する。
| require 'processing' | |
| using Processing | |
| # エラーメッセージからは #version は警告で、texcoord__ や color__ の命名規則に "__" が使われているのが原因? | |
| # | |
| # terminate called after throwing an instance of 'Rucy::RubyException' | |
| # what(): src/shader_source.cpp:49: WARNING: 0:1: '' : #version directive missing | |
| # ERROR: 0:9: 'texcoord__' : two consecutive underscores are reserved for future use | |
| # ERROR: 0:10: 'color__' : two consecutive underscores are reserved for future use | |
| # |
https://speakerdeck.com/tokujiros/zerokarano-retorogemuenzinnozuo-rifang?slide=18
| current directory: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/rays-0.3.2 | |
| C:/Ruby33-x64/bin/ruby.exe -rrubygems C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/rake-13.2.1/exe/rake RUBYARCHDIR\=C:/Ruby33-x64/lib/ruby/gems/3.3.0/extensions/x64-mingw-ucrt/3.3.0/rays-0.3.2 RUBYLIBDIR\=C:/Ruby33-x64/lib/ruby/gems/3.3.0/extensions/x64-mingw-ucrt/3.3.0/rays-0.3.2 | |
| git clone -c advice.detachedHead=false --depth 1 --branch 0.9.9.8 --recursive https://github.com/g-truc/glm vendor/glm | |
| Cloning into 'vendor/glm'... | |
| Updating files: 90% (1371/1517) | |
| Updating files: 91% (1381/1517) | |
| Updating files: 92% (1396/1517) | |
| Updating files: 93% (1411/1517) | |
| Updating files: 94% (1426/1517) | |
| Updating files: 95% (1442/1517) |
| ◯◯◯ Rubyスクリプトを作成してください。 | |
| このRubyスクリプトをrubyonbrowser上で実行させたいです。 | |
| URL は https://rubyonbrowser.ongaeshi.me/ | |
| 後ろにクエリ文字列 ?q2= | |
| コードテキストを URLエンコーディングした文字列を q2 のパラメータに設定 | |
| コードと生成したURLへのリンクの順に一回で出力してください。 |
Note
Highlights information that users should take into account, even when skimming.
Tip
Optional information to help a user be more successful.
| def make_markdown_table(list) | |
| lines = list.split("\n") | |
| lines.map do |line| | |
| path = line.gsub("./", "") | |
| url = "https://github.com/DragonRuby/dragonruby-game-toolkit-contrib/blob/main/samples/#{path}/app/main.rb" | |
| "| [#{path}](#{url}) | | | " | |
| end.join("\n") | |
| end#{path} | |
| lists = <<EOS |
| def get_all_folders_recursive(directory) | |
| # ディレクトリ内の全エントリを取得 | |
| entries = Dir.entries(directory) | |
| # フォルダのみを抽出 | |
| folders = entries.select { |entry| File.directory?(File.join(directory, entry)) && entry != '.' && entry != '..' } | |
| # 現在のディレクトリ内のフォルダをリストに追加 | |
| result = folders.map { |folder| File.join(directory, folder) } |
| require "ruby_openai" | |
| require "readline" | |
| token = File.read(File.join(__FILE__, "../.token")) | |
| $client = OpenAI::Client.new(access_token: token) | |
| def gpt(message, title) | |
| response = $client.chat( | |
| parameters: { | |
| model: "gpt-3.5-turbo", |
| PS C:\Users\ongaeshi\Code\runa_app\ruby_openai> runa run .\make_tweet.rb "shi3z 氏が紹介していた Chat-GPT のやつを Ruby でもやってみた" | |
| --- バズる優先 --- | |
| 「Ruby界の先駆者、shi3z氏が紹介する『Chat-GPT』をRubyでも試してみました!✨💎 プログラミングの魔術師たちよ、この新たな力を手に入れたのだ!🔮💬 #Ruby #ChatGPT #プログラミング魔術師」というツイート文がバズるかもしれません! | |
| --- 落ち着き優先 --- | |
| 「Chat-GPTの素晴らしさに感動して、私もRubyで試してみました。とても面白くて使いやすいで す!shi3zさんの紹介に感謝です」という感謝と興奮が伝わる落ち着いたツイート文です。 | |
| --- 技術者優先 --- | |
| 「Chat-GPT is an amazing language model that shi3z san introduced! I couldn't resist trying it out in Ruby, and the results blew me away! The potential for natural language processing in Ruby just got a major boost. Can't wait to explore more applications with this powerful tool! #ChatGPT #Ruby #AI #NaturalLanguageProcessing」 | |
| --- テクニカルライター --- | |
| 「【テクニカルライター】Chat-GPTをRubyで試してみました!shi3z氏の紹介記事を参考にしながら、実装を進めました。Rubyならではの特徴を活かしたコーディング手法を取り入れた結果、シ ームレスなチャット体験が可能になりました。興味がある方はぜひご覧ください!#ChatGPT #Ruby #テクニカルライティング」 | |
| --- インフルエンサー --- |