Skip to content

Instantly share code, notes, and snippets.

@theCrius
theCrius / Dockerfile
Created March 19, 2021 15:21 — forked from Machy8/Dockerfile
PHP-FPM 7.1 with Unix Sockets + Nginx in Docker
FROM debian:stretch
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
wget \
zip \
git \
unzip && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
@theCrius
theCrius / ngb-momentjs-adapter.ts
Last active September 26, 2019 10:45 — forked from jeroenheijmans/ngb-momentjs-adapter.ts
NgbDateAdapter for Moment.js values
import { NgbDateAdapter, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
import { Injectable } from '@angular/core';
import * as moment from 'moment';
// Might need to polyfill depending on needed browser support...
const isInt = Number.isInteger;
@Injectable()
export class NgbMomentjsAdapter extends NgbDateAdapter<moment.Moment> {