Functional composition with compose and pipe in lodash/fp

Loading

Reading Time: 3 minutesWhat is functional composition? Functional composition is the technique of composing multiple functions into a complex function. In Mathematic definition, f(x) and g(x) are functions and h(x) is the composed function of f and g. Functional composition is an efficient technique in processing list data and it is preferred over calling chained array methods to … Read more

Use Karma, Mocha, Chai and Coverage to run headless unit tests and generate lcov code coverage

Loading

Reading Time: 3 minutesGithub: https://github.com/railsstudent/image-gallery-native-js 1) Install gulp, mocha, chai, puppeteer, http-server as dev-dependencies yarn add gulp mocha chai puppeteer http-server -D 2) Install all karma dependencies as dev-dependencies. yarn add karma karma-chai karma-mocha karma-chrome-launcher mocha chai -D 3) Create test/bootstrap.karma.js file to share global variables among unit test cases. ‘use strict’; const expect = chai.expect; const assert … Read more

Automate UI testing with Mocha and Puppeteer (Updated)

Loading

Reading Time: 2 minutesGithub: https://github.com/railsstudent/image-gallery-native-js 1) yarn add puppeteer mocha chai yarn add puppeteer mocha chai 2) Create bootstrap.js file to share global variables among tests. Expose chai.expect, chai.assert and an instance of browser ‘use strict’; const puppeteer = require(‘puppeteer’); const chai = require(‘chai’); const expect = chai.expect; const globalVariables = { browser: global.browser, expect: global.expect }; // … Read more

Articles I want to read

Loading

Reading Time: < 1 minuteTensorflow https://towardsdatascience.com/how-to-build-a-gesture-controlled-web-based-game-using-tensorflow-object-detection-api-587fb7e0f907 Ngrx https://medium.com/@bo.vandersteene/advanced-pagination-with-ngrx-store-and-angular-5-f26ca4761cef https://medium.com/@vlado.tesanovic/handling-keyboard-shortcuts-in-angular-with-redux-ngrx-c88907f17ca8 Angular https://blog.angularindepth.com/angular-ivy-change-detection-execution-are-you-prepared-ab68d4231f2c https://medium.com/frontend-coach/self-or-optional-host-the-visual-guide-to-angular-di-decorators-73fbbb5c8658 https://medium.com/@davidibl/advanced-reusable-custom-angular-validator-9ca5febef583 https://malcoded.com/posts/web-assembly-angular?utm_source=mybridge&utm_medium=blog&utm_campaign=read_more JS Using trampolines to manage large recursive loops in JavaScript React Native https://medium.freecodecamp.org/after-building-my-first-react-native-app-im-now-convinced-it-s-the-future-d3c5e74f8fa8

Codewars challenges

Loading

Reading Time: < 1 minuteCompleted Golang: Equable-triange Even or Odd Product of consecutive fib numbers JAvaScript: Battleships sunk, damaged or not touched Burrows Wheeler Transformation Huffman Encoding Reverse it quickly

Week of August 23 to August 31, 2014

Loading

Reading Time: < 1 minuteCoursera: 1) Programming Cloud Services for Android Handheld Systems: Submitted Quiz 6 and Assignment 2 in the past Sunday. The new assignment looked challenging at first after reading the README file and going through the source codes. Fortunately, code examples provided oAuth2 package that could directly use in the Gradle project. Furthermore, no effort to … Read more

Week of August 11 to August 22, 2014

Loading

Reading Time: < 1 minuteCoursera: 1) Reproducible Research: Enroll Signature Track to earn my third Verified Certificate in Data Science Specialization. 2) Pattern-Oriented Software Architectures: Programming Mobile Services for Android Handheld Systems: Earn my second Verified Certificate in Mobile Cloud Computing with Android Specialization. 3) Advanced Competitive Strategy: Completed all 7 quizzes and open book final examination. 4) Programming … Read more

Week of May 19 to May 31, 2014

Loading

Reading Time: < 1 minuteCoursera: 1) Getting and Cleaning Data: Submitted Quiz 3 (15/15), Quiz 4 (15/15) and final course project. 2) Exploratory Data Analysis: Submitted Quiz 2 and Course Project 2. 3) Pattern-Oriented Software Architectures: Programming Mobile Services for Android Handheld Systems: Completed Quiz 1 to 3 and assignment 1 to 4. Unfortunately, wrong version of assignment 1 … Read more

Week of May 5, 2014 to May 11, 2014

Loading

Reading Time: < 1 minuteCoursera: 1) R Programming: Statement of Accomplishment with Distinction issued on May 9, 2014. 2) Getting and Cleaning Data: Watched week 1 and 2 video lectures. Submitted Quiz 1 (12/15) and Quiz 2 (15/15). 3) Exploratory Data Analysis: Watched week 1 video lectures. Submitted Quiz 1 (15/15) and Course Project 1. Programming: 4) Developing my … Read more