An open API service indexing awesome lists of open source software.

https://github.com/igorlima/frequence-in-coffee

A sample function which has a string as parameter and return a hashtable containing each character as key and the frequence of each character as a value.
https://github.com/igorlima/frequence-in-coffee

Last synced: 3 months ago
JSON representation

A sample function which has a string as parameter and return a hashtable containing each character as key and the frequence of each character as a value.

Awesome Lists containing this project

README

        


Travis CI badge

#Frequence in Coffee Script

A sample function which has a string as parameter and return a hashtable containing each character as **key** and the frequence of each character as a **value**.

## Compiling

It uses [Grunt](http://gruntjs.com/) with convenient methods for compiling the code, running tests, and more. To use it, install the required dependencies as directed and then run some Grunt commands.

### Install Grunt

From the command line:

1. Install `grunt-cli` globally with `npm install -g grunt-cli`.
2. Install the [necessary local dependencies](package.json) via `npm install`

When completed, you'll be able to run the various Grunt commands provided from the command line.

**Unfamiliar with `npm`? Don't have node installed?** That's a-okay. npm stands for [node packaged modules](http://npmjs.org/) and is a way to manage development dependencies through node.js. [Download and install node.js](http://nodejs.org/download/) before proceeding.

### Available Grunt commands

#### Build - `grunt`
Run `grunt` to run tests locally and compile the coffee script files.

#### Tests - `npm test`
Runs [Jasmine](http://jasmine.github.io/) tests headlessly in [PhantomJS](http://phantomjs.org/) (used for CI).

#### Watch - `grunt watch`
This is a convenience method for watching coffee script files and automatically building them whenever you save.

### Troubleshooting dependencies

Should you encounter problems with installing dependencies or running Grunt commands, uninstall all previous dependency versions (global and local). Then, rerun `npm install`.