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 ReactDOM from "react-dom"; | |
import { MuiThemeProvider, createMuiTheme } from "@material-ui/core/styles"; | |
import App from "./app"; | |
const theme = createMuiTheme(); | |
ReactDOM.render( | |
<MuiThemeProvider theme={theme}> | |
<App /> |
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 { render } from "react-dom"; | |
import { withStyles } from "@material-ui/core/styles"; | |
import Chart from "./chart"; | |
const styles = theme => ({ | |
"chart-container": { | |
height: 400 | |
} | |
}); |
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
state = { | |
lineChartData: { | |
labels: [], | |
datasets: [ | |
{ | |
type: "line", | |
label: "BTC-USD", | |
backgroundColor: "rgba(0, 0, 0, 0)", | |
borderColor: this.props.theme.palette.primary.main, | |
pointBackgroundColor: this.props.theme.palette.secondary.main, |
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
componentDidMount() { | |
const subscribe = { | |
type: "subscribe", | |
channels: [ | |
{ | |
name: "ticker", | |
product_ids: ["BTC-USD"] | |
} | |
] | |
}; |
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
render() { | |
const { classes } = this.props; | |
return ( | |
<div className={classes["chart-container"]}> | |
<Chart | |
data={this.state.lineChartData} | |
options={this.state.lineChartOptions} | |
/> | |
</div> |
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 { Line } from "react-chartjs-2"; | |
const Chart = props => <Line data={props.data} options={props.options} />; | |
export default 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
#include <stdio.h> | |
#include <stdlib.h> | |
int main() | |
{ | |
char frash[60]; | |
int i, mikos, plithos; | |
printf("Dwse th frash sou\n"); | |
fgets(frash, 60, stdin); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int main() | |
{ | |
char frash[30]; | |
int i, mikos, plithos, arithmos; | |
printf("Dwse th frash sou\n"); |