Coder Social home page Coder Social logo

ch's Introduction

CH

Bash utility for viewing, managing, and creating cheat sheets for developers and designers via git repositories. Cheat sheets are currently stored on Github fork and contribute!

Why Another?

Cheat was a great idea, however 'ch' aims to increase the quality of cheat sheets, as well as making them easy to find by keeping things nice and organized. View the Repo to see for your self, only quality cheat sheets are allowed, and are required to be named by topic to increase searchability.

Features

  • Very fast
  • High quality, well organized, moderated cheat sheets
  • Few dependencies (unless your lame you will have them (sed, git, etc)
  • Tons of cheat sheets!

Installation

$ sudo make install
$ sudo make uninstall

Or if you do not wish to clone this repo:

$ cd /tmp && git clone git://github.com/visionmedia/ch.git && cd ch && sudo make install

ch ch

Output verbose help information for 'ch' :)

ch [sheet]

Outputs contents of the first sheet matching [sheet]

ch locate [sheet]

Outputs the path(s) to [sheet] or all sheets

$ ch locate ruby
/Users/tjholowaychuk/.ch-sheets/jedit_ruby_editor_plugin.sheet
/Users/tjholowaychuk/.ch-sheets/radrails_ruby.sheet
/Users/tjholowaychuk/.ch-sheets/ruby.$.sheet
/Users/tjholowaychuk/.ch-sheets/ruby.keywords.sheet
/Users/tjholowaychuk/.ch-sheets/ruby.mode_strings.sheet
/Users/tjholowaychuk/.ch-sheets/ruby.sheet
/Users/tjholowaychuk/.ch-sheets/ruby1line.sheet
/Users/tjholowaychuk/.ch-sheets/rubydebug.sheet
/Users/tjholowaychuk/.ch-sheets/rubyio.sheet
/Users/tjholowaychuk/.ch-sheets/rubyprof.sheet
/Users/tjholowaychuk/.ch-sheets/textmate_ruby.sheet

ch [search|find|list] [sheet]

Outputs a list of sheets matching [sheet] or all sheets

$ ch find ruby
radrails_ruby
ruby.$
ruby.keywords
ruby.mode_strings
ruby
ruby1line
rubydebug
rubyio
rubyprof
textmate_ruby

$ ch list
... shows everything

ch read <sheet>

Read the exact <sheet> given. No globbing allowed here! This is useful when it is difficult to target the correct sheet due to short names. For example 'e' requires that you:

$ ch read e

ch edit [sheet]

Opens sheets matching [sheet] or all sheets in $EDITOR

ch update

Updates the cheat sheet repository to grab the latest changes.

ch help

  • Outputs the help information

Viewing Sheet Specifics

Sometimes you want to quickly search for a specific chunk of the cheat sheet for example a specific css property, or selector. This can be done easily using grep

$ ch css | grep :empty
E:empty                an E element, with no children (including text nodes)

License

(The MIT License)

Copyright (c) 2009 TJ Holowaychuk <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, an d/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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.