Skip to content

Instantly share code, notes, and snippets.

View mgechev's full-sized avatar
👷‍♂️
Making web development easier

Minko Gechev mgechev

👷‍♂️
Making web development easier
View GitHub Profile
@Component({...})
class AppComponent {
@Input() title = '';
}
@Component({...})
class AppComponent {
@Input() title: string;
}
ng new my-app --strict
@mgechev
mgechev / constants.js
Last active August 25, 2020 21:48
Angular CLI strict mode
// constants.js
export const PI = 3.14159265357989;
data:text/html,<body onload="setInterval(()=>document.body.innerText=new Date().toLocaleTimeString())"></body>
ng add @angular/bazel
npm install -g @angular/bazel
ng new my-app --collection=@angular/bazel

Keybase proof

I hereby claim:

  • I am mgechev on github.
  • I am mgechev (https://keybase.io/mgechev) on keybase.
  • I have a public key ASBKbUc_z2gSL7zGFwAuOZrhqMx6LB1pBMEkoCGvibAJbwo

To claim this, I am signing this object:

const isOp = t => /\+|\-|\*|\//.test(t);
const isNum = n => /\d/.test(n);
const parse = (ts, i = 0) => {
if (i >= ts.length) return [null, i];
if (isOp(ts[i])) {
const node = { op: ts[i] };
const children = [];
let current;
let idx = i + 1;
(function(global, history, g, m, basePath, thresholds, delegate) {
var __GUESS__ =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache