I hereby claim:
- I am himanshu-dixit on github.
- I am hudixt (https://keybase.io/hudixt) on keybase.
- I have a public key ASDiYTLl9LLsqQJVWe_kQZkmHUdUtEOceCIjEuC-dtH_UQo
To claim this, I am signing this object:
import gql from 'graphql-tag'; | |
export const getTodos = gql`{ | |
todo(order_by: []){ | |
id | |
task | |
user | |
completed | |
} | |
}`; |
import React, { Component } from 'react'; | |
... | |
class App extends Component { | |
render() { | |
const handleAuthentication = (nextState, replace) => { | |
if (/access_token|id_token|error/.test(nextState.location.hash)) { | |
const auth = new Auth(); | |
auth.handleAuthentication(); | |
} |
import Auth from '../../services/Auth'; | |
... | |
login(){ | |
let auth = new Auth(); | |
auth.login(); | |
} | |
... | |
render() { | |
return ( | |
<div> |
import auth0 from 'auth0-js'; | |
import history from './history'; | |
export default class Auth { | |
accessToken; | |
idToken; | |
expiresAt; | |
auth0 = new auth0.WebAuth({ | |
domain: 'himanshu97.auth0.com', |
import createHistory from 'history/createBrowserHistory' | |
export default createHistory() |
import React, { Component } from 'react'; | |
import Login from './pages/Login/Login'; | |
import Dashboard from './pages/Dashboard/Dashboard'; | |
import './App.css'; | |
import { Route, Router } from 'react-router-dom'; | |
import history from './services/history'; | |
class App extends Component { | |
render() { |
import React, { Component } from 'react'; | |
class Login extends Component { | |
render() { | |
return ( | |
<div> | |
<div><img src="https://i.imgur.com/YFlGRZC.png" height="100px"/></div> | |
<div className="button">Login</div> | |
</div> | |
); |
<View style={{ | |
flex: 1, | |
flexDirection: 'column', | |
}}> | |
<View style={{width: width, height: 40}} > | |
<View style={{flex: 1, flexDirection: 'row'}}> | |
<View style={{width: 50, height: 50, backgroundColor: 'powderblue'}} > | |
</View> | |
<View style={{width: 110, height: 50, backgroundColor: 'skyblue'}} > |
I hereby claim:
To claim this, I am signing this object:
sudo apt-get update | |
sudo apt-get install apache2 | |
sudo apache2ctl configtest | |
sudo systemctl restart apache2 | |
sudo ufw allow in "Apache Full" | |
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//' | |
sudo apt-get install curl | |
sudo apt-get install mysql-server | |
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql | |
sudo systemctl restart apache2 |