项目作者: wdhowe

项目描述 :
ASCII Emoji, in Clojure.
高级语言: Clojure
项目地址: git://github.com/wdhowe/ascii-emoji.git
创建时间: 2020-09-26T01:19:27Z
项目社区:https://github.com/wdhowe/ascii-emoji

开源协议:Eclipse Public License 2.0

下载


ascii-emoji

Build Status Clojars Project Clojure version

Use ASCII Emoji, in Clojure!

Usage

Get started using ASCII emojis.

Installation

Leiningen/Boot Project file

  1. [ascii-emoji "0.1.0"]

Include the Library

In the REPL

  1. (require '[ascii-emoji.core :as em])

In your application

  1. (ns my-app.core
  2. (:require [ascii-emoji.core :as em]))

Use Emojis - Direct Data

Use the emoji map directly.

  1. ;; categories
  2. (keys em/emoji-db)
  3. ;; all emojis in the "dudes" category
  4. (:dudes em/emoji-db)
  5. ;; specific emoji in the dudes category
  6. (get-in em/emoji-db [:dudes :tableflip1])

Use Emojis - Helper Functions

Using the included helper functions to explore/access emojis.

List names

  1. ;; names of categories
  2. (em/names)
  3. ;; names of emojis from the dudes category
  4. (em/names :dudes)

Describe categories

  1. ;; describe all categories
  2. (em/describe)
  3. ;; describe specific category
  4. (em/describe :dudes)

Show emojis

  1. ;; show first emoji that matches the keyword (from all categories)
  2. (em/show :tableflip1)
  3. ;; show the emoji from the specific category
  4. (em/show :tableflip1 :dudes)

Show all emojis

  1. ;; show the entire emoji map
  2. (em/show-all)
  3. ;; show all of the emojis from the category
  4. (em/show-all :dudes)

Search Emojis

  1. ;; search the entire emoji map for the emoji name
  2. (em/search "table")
  3. ;; search the specific category for the emoji name
  4. (em/search "table" :dudes)

License

Copyright © 2020 Bill Howe

This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License, v. 2.0 are satisfied: GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or (at your
option) any later version, with the GNU Classpath Exception which is available
at https://www.gnu.org/software/classpath/license.html.


ASCII Data

Some ASCII emojis obtained from: http://asciimoji.com

The license for that project is:

“THE BEER-WARE LICENSE” (Revision 42):

Volker Wieban thesquidpeople@gmail.com wrote this file.

As long as you retain this notice you can do whatever you want
with this stuff. If we meet some day, and you think this stuff is worth it,
you can buy me a beer in return.