This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function executeReferencedRequest({ collectionUId, requestUId, requestName, apiKey }, callback) { | |
var _ = require('lodash'); | |
let message; | |
if (!apiKey) { | |
message = "Pleas generate an API key and add it in your collection level variables" | |
} | |
if (!collectionUId) { | |
message = "Please enter the UId of the collection from which you want to resuse a request or script" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I have stored the generated Mock URL as Collection Variable | |
let snapshotURL = pm.variables.get('snapshotURL'), | |
/* Create the path that was used in actual request. We will send it along with our Mock endpoint */ | |
path = pm.request.url.path.join('/'); | |
/* If request contains any query params then pass those as well to mock endpoint */ | |
if (pm.request.url.query.count()) { | |
let params = pm.request.url.query.map((q) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I have stored the generated Mock URL as Collection Variable | |
let snapshotURL = pm.variables.get('snapshotURL'), | |
/* Create the path that was used in actual request. We will send it along with our Mock endpoint */ | |
path = pm.request.url.path.join('/'); | |
/* If request contains any query params then pass those as well to mock endpoint */ | |
if (pm.request.url.query.count()) { | |
let params = pm.request.url.query.map((q) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Reconciler from 'react-reconciler' | |
import omit from 'lodash/omit' | |
import capitalize from 'lodash/capitalize' | |
import { actions as elementActions } from './store/elements' | |
import * as Elements from './elements' | |
const roots = new Map() | |
const emptyObject = {} | |
const Renderer = Reconciler({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { PropTypes } from 'react' | |
const Describe = ({ title, children }) => ( | |
<div> | |
<h1>{title}</h1> | |
<ul>{children}</ul> | |
</div> | |
) | |
Describe.propTypes = { |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
elem.clientLeft
,elem.clientTop
,elem.clientWidth
,elem.clientHeight
elem.getClientRects()
,elem.getBoundingClientRect()
Author: Ari Lerner.
AngularJS offers a single framework that can be used to build dynamic, client-centric applications. It provides:
- Module support
- DOM manipulation
- Animations
- Templating