Skip to content

Instantly share code, notes, and snippets.

View sameerkhan116's full-sized avatar
🎯
Focusing

Sameer Khan sameerkhan116

🎯
Focusing
  • Microsoft
  • Washington, D.C.
View GitHub Profile
### Keybase proof
I hereby claim:
* I am sameerkhan116 on github.
* I am sameerkhan24 (https://keybase.io/sameerkhan24) on keybase.
* I have a public key ASDhWQIWhd4PGeK4aRc6_t-eCQ1uylhKjLdsRhnr9oRoxwo
To claim this, I am signing this object:
const afterwareLink = new ApolloLink((operation, forward) => {
return forward(operation).map(res => {
const context = operation.getContext();
const { response: { headers } } = context;
console.log(headers.get('x-token'));
const token = headers.get('x-token');
const refreshToken = headers.get('x-refresh-token');
if(token) {
localStorage.setItem('token', token);
}
import {split} from 'apollo-link';
import {HttpLink} from 'apollo-link-http';
import {WebSocketLink} from 'apollo-link-ws';
import {getMainDefinition} from 'apollo-utilities';
import {withData} from 'next-apollo';
import ws from 'websocket';
const uri = 'http://localhost:4000/graphql';
const subscriptionUri = 'ws://localhost:4000/subscriptions';
@sameerkhan116
sameerkhan116 / The Technical Interview Cheat Sheet.md
Created June 4, 2017 17:08 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.