Skip to content

Instantly share code, notes, and snippets.

@alfmoh
alfmoh / .block
Last active April 16, 2019 10:49
fresh block
license: mit
@alfmoh
alfmoh / .block
Last active April 15, 2019 03:37
fresh block
license: mit
@alfmoh
alfmoh / .block
Created April 9, 2019 20:04
fresh block
license: mit
@alfmoh
alfmoh / .block
Last active April 9, 2019 20:00
fresh block
license: mit
@alfmoh
alfmoh / .block
Last active April 9, 2019 13:07
moving blocks
license: mit
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
Name: <input id="name">
Age: <input id="age">
@alfmoh
alfmoh / custom-titlecase.pipe.ts
Created November 9, 2017 15:12
A Custom Title Case for Angular.
/* The default Angular Titlecase pipe doesn't work well for words with apostrophes.
This custom pipe takes care of that and also includes words you would like to remain
in lower cases */
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'customTitleCase'
})
export class CustomTitleCasePipe implements PipeTransform {