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 express = require('express'); | |
const recursive = require('recursive-readdir'); | |
const app = express(); | |
const port = 3000; | |
var images = []; | |
app.get('/', (req, res) => { | |
var image = images[Math.floor(Math.random() * images.length)]; | |
res.sendFile(image); |
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
ngAfterViewChecked() { | |
let count = 0; | |
Array.from(document.getElementsByTagName('a')).filter((x: any) => !x.ping).forEach((x: any) => { x.ping = this.metricsUrl; count++ }); | |
if (count > 0) { | |
console.log(`ngAfterViewChecked. ${count} linked updated`); | |
} | |
} |
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
{ | |
"basics": { | |
"name": "Andrew Lewis", | |
"label": "20 years’ experience leading teams in agile environments that design and build web-based enterprise applications. Currently focused on .net core and Angular.", | |
"picture": "https://media-exp1.licdn.com/dms/image/C4E03AQHm57nuJaUuyw/profile-displayphoto-shrink_200_200/0?e=1591228800&v=beta&t=T-26C_IhysZE5RujLy99VYXhxWSasnsJwCbudjB1eZI", | |
"email": "andlewis@gmail.com", | |
"phone": "(403) 400-1761", | |
"website": "http://andrewlewis.ca", | |
"summary": "Full-stack developer, team lead, agile project manager", | |
"location": { |