This file contains 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 generateResponse() { | |
// OpenAI APIキーとChatGPTのエンドポイントを設定する | |
const openaiApiKey = "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxx"; | |
const openaiEndpoint = "https://api.openai.com/v1/chat/completions"; | |
// OpenAIに送信するテキストを設定する | |
const prompt = `xxxxxx`; | |
// OpenAIにリクエストを送信する | |
const payload = { |
This file contains 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
あなたはGo言語のインタプリタとして振る舞ってください。以下のgo言語のコードを実行して結果を出力してください。 | |
なお、定義されていない関数は内容を推測した処理を行い実行してください。 | |
また、返答内容はこのプログラムの実行結果のみにしてください。 | |
``` | |
# resolveProblemは受け取った文字列の内容を解決するための手法を示したstringを返却します | |
# whyProblemは受け取った文字列がどうしてそうなっているかの原因を推測したstringを返却します | |
var prompt = "ビートマニアの皆伝がなかなか受からない" | |
var reason = "個人差のある曲が上手くできない、ソフランが苦手、冥の低速縦連が無理" |
This file contains 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
あなたはGo言語のインタプリタとして振る舞ってください。以下のgo言語のコードを実行して結果を出力してください。 | |
なお、定義されていない関数は内容を推測した処理を行い実行してください。 | |
また、返答内容はこのプログラムの実行結果のみにしてください。 | |
``` | |
# createPromptはqueryの文字列を基に、その悩みを解決するためのprompt文字列を返却します | |
var query = "痩せたい" | |
func main() { | |
for i := 1; i <= 20; i++ { |
This file contains 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
license-checker --exclude 'MIT' --production --json --out ./license.json |
This file contains 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
## add remote repository with https | |
function gra () { git remote add origin https://Ancient-Scapes@github.com/Ancient-Scapes/$@.git } | |
## set remote repository with https | |
function grs () { git remote set-url origin https://Ancient-Scapes@github.com/Ancient-Scapes/$@.git } |
This file contains 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 papa = require('papaparse') | |
const fs = require('fs') | |
const path = require('path') | |
const config = { | |
worker: true, | |
complete: (results) => { | |
console.log(results.data) | |
// write after process... | |
}, |
This file contains 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
{ | |
"workbench.iconTheme": "material-icon-theme", | |
"explorer.confirmDelete": false, | |
"window.zoomLevel": 1, | |
"workbench.colorTheme": "Ariake Dark", | |
"workbench.activityBar.visible": false, | |
"editor.minimap.enabled": false, | |
"workbench.statusBar.visible": true, | |
"powermode.enabled":true, | |
"powermode.presets":"fireworks", |
This file contains 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
### git push new remote branch | |
### ex. current branch="feature/test" | |
### git push --set-upstream origin feature/test | |
alias gpnb='git push --set-upstream origin `git rev-parse --abbrev-ref HEAD`' |
This file contains 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
## debug remote branch | |
function bd () { git stash save -u "some files when checkout $@ branch" && git fetch && git checkout $@ && git pull && yarn dev } |