LoginSignup
4
4

More than 5 years have passed since last update.

GistでClojureを公開する

Posted at

 元ネタです。

Gist で Gem を公開する - Qiita

Gist で Go を公開する - Qiita

 Gist に project.clj とコード片を置きます。

(defproject karen ""
  :dependencies [[org.clojure/clojure "1.6.0"]
                 [org.clojars.pjlegato/clansi "1.3.0"]]
  :source-paths ["./"])
(ns karen
  (:require [clansi.core :as clansi]))

(def karen "
    |⌒^´ ̄ ̄       /    `ヽ
    |         、   \  __ ヽ|
    ト         \    ∨ ⌒ ヽ ∨
    |    \      \    ゙:. /
    |    |l\      ∨ / |-く
    |    ||/\     ∨  |ヾ)
    |\/||__/X   |/|
    |   ̄  _/    \|   }
    ト      ィ笊气<个Ⅳ}/ イ
    |       r'Jハ  》|/ |
    |       V(ソ   ′|  |
    | .      \"\"   / 八 |
    | ,、     u 〃 /   |
    |         イ/ ∧_   |
 r‐Jr-=≦ {r=   / /ニニ}  ∧
r-=ュ`ヽr--―┐    ∧ニニニ∧   ∧
 ―rヘ  |:::://ニニニニニ∧   |
  (`ヽノ::://ニニ/ニニニハ  |
")

(defn desu []
  (clansi/style karen :yellow))

プロジェクトから参照します。

(defproject kin-iro "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.6.0"]]
  :plugins [[lein-git-deps "0.0.2-SNAPSHOT"]]
  :git-dependencies [["https://gist.github.com/woxtu/478278051482b9e0d34a.git"]]
  :source-paths [".lein-git-deps/478278051482b9e0d34a/"])
$ lein git-deps
(ns kin-iro
  (:require [karen]))

(println (karen/desu))

楽しい!₍₍ (ง╹◡╹)ว ⁾⁾

tobyhede/lein-git-deps - GitHub

woxtu/karen.clj - GitHub Gist

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4