Code Monkey home page Code Monkey logo

vj's People

Contributors

m-o-e 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

Watchers

 avatar  avatar  avatar

vj's Issues

How to use

I'm trying to find a good example of how to use this. For example, if you have this file:

{
  "colors": [
    {
      "color": "black",
      "category": "hue",
      "type": "primary",
      "code": {
        "rgba": [255,255,255,1],
        "hex": "#000"
      }
    },
    {
      "color": "white",
      "category": "value",
      "code": {
        "rgba": [0,0,0,1],
        "hex": "#FFF"
      }
    },
    {
      "color": "red",
      "category": "hue",
      "type": "primary",
      "code": {
        "rgba": [255,0,0,1],
        "hex": "#FF0"
      }
    },
    {
      "color": "blue",
      "category": "hue",
      "type": "primary",
      "code": {
        "rgba": [0,0,255,1],
        "hex": "#00F"
      }
    },
    {
      "color": "yellow",
      "category": "hue",
      "type": "primary",
      "code": {
        "rgba": [255,255,0,1],
        "hex": "#FF0"
      }
    },
    {
      "color": "green",
      "category": "hue",
      "type": "secondary",
      "code": {
        "rgba": [0,255,0,1],
        "hex": "#0F0"
      }
    },
  ]
}

What could you do with vj?

Question: output formatting

Are there any plans to do any kind of output formatting? I tried to do something like columns, but I can't zero in on the text with multiple spaces.

 curl -s 'https://www.omdbapi.com/?s=ready&apikey=<>' | jq  '.Search[]' -rc | vj -c Year -p title -s Poster
 2018  Title Ready Player One  Type movie  imdbID tt1677720
 1994  Title Ready to Wear  Type movie  imdbID tt0110907
 2000  Title Ready to Rumble  Type movie  imdbID tt0217756
 2011  Title Ready  Type movie  imdbID tt1708532
 1993โ€“1997  Title Ready or Not  Type series  imdbID tt0106110
 2000  Title Get Ready to Be Boyzvoiced  Type movie  imdbID tt0248036
 2015  Title I'm Not Ready for Christmas  Type movie  imdbID tt5182120
 2003  Title Ready, Steady, Charlie!  Type movie  imdbID tt0353161
 2008  Title Ready  Type movie  imdbID tt1156516
 2009  Title Ready or Not  Type movie  imdbID tt0892094

In this case, the title has variable levels of spaces so column -t just sends the whole thing in disarray. I don't know Ruby, else I'd take a shot at it.

Thanks for writing this exceptionally useful tool!

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.