Skip to content

Instantly share code, notes, and snippets.

View tomasstankovic's full-sized avatar

Tomáš Stankovič tomasstankovic

View GitHub Profile
import { Injectable } from '@angular/core';
@Injectable()
export class PreloaderService {
public static fullLoadingCount: number = 0;
public static smallLoadingCount: number = 0;
getPreloaderCount(preloaderType = 'full'): number {
if (preloaderType === 'full') {
return PreloaderService.fullLoadingCount;
import { Injectable } from '@angular/core';
import { Http, ConnectionBackend, Request, RequestOptions, RequestOptionsArgs, Response, Headers } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/throw';
import 'rxjs/Rx';
import { PreloaderService } from './preloader-service';
import { Config } from '../config';
@Injectable()
export class HttpService extends Http {
@tomasstankovic
tomasstankovic / tensorflow-heroku.py
Last active May 5, 2017 16:54
tensorflow-heroku.py
from sys import platform as _platform
import numpy as np
from six.moves import urllib
import tensorflow as tf
from flask import Flask, jsonify, render_template, request
PWD = '/var/www/html/flaskapp'
MODEL_PATH = PWD + '/data/output_graph.pb'
LABELS_PATH = PWD + '/data/output_labels.txt'