Skip to content

Instantly share code, notes, and snippets.

View ngnam's full-sized avatar

Nguyen Van Nam ngnam

View GitHub Profile
@ngnam
ngnam / keybase.md
Created September 11, 2019 10:48
keybase.md

Keybase proof

I hereby claim:

  • I am ngnam on github.
  • I am namnv39 (https://keybase.io/namnv39) on keybase.
  • I have a public key ASBNrpWBYVBjzQBCc9_D04fMxtlOIJzTNl-Ps5nx_xa_hgo

To claim this, I am signing this object:

// password.validator.ts
import { FormControl } from '@angular/forms';
export interface ValidationResult {
[key: string]: boolean;
}
export class PasswordValidator {
public static strong(control: FormControl): ValidationResult {
const hasNumber = /(?=\D*\d)/.test(control.value);
License: R J van der Linden
Key: CN9X-US28-F6RR-EY9M-YTQC
@ngnam
ngnam / checkbox click.js
Created December 15, 2019 16:51
checkbox click.js
(function test() {
// một số hàm truy xuất DOM trên browserm get element, finder, children, parent,...
var htmlCollection = document.getElementsByClassName('questions-list' ;
var arrCollection = [];
// tìm hiểu apply funciton trong javascript la gì.
[].push.apply(arrCollection, htmlCollection);
// foreach là gì
arrCollection.forEach(function(item) {
if (!item) {
import {
Directive,
Output,
HostListener,
Input,
OnDestroy,
OnInit,
EventEmitter
} from "@angular/core";
import { Subject, interval, combineLatest } from "rxjs";
<title>Loạt lời phê đầy tính 'cà khịa' của thầy cô</title>
<meta name="description" content="Ngày nay, thầy cô không còn là những giáo viên khó tính mà cũng 'lầy lội' không kém học sinh."/>
<meta name="keywords" content="lời phê, giáo viên, cà khịa, vui tính, hài hước"/>
<meta name="news_keywords" content="lời phê, giáo viên, cà khịa, vui tính, hài hước"/>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5, user-scalable=1" name="viewport"/>
<meta http-equiv="X-UA-Compatible" content="IE=100"/>
<meta property="fb:app_id" content="1547540628876392"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-title" content="Vnexpress.net"/>
@ngnam
ngnam / meta-tags.md
Created July 21, 2020 10:07 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@ngnam
ngnam / angular-cli-node-js-typescript-support.csv
Last active March 28, 2022 17:28 — forked from LayZeeDK/angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Angular CLI, Angular, Node.js and TypeScript compatibility.
Angular CLI version Angular version Node.js version TypeScript version
- 2.x 6.0.x or later minor version 2.0.x
1.0.6 4.x 6.9.x or later minor version 2.2.x
1.1.3 4.x 6.9.x or later minor version 2.3.x
1.2.7 4.x 6.9.x or later minor version 2.3.x
1.3.2 4.2.x or later minor version 6.9.x or later minor version 2.4.x
1.4.10 4.2.x or later minor version 6.9.x/8.9.x or later minor version 2.4.x
(1.5.6) 5.0.x 6.9.x/8.9.x or later minor version 2.4.x
1.5.6 5.1.x 6.9.x/8.9.x or later minor version 2.5.x
1.6.7 5.2.x or later minor version 6.9.x/8.9.x or later minor version 2.5.x