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
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "UiPath.WebApi 15.0", | |
"description": "Orchestrator API", | |
"version": "15.0" | |
}, | |
"host": "cloud.uipath.com", | |
"basePath": "/mvpjapankino/enterpriseTenant/orchestrator_/", | |
"schemes": [ |
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 XlsxPopulate = require('xlsx-populate') | |
// 指定された場合は、一行目の文字列群を使ってプロパティを作成する | |
const workbook: any = await XlsxPopulate.fromFileAsync(inputFullPath) | |
const headers: string[] = workbook | |
.sheet(sheetName) | |
.usedRange() | |
.value() | |
.shift() |
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 XlsxPopulate = require('xlsx-populate') | |
// 指定された場合は、一行目の文字列群を使ってプロパティを作成する | |
const workbook: any = await XlsxPopulate.fromFileAsync(inputFullPath) | |
const headers: string[] = workbook | |
.sheet(sheetName) | |
.usedRange() | |
.value() | |
.shift() |
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 XlsxPopulate = require('xlsx-populate') | |
const workbook: any = await XlsxPopulate.fromFileAsync(inputFullPath) | |
const headers: string[] = workbook | |
.sheet(sheetName) | |
.usedRange() | |
.value() | |
.shift() |
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
hoge(x: number, y: number, z: number): number { | |
return x + y + z | |
} | |
hoge_curry(x: number): (y: number) => (z: number) => number { | |
return (y: number): ((z: number) => number) => { | |
return (z: number): number => { | |
return x + y + z | |
} | |
} |
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 array1 = [1, 2, 3, 4,5]; | |
const reducer = (accumulator, currentValue,index) => { | |
console.log(`---`) | |
console.log(`Index: ${index}`) | |
console.log(`A: ${accumulator}`) | |
console.log(`C: ${currentValue}`) | |
return {value: accumulator.value + currentValue} | |
return accumulator+currentValue | |
} |
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 re: { [key: string]: any[] } = {} | |
const datas = [ | |
{ key: 'a', id: 'a_id1', value: '11' }, | |
{ key: 'a', id: 'a_id2', value: '12' }, | |
{ key: 'a', id: 'a_id3', value: '13' }, | |
{ key: 'b', id: 'b_id1', value: '21' }, | |
{ key: 'b', id: 'b_id2', value: '22' }, | |
] | |
for (const row of datas) { |
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 moment = require('moment-timezone') | |
// シンプルに | |
console.log(moment().format()) // 2020-02-13T10:47:10+09:00 (いま日本で10:47です) | |
console.log(new Date().toLocaleString()) // 2020-2-13 10:50:22 AM | |
// ってやると本番に行くと値が9時間ずれるよね、みたいな件。。 | |
// 日付をあつかうには | |
// どのタイムゾーンの日付か(Timezone) | |
// どの言語で表示するか(Locale) |
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 request = require('request') | |
const url = 'https://rss.techplay.jp/event/w3c-rss-format/rss.xml' | |
request(url, function(error, response, body) { | |
if (!error && response.statusCode == 200) { | |
console.log(body) | |
const regex = /[\b]/ | |
body = body.replace(regex) | |
const json = xml2json(body) | |
// for (var i in json.rss.channel.item) { |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Parameters": { | |
"VpcId": { | |
"Type": "AWS::EC2::VPC::Id", | |
"Description": "VpcId of your existing Virtual Private Cloud (VPC)" | |
}, | |
"SubnetId": { | |
"Type": "AWS::EC2::Subnet::Id", | |
"Description": "SubnetId of your existing Subnet" |
NewerOlder