Posts

Showing posts from July, 2018

Useful links

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-git-server-on-a-vps

TypeScrpt basics

+========= What is TypeScrpt ? ==========+ Typescript is not entirely new language , it 's a super set of JavaScript. that means any valid JS code is also valid typescript code . Additional feature : - -->      Strong Typing / static typing , -->      Object oriented features ( class , interfaces , constructors , access modified like public and private , fills , Properties , Generics and so on . ) -->      Compile time errors -->      great tooling ( i like Intelligence that we get in code editors ) -->      Typescript is a super set of JavaScript   Many Browser Transpile Our TS code , into JS . ++========= Use full Commands below ============++ ``` npm install -g typescript ( Install typescript Globally ) tsc -...

Contest menu angularjs height and width calc

menu . css ({ position: 'fixed' , top: 0 , left: 0 , transform: $interpolate ( 'translate({{x}}px, {{y}}px)' )({ x: scope . position . x , y: scope . position . y }) }); scope . menu = menu ; scope . menu . bind ( 'click' , closeMenu ); $timeout ( function () { scope . menuHeight = menu . height (); scope . menuWidth = menu . width (); //alert('Window Height :'+scope.windowHeight+'Menu Height:'+scope.menuHeight+'Menu Top'+scope.position.y); var menuHeight = scope . menuHeight ; var menuWidth = scope . menuWidth ; var menuLeft = menuWidth + scope . position . x ; var childLeft = menuLeft + menuWidth ; var gChildLeft = menuLeft + ( menuWidth * 2 ); var menuBottom = menuHeight + scope . position . y ; var menuHightbottom = menuBottom + menuHeight ; var gMenuHightbottom = menuBottom + ( menuH...