This file contains hidden or 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
// Your code here | |
class Point { | |
constructor(x,y){ | |
this.x = x; | |
this.y = y; | |
} | |
plus(a,b){ | |
return this.x + a , this.y + b |
This file contains hidden or 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, { Component } from 'react'; | |
class Why extends Component { | |
render() { | |
return ( | |
<div className="why"> | |
<section id="#why"> | |
<h3 className="why__mainTitle"> Why RIP </h3> | |
<div className="why__i"> | |
<h3 className="why__title">Lorem Ipsum</h3> |
This file contains hidden or 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 NavS from './NavS'; | |
import cookie from 'react-cookies'; | |
class ProjectionsHeader extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
lump: cookie.load('lump'), | |
monthly: cookie.load('monthly') |
This file contains hidden or 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 Nav from './Nav'; | |
import ProjectionsHeader from './projectionsHeader'; | |
import Chart from './chart'; | |
import cookie from 'react-cookies'; | |
class Projections extends React.Component { | |
constructor() { | |
super(); | |
this.state = { |
This file contains hidden or 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
// // const url = 'http://35.227.59.39:8001/api/utils/nav_performance'; | |
// // let Dailyrate = fetch(url) | |
// // .then(resp => resp.json()) | |
// // .then(function(values) { | |
// // return values[7].unit; | |
// // }); | |
// // //.catch(); | |
let currentYear = new Date().getFullYear(); | |
let currentDate = new Date(); |
This file contains hidden or 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
let currentYear = new Date().getFullYear(); | |
let currentDate = new Date(); | |
let currentMonth = currentDate.getUTCMonth() + 1; | |
let currentDay = currentDate.getUTCDate(); | |
let oldDay = currentDay - 2; | |
let newDay = currentDay - 1; | |
if (currentMonth < 10) { | |
currentMonth = '0' + currentMonth; | |
} | |
if (currentDay < 10) { |
OlderNewer