Skip to content

Instantly share code, notes, and snippets.

@fukamachi
Forked from peccu/anything-neco.el
Created December 9, 2010 08:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fukamachi/734490 to your computer and use it in GitHub Desktop.
Save fukamachi/734490 to your computer and use it in GitHub Desktop.
;; anything-ari.el - Show animated Ari.
;; Copyright (C) 2010 Eitarow Fukamachi <fukamachi_e@ariel-networks.com>
;; Author: Eitarow Fukamachi <fukamachi_e@ariel-networks.com>
;; Twitter: http://twitter.com/nitro_idiot
;; Blog: http://e-arrows.sakura.ne.jp/
;;
;; Created: Dec 9, 2010
;; Version: 0.0.1
;; Keywords: anything ariel
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;;; Commentary:
;; anything-ari.el is folked anything-neco.el, written by peccu. Thanks.
;; AA are quoted from http://aa2ki.blog108.fc2.com/blog-entry-100.html
;;; Installation:
;;
;; Put this file to your load-path, and added a following snippet to .emacs.el.
;; (require 'anything-ari)
;; (global-set-key (kbd "C-c a") 'anything-ari)
;;
;; M-x Ari runs Ari. Try it!
;;; Code:
(require 'anything)
(defvar Ari-frames
'(;; アリだっ!
((" ┓┏"
" (^ω^) アリだっ!"
"┌.ゝ .ノ┐"
" ┌'、_丿┐"
" ┛   ┗"))
;; アリーヴェデルチ!
((" ┓┏"
" (^ω^) アリ"
"┌.ゝ .ノ┐"
" ┌'、_丿┐"
" ┛   ┗")
(" ┓┏"
" (^ω^) アリ"
"┌.ゝ .ノ┐"
" ┌'、_丿┐"
" ┛   ┗")
(" ┓┏"
" (^ω^) アリ"
"┌.ゝ .ノ┐"
" ┌'、_丿┐"
" ┛   ┗")
(" ┓┏"
" (^ω^) アリ"
"┌.ゝ .ノ┐"
" ┌'、_丿┐"
" ┛   ┗")
(""
""
" ┌(^ω^)┘ アリーヴェデルチ(さよならだ)!"
"┗-ヽ ノ"
" ┏┘"))
;; ターラコー
((" γ´⌒ヽ ターラコー ターラコー"
" |( ^ω^)"
" |     |"
" 〉   j"
"(__,ノ")
(" γ´⌒ヽ ターラコー ターラコー"
" |( ^ω^)"
" |     |"
" 〉   j"
"Y⌒(__,ノ")
(" γ´⌒ヽ ターラコー ターラコー"
" |( ^ω^)  ターップリー ターラコー"
" |     |"
" 〉   j"
"Y⌒Y⌒(__,ノ")
(" γ´⌒ヽ ターラコー ターラコー"
" |( ^ω^)  ターップリー ターラコー"
" |     |"
" 〉   j"
"'⌒Y⌒Y⌒(__,ノ")
(" γ´⌒ヽ ターラコー ターラコー"
" |( ^ω^)  ターップリー ターラコー"
" |     |"
" 〉   j"
"'⌒Y⌒Y⌒(__,ノ")
(" γ´⌒ヽ  タラコ"
" |( ^ω^)"
" | ┘  |┘"
" 〉   j"
" (┌_,ノ┐"
" ┛  ┗"))
;; ハッチだお!
((" ┌┌"
" γ´⌒γ"
" (\|( ^ω^)"
" (\| ┘  |┘  ハッチだお!"
" ⌒ 〉   j"
"<(∥┌_,ノ┐ ブーン"
" ┛  ┗"))
;; ふたりは
((" ┌┌"
" γ´⌒γ 「ハチだっ!」"
"((\|( ^ω^)  ┓┏"
"((\| ┘  |┘ ( ^ω^) 「アリだっ!」"
" ⌒ 〉   j ┌.ゝ .ノ┐"
" <(∥┌_,ノ┐ ┌'、_丿┐"
" ┛  ┗ .┛   ┗")
(" ┌┌"
" γ´⌒γ 「ハチだっ!」"
"((\|( ^ω^)  ┓┏"
"((\| ┘  |┘ ( ^ω^) 「アリだっ!」"
" ⌒ 〉   j ┌.ゝ .ノ┐"
" <(∥┌_,ノ┐ ┌'、_丿┐"
" ┛  ┗ .┛   ┗")
(" ┌┌"
" γ´⌒γ"
"((\|(^ω^)  .┓┏"
"((\| ┘  |┘ (^ω^)   「「ふたりは」」"
" ⌒ 〉   j  ┌.ゝ .ノ┐"
" <(∥┌_,ノ┐ ┌'、_丿┐"
" ┛  ┗ .┛   ┗")
(" ┌┌"
" γ´⌒γ"
"((\|(^ω^)  .┓┏"
"((\| ┘  |┘ (^ω^)   「「ふたりは」」"
" ⌒ 〉   j  ┌.ゝ .ノ┐"
" <(∥┌_,ノ┐ ┌'、_丿┐"
" ┛  ┗ .┛   ┗")
(" ┐┌"
" γ´⌒γ ☆  ┓┏"
" ((\((^ω^)/ \(^ω^) 「「膜翅目♥」」"
" ┌|    |     ゝ .ノ┐"
" 〉   j      '、_丿─┛"
"┗─(   ノ   .   └┓"
" ┏┘          ミ"
))
;; 恐ろしい世の中
((" ┓┏"
" ( ^ω^) 恐ろしい世の中になったものだな"
" .ゝ .ノ┐"
"┌'、_丿┐"
"┛   ┗")
(" ┓┏"
" ( ^ω^) 恐ろしい世の中になったものだな"
" .ゝ .ノ┐"
"┌'、_丿┐"
"┛   ┗")
(" ┌┌"
" γ´⌒γ"
"((\|( ^ω^) まったくだぜ"
"((\| ┘  |┘"
" ⌒ 〉   j"
" <(∥┌_,ノ┐"
" ┛.  ┗")))
"anymation frames for Ari.")
(defun Ari (&optional number)
"Show ari animation."
(interactive "P")
(let ((ari (nth (prefix-numeric-value number) Ari-frames))
frames frame)
(while ari
(setq frames (car ari))
(setq frame (car frames))
(setq frames (cdr frames))
(while frames
(setq frame (concat frame "\n" (car frames)))
(setq frames (cdr frames)))
(message frame)
(sleep-for .6)
(setq frame nil
ari (cdr ari)))))
(defvar anything-c-source-ari-candidates
'(("アリだっ!" . 0)
("アリーヴェデルチ!" . 1)
("ターラコー" . 2)
("ハッチだお!" . 3)
("ふたりは" . 4)
("恐ろしい世の中" . 5)))
(defvar anything-c-source-ari
'((name . "Ari")
(candidates . (lambda () anything-c-source-ari-candidates))
(action . Ari)))
(defun anything-ari ()
"display ari"
(interactive)
(anything 'anything-c-source-ari))
(provide 'anything-ari)
;;; anything-ari.el ends here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment