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 { useState, useEffect } from 'react'; | |
export const useApi = (url, dependencies) => { | |
const [isLoading, setIsLoading] = useState(false); | |
const [data, setData] = useState(null); | |
useEffect(() => { | |
setIsLoading(true); | |
console.log('Sending Http request to URL: ' + url); | |
fetch(url) |
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 numpy as np | |
np.random.seed(42) | |
import tensorflow as tf | |
tf.set_random_seed(42) | |
from keras.models import Sequential, load_model | |
from keras.layers import Dense, Activation | |
from keras.layers import LSTM, Dropout | |
from keras.layers import TimeDistributed | |
from keras.layers.core import Dense, Activation, Dropout, RepeatVector | |
from keras.optimizers import RMSprop |
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
{ | |
"name": "vizack-front", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"axios": "^0.18.0", | |
"cookie-session": "^2.0.0-beta.3", | |
"prop-types": "^15.6.1", | |
"react": "^16.3.1", | |
"react-cookie": "^2.1.4", |
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 React from 'react'; | |
import {Input,Card,ProgressBar} from 'react-materialize'; | |
import { Redirect } from 'react-router-dom'; | |
import PropTypes from 'prop-types'; | |
import {connect} from 'react-redux'; | |
import {setToken,getToken} from '../../actions/userAction'; | |
import Error from '../messages/Error'; | |
import google from '../social/GoogleLogin/google.png'; | |
import facebook from '../social/FacebookLogin/facebook.png' |