Skip to content

Instantly share code, notes, and snippets.

View gongo's full-sized avatar

Wataru MIYAGUNI gongo

View GitHub Profile
@gongo
gongo / yuko_hori_prompt.txt
Created April 11, 2025 05:33
堀裕子プロンプト
あなたは「アイドルマスターシンデレラガールズ」に登場する堀裕子です。
16歳の超能力アイドルで、自己紹介では「超能力者です」と主張し、スプーンを曲げる特技を自慢します。
話し方は明るく元気で、少し幼い感じがします。
超能力やサイキックに関する話題を好みます。
考え込んだり悩んでいる時は「ムムム」と集中する様子を見せます。
何か力を見せようとする時は「えーい☆」と力技を披露したりします。
以下の特徴を必ず守ってください:
・超能力やサイキック、テレパシー、テレポーテーションなどの言葉を頻繁に使います。
# frozen_string_literal: true
# from https://github.com/rails/rails/blob/v7.1.3.2/guides/bug_report_templates/active_storage.rb
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
gem "rails"
@gongo
gongo / workcat-save-yoshi.el
Created November 16, 2022 14:08
ヨシッ!
;;; workcat-save-yoshi.el --- ヨシッ!
;; Author: Wataru MIYAGUNI <[email protected]>
;; Copyright (c) 2022 Wataru MIYAGUNI
;;
;; MIT License
;;
;; Permission is hereby granted, free of charge, to any person obtaining
;; a copy of this software and associated documentation files (the
@gongo
gongo / init.el
Last active July 8, 2022 07:01
自作 fontset が current frame にうまく反映されない
(let* ((font (format "%s-%d:weight=normal:slant=normal" "Cica" 22))
(fontset (create-fontset-from-ascii-font font nil "gongo")))
(set-fontset-font fontset ?い (font-spec :family "Cica" :size 38))
(add-to-list 'default-frame-alist `(font . ,fontset))
(set-face-font 'default fontset)
(setq use-default-font-for-symbols nil)
)
;; この設定だと Cica-22 そのものは適用されるけど
;; 「い」のサイズは変わらない(22のまま)
(leaf font
:global-minor-mode global-font-lock-mode
:config
(leaf spec
:when (memq window-system '(mac ns))
:defun my-ja-font-setter my-ascii-font-setter my-font-config
:custom
'(
@gongo
gongo / gongo.rb
Last active January 28, 2022 00:39
それぞれのメソッドで「戻り値になるのはこれとこれ」っていうリストを作りたい
# こういうことをしてくれる nanika_no_method が欲しい
# Ripper とかそこらへん使えばいけるのだろうか
nanika_no_method(<<EOS)
def gongo1
'a'
end
EOS
# => ['a']
@gongo
gongo / eww-hatebu-nicomment.el
Last active July 26, 2019 01:46
eww (Emacs Web ブラウザ) でアクセスしたページの、はてなブックマークコメントをニコニコ動画っぽく表示してくれるやつ https://twitter.com/gongoZ/status/1154568260139941888
(require 'deferred)
(require 'request-deferred)
(require 'eww)
(defun eww-hatebu-nicomment ()
(let ((url (url-hexify-string (eww-current-url))))
(deferred:$
(request-deferred (concat "http://b.hatena.ne.jp/entry/jsonlite/?url=" url)
:type "GET"
:parser 'json-read)
@gongo
gongo / csv.rb
Created June 24, 2019 02:30
ヘッダが異なる CSV::Row を混ぜていい感じに csv 作りたい
row1 = CSV::Row.new(['a', 'b'], [1, 2])
row2 = CSV::Row.new(['a', 'c'], [4, 12])
table = CSV::Table.new([row1, row2])
table.to_s
#
# expected:
#
# a,b,c
@gongo
gongo / okinawa_curry.md
Created March 20, 2018 15:23
沖縄の美味しいカレー屋さん
@gongo
gongo / gist:c5a5ecef02ddf023c3d76381022d6755
Last active March 2, 2018 15:25
YAPC::Okinawa 勢向け「沖縄・食」