Typeahead : Setting up Remote-Datasets Remote DataSets

The setup is quite self-explanatory:-

 

References:

Typeahead Docs – Datasets : https://github.com/twitter/typeahead.js/blob/master/doc/jquery_typeahead.md#datasets

jQuery $.ajax() : https://api.jquery.com/jquery.ajax/

Stackoverflow: https://stackoverflow.com/questions/12621823/ajax-call-populate-typeahead-bootstrap/38300862#38300862

Fix Search Issue – Windows 10

Sometimes on trying the windows search, the results don’t come up and it shows as “fetching” indefinitely.  This can be quickly resolved by following the steps:-

  1. Open Task Manager
  2. Go to “Details” tab and look for “SearchUI.exe” under the “Name” column
  3. End this task by clicking on “End Task”.
  4. Now click on File >> Run New Task and type “searchUI.exe” and hit enter.
  5. The search should be working and you can test it out by pressing the “Windows” button and typing “mspaint” as search query and we should see the “msPaint App” in the results.

Good Luck.

Ref : http://www.whatibroke.com/2015/08/10/windows-10-search-not-working/

Change FullCalendar background color

1. Change day background color:

2.  Add box shadow to events

3. Style time and days:

4. Change calendar background color:

Ref:- http://www.whatibroke.com/2013/01/01/change-current-day-color-jquery-fullcalendar/

Creating an Object interface that accepts any property name.

If we want to a typescript definition for an Object that accepts any property value.  For example, the the $stateParams Object in AngularJS UI Router, we can work with the following declaration for the interface.

 

Interface for an Array of Objects

To create an Interface that is an array of object, we first create an interface of the Object and than extend it as an Array.

 

Ref : http://stackoverflow.com/a/25470775/4742733

HTML – Entities

[table caption=”HTML Entities”]

Result, Description, Entity Name,Entity Number
,non-breaking space, ,  
<,less than,&lt;,&#60;,

>,greater than,&gt;,&#62;
& ,&amp;,&#38;
¢,cent,&cent;,&#162;
£,pound,&pound;,&#163;
¥,yen,&yen;,&#165;
€,euro,&euro;,&#8364;
©,copyright,&copy;,&#169;
®,registered trademark,&reg;,&#174;

[/table]

Quick List: Bower Packages – AngularJS Dependencies

A quick list for frequently installed Bower dependencies and its respective dependency module name.

[table sort=”desc,asc”]

#,Bower Installation,Dependency Name

1,bower install –save angular-ui-router,ui.router

2,bower install –save angular-material,ngMaterial

3,bower install –save angular-animate,ngAnimate

4,bower install –save angular-messages,ngMessages

[/table]