Skip to content

Instantly share code, notes, and snippets.

View Nemesis19's full-sized avatar

Fabrizio Masini Nemesis19

View GitHub Profile
@Nemesis19
Nemesis19 / cleave.directive.ts
Created January 15, 2019 10:29
Custom Cleave Directive with dynamic decimal separator based on ngx-cleave-directive
import {
Directive,
ElementRef,
HostListener,
Inject,
Input,
OnDestroy,
OnInit,
} from '@angular/core';
import {
@Nemesis19
Nemesis19 / ucfirst.pipe.ts
Last active December 10, 2018 17:48
Ucfirst Angular Pipe
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'ucfirst'
})
export class UcfirstPipe implements PipeTransform {
transform(value: string): any {
return value.split(' ')
.map((word: string) => ' ' + word.substr(0, 1)
@Nemesis19
Nemesis19 / moz-webkit.css
Created September 13, 2018 14:22 — forked from nathansmith/moz-webkit.css
Target Firefox and WebKit via hacky CSS.
/*
Read more here:
https://developer.mozilla.org/en/CSS/@-moz-document
For more browser-specific hacks:
http://paulirish.com/2009/browser-specific-css-hacks
*/
@-moz-document url-prefix() {
/* Put your Firefox specific code here. */