$node src/chat.js
あなた: おすすめのパスタを教えてください。
AI:
私はAIのため選べませんが、一般的な人気のあるパスタレシピとしては、
・トマトソーススパゲッティ
・カルボナーラ
・アラビアータ
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
@-moz-document url-prefix("https://chat.openai.com/") { | |
.text-base { | |
max-width: 100% !important; | |
} | |
.h-full { | |
height: auto !important; | |
} | |
div[class^=react-scroll-to-bottom--css-vsfma-] { | |
height: auto !important; | |
overflow-y: auto !important; |
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
<template> | |
<div> | |
<div id="world_map" style="width: 100%; height: 100vh; background-color: #ccc;"></div> | |
</div> | |
</template> | |
<script setup lang="ts"> | |
import { onMounted } from 'vue'; | |
import * as am5 from '@amcharts/amcharts5'; | |
import * as am5map from '@amcharts/amcharts5/map'; |
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
<template> | |
<div> | |
<div class="speed-dial-modal-layer" v-if="isOpen"></div> | |
<div class="speed-dial"> | |
<div | |
:class="['speed-dial-action', toggleClass, {'hide': isHideAction}]" | |
v-for="(action, idx) in actions" | |
:key="idx" | |
@click="onClickAction(action)" | |
> |
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
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "Left", function() | |
local win = hs.window.focusedWindow() | |
local f = win:frame() | |
local screen = win:screen() | |
local max = screen:frame() | |
f.x = max.x | |
f.y = max.y | |
f.w = max.w / 2 | |
f.h = max.h |
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
#!/usr/bin/env ruby | |
require 'oauth' | |
require 'json' | |
require 'typhoeus' | |
require 'oauth/request_proxy/typhoeus_request' | |
def create_tweet(url, oauth_params, payload) | |
options = { | |
method: :post, |
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
--- | |
region: | |
- name: 北ヨーロッパ | |
countries: | |
- name: アイスランド | |
name_en: Iceland | |
alpha2: IS | |
- name: オーランド諸島 | |
name_en: Åland Islands | |
alpha2: AX |
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
class ImageUploader < CarrierWave::Uploader::Base | |
storage RetryableStorageFog | |
cache_storage RetryableStorageFog | |
end |
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
/// 現在の壁紙のファイルパス | |
String wallpaperFilePath = path.join( | |
"path", "to", "wallpaper.jpg"); | |
/// 壁紙を変更するボタンが押された時の処理。 | |
void _handleChangeWallpaper() { | |
var file = File(wallpaperFilePath); | |
if (!file.existsSync()) { | |
// ファイルが存在しない | |
log("画像が存在しない。 filePath=$wallpaperFilePath"); |
- MySQL: 8.0.18
mysql> show create table users;
+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
NewerOlder