W31Y16 – Twitter REST API, Speech recognition for your web app, Angular DOM loaded and nice web switch animation

Twitter REST API

One of the REST API that I very like simply because it’s well explained, with samples, etc. The official Twitter REST API. If you would like to use it on a web project using NodeJS, there’s the plugin you need, twit.

Before using the Twitter API, you need to follow some instructions for the app creation but it’s pretty simple… Here, I found a good tutorial or on the official documentation.

An example of use if you want to make a search about the word “android”

var Twit = require('twit');

var T = new Twit({
  consumer_key:         '...',
  consumer_secret:      '...',
  access_token:         '...',
  access_token_secret:  '...',
  timeout_ms:           60*1000,  // optional HTTP request timeout to apply to all requests.
});

T.get('search/tweets', { q: 'android', count: 100 }, function(err, data, response) {
  console.log(data);
});

Speech recognition

If you want to make your web app more interactive, just add the annyang library to your project! It allows you to call your actions with the voice instead of clicking buttons. For exmaple, if you have to control. Just test to the online demo. Import the lib and add your own commands is pretty simple… just take a look.

Import the lib

<script src="//cdnjs.cloudflare.com/ajax/libs/annyang/2.4.0/annyang.min.js"></script>

Implement your own commands

var commands = {
  'go to google': function() {
    redirect('http://google.com');
  }
};
annyang.addCommands(commands);
annyang.start();

You have some additional options like debug or language settings who could be very useful to see what is really captured and be more precise.

annyang.debug();
annyang.setLanguage('en');

Angular, DOM loaded ?

For some reasons, you need to know when your DOM is loaded to start actions, right? The easiest solution to do this with Angular is to add the code below in the controller of your view. As you can see, the controller will print in the console and the loader will be hidden.

// Execute after DOM loaded
angular.element(document).ready(function () {
    console.log('loading finished');
    $('#loading').hide();
});

Design of the week

I love this animation designed by Oleg Frolov. It would be nice to implement this to switch a night/light mode for an interface for example… The source code is available here, let me some minutes to add it in my own project! 🙂

enable

And now, holidays:

  • Translate My Sheet update
  • DIY projects.

