Skip to content

Instantly share code, notes, and snippets.

@snhasani
snhasani / disable-apps-verification-on-mac.md
Last active October 24, 2019 21:23
Disable Apps verification in the opening on Mac
  1. Open Terminal App; enter this command
sudo nano /etc/hosts
  1. Drop fllowing line into the end of the file and save it
0.0.0.0 ocsp.apple.com
@mhevery
mhevery / microsyntax.md
Last active November 21, 2022 09:53
Angular microsyntax gramar

Microsyntax

Microsyntax in Angular allows you to write <div *ngFor="let item of items">{{item}}</div> instead of <ng-template ngFor [ngForOf]="items"><div>{{item}}</div></ng-template.

Constraints

The microsyntax must:

  • be know ahead of time so that IDEs can parse it without knowing what is the underlying semantics of the directive or what directives are present.
  • must translate to key-value attributes in the DOM.