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
| function __ai_profile | |
| set -l dir $PWD | |
| while true | |
| if test -f "$dir/.ai-profile" | |
| string trim < "$dir/.ai-profile" | |
| return 0 | |
| end | |
| if test "$dir" = "/" |
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
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>あまねけ!おもしろCSS 7選 サンプルページ ⑦ CSSだけでランダムっぽいパラメータを使う</title> | |
| <style> | |
| :root { | |
| --s: 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
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>あまねけ!おもしろCSS 7選 サンプルページ ⑥ CSSだけでクリックに応じてスタイルを切り替える</title> | |
| <style> | |
| /* 「状態」を保持するチェックボックスを隠しつつフォーカス可能にする */ | |
| input[type="checkbox"]#toggle { |
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
| cd /d "%~dp0" | |
| set SPOTIFY_CLIENT_ID=xxx | |
| set SPOTIFY_CLIENT_SECRET=yyy | |
| node spotify-now-playing.mjs |
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
| ひとみを のぞきこむと じぶんの すがたが みえる。だが その かおは いつも すこしだけ わらっている。 | |
| だいじな ひとを わすれた にんげんの そばに あらわれる。かおりを かぐと なぜか なみだが でるという。 | |
| いちど なかまと みとめた あいてを にどと はなさない。トレーナーが きえても その ばしょで まわりつづける。 | |
| やくそくを やぶった にんげんを さがしだす。みつけると こゆびに あかい いとを まきつけて どこかへ つれさる。 | |
| はなびらが じかんごとに いちまいずつ ちる。さいごの いちまいが ちるとき なにが おこるかは だれも しらない。 |
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
| #!/usr/bin/env python3 | |
| r""" | |
| Generate emoji dict file for ATOK. | |
| You can convert emoji_strategy.json on emoji-toolkit (https://github.com/joypixels/emoji-toolkit) into: | |
| ``` | |
| Grinning 😀 名詞* | |
| ... |
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
| #!/usr/bin/env python3 | |
| # Usage: ./export_chatgpt.py conversations.json ./path/to/export/dir | |
| from dataclasses import dataclass | |
| import itertools | |
| import json | |
| import logging | |
| from logging import getLogger, StreamHandler | |
| import sys |
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
| #!/bin/bash -eu | |
| # https://blog.jxck.io/entries/2023-03-24/proofreading-via-openai.html | |
| PROMPT='バッククォートで囲まれた以下の文章の誤字、脱字、スペルミスを、原文をできるだけ尊重しつつ修正してください。返答は修正後の文章のみを簡潔に返すこと。' | |
| QUOTE='```' | |
| CONF="$HOME/.correct" | |
| CACHE="$HOME/.correct_cache" | |
| FORCE='' |
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
| #!/usr/bin/pwsh | |
| if ($args.count -eq 0){ | |
| $connectport = [Microsoft.VisualBasic.Interaction]::InputBox("Input connectport (expose port on wsl)", $MyInvocation.MyCommand.Name, "8000") | |
| if ($connectport.length -eq 0) { | |
| Write-Error "Set connectport" -ErrorAction Stop | |
| } | |
| $listenport = [Microsoft.VisualBasic.Interaction]::InputBox("Input listenport (expose port on host)", $MyInvocation.MyCommand.Name, $connectport) | |
| if ($listenport.length -eq 0) { | |
| Write-Error "Set listenport" -ErrorAction Stop |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <feed xmlns="http://www.w3.org/2005/Atom"> | |
| <title>【サイトタイトル】</title> | |
| <!-- サイトのURL --> | |
| <link rel="alternate" href="https://your-site.example.com/"></link> | |
| <!-- フィードのURL --> | |
| <link rel="self" href="https://your-site2.example.com/path/to/feed.atom.xml"></link> | |
| <!-- フィードのID「tag:【サイトドメイン】,【公開年(月日)】:【URL】」 --> | |
| <id>tag:your-site.example.com,2023:/</id> | |
| <!-- フィードの最終更新日時 --> |
NewerOlder