912 Comments W31Y16 – Twitter REST API, Speech recognition for your web app, Angular DOM loaded and nice web switch animation

  1. Forrest

    Howdy! I know this is somewhat off topic but I was wondering
    if you knew where I could locate a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m having problems finding
    one? Thanks a lot!

    Reply
  2. xe88sg.com

    You actually make it appear really easy along with your presentation however I find this topic
    to be actually something which I think I would never understand.
    It kind of feels too complex and extremely vast for
    me. I am looking ahead on your subsequent publish, I’ll try to get the grasp of it!

    Have a look at my web blog: demo aaa1188 (xe88sg.com)

    Reply
  3. Daniela

    Hello there! This is my first comment here so I just wanted to
    give a quick shout out and say I genuinely enjoy reading through
    your posts. Can you suggest any other blogs/websites/forums that
    cover the same subjects? Thanks a ton!

    Reply
  4. Kendall

    Hello my friend! I wiosh to say that this article is amazing, nice written and include approximately all important infos.
    I would like to see mmore posts like this.

    Reply
  5. Speedpaste

    828331 787194An intriguing discussion is worth comment. I think that you should write far more on this topic, it may not be a taboo subject but usually men and women are not enough to speak on such topics. To the next. Cheers 848721

    Reply
  6. Melvina

    I am really enjoying the theme/design of your site.
    Do you ever run into any internet browser compatibility problems?
    A few of my blog readers have complained about my site not working correctly in Explorer but looks great in Firefox.
    Do you have any recommendations to help fix this problem?

    Reply
  7. kebe.top

    Whats up very nice blog!! Man .. Beautiful ..
    Superb .. I will bookmark your blog and take the feeds
    also? I’m glad to seek out numerous helpful info
    right here within the post, we want develop more strategies on this regard, thanks for sharing.

    . . . . .

    Feel free to surf to my website … Bellissi Ageless Moisturizer Reviews (kebe.top)

    Reply
  8. sablon tali id card satuan

    І’m realⅼy inspired along with your writing abiliities
    aas welll ɑs with tһe layout on your blog. Is this a paid ѕubjеct or diid you customie it yourself?
    Ꭺnywɑy keep up tthe excellent ԛuality writing, it iѕ
    uncommon to peer a nice weblog like this one nowadays..

    Reply
  9. 먹튀검증

    956346 580A extremely informationrmative post and lots of actually honest and forthright comments produced! This undoubtedly got me thinking a whole lot about this concern so cheers a good deal for dropping! 251609

    Reply
  10. Kandis

    Thank you, I have recently been looking for info about this topic for a long time and
    yours is the best I have came upon so far. But, what in regards to the bottom line?

    Are you sure in regards to the supply?

    Reply
  11. KOOP ID-KAART VAN DENEMARKEN ONLINE

    839155 538273We offer you with a table of all the emoticons that can be used on this application, and the meaning of each symbol. Though it may well take some initial effort on your part, the skills garnered from regular and strategic use of social media will create a strong foundation to grow your business on ALL levels. 904106

    Reply
  12. Rhino Spark Review

    Great – I should definitely pronounce, impressed with your site.
    I had no trouble navigating through all the tabs as well
    as related info ended up being truly easy to do to access.
    I recently found what I hoped for before you know it in the least.
    Reasonably unusual. Is likely to appreciate it for those who
    add forums or something, site theme . a tones way for your client
    to communicate. Excellent task.

    Here is my webpage Rhino Spark Review

    Reply
  13. 비닉스

    Very nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed surfing around your blog posts. In any case I will be subscribing to your rss feed and I hope you write again soon!

    Reply
  14. 스포츠무료중계

    We are a gaggle of volunteers and opening a new scheme in our community. Your web site provided us with useful info to work on. You have performed a formidable job and our whole group might be grateful to you.

    Reply
  15. 해외축구중계

    We are a group of volunteers and starting a new scheme in our community. Your site provided us with valuable info to work on. You’ve done a formidable job and our whole community will be thankful to you.

    Reply
  16. 해외축구중계

    We are a group of volunteers and starting a new scheme in our community. Your site provided us with valuable info to work on. You’ve done a formidable job and our whole community will be thankful to you.

    Reply
  17. 스포츠픽

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you.

    Reply
  18. 프리미어중계

    We’re a group of volunteers and starting a new scheme in our community. Your site offered us with valuable info to work on. You have done a formidable job and our whole community will be thankful to you.

    Reply
  19. 스포츠픽

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you.

    Reply
  20. 스포츠픽

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you.

    Reply
  21. 실시간스포츠중계

    We are a group of volunteers and starting a new scheme in our community. Your website provided us with valuable information to work on. You’ve done a formidable job and our entire community will be thankful to you.

    Reply
  22. 실시간스포츠중계

    We are a group of volunteers and starting a new scheme in our community. Your website provided us with valuable information to work on. You’ve done a formidable job and our entire community will be thankful to you.

    Reply
  23. 스포츠무료중계

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You’ve done a formidable job and our whole community will be grateful to you.

    Reply
  24. 스포츠무료중계

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You’ve done a formidable job and our whole community will be grateful to you.

    Reply
  25. 스포츠픽

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you.

    Reply
  26. 스포츠무료중계

    We are a gaggle of volunteers and opening a new scheme in our community. Your web site provided us with useful info to work on. You have performed a formidable job and our whole group might be grateful to you.

    Reply
  27. 구찌짝퉁

    We’re a group of volunteers and opening a new scheme in our community. Your website provided us with valuable info to work on. You have done a formidable job and our entire community will be thankful to you.

    Reply
  28. 스포츠픽

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you.

    Reply
  29. 구찌짝퉁

    We’re a group of volunteers and opening a new scheme in our community. Your website provided us with valuable info to work on. You have done a formidable job and our entire community will be thankful to you.

    Reply
  30. 스포츠무료중계

    We are a gaggle of volunteers and opening a new scheme in our community. Your web site provided us with useful info to work on. You have performed a formidable job and our whole group might be grateful to you.

    Reply
  31. 실시간스포츠중계

    We are a group of volunteers and starting a new scheme in our community. Your website provided us with valuable information to work on. You’ve done a formidable job and our entire community will be thankful to you.

    Reply
  32. 스포츠무료중계

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You’ve done a formidable job and our whole community will be grateful to you.

    Reply
  33. 해외축구중계

    We are a group of volunteers and starting a new scheme in our community. Your site provided us with valuable info to work on. You’ve done a formidable job and our whole community will be thankful to you.

    Reply
  34. 스포츠무료중계

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You’ve done a formidable job and our whole community will be grateful to you.

    Reply
  35. 스포츠픽

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you.

    Reply
  36. 실시간스포츠중계

    We are a group of volunteers and starting a new scheme in our community. Your website provided us with valuable information to work on. You’ve done a formidable job and our entire community will be thankful to you.

    Reply
  37. 해외축구중계

    We are a group of volunteers and starting a new scheme in our community. Your site provided us with valuable info to work on. You’ve done a formidable job and our whole community will be thankful to you.

    Reply
  38. 스포츠무료중계

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You’ve done a formidable job and our whole community will be grateful to you.

    Reply
  39. 스포츠무료중계

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You’ve done a formidable job and our whole community will be grateful to you.

    Reply
  40. 스포츠픽

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you.

    Reply
  41. 스포츠무료중계

    We are a gaggle of volunteers and opening a new scheme in our community. Your web site provided us with useful info to work on. You have performed a formidable job and our whole group might be grateful to you.

    Reply
  42. 스포츠픽

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you.

    Reply
  43. 스포츠무료중계

    We are a gaggle of volunteers and opening a new scheme in our community. Your web site provided us with useful info to work on. You have performed a formidable job and our whole group might be grateful to you.

    Reply
  44. 스포츠무료중계

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You’ve done a formidable job and our whole community will be grateful to you.

    Reply
  45. 세리에A중계

    We’re a group of volunteers and starting a new scheme in our community. Your site provided us with useful info to work on. You have done a formidable job and our entire neighborhood might be grateful to you.

    Reply
  46. 프라다짝퉁

    We’re a gaggle of volunteers and starting a brand new scheme in our community. Your site offered us with helpful info to paintings on. You have done a formidable job and our entire community will be grateful to you.

    Reply
  47. 스포츠무료중계

    We are a gaggle of volunteers and opening a new scheme in our community. Your web site provided us with useful info to work on. You have performed a formidable job and our whole group might be grateful to you.

    Reply
  48. 스포츠픽

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you.

    Reply
  49. 스포츠픽

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you.

    Reply
  50. 스포츠무료중계

    We are a gaggle of volunteers and opening a new scheme in our community. Your web site provided us with useful info to work on. You have performed a formidable job and our whole group might be grateful to you.

    Reply
  51. 스포츠무료중계

    We are a gaggle of volunteers and opening a new scheme in our community. Your web site provided us with useful info to work on. You have performed a formidable job and our whole group might be grateful to you.

    Reply
  52. 프리미어중계

    We’re a group of volunteers and starting a new scheme in our community. Your site offered us with valuable info to work on. You have done a formidable job and our whole community will be thankful to you.

    Reply
  53. 스포츠무료중계

    We are a gaggle of volunteers and opening a new scheme in our community. Your web site provided us with useful info to work on. You have performed a formidable job and our whole group might be grateful to you.

    Reply
  54. 프리미어중계

    We’re a group of volunteers and starting a new scheme in our community. Your site offered us with valuable info to work on. You have done a formidable job and our whole community will be thankful to you.

    Reply
  55. 프리미어중계

    We’re a group of volunteers and starting a new scheme in our community. Your site offered us with valuable info to work on. You have done a formidable job and our whole community will be thankful to you.

    Reply
  56. 프리미어중계

    We’re a group of volunteers and starting a new scheme in our community. Your site offered us with valuable info to work on. You have done a formidable job and our whole community will be thankful to you.

    Reply
  57. 스포츠무료중계

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You’ve done a formidable job and our whole community will be grateful to you.

    Reply
  58. 구찌짝퉁

    We’re a group of volunteers and opening a new scheme in our community. Your website provided us with valuable info to work on. You have done a formidable job and our entire community will be thankful to you.

    Reply
  59. 스포츠픽

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you.

    Reply
  60. 스포츠무료중계

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You’ve done a formidable job and our whole community will be grateful to you.

    Reply
  61. 스포츠무료중계

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You’ve done a formidable job and our whole community will be grateful to you.

    Reply
  62. 해외축구중계

    We are a group of volunteers and starting a new scheme in our community. Your site provided us with valuable info to work on. You’ve done a formidable job and our whole community will be thankful to you.

    Reply
  63. 해외축구중계

    We are a group of volunteers and starting a new scheme in our community. Your site provided us with valuable info to work on. You’ve done a formidable job and our whole community will be thankful to you.

    Reply
  64. 스포츠무료중계

    We are a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You’ve done a formidable job and our whole community will be grateful to you.

    Reply
  65. 세리에A중계

    We’re a group of volunteers and starting a new scheme in our community. Your site provided us with useful info to work on. You have done a formidable job and our entire neighborhood might be grateful to you.

    Reply
  66. 프라다짝퉁

    We’re a gaggle of volunteers and starting a brand new scheme in our community. Your site offered us with helpful info to paintings on. You have done a formidable job and our entire community will be grateful to you.

    Reply