Skip to content

Instantly share code, notes, and snippets.

@umair-khokhar
umair-khokhar / Basics.md
Last active January 7, 2022 23:28
Stocks Trading Basics

Learning Stocks concepts:

Support and resistance

  1. Support is when pause of downtrends is paused because of the demand concentration

Support

  1. Resistance happens when there is a supply concentration which causes temporary pause of uptrend.

Resistance

@umair-khokhar
umair-khokhar / theme_challenge.md
Last active December 14, 2021 13:36
Kick start notes - Theme challenge

Schedule:

Sprint Date			Items
1      15-21 Dec 	Stylesheet, C9, Documentation plan, accessibility checklist, code review process. QA process, Finalize templates.
2      22 Dec-6 Jan	20 modules (Design, development, documentation, QA, accessibility)
3      7-24 Jan     18 modules (Design, development, documentation, QA, accessibility)
4      25-31 Jan    Final QA, Finetunes, consolidation, compliance with submission requirements.
@umair-khokhar
umair-khokhar / response.json
Created October 16, 2021 02:47
iWave Resposne
{
"pro_score": 1,
"score_details": {
"capacity_rating": 1,
"capacity_value": 0,
"capacity_source": null,
"affinity_rating": 1,
"primary_affinity_rating": 1,
"secondary_affinity_rating": null,
"propensity_rating": 1
@umair-khokhar
umair-khokhar / iWave-HubSpot.md
Last active October 5, 2021 00:02
iWave HubSpot Integration

Requirements

  1. When a contact is added, address information will be sent to iWave for pulling score.
  2. Create workflow extension to support webhooks in client portfolio

Access Required

  1. iWave - OK
  2. HubSpot - OK
  3. AWS - OK

Inputs

Real Numbers

  • Asset Replacement Value (ARV)
  • Production dollar value per hour
  • Total yearly maintenance costs for that facility/cluster/network
  • Value of spare parts

Percentages

  • Safety performance
  • Compliance govt regulations
function QueueItem(row, col, distance) {
this.row = row;
this.col = col;
this.distance = distance;
}
const minDistance = (grid) => {
let source = new QueueItem(0, 0, 0);
1. Write a custom method to replace the string "The quick brown fox jumps
over the lazy dog" with the string "The1 quick2 brown3 fox4 jumps5
over6 the7 lazy8 dog9"
const transformStr = (str) => {
console.log(this);
let strArr = str.split(' ');
let numArr = Array(strArr.length).fill().map((v, i) => i = i + 1);
return strArr.map((v, i) => v + numArr[i]).join(' ')
{
"data": [
{
"type": "fulfillments",
"id": "string",
"attributes": {
"status": "string",
"service_level": "string",
"ship_method": "string",
"shipping_address": {
@umair-khokhar
umair-khokhar / gist:065e5ab156a4cf08c88c9f50ebde145a
Created September 16, 2019 17:17
Shipment API JSON Schema
{
"data": {
"type": "shipments",
"id": "string",
"attributes": {
"tracking": {
"code": "string",
"carrier": "string",
"url": "string"
},
@umair-khokhar
umair-khokhar / Mantra Health HubSpot Integration
Last active July 24, 2019 22:01
MantraHealth HubSpot Integration
# HubSpot Integration
The HubSpot integration consists of two components:
- HubSpot Developer App
- HubSpot library in the code base
## Installing the HubSpot Developer App