<commit_before>learning_javascript
===================

[![Build Status](https://travis-ci.org/denvercodeclub/learning_javascript.png?branch=master)](https://travis-ci.org/denvercodeclub/learning_javascript)

#### What is this?

__Short Answer:__  Learn javascript by proving concepts with tests. :)

__Longer Answer:__ This is a compilation of Javascript "code snippets" as I work through resources to master Javascript. Each resource (book/guide/tutorial/etc) has it's own folder with [Jasmine](http://pivotal.github.io/jasmine/) tests proving how the concepts apply in a semi real world context.

<br>

#### Resources
- [code](tree/master/resources/professional_javascript-zakas)   -    [Professional Javascript for Web Developers](http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691) by <NAME>
- [code](/tree/master/resources/javascript_patterns-stefanov)   -    [Javascript Patterns](http://www.amazon.com/JavaScript-Patterns-Stoyan-Stefanov/dp/0596806752) by <NAME>
- [code](/tree/master/resources/javascript_patterns-osmani)     -    [Javascript Patterns](http://addyosmani.com/resources/essentialjsdesignpatterns/book/) by <NAME>i

<br>


#### How to install and use

##### Option 1 - Run tests in browswer
Download the project ([click here](https://github.com/denvercodeclub/learning_javascript/archive/master.zip)). Open the zip file, and find the  `learning_javascript/resources/professional_javascript-zakas/SpecRunner.html`  file, and double click on it. This runs the tests in your browser. Yay!! You're up and running.  

##### Option 2 - Run tests via NodeJS

1. Install node,  
    - Mac, `brew install nodejs` or [node downloads page](http://nodejs.org/download/)  
    - Linux, `sudo apt-get install node`  
    - Windows, [node downloads page](http://nodejs.org/download/)  

2. Install git,  
    - Mac, `brew install git` or [git downloads page](http://git-scm.com/downloads)  
    - Linux, `sudo apt-get install git`  
    - Windows, [git downloads page](http://git-scm.com/downloads)  

3. Shell Commands

```sh
git clone https://github.com/denvercodeclub/learning_javascript.git<commit_msg>change relative URLs to work with GH<commit_after>learning_javascript
===================

[![Build Status](https://travis-ci.org/denvercodeclub/learning_javascript.png?branch=master)](https://travis-ci.org/denvercodeclub/learning_javascript)

#### What is this?

__Short Answer:__  Learn javascript by proving concepts with tests. :)

__Longer Answer:__ This is a compilation of Javascript "code snippets" as I work through resources to master Javascript. Each resource (book/guide/tutorial/etc) has it's own folder with [Jasmine](http://pivotal.github.io/jasmine/) tests proving how the concepts apply in a semi real world context.

<br>

#### Resources
- [code](/resources/professional_javascript-zakas)  -    [Professional Javascript for Web Developers](http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691) by <NAME>
- [code](/resources/javascript_patterns-stefanov)   -    [Javascript Patterns](http://www.amazon.com/JavaScript-Patterns-Stoyan-Stefanov/dp/0596806752) by <NAME>
- [code](/resources/javascript_patterns-osmani)     -    [Javascript Patterns](http://addyosmani.com/resources/essentialjsdesignpatterns/book/) by <NAME>

<br>


#### How to install and use

##### Option 1 - Run tests in browswer
Download the project ([click here](https://github.com/denvercodeclub/learning_javascript/archive/master.zip)). Open the zip file, and find the  `learning_javascript/resources/professional_javascript-zakas/SpecRunner.html`  file, and double click on it. This runs the tests in your browser. Yay!! You're up and running.  

##### Option 2 - Run tests via NodeJS

1. Install node,  
    - Mac, `brew install nodejs` or [node downloads page](http://nodejs.org/download/)  
    - Linux, `sudo apt-get install node`  
    - Windows, [node downloads page](http://nodejs.org/download/)  

2. Install git,  
    - Mac, `brew install git` or [git downloads page](http://git-scm.com/downloads)  
    - Linux, `sudo apt-get install git`  
    - Windows, [git downloads page](http://git-scm.com/downloads)  

3. Shell Commands

```sh
git clone https://github.com/denvercodeclub/learning_javascript.git
{'fraction_non_alphanumeric': 0.13515406162464985, 'fraction_numerical': 0.011671335200746966, 'mean_word_length': 4.403530895334174, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6138950', 'n_tokens_mistral': 1409, 'n_tokens_neox': 1286, 'n_words': 345}