-i
- ignore errors
-c
- continue
-t
- use video title as file name
--extract-audio
- extract audio track
# add 'node_modules' to .gitignore file | |
git rm --cached node_modules | |
git commit -m 'Added node_modules to .gitignore file. Also removed node_modules from git tracking and repository.' | |
git push origin master |
# Source: https://stackoverflow.com/questions/36358265/when-does-git-refresh-the-list-of-remote-branches | |
# To update the local list of remote branches: | |
git remote update origin --prune |
let arr1 = [1,2,3,4,5]; | |
const arr2 = [4,5]; | |
arr1 = arr1.filter(el => !arr2.includes(el)); | |
console.log(arr1); |
<button (click)="callChild()"> Call child </button> | |
<button (click)="childcomp.sayHello()"> Call child from view</button> | |
<app-comp-a #childcomp ></app-comp-a> |
import { Component, OnInit } from '@angular/core';'; | |
import { FormBuilder, FormGroup, Validators, AbstractControl, ValidationErrors } from '@angular/forms'; | |
import { Router } from '@angular/router' | |
import { CommonValidators } from '../service/CommonValidator'; | |
import { Response } from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; | |
import { GlobalService } from '../../shared/service/global.service'; | |
import { AuthHttp } from 'angular2-jwt' | |
declare var $: any; | |
import 'rxjs/add/operator/delay'; |
https://stackoverflow.com/questions/34948961/angular-2-custom-form-input/34998780#34998780 | |
https://stackoverflow.com/questions/50618050/how-to-create-custom-input-component-with-ngmodel-working-in-angular-6 | |
https://rangle.io/blog/angular-2-ngmodel-and-custom-form-components/ | |
https://blog.thoughtram.io/angular/2016/07/27/custom-form-controls-in-angular-2.html | |
https://blog.angulartraining.com/tutorial-custom-form-controls-with-angular-22fc31c8c4cc | |
https://medium.com/@lukaonik/how-to-write-custom-form-controls-in-angular-1285ed00bba0 | |
https://netbasal.com/angular-custom-form-controls-made-easy-4f963341c8e2 |
class Map extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
center: null, | |
points: [], | |
zoom: 1, | |
numberToShowMap: 0 | |
}; | |
} |
class Site extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
offices: [] | |
}; | |
this.getOffices = this.getOffices.bind(this); | |
} |
const App = () => ( | |
<main className="container"> | |
<Site /> | |
</main> | |
); |