Skip to content

Instantly share code, notes, and snippets.

(function ($) {
$.fn.hubspotForm = function (options) {
var defaults = {
portalID: "1799160",
formGUID: "138b1606-f288-4e65-b21a-053f93cc40e9",
successMessage: ".success-message",
submit: ".submit"
};
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MAX_WORD_LENGTH 5
int main(int argc, char *argv[])
{
char password[5];
int authenticate = 0;
Request
=======
POST <URL TBD> HTTP/1.1
Content-Type: application/json
{
"data": [
{
"type": "applicant",
"id": 1, //only if you need to update an applicant
GET:
https://meg-api-tezrosolutions.c9users.io/?name=Umair
POST:
curl -XPOST -H "Content-type: application/json" -d '{"name": "umair"}' https://meg-api-tezrosolutions.c9users.io/
@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
@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"
},
{
"data": [
{
"type": "fulfillments",
"id": "string",
"attributes": {
"status": "string",
"service_level": "string",
"ship_method": "string",
"shipping_address": {
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(' ')
function QueueItem(row, col, distance) {
this.row = row;
this.col = col;
this.distance = distance;
}
const minDistance = (grid) => {
let source = new QueueItem(0, 0, 0);

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