Sunday, 30 July 2017

shortcuts

1. shift + end or shift + cmd + right arrow (select till the end of line) 

2. ctrl+shift+n (chrome change to incognito mode)

3. install EditThisCookie plugin in chrome to remove cookies

4. chrome dev tools
  • search file file: ctrl + p
  • search code: ctrl + shif + f
5. eclipse
  • ctrl+shift+r (find resources)
  • ctrl+l (goto line)
6. schtasks
  • SchTasks /Create /SC DAILY /TN MyTask /TR "\"D:\CM Data Creation - Final\GeneratePNR3_SITA.exe\"" /ST 23:35
  • SchTasks /Create /SC DAILY /TN MyTask /TR D:\GeneratePNR\GeneratePNR3.exe /ST 03:30
  • schtasks.exe /query /tn MyTask /v /fo list
7. rdp
  • query session                                     //run as admin user
  • tscon 2 /dest:console
8. vs code
  • alt+left                          - go back
  • ctrl+k plus ctrl+f          - format 
  • ctrl+p                            - find file
  • ctrl+shift+\                   - find closing bracket
  • shift+option+f              - auto format

9. lICEcap
  • animated screen capture

10. chrome plugin
  • browserstack
  • editthiscookie
  • fullpagescreencapture
  • json formatter
  • launch and DTM switch/adobe experience cloud debugger
  • postman interceptor
  • WAVE evaluation tool
  • JWT debugger
  • resource override
  • live http header

11. chrome
  • remove all cookies: command + shift + delete 

12. win10
  • pin folder to quick access

reference

Wednesday, 5 July 2017

angularjs

1. ng-app
  • define the root element of the angularjs application in html

2.  angular.module
  • define the angularjs application in javascript

3. $scope
  • the model in MVC pattern (html being the view, controller being the control) 

4. data binding
  • ng-model="firstname"
  • {{firstname}}
  •  ng-model="firstname" (two way binding)

5. filter
  • a normal filter '|' transform data
  • a 'filter' filter select a subset of array

6. service
  • a singleton object that provide utility
  • example: $scope, $filter


reference