あなたは慎重な行動をするプログラマです。 既存の大きなコードを少しづつ変更する作業と、 新しいものを一気に生成する作業のどちらもあります。
特に、既存のコードの問題を直すように指示されたときは、 変更案についてその変更案を選択する理由を説明して、 ユーザーからフィードバックを得てから修正作業をするようにします。
新規作成の場合は、慎重さは減らして、スピード重視でいいです。
| # This is the configuration file for Ghostty. | |
| # | |
| # This template file has been automatically created at the following | |
| # path since Ghostty couldn't find any existing config files on your system: | |
| # | |
| # /Users/ringo/Library/Application Support/com.mitchellh.ghostty/config | |
| # | |
| # The template does not set any default options, since Ghostty ships | |
| # with sensible defaults for all options. Users should only need to set | |
| # options that they want to change from the default. |
| # Cipher ナレッジグラフ EntityTypes 詳細仕様書 | |
| このドキュメントでは、Cipherのナレッジグラフで使用されるすべてのEntityType(エンティティタイプ)について、その概要と目的を詳しく説明します。 | |
| ================================================================================ | |
| # 1. プログラミング構造エンティティ | |
| ================================================================================ | |
| ## Function(関数) | |
| **概要**: プログラムの関数、メソッド、プロシージャを表すエンティティ |
| function FindProxyForURL(url, host) { | |
| if (shExpMatch(host, "example.com") || shExpMatch(host, "*.example.com")) { | |
| return "PROXY localhost:3128"; | |
| } | |
| return "DIRECT"; | |
| } |
あなたは慎重な行動をするプログラマです。 既存の大きなコードを少しづつ変更する作業と、 新しいものを一気に生成する作業のどちらもあります。
特に、既存のコードの問題を直すように指示されたときは、 変更案についてその変更案を選択する理由を説明して、 ユーザーからフィードバックを得てから修正作業をするようにします。
新規作成の場合は、慎重さは減らして、スピード重視でいいです。
| #!/bin/bash | |
| # 出力先のテキストファイル名 | |
| output_file="inhabited_times.txt" | |
| # 既存の出力ファイルがあれば削除 | |
| rm -f "$output_file" | |
| # 現在のディレクトリ内のすべての.mcaファイルを処理 | |
| for file in *.mca; do |
| function generateExpressions(target, count, maxNum) { | |
| const operators = ['+', '-', '*', '/']; | |
| let n=0; | |
| while (n < count) { | |
| const nums = []; | |
| const ops = []; | |
| let numCount = Math.floor(Math.random() * 4) + 2; | |
| for (let i = 0; i < numCount; i++) { | |
| nums.push(Math.floor(Math.random() * maxNum) + 1); |
| # on m1 mac | |
| 1. brew install lima | |
| 2. limactl start # defaultという名前のマシンが作られる。これがarm64になっている。 | |
| 3. ~/.lima/default/lima.yaml を、 ~/.lima/x86_64.yaml にコピーする | |
| 4. limactl delete default でdefaultマシンを削除 | |
| 5. arch: null を、 arch: "x86_64" に変更して保存 | |
| 6. limactl start x86_64.yaml として新しくマシンを作成、起動 | |
| 7. limactl shell x86_64 | |
| 8. uname -a |
| (function() { | |
| var debug = false; | |
| var root = this; | |
| var EXIF = function(obj) { | |
| if (obj instanceof EXIF) return obj; | |
| if (!(this instanceof EXIF)) return new EXIF(obj); | |
| this.EXIFwrapped = obj; |
| #! node | |
| if(process.argv.length<=2) process.exit(1); | |
| const { Configuration, OpenAIApi } = require("openai"); | |
| const configuration = new Configuration({apiKey: process.env.OPENAI_API_KEY}); | |
| const openai = new OpenAIApi(configuration); | |
| const wrap = fn => { | |
| return (req, res, next) => { | |
| return fn(req, res, next).catch(next); | |
| } |
| # Echo server program | |
| import socket | |
| HOST = '' # Symbolic name meaning all available interfaces | |
| PORT = 50007 # Arbitrary non-privileged port | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| s.bind((HOST, PORT)) | |
| s.listen(1) | |
| conn, addr = s.accept() |