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
IDENTIFICATION DIVISION. | |
PROGRAM-ID. LetterSearch. | |
DATA DIVISION. | |
WORKING-STORAGE SECTION. | |
01 LetterTable. | |
02 LetterValues. | |
03 FILLER PIC X(13) | |
VALUE "ABCDCEFGHIJLM". | |
03 FILLER PIC X(13) | |
VALUE "NOPQRSTUVWXYZ". |
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
{ | |
"connection": { | |
"appUser": "1", | |
"appPassword": "1", | |
"queueName": "1", | |
"port": "1", | |
"queueManagerName": "1", | |
"host": "1", | |
"channel": "1", | |
"applicationName": "1" |
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
const fs = require('fs') | |
const { Client } = require('ssh2'); | |
const run = async () => { | |
try { | |
return new Promise((resolve, reject) => { | |
const conn = new Client(); | |
conn.on('ready', () => { | |
console.log('Client :: ready'); |
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
const fs = require('fs'); | |
const lineReader = require('line-reader'); | |
const mainframeFileName = 'ftc/infolease-23-4-21.txt'; | |
const microserviceFileName = 'ftc/23-4-21-CACS_TO_INFOLEASE'; | |
var counter = 0; | |
const mainframeLines = await readlinesFromFile(mainframeFileName); | |
const microserviceLines = await readlinesFromFile(microserviceFileName); | |
const file1rmsRecords = []; | |
for (const line of mainframeLines) { | |
const result = flatFileToObj( |
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
[].map(itm=> ({...itm, column: itm.column.replace('msaRecord.', '').replace('msaData.','d_').replace('.', '_')})) | |
const data =[]; | |
let key = 'CREATE TABLE TABLE (', val = 'VALUES('; | |
data.forEach(itm=>{ | |
switch(itm.type){ | |
case 'string': | |
key += `${itm.column.toLocaleUpperCase()} VARCHAR(${itm.width}),`; | |
break; | |
case 'int': |
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
https://teams.microsoft.com/dl/launcher/launcher.html?url=%2F_%23%2Fl%2Fmeetup-join%2F19%3Ameeting_MTFlNjQwNzgtNWUxYi00MzBkLTlhMjAtNDRhMDBkODRhY2Ix%40thread.v2%2F0%3Fcontext%3D%257b%2522Tid%2522%253a%252239b03722-b836-496a-85ec-850f0957ca6b%2522%252c%2522Oid%2522%253a%25226c831103-637c-4b94-b28f-f30d105978a2%2522%257d%26anon%3Dtrue&type=meetup-join&deeplinkId=c7ba078d-cc5a-4c32-b47b-5d6548ed1bd2&directDl=true&msLaunch=true&enableMobilePage=true&suppressPrompt=true |
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
const App = props => { | |
const itemsRef = useRef([]); | |
// you can access the elements with itemsRef.current[n] | |
useEffect(() => { | |
itemsRef.current = itemsRef.current.slice(0, props.items.length); | |
}, [props.items]); | |
return props.items.map((item, i) => ( | |
<div |
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
let startDate = moment(date).subtract(1,'M').startOf('month').add(15,'d').format('YYYY-MM-DD') | |
let endDate = moment(date).subtract(1,'M').startOf('month').add(1,'M').add(14,'d').format('YYYY-MM-DD') | |
if(moment(date).isSameOrAfter(startDate) && moment(date).isSameOrBefore(endDate)){ | |
console.log(moment(startDate).format('MMM, YYYY')) | |
}else{ | |
console.log(moment(endDate).format('MMM, YYYY')) | |
} |
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
.select-style { | |
padding: 0; | |
margin: 0; | |
border: 1px solid #ccc; | |
width: 120px; | |
border-radius: 3px; | |
overflow: hidden; | |
background-color: #fff; | |
background-size:10px 10px; | |
background: #fff url("https://image.flaticon.com/icons/svg/892/892498.svg") no-repeat 40% 50%; |
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
{ | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true | |
}, | |
"eslint.validate": ["javascript"] | |
} |