Instantly share code, notes, and snippets.
🐈⬛
ニャーン
rummelonp /cperl-imenu.el
CreatedMarch 15, 2024 06:12 — forked fromsyohex/cperl-imenu.el
my own perl imenu. Default imenu provides too many information for me 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
| (defunmy/cperl-imenu-create-index () | |
| (let (index) | |
| ;; collect subroutine | |
| (goto-char (point-min)) | |
| (while (re-search-forward"^\\s-*sub\\s-+\\([^ ]+\\)"nilt) | |
| (push (cons (format"Function:%s" (match-string1)) | |
| (match-beginning1)) index)) | |
| ;; collect subtest | |
| (goto-char (point-min)) |
rummelonp /font-juisee.rb
Last activeJune 19, 2023 05:54
$ brew install --caskhttps://gist.githubusercontent.com/rummelonp/0e6ac835bd3669fdda4091a11c4911fd/raw/font-juisee.rb 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
| cask'font-juisee'do | |
| version'v0.0.2' | |
| sha256'bf13b729d96eb4821aceda82189a67ee4584b37655e610b6b5e21b0fb9669288' | |
| url'https://github.com/yuru7/juisee/releases/download/v0.0.2/Juisee_v0.0.2.zip' | |
| name'Juisee' | |
| desc'Juisee は、欧文フォント JuliaMono と日本語フォント LINE Seed JP を合成したプログラミング向けフォントです。' | |
| homepage'https://github.com/yuru7/juisee' | |
| font'Juisee_v0.0.2/Juisee-Bold.ttf' |
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
| # frozen_string_literal: true | |
| sbbp='サカバンバスピス' | |
| words=sbbp.each_char.each_slice(2).map(&:join) | |
| loopdo | |
| result=Array.new(words.size){words.sample}.join | |
| putsresult | |
| sleep0.02 | |
| breakifresult ==sbbp |
rummelonp /font-0xproto.rb
Last activeMay 30, 2023 04:03
$ brew install --caskhttps://gist.githubusercontent.com/rummelonp/58cac3eb2d9b2b38e15e705a75068138/raw/font-0xproto.rb 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
| cask'font-0xproto'do | |
| version'1.000' | |
| sha256'f841469706c249a55f1425c4cd2da97fc8c272fda6e7a0d52ecf17a405c4b717' | |
| url'https://github.com/0xType/0xProto/releases/download/1.000/0xProto_1_000.zip' | |
| name'0xProto' | |
| desc'Free and Open-source font for programming.' | |
| homepage'https://github.com/0xType/0xProto' | |
| font'fonts/0xProto-Regular.otf' |
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
| { | |
| "compilerOptions": { | |
| "incremental":true, | |
| "target":"es5", | |
| "module":"esnext", | |
| "lib": ["dom","dom.iterable","esnext"], | |
| "allowJs":false, | |
| "jsx":"react-jsx", | |
| "noEmit":true, | |
| "isolatedModules":true, |
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
| declare module'@rails/activestorage'{ | |
| exportfunctionstart():void | |
| exportclassDirectUpload{ | |
| id:number | |
| file:File | |
| url:string | |
| constructor(file:File,url:string,serviceName:string,attachmentName:string,delegate?:DirectUploadDelegate) |
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
| # $ cargo install cross | |
| # $ rustup target add aarch64-apple-darwin | |
| # $ rustup target add x86_64-apple-darwin | |
| # $ rustup target add aarch64-unknown-linux-gnu | |
| # $ rustup target add x86_64-unknown-linux-gnu | |
| # $ brew tap messense/homebrew-macos-cross-toolchains | |
| # $ brew install aarch64-unknown-linux-gnu x86_64-unknown-linux-gnu | |
| export CC_aarch64_unknown_linux_gnu=aarch64-unknown-linux-gnu-gcc |
rummelonp /my-indent-and-save-all-buffers.el
CreatedApril 23, 2022 00:06
emacs で開いてる全バッファまとめてインデントするやつ 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
| (defunmy/indent-and-save-all-buffers () | |
| (interactive) | |
| (dolist (buffer (buffer-list)) | |
| (unless (string-match-p"*" (buffer-name buffer)) | |
| (save-excursion | |
| (switch-to-buffer buffer) | |
| (indent-region (point-min) (point-max)) | |
| (save-some-bufferst))))) |
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
| ;; ← 押した時 | |
| ;; | |
| ;; ファイルだったら: 前の行に移動 | |
| ;; 開いたディレクトリだったら: 閉じる | |
| ;; 閉じたディレクトリだったら: 上の階層に移動 | |
| (defunneotree-left (arg) | |
| (interactive"P") | |
| (let* ((path (neo-buffer--get-filename-current-line)) | |
| (file-p (and path (not (file-directory-p path))))) | |
| (cond (file-p |
rummelonp /init-rainbow-delimiters.el
Last activeApril 27, 2022 19:03
helm-major-mode で rainbow-delimiters-mode を有効にするとハイライトが死ぬので除外 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
| (require'rainbow-delimiters) | |
| (defunrainbow-delimiters-mode-maybe () | |
| (unless (or (minibufferp) (eq major-mode'helm-major-mode)) | |
| (rainbow-delimiters-mode-enable))) | |
| (define-globalized-minor-mode global-rainbow-delimiters-mode | |
| rainbow-delimiters-mode rainbow-delimiters-mode-maybe) | |
| (global-rainbow-delimiters-mode) |
NewerOlder