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
<!doctype html> | |
<html> | |
<head> | |
</head> | |
<body> | |
Some bullshit content | |
<script src="./your-script.js"></script> | |
</body> | |
</html> |
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
// ------------------------------------------ | |
// square-number.js | |
// ------------------------------------------ | |
module.exports = squareNumber; | |
function squareNumber(number) | |
{ | |
return number * number; | |
} |
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
/** | |
* Compile a collection of stringified LESS styles directly in the browser | |
* @param {string} less | |
* | |
* e.g. compileLess('body { div { border: 2px solid aqua; } }'); | |
*/ | |
function compileLess(less) | |
{ | |
var style = document.createElement('style'); | |
style.type = 'text/less'; |
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, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import Header from '../../components/header'; | |
import { attemptUserAuthentication, logoutAndRedirect } from '../../actions/auth'; | |
import { getUserInfo, sendConfirmationEmail } from '../../actions/users'; | |
@connect(state => ({ | |
auth: state.auth, | |
users: state.users | |
})) |
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
{ | |
"components": [ | |
{ | |
"id": "weight-component", | |
"period": { | |
"start_date": "2018-08-04T20:36:00Z", | |
"end_date": "2018-09-02T23:59:59Z" | |
}, | |
"links": [ | |
{ |
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
{ | |
"components": [ | |
{ | |
"id": "glucose-component", | |
"period": { | |
"start_date": "2018-07-11T00:00:00Z", | |
"end_date": "2018-08-10T23:59:59Z" | |
}, | |
"links": [ | |
{ |
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
{ | |
"components": [ | |
{ | |
"id": "glucose-component", | |
"period": { | |
"start_date": "2018-07-11T00:00:00Z", | |
"end_date": "2018-08-10T23:59:59Z" | |
}, | |
"links": [ | |
{ |
OlderNewer