- Install zsh using brew
brew install zsh
- Set ZSH as default shell
chsh -s /bin/zsh
- Copy bash profile
cat ~/.bash_profile >> ~/.zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pbpaste | sort | uniq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Product Records</h1> | |
<div *ngFor="let record of productRecords | async"> | |
{{record.itemNumber}} | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const routes: Routes = [ | |
{ | |
path: 'old-lazy', | |
loadChildren: './old-lazy/old-lazy.module#OldLazyModule' | |
}, | |
{ | |
path: 'new-lazy', | |
loadChildren: () => import('./new-lazy/new-lazy.module') | |
.then(m => m.NewLazyModule) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`npx -p <package-name> <command>` | |
eg. | |
Create new Angular project | |
`npx -p @angular/cli ng new new-project-name` | |
Create new NextJS project | |
`npx -p @nextjs/cli next new new-project-name` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="map"> | |
<h4>From map</h4> | |
</div> | |
<div id="loc_details"> | |
<h4>Current Location</h4> | |
<p> | |
Lat : {{geoLoc.lat }} | |
</p> | |
<p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin for-size($range) { | |
$phone-upper-boundary: 37.5rem; | |
$tablet-portrait-upper-boundary: 56.25rem; | |
$tablet-landscape-upper-boundary: 75rem; | |
$desktop-upper-boundary: 112.5rem; | |
@if $range == phone-only { | |
@media (max-width: #{$phone-upper-boundary - 1}) { @content; } | |
} @else if $range == tablet-portrait-up { | |
@media (min-width: $phone-upper-boundary) { @content; } |
NewerOlder