I hereby claim:
- I am nilsandrey on github.
- I am nilsandrey (https://keybase.io/nilsandrey) on keybase.
- I have a public key ASCa0L4jG7UpSExhx7EfSguzVkf4dMxEw2pbwAyMHr2IFgo
To claim this, I am signing this object:
import { | |
HttpEvent, | |
HttpHandler, | |
Httpinterceptor, | |
HttpRequest | |
} from "@angular/common/http"; | |
import { Injectable } from "@angular/core"; | |
import * as moment from "moment"; | |
import { Observable } from "rxjs"; | |
import { tap } from "rxjs/operators"; |
I hereby claim:
To claim this, I am signing this object:
// From yesenadam at https://news.ycombinator.com/item?id=23590848 | |
function $(id) { return document.getElementById(id); } | |
function byClass (el, cl) { return el ? el.getElementsByClassName(cl) : [] } | |
function byTag (el, tg) { return el ? el.getElementsByTagName(tg) : [] } | |
function allof (cl) { return byClass(document, cl) } | |
function hasClass (el, cl) { var a = el.className.split(' '); return afind(cl, a) } | |
function addClass (el, cl) { if (el) { var a = el.className.split(' '); if (!afind(cl, a)) { a.unshift(cl); el.className = a.join(' ')}} } | |
function remClass (el, cl) { if (el) { var a = el.className.split(' '); arem(a, cl); el.className = a.join(' ') } } | |
function html (el) { return el ? el.innerHTML : null; } |
Dependency https://xkcd.com/2347/
FROM node: 14-alpine as build | |
ENV NEXT_TELEMETRY_DISABLED=1 | |
RUN apk add --no-cache libc6-compat | |
WORKDIR /app | |
COPY .. | |
RUN yarn install && \ | |
yarn build | |
FROM node: 14-alpine |
# config/initializers/01_ensure_environment.rb | |
if Rails.env.development? | |
%w[ | |
AWS_ACCESS_KEY_ID | |
AWS_SECRET_ACCESS_KEY | |
S3_BUCKET | |
ALGOLIA_ID | |
ALGOLIA_API_KEY | |
ALGOLIA_SEARCH_KEY |
// If you want reusable util function for mocking pipes, you can try this option: | |
export function mockPipe(options: Pipe): Pipe { | |
const metadata: Pipe = { | |
name: options.name | |
}; | |
return <any>Pipe(metadata)(class MockPipe {}); | |
} | |
{ | |
"log-driver": "syslog", | |
"log-opts": { | |
"tag": "dockerlogs {{.Name}}/{{.ID}}" | |
} | |
} |
# Using Ubuntu | |
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash - | |
sudo apt-get install -y nodejs |