<commit_before>---
layout: post
title: Day 37.
comments: true
---

{% highlight javascript %}

  $(document).ready(function(){
    $('#add_profile').on('submit', function(event){
        event.preventDefault();
        var username = $('#username').val();
        $.get('https://api.github.com/users/' + username, function(user){
            var newProfile = Mustache.render($('#profile-template').html(), user);
            $('.profile-container').append(newProfile);
        });
    });
});

{% endhighlight %}

Javascript and ![jQuery](http://en.wikipedia.org/wiki/JQuery) madness going on at Makers.
Today I actually posted here a chunk of code I have written, instead of the usual mocking one, since I am quite proud of it.

Alex showed us how to develop a dynamic content page which retrieves data from ![GitHub](https://github.com/) and shows it as a result of a search. This means that now our static HTML is powered by the combination of Javascript and jQuery (which is basically a library that has access to the HTML document and extends Javascript, allowing to retrieve, process and add content from and to the page itself).

In this case we have learned how to take an user's input (a GitHub username) and via ![API](http://en.wikipedia.org/wiki/Application_programming_interface) obtain data about that user (username, avater, followers, repos) and put that into the page in a nice and animated way.

Of course this new language is hard to  grasp. Of course programming in Ruby was like talking in Italian while JS looks a bit like English, in a way. But this is a time of challenges, so how bad can be another one? Plus this thing of being able to handle data from big applications and sites is fascinating.
<commit_msg>new post - day 37<commit_after>---
layout: post
title: Day 37.
comments: true
---

{% highlight javascript %}

  $(document).ready(function(){
    $('#add_profile').on('submit', function(event){
        event.preventDefault();
        var username = $('#username').val();
        $.get('https://api.github.com/users/' + username, function(user){
            var newProfile = Mustache.render($('#profile-template').html(), user);
            $('.profile-container').append(newProfile);
        });
    });
});

{% endhighlight %}

Javascript and [jQuery](http://en.wikipedia.org/wiki/JQuery) madness going on at Makers.
Today I actually posted here a chunk of code I have written, instead of the usual mocking one, since I am quite proud of it.

Alex showed us how to develop a dynamic content page which retrieves data from [GitHub](https://github.com/) and shows it as a result of a search. This means that now our static HTML is powered by the combination of Javascript and jQuery (which is basically a library that has access to the HTML document and extends Javascript, allowing to retrieve, process and add content from and to the page itself).

In this case we have learned how to take an user's input (a GitHub username) and via [API](http://en.wikipedia.org/wiki/Application_programming_interface) obtain data about that user (username, avater, followers, repos) and put that into the page in a nice and animated way.

Of course this new language is hard to  grasp. Of course programming in Ruby was like talking in Italian while JS looks a bit like English, in a way. But this is a time of challenges, so how bad can be another one? Plus this thing of being able to handle data from big applications and sites is fascinating.

{'fraction_non_alphanumeric': 0.09743441914096282, 'fraction_numerical': 0.0017296050735082155, 'mean_word_length': 3.806094182825485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6509875', 'n_tokens_mistral': 896, 'n_tokens_neox': 850, 'n_words': 453}