- 데이터의 상태를 유지하기 위한 방법
- 기존에 반환했던 데이터를 저장했다가 이후 데이터 작업시 첫번째 인자로 전달해줌
scan
- http://rxmarbles.com/#scan
- 데이터가 발생할 때마다 발생
reduce
- http://rxmarbles.com/#reduce
$(window).on('unload', function() { | |
$(window).scrollTop(0); | |
}); | |
window.onunload = function(){ window.scrollTo(0,0); } | |
if ('scrollRestoration' in history) { | |
history.scrollRestoration = 'manual'; | |
} |
scan
reduce
Scheduler | Description | Purpose |
---|
#!/bin/sh | |
KEY_FILE_NAME=$1 | |
KEY_LENGTH=${2:-4096} | |
ssh-keygen -t rsa -m PEM -b ${KEY_LENGTH} -f ${KEY_FILE_NAME}.key -C "" | |
openssl rsa -in ${KEY_FILE_NAME}.key -pubout -outform PEM -out ${KEY_FILE_NAME}.key.pub | |
cat ${KEY_FILE_NAME}.key | |
cat ${KEY_FILE_NAME}.key.pub |
// Put this script in `Pre-req` or `Tests` and run | |
pm.globals.set('loadHelpers', function loadHelpers() { | |
let helpers = {}; | |
let escapedUtf16Regex = /\\u([\d\w]{4})/gi; | |
helpers.getValue = (name) => pm.variables.get(name); | |
helpers.getResult = (index) => { | |
const body = pm.response.json().result; | |
if (typeof index !== 'undefined' && body instanceof Array) { | |
return body[index]; |