Skip to content

Instantly share code, notes, and snippets.

View abustamam's full-sized avatar

Rasheed Bustamam abustamam

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am abustamam on github.
  • I am abustamam (https://keybase.io/abustamam) on keybase.
  • I have a public key ASChn17yvFTi6vC_ipX3pSoKw8xrrPxErSPiUF6yvaenvAo

To claim this, I am signing this object:

type IContext =
| { isLoggedIn: boolean; loggedInUser?: any, initialized: boolean, account?: undefined }
| { isLoggedIn: false; loggedInUser?: undefined, initialized: boolean, account?: undefined }
| { isLoggedIn: true; loggedInUser?: any, initialized: boolean, account?: undefined }
| { isLoggedIn: boolean; loggedInUser?: any, initialized: boolean; account?: undefined }
| { isLoggedIn: boolean; loggedInUser?: any, initialized: false; account?: undefined }
| { isLoggedIn: boolean; loggedInUser?: any, initialized: true; account?: Account }
@abustamam
abustamam / app.js
Created August 17, 2018 20:04
numbers.js
import { one, two } from 'numbers'
import one from 'one/one'
@abustamam
abustamam / app.js
Created March 12, 2018 17:41
App.js for feed reader testing
/* app.js
*
* This is our RSS feed reader application. It uses the Google
* Feed Reader API to grab RSS feeds as JSON object we can make
* use of. It also uses the Handlebars templating library and
* jQuery.
*/
// The names and URLs to all of the feeds we'd like available.
var allFeeds = [
areStatesEqual: (prev, next) => {
return (
prev.users.all === next.users.all
);
}
// should be
areStatesEqual: (next, prev) => {
return (
import { ApolloClient } from 'apollo-client'
import { HttpLink } from 'apollo-link-http'
import { InMemoryCache } from 'apollo-cache-inmemory'
import gql from 'graphql-tag'
const client = new ApolloClient({
link: new HttpLink({ uri: 'https://graphql.example.com' }),
cache: new InMemoryCache()
})
{
"articles": [
{
"postId": 1,
"title": "Why GraphQL is cool",
"author": {
"name": "Rasheed Bustamam",
"email": "rasheed.bustamam@gmail.com"
}
},
type User {
name: String!
email: String!
}
type query {
allUsers: [User]
user(username: String!): User
}