Coder Social home page Coder Social logo

emoji-cli's Introduction

emoji-cli Build Status

Saw @zzak & @hone's talk at #rubykaigi 2015, now playing with hone/mruby-cli. Don't mind me.

installation, for macs only (at your own risk! โš ๏ธ)

Head to releases, download the ZIP, extract it, and place it in your $PATH.

what does this do?

image

$ emoji-cli flowers --random
Copied ๐ŸŒบ !

$ emoji-cli flowers --random
Copied ๐ŸŒน !

$ emoji-cli fruit --random
Copied ๐Ÿ !

$ emoji-cli fruit --random
Copied ๐Ÿ’ !

$ emoji-cli halloween
1. ๐Ÿ‘ป
2. ๐Ÿ‘น
3. ๐ŸŽƒ
4. ๐Ÿฎ
Choose [1~4] 3
Copied ๐ŸŽƒ !

$ emoji-cli noodle -r
Copied ๐Ÿœ !

todo

  • cross platform
  • fix the tests
  • pagination?!

development

Need mruby and docker toolbox.

# edit mrblib/emoji-cli.rb
# compile
$ docker-composer run compile
# try
$ ./mruby/build/i386-apple-darwin14/bin/emoji-cli poop

emoji-cli's People

Contributors

audreyt avatar muan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

emoji-cli's Issues

Make tests work in docker

This is what I've got so far: https://github.com/muan/emoji-cli/compare/tests, and here's what I want to do:

  1. $ docker-compose run bintest
  2. Dockerfile-test installs xclip, sets up Xvfb so I have a display for xclip.
  3. Test calls emoji-cli poop and script copies ๐Ÿ’ฉ to the clipboard.<< Not working
  4. Verify CLI output matches & clipboard content (xclip -o) matches

My futile attempts led me here opening an issue wishing I can source help from people who are more experienced in Docker than myself while documenting this of my own sanity. (my experience with docker dates back to the day I started this project. ๐Ÿ˜‚)

I have tried many many things including CMD in docker compose file w/ bash -c, shelling the Xvfb command from the bintest rake task, and using xvfb-run -a xclip1 which led me me to more errors which I then failed to solve... ๐Ÿ™‡

When running these in docker-compose run shell the command just hangs and errors out with XSELINUXs still allocated at reset:

$ Xvfb :1 &
$ ./mruby/build/x86_64-pc-linux-gnu/bin/emoji-cli poop
# while this totes works right after
$ echo 'hello' | xclip -i
$ xclip -o
hello

Ugh. I think I just need to stop now and reconvene in the future.

a cat having no idea what it's doing


XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":99"
      after 10 requests (7 known processed) with 0 events remaining.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.