Skip to content

Instantly share code, notes, and snippets.

View christiaan-lombard's full-sized avatar

Christiaan Lombard christiaan-lombard

View GitHub Profile
@christiaan-lombard
christiaan-lombard / mutate.directive.ts
Created February 10, 2017 09:26
Date Mutator - Angular 2 ControlValueAccessor
import { Directive, ElementRef, Input, Host, forwardRef, HostListener, Renderer, SimpleChanges } from '@angular/core';
import { NgModel, ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import * as moment from 'moment';
const MUTATE_VALUE_ACCESSOR_PROVIDER = [
{provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => MutateDirective), multi: true}
];
@Directive({
$ homestead up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: There was a problem while downloading the metadata for your box
==> default: to check for updates. This is not an error, since it is usually due
==> default: to temporary network problems. This is just a warning. The problem
==> default: encountered was:
==> default:
==> default: SSL certificate problem: unable to get local issuer certificate
==> default: More details here: http://curl.haxx.se/docs/sslcerts.html
@christiaan-lombard
christiaan-lombard / .gitignore
Created November 12, 2014 17:31
root .gitignore for Laravel 5, Bower, Node, Compass
# Laravel
######################
/.idea
/vendor
.env
*.log
/workbench
# OS generated files