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
time ffmpeg -i hocc.mp3 -i IMG_20150621_194231.jpg -c:a copy output2.mp4 |
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 { HistoricalData } from './models'; | |
import { throwError, Subject } from 'rxjs'; | |
import { catchError } from 'rxjs/operators' | |
import { HttpClient, HttpErrorResponse } from '@angular/common/http'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class StockDataService { |
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, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; | |
import { StockDataService } from '../stock-data.service'; | |
import { HistoricalData } from '../models'; | |
import { Observable} from 'rxjs'; | |
@Component({ | |
selector: 'app-chart', | |
templateUrl: './chart.component.html', | |
styleUrls: ['./chart.component.css'], | |
changeDetection: ChangeDetectionStrategy.OnPush |
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 { HistoricalData } from './models'; | |
import { throwError, Subject } from 'rxjs'; | |
import { catchError } from 'rxjs/operators' | |
import { HttpClient, HttpErrorResponse } from '@angular/common/http'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class StockDataService { |
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 os | |
import pandas as pd | |
from flask import Flask | |
from flask import abort | |
from flask import request | |
from flask_cors import CORS | |
from flask import jsonify, make_response | |
app = Flask(__name__, template_folder="templates") |
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
service: stock-backend | |
plugins: | |
- serverless-python-requirements | |
- serverless-wsgi | |
custom: | |
wsgi: | |
app: app.app | |
packRequirements: false |
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
# Install the serverless cli | |
npm install -g serverless | |
# Or, update the serverless cli from a previous version | |
npm update -g serverless | |
sls plugin install -n serverless-python-requirements | |
sls plugin install -n serverless-wsgi | |
# create python virtual environment and install dependencies |
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
<app-chart></app-chart> |
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 { HistoricalData } from './models'; | |
import { Subject } from 'rxjs'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class StockDataService { | |
public historicalData: Subject<HistoricalData[]> = new Subject(); | |
constructor() { |
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
export interface NameValPair { | |
'name': string, | |
'value': number | |
}; | |
export interface HistoricalData { | |
'name': string, | |
'series': NameValPair[] | |
} |
NewerOlder