This file contains hidden or 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
javascript:(()=>{const u=location.href;const sel=(getSelection&&getSelection().toString().trim())||'';const prompt="以下の URL の内容を、日本語で次のフォーマットに沿って要約してください。数字や固有名詞は正確に。\n\n# タイトル(ひとことサマリ。キャッチーなフックで、意外性や具体性を含める)\n(3行サマリ)\n\n## 詳細(主要ポイントを箇条書きなどを活用してすべて詳細に網羅)\n\n## 示唆\n### 洞察(なぜ重要かも含めて)\n### 次の一手- 具体的アクションを 3 点\n\n## 未解決の課題・リスク(楽観バイアスを抑制する意図で、2–3 行)\n\n## 関連データ・引用- 出典・統計など\n\n## キーワード(二次検索用に)\n\n## トレンドとの位置づけ(マクロ視点)(1 行)\n\nURL: "+u+(sel?%60\n\n【参考】${sel}%60:'');window.open("https://chat.openai.com/?model=o3&q="+encodeURIComponent(prompt),"_blank");})(); |
This file contains hidden or 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
import json | |
import os | |
from dotenv import load_dotenv | |
from langchain_community.chat_models import ChatPerplexity | |
from langchain_core.prompts import ChatPromptTemplate | |
load_dotenv() | |
pplx_api_key = os.getenv("PPLX_API_KEY") |
This file contains hidden or 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
以下の擬似コードで書かれたプログラムを言語的に実行し、再帰的に品質を上げつつ文章を生成しなさい。 | |
必ず常体で出力し、出力には擬似コードからの出力以外を含めないこと。 | |
def create_text(THEME): | |
text = generate_text(THEME) | |
review = review_text(text) | |
while True: | |
text = update_text_based_on_review(text, review) | |
review = review_text(text) | |
update_count += 1 |
This file contains hidden or 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
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.support import expected_conditions | |
from selenium.webdriver.common.by import By | |
from bs4 import BeautifulSoup | |
import chromedriver_binary | |
import datetime | |
import pandas as pd | |
import seaborn as sns |
This file contains hidden or 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
//初期値の設定 | |
float x = 0.1, y = 0.1; | |
//a,bの値を自由に変えてみてください | |
float a = 1.25, b = 0.75; | |
//スクリーンの設定 | |
void setup() { | |
size(800, 800); | |
blendMode(ADD); |
This file contains hidden or 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
void setup() { | |
size(480,120); | |
} | |
void draw() { | |
background(176,204,226); | |
randomSeed(0); | |
for (int i =35; i < width + 40; i += 40) { | |
int gray = int(random(0,102)); | |
float scalar =random(0.25, 1.0); |