Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Hartington mhartington

View GitHub Profile
View changes.md

Nullish

Before

  private readUrlEffect$ = this.route.queryParams.pipe(
    map(({ query }) =>
      this.searchForm.setValue({ search: !!query ? query ; '' })
    )
View tabs.diff
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index 3c0cf79..ce873a3 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -7,7 +7,7 @@ const routes: Routes = [
loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
},
{
- path: 'match-details/:id',
+ path: 'match-details',
View edits.diff
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index bf2002c..17309c0 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -8,21 +8,15 @@ import { StatusBar } from '@ionic-native/status-bar/ngx';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
-import { PopoverSrviceService } from './popover-srvice.service';
-import {PopoverModalComponent} from './popover-modal/popover-modal.component'
View deck.js
import React from 'react';
import { Router, globalHistory, Location } from '@reach/router';
import { Global } from '@emotion/core';
import { ThemeProvider } from 'theme-ui';
import { Helmet } from 'react-helmet';
import get from 'lodash.get';
import merge from 'lodash.merge';
import useKeyboard from 'gatsby-theme-mdx-deck/src/hooks/use-keyboard';
import useStorage from 'gatsby-theme-mdx-deck/src/hooks/use-storage';
import useDeck from 'gatsby-theme-mdx-deck/src/hooks/use-deck';
View scratch.ts
export function serveCordova(
options: CordovaServeBuilderSchema,
context: BuilderContext
): Observable<DevServerBuilderOutput> {
const { devServerTarget, port, host, ssl } = options;
const root = context.workspaceRoot;
const devServerTargetSpec = targetFromTargetString(devServerTarget);
async function setup() {
View index.ts
export function serveCordova(
options: CordovaServeBuilderSchema,
context: BuilderContext
): Observable<DevServerBuilderOutput> {
const { devServerTarget, port, host, ssl } = options;
const root = context.workspaceRoot;
const devServerTargetSpec = targetFromTargetString(devServerTarget);
async function setup() {
View cordova.js
// Platform: android
// 74fdba8b327b2a13b4366dd141b52def96d4cb56
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
View ng-update-data.txt
Pure NG7 to NG8
$ ng update --force --verbose @angular/core @angular/cli
Locating potential npmrc files:
Trying '/Users/mhartington/n/etc/npmrc'...not found.
Trying '/Users/mhartington/.npmrc'...found.
Trying '/Users/.npmrc'...not found.
Trying '/Users/mhartington/.npmrc'...found.
Trying '/Users/mhartington/myNg7App/.npmrc'...not found.
Updating package.json with dependency @angular/language-service @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/compiler-cli @ "8.0.2" (was "7.2.15")...
View generate-h2-push.js
#!/usr/bin/env node
const puppeteer = require('puppeteer');
const fs = require('fs');
const args = process.argv.slice(2);
const host = args[0] || 'http://127.0.0.1:8080';
const indexMatches = [
'.gz',
'.map',
'3rdpartylicenses.txt',
'ngsw-manifest.json',
View lazy-img.component.ts
import {
Component,
OnInit,
Input,
ViewChild,
ElementRef,
HostBinding
} from '@angular/core';
@Component({
You can’t perform that action at this time.