Immutable types in JS are:
- string
- number
- boolean
- null
- undefined
Mutable types are:
- functions
- objects
- arrays
Immutable types in JS are:
Mutable types are:
While being a newbie to react world, i’ll try to post some of the things I’ve learned with React Router DOM V4. This post will mainly cover how to pass shared data between two siblings.
More to come, Watch out..
The word Machine Learning itself sounds very exciting and every single day its usage is only getting bigger and bigger..
The closest definition of ML I’ve come across is as below..
A Computer Program is said to learn from Experience E, with respect to some class of Task T and a Performance Measure M… If its Performance at the tasks in T, as measured by M improves with Experience E
ML lets us find patterns in existing data, with the help of which a model is created. Now this model will be used to do predictive analysis or learning by recognizing patterns in the new data.
Some technical Jargons:
Algorithms
To be Continued..
TF is a low level library which provides an interface for
TF is
All data in TF are termed as Tensors, representing an n-dimensional array. These Tensors flow between different operations to produce the output and hence the name – TensorFlow
Tensor Types:
Training a Model with TF..
Cheers to Chaining Design Pattern – A must know for developers..
Here is a self explanatory example..



While working on MongoDB, I accidentally ran a find() count query incorrectly which resulted in something interesting.
While I wanted to execute db.team.find().count(), I ended up hitting enter key a bit too sooner and resultant query in the mongo shell was db.team.find().count [yeah, without the ()]
While I was expecting an error, the shell actually responded with the function definition of count() method and it goes as below..

So, above is what exactly happens when we call find().count() in the shell.
So with this, you can start looking into the design and implementation of shell functions and understand the login underneath.
Interpreting the query definition ourselves, we can get the count of collection as below as well.
Below picture depicts the same.
Well, Now thats fun..
Also, Here is how the find() method definition looks like..
One final thought before ending this blog post, will MongoDB allow us to extend the functionality of these methods? For Ex, can i create my own custom Count method using or my own shell function ? At this moment i’m not sure..
Calling all #Mongo experts to answer 🙂
The important responsibilities of directives are
AngularJS provides a set of build in directives like ng-bind, ng-class etc.
Custom Directives can also be written quite easily. We can either use
Directives in your View/HTML can be written as:
(E, A C or M are restriction types)
Note : Angular normalizes an element’s name or tag to map elements and directives. More details can be found here.
Custom Directive Code Snippet:
| var myapp = angular.module('myangapp', [ ]); | |
| // Sample Angular Custom Directive using Template | |
| myapp.directive("myAngDirectiveTemplate", function() { | |
| return { | |
| restrict: "E", // Element Name Only | |
| replace: true, | |
| template: "<div> Hi from Template </div>" | |
| } | |
| }); | |
| // Sample Angular Custom Directive using Link Functions. | |
| myapp.directive("myAngDirectiveLink", function() { | |
| return { | |
| restrict: "E", | |
| replace: true, | |
| link: function($scope){ // Sample Link Function | |
| $scope.title="Second Directive"; | |
| } | |
| } | |
| }); | |
| // Having a second directives of the same Name. Which one will Angular Pick ? | |
| myapp.directive("myAngDirectiveLink", function() { | |
| return { | |
| restrict: "E", | |
| replace: true, | |
| // Implementation as a Link Function | |
| link: function($scope){ | |
| $scope.title="Second Directive"; | |
| } | |
| // Implementation as a Controller | |
| // controller: function($scope){ | |
| // $scope.title="Second Directive,,"; | |
| // } | |
| // use either the Link Function or Controller | |
| } | |
| }); | |
| // Register the Controller with the app | |
| myapp.controller('myangcontroller', function($scope){ | |
| $scope.message = ""; // Currently not in use. | |
| }); | |
| // Sample HTML below | |
| // <html> | |
| // <body> | |
| //<html ng-app="myangapp"> | |
| //<head> | |
| // refer the Angular Scripts | |
| //</head> | |
| //<body ng-controller="myangcontroller"> | |
| //<my-ang-directive></my-ang-directive> | |
| //<br /><br /> | |
| //<my-ang-directive-link> {{ title }} </my-ang-directive-link> | |
| //</body> | |
| //</html> |
Few important points to note here:
My next post will talk more about
Post#1
MEAN and How..
MEAN is one of the leading full stack java script application development stack which is currently widely used across industry to build large scale DIRTy [Data Intensive Real Time ] applications.
Of course we’ve had LAMP, WAMP and other full stack frameworks during the yester decades. However, MEAN beats them all in many ways and importantly it is Platform independent. Your Code will work on Linux, windows and heck even mac.
The essence of MEAN is Java script and i’ll continue to blog about a few things here for the betterment of the world 😛