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 PropTypes from 'prop-types'; | |
import { withStyles } from '@material-ui/core/styles'; | |
import { Grid, Link, InputLabel, InputBase, Input, Typography } from '@material-ui/core'; | |
import Button from '@material-ui/core/Button'; | |
import { Redirect } from 'react-router'; | |
import classNames from 'classnames'; | |
import gql from 'graphql-tag'; | |
import { Mutation } from 'react-apollo'; |
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
<Grid item xs={11}> | |
<img src="/images/brand.png" height="75px" width="75px" alt="application icon" /> | |
<h2 className={classes.headerText}> | |
Welcome to Birdseye! | |
</h2> | |
<InputLabel shrink htmlFor="bootstrap-input" className={classes.bootstrapFormLabel}> | |
Email Address |
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 express = require('express'); | |
const redis = require('redis'); | |
client.set('visits', 0); | |
const app = express(); | |
const client = redis.createClient(); | |
app.get('/', (req, res) => { | |
client.get('visits', (err, visits) => { | |
res.send('Number of visits is' + visits); |
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
// original code | |
<script type="text/babel" data-presets="env,react"> | |
const App = () => { | |
return ( | |
<div> | |
<Message /> | |
</div> | |
); | |
} | |
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
var statuses = [ | |
{ code: 'OK', response: 'Request successful' }, | |
{ code: 'FAILED', response: 'There was an error with your request' }, | |
{ code: 'PENDING', response: 'Your reqeust is still pending' } | |
]; | |
var message = ''; | |
var currentCode = 'OK'; | |
for (var i = 0; i < statuses.length; i++) { | |
if (statuses[i].code === currentCode) { |
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 Tooltip from "../Widgets/Tooltip"; | |
import BackupPaymentBlurb from "./BackupPaymentBlurb"; | |
import CardPayment from "./CardPayment"; | |
import {normalizeCreditCard} from '../../lib/Format'; | |
import errorStrings from '../../assets/strings/errors.json'; | |
import store from '../../store'; | |
import PaymentMethodsFromWallet from './PaymentMethodsFromWallet'; | |
import config from '../../config'; |
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 Tooltip from "../Widgets/Tooltip"; | |
import BackupPaymentBlurb from "./BackupPaymentBlurb"; | |
import CardPayment from "./CardPayment"; | |
import {normalizeCreditCard} from '../../lib/Format'; | |
import errorStrings from '../../assets/strings/errors.json'; | |
import store from '../../store'; | |
import PaymentMethodsFromWallet from './PaymentMethodsFromWallet'; | |
import config from '../../config'; |
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
//= require templates/modules/dvic_card_gallery | |
//= require templates/modals/exit_interstitial | |
//= require application/optimizely-metrics | |
//= require templates/modals/dvic_modal_card_gallery | |
//= require templates/modals/dvic_modal_card_gallery | |
/* jshint:false */ | |
(function(exports) { | |
"use strict"; |
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 isNightTime = true; | |
if (isNightTime) { | |
console.log('Turn on the lights!'); | |
} else { | |
console.log('Turn off the lights!'); | |
} |
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
it('A model class can update one record', (done) => { | |
assertName(User.findOneAndUpdate(joe._id, { name: 'Bill' }), done); | |
}); | |
it('A model class can find a record with an Id and update', (done) => { | |
assertName(User.findByIdAndUpdate(joe._id, { name: 'Bill' }), done); | |
}); |