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
{ | |
meta: { | |
code: 200 | |
requestId: "5997a3b46a607177020c4a1d" | |
} | |
notifications: [ | |
{ | |
type: "notificationTray" | |
item: { | |
unreadCount: 1 |
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
{ | |
"code": 200, | |
"data": { | |
"location": { | |
"_id": "65559", | |
"has_menus": true, | |
"published_at": "2013-09-06T12:13:47", | |
"out_of_business": false, | |
"has_hours": true, | |
"location": { |
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 { | |
GraphQLBoolean, | |
GraphQLEnumType, | |
GraphQLFloat, | |
GraphQLInputObjectType, | |
GraphQLInt, | |
GraphQLInterfaceType, | |
GraphQLList, | |
GraphQLObjectType, | |
GraphQLString, |
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
function ignoreThisMessage(isUncaught, args, payload) { | |
var ignore = "Protocols, domains, and ports must match."; | |
if ( | |
payload && | |
payload.body && | |
payload.body.message && | |
payload.body.message.body && | |
!!~payload.body.message.body.indexOf(ignore) | |
) { | |
return true |
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
/** | |
* MONGOSE SCHEMA | |
* [questions-schema.js] | |
*/ | |
import mongoose from 'mongoose'; | |
const selectSchema = { | |
value: String, | |
label: String | |
}; |
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 variables ***************************************************************************************************/ | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
/* React components ***************************************************************************************************/ | |
export default class Weather extends React.Component{ | |
constructor(props) { | |
super(props); | |
this.state = { | |
city: ``, |
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
let XHR = (`onload` in new XMLHttpRequest()) ? XMLHttpRequest : XDomainRequest; //to support IE8 | |
let ipXhr = new XHR(), | |
weatherXhr = new XHR(); | |
let creatElement = function () { | |
let layoutBody = document.createElement('div'), | |
h1 = document.createElement('h1'), | |
p = document.createElement('p'), | |
img = document.createElement('img'), | |
h2 = document.createElement('h2'); |
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 variables ***************************************************************************************************/ | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import {composeWithTracker} from 'react-komposer'; | |
import {Modal, Button} from 'react-bootstrap'; | |
import './deposit.css'; | |
/* React components ***************************************************************************************************/ | |
const Deposit = (props) => { |
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
"use strict" | |
window.onload = () => { | |
let image2Src = null, | |
elem = document.getElementById('mainDiv'), | |
getImage1btn = document.createElement('button'), | |
getImage2btn = document.createElement('button'); | |
getImage1btn.innerHTML = 'getImage1Data'; | |
getImage2btn.innerHTML = 'getImage2Data'; |
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
#mainDiv { | |
height: 100vh; | |
width: 100vw; | |
border: 1px solid red; | |
} | |
#innerDiv { | |
height: 100vh; | |
width: 100vw; | |
border: 1px solid green; |
NewerOlder