Skip to content

Instantly share code, notes, and snippets.

View crutchcorn's full-sized avatar
Writing like whoa

Corbin Crutchley crutchcorn

Writing like whoa
View GitHub Profile
crutchcorn /
Last active November 26, 2021 20:43 — forked from gesquive/
Get keypress for different platforms
#!/usr/bin/env python3
import sys
import os
def main():
print("press ctrl+c to exit")
crutchcorn /
Last active December 28, 2019 09:27 — forked from mhevery/
Angular microsyntax gramar


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.


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.