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": [ | |
{ |
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
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
/** | |
* 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
// ------------------------------------------ | |
// 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
<!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
var prompt = require('prompt'); | |
prompt.start(); | |
prompt.get(['diameter', 'angle'], function (err, result) { | |
console.log('Diameter: ' + result.diameter); | |
console.log('Angle: ' + result.angle); | |
}); |
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
var path = require('path'); | |
var Promise = require('bluebird'); | |
var uniq = require('uniq'); | |
var fs = Promise.promisifyAll(require('fs')); | |
var SERVER_APP_PATH = 'src/server/app/publish'; | |
var PREAMBLE_PATH = path.join(SERVER_APP_PATH, 'preamble.js'); | |
var CAPSULE_BUILD_PATH = path.join(SERVER_APP_PATH, 'capsule.build.js'); | |
var SAMPLE_CAPSULE_PATH = path.join(SERVER_APP_PATH, 'sample-capsule.json'); |
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
fuc off |
NewerOlder