Skip to content

Instantly share code, notes, and snippets.

View anop72's full-sized avatar
🎯
Focusing

champ.ak anop72

🎯
Focusing
View GitHub Profile
@anop72
anop72 / introrx.md
Created November 1, 2016 09:07 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@anop72
anop72 / rxjs_operators_by_example.md
Created September 29, 2016 07:56 — forked from btroncone/rxjs_operators_by_example.md
RxJS 5 Operators By Example
@anop72
anop72 / seo.service.ts
Last active October 11, 2016 23:19 — forked from LA1CH3/seo.service.ts
set meta tag on angular 2 single page application
/*
SEO Service for Updating Title, Meta Tags, Etc.
*/
import { Injectable } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { getDOM } from '@angular/platform-browser/src/dom/dom_adapter';
@Injectable()
private static OkHttpClient getUnsafeOkHttpClient() {
try {
// Create a trust manager that does not validate certificate chains
final TrustManager[] trustAllCerts = new TrustManager[] {
new X509TrustManager() {
@Override
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {
}
@Override