View auth.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { HttpClient, HttpHeaders } from '@angular/common/http'; | |
import { Observable, of } from 'rxjs'; | |
import { catchError, tap } from 'rxjs/operators'; | |
import * as moment from 'moment'; | |
const httpOptions = { | |
headers: new HttpHeaders({ 'Content-Type': 'application/json'}) | |
} |
View dashboard.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 class="has-text-centered is-size-1">This is your dashboard, sugar!</h1> | |
<div class="level"> | |
<div class="level-item"> | |
<img src="http://1.bp.blogspot.com/-bTzYQL5GMGU/UTxKjVrQPQI/AAAAAAAAATI/AB6fJEWU-Qk/s1600/exterface_unicorn_03.jpg"> | |
</div> | |
</div> |
View app.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, ViewChild } from '@angular/core'; | |
import { RandomQuoteComponent } from './random-quote/random-quote.component' | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
@ViewChild(RandomQuoteComponent) |
View random-quote.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { QuoteService } from '../quote.service'; | |
@Component({ | |
selector: 'app-random-quote', | |
templateUrl: './random-quote.component.html', | |
styleUrls: ['./random-quote.component.css'] | |
}) | |
export class RandomQuoteComponent implements OnInit { |
View quote.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { Observable } from 'rxjs'; | |
import { HttpClient } from '@angular/common/http'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class QuoteService { | |
private quoteUrl = "https://talaikis.com/api/quotes/random/"; |
View app.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--The content below is only a placeholder and can be replaced.--> | |
<section class="hero is-info is-fullheight is-bold "> | |
<div class="hero-head"> | |
<app-header></app-header> | |
</div> | |
<div class="hero-body"> | |
<div class="container has-text-centered"> | |
<h1 class="title"> |
View header.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nav class="navbar"> | |
<div class="navbar-brand"> | |
<a class="navbar-item"> | |
<img src="https://bulma.io/images/bulma-logo.png"> | |
</a> | |
</div> | |
</nav> |
View call_api_thread.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from threading import Thread | |
class APIThread(Thread) | |
def __init__(self, data): | |
self.data = data | |
Thread.__init__(self) | |
def run(self) | |
# call external api |
View routes.kml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http:www.opengis.net/kml/2.2"> | |
<Document> | |
<Style id="redLinePoly"> | |
<LineStyle> | |
<color>ff0000ff</color> | |
<width>4</width> | |
</LineStyle> | |
</Style> | |
<Placemark> |