Skip to content

Instantly share code, notes, and snippets.

View thevetdoctor's full-sized avatar
💭
...lifelong learner, #EPIC values!

Obafemi thevetdoctor

💭
...lifelong learner, #EPIC values!
View GitHub Profile
{
"attributes": {
"referrals": null,
"miscarriages": 19,
"notes": [],
"form": {
"id": "9b5716fd-a0bb-47d6-bf23-68b18acc0195",
"type": "medical:form"
},
"room": null,
import 'dotenv/config';
import express from 'express';
import axios from 'axios';
import cors from 'cors';
import crypto from 'crypto';
const app = express();
app.use(cors());
app.use(express.json());
const User = ({ id, children }) => {
<Query query={GET_USER} variables={{ userId }}>
{({ loading, data }) => (children({ user: data}))
</Query>
}
const UserStartup = ({ user: { email }, children }) => (
<Query query={GET_HACKERNEWS_STARTUP} variables={{ email }}>
{({ loading, data: { startup } }) => (
<Query query={GET_REPO} variables = {{ startup }}>
@thevetdoctor
thevetdoctor / iceCreamQuiz.js
Created December 23, 2017 17:44
iceCreamQuiz_udacity_alc
/*
* Programming Quiz: Ice Cream (3-6)
* @animalworldng_alc_web_beginners_team_79
* Write a single if statement that logs out the message:
*
* "I'd like two scoops of __________ ice cream in a __________ with __________."
*
* ...only if:
* - flavor is "vanilla" or "chocolate"
* - vessel is "cone" or "bowl"