Skip to content

Instantly share code, notes, and snippets.

View zainxyz's full-sized avatar
🎮
live in your world, play in ours

Zain zainxyz

🎮
live in your world, play in ours
View GitHub Profile
@zainxyz
zainxyz / ES6-HTTP.js
Last active August 7, 2017 05:26
A generic implementation of the ES6 Fetch() calls (GET, POST, PUT, PATCH, DELETE)
/**
* You might need to install node-fetch...if so then leave this line
* otherwise comment it out.
*/
// import fetch from 'node-fetch';
/**
* Generic Application Headers required for each API call.
*
* NOTE: The Accept and or Content-Type might be different for each HTTP call,
@zainxyz
zainxyz / interview-questions.js
Last active May 24, 2019 03:21
Couple of good JavaScript Interview Questions (solved using ES6+)
/**
* What is the difference between '==' and '===' in JavaScript?
*
* '==' matches just the value, where as '===' (also known as the 'strict') operator matches both
* the value and the type.
*/
console.log(100 == '100'); // true, because only value matter
console.log(100 === '100'); // false, because type and value both matter
/**
@zainxyz
zainxyz / .nycrc
Last active January 14, 2019 19:18
Setup Mocha with ES6 / Babel and chai, sinon, enzyme (React) for testing
{
"all": false,
"branches": 90,
"cache": true,
"check-coverage": true,
"exclude": [
"**/*.test.js",
"coverage/**"
],
"extension": [
@zainxyz
zainxyz / RESUME_CHEAT_SHEET.md
Created February 9, 2019 21:36
Resume Cheat Sheet

Resume Cheat Sheet

✅ Use a pre-designed resume template
✅ Make the resume fit on 1 page
✅ Include words from job description
✅ Include company name you are applying to
✅ Does your first item on your resume reflect what they are looking for?
✅ Experience titles demonstrate value
✅ Do you have an online link?