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
package com.sios; | |
import java.io.IOException; | |
import java.net.URISyntaxException; | |
import java.nio.charset.Charset; | |
import java.nio.charset.StandardCharsets; | |
import java.security.InvalidKeyException; | |
import com.fasterxml.jackson.core.JsonParseException; | |
import com.fasterxml.jackson.databind.JsonMappingException; |
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
// MySQLのモジュールを読み込む | |
const mysql = require('mysql2'); | |
// ファイルを読み込むためのモジュールを読み込む | |
const fs = require('fs'); | |
module.exports = function (context, myTimer) { | |
var timeStamp = new Date().toISOString(); | |
if(myTimer.isPastDue) |
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
// MySQLのモジュールを読み込む | |
const mysql = require('mysql2'); | |
// ファイルを読み込むためのモジュールを読み込む | |
const fs = require('fs'); | |
module.exports = function (context, myTimer) { | |
var timeStamp = new Date().toISOString(); | |
if(myTimer.isPastDue) |
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
// MySQLのモジュールを読み込む | |
const mysql = require('mysql2'); | |
// ファイルを読み込むためのモジュールを読み込む | |
const fs = require('fs'); | |
module.exports = function (context, myQueueItem) { | |
context.log('JavaScript queue trigger function processed work item:', myQueueItem); | |
// MySQLに接続するための情報を環境変数から取得する。 |
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
// MySQLのモジュールを読み込む | |
const mysql = require('mysql2'); | |
// ファイルを読み込むためのモジュールを読み込む | |
const fs = require('fs'); | |
module.exports = function (context, myTimer) { | |
var timeStamp = new Date().toISOString(); | |
if(myTimer.isPastDue) |
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
pipeline { | |
agent any | |
tools { | |
// Jenkinsの設定画面でインストールしたMavenの名前を入力する | |
maven 'M3' | |
} | |
// 環境変数を設定する。 | |
environment { | |
// テストを実施したいアプリケーションのURLを環境変数に設定する。 | |
HELLOWORLD_URL = '[Hello WorldアプリケーションのURL]' |
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
package com.sios.test; | |
import static org.junit.Assert.*; | |
import org.junit.Test; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.chrome.ChromeOptions; |
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
<policies> | |
<inbound> | |
<!-- CORSの設定を行う。AngularからAzure FunctionsのAPIをコールするために必要な設定。--> | |
<cors allow-credentials="true"> | |
<allowed-origins> | |
<origin>[Azure App ServiceのURL]</origin> | |
</allowed-origins> | |
<allowed-methods> | |
<method>*</method> | |
</allowed-methods> |
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 { Component,ElementRef, ViewChild } from '@angular/core'; | |
import { Http,Headers } from '@angular/http'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './chat.component.html', | |
}) | |
export class ChatComponent { | |
@ViewChild('scrollMe') private myScrollContainer: ElementRef; |
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
module.exports = function (context, req) { | |
// このオブジェクトの中にCosmos DBに対して、 | |
// クエリ「SELECT * FROM c order by c.pubDate asc」を発行した結果が入ります。 | |
var documents = context.bindings.inputDocument; | |
// 先程CosmosDBから取得したJOSNをHTTPレスポンスとして返します。 | |
context.res = { | |
status: 202, | |
headers: { |