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
| #!/bin/bash -ue | |
| if [ "$#" -lt 3 ]; then | |
| echo "$0 BINARY_PREFIX STATIC_ROOT_DIR OUTPUT_DIR" >&2 | |
| exit 1 | |
| fi | |
| export GOVER=1.18 | |
| export SUGOI_SRC='https://gist.githubusercontent.com/amane-katagiri/7b9e09f27d329515f423c97da35335b1/raw/0d1867886128375e30383f7b9aa470ff337a68a5/sugoi.go' | |
| export PREFIX="$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
| 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 | |
| # -*- coding: utf-8 -*- | |
| r""" | |
| Generate emoji list json file for mdx_unimoji(https://github.com/kernc/mdx_unimoji). | |
| You can convert emoji_strategy.json on emojione (https://github.com/emojione/emojione) into | |
| `{"ENTITY1": ["NAME1"], "ENTITY2": ["NAME2", "ALTERNAME2", ...], ...}`. | |
| Usage: | |
| $ ./emoji_generator.py https://raw.githubusercontent.com/Ranks/emojione/master/emoji_strategy.json |
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
| GNU AFFERO GENERAL PUBLIC LICENSE | |
| Version 3, 19 November 2007 | |
| Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | |
| Everyone is permitted to copy and distribute verbatim copies | |
| of this license document, but changing it is not allowed. | |
| Preamble | |
| The GNU Affero General Public License is a free, copyleft license for |
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 |
NewerOlder