2標題
很簡單,就這樣那樣,然後這樣那樣
123
haha
koko
fsadf sdfad
function solution(A, X) {
var N = A.length; if (N === 0) {
return -1;
}
// highlight-next-line
var l = 0;
var r = N - 1;
while (l < r - 1) {
var m = Math.floor((l + r) / 2);
if (A[m] > X) {
r = m - 1;
} else {
l = m;
}
}
if (A[l] == X) {
return l;
}
return -1;
}ls1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1\
https://using-remark.gatsbyjs.org/code-and-syntax-highlighting/
1
https://haodong.io/adding-code-syntax-highlights-to-gatsby-blog
gatsby-highlight-code-line// https://docs.aws.amazon.com/amplify/latest/userguide/custom-domains.html // https://docs.aws.amazon.com/en_us/amplify/latest/userguide/howto-third-party-domains.html
// dns有差,會比較慢
// route53 // 已經有用apex domain name取名的SOA record // 而且route53不像一般DNS使用@代表apex domain // 所以當我需要設定 apex domain指向時 // 會造成record conflict
先把External nameserver轉移到Route53 再去amplify console設定custom domain 會自動把apex domain加進route53 record不用自己設
amplify
amplify作的事,把github source code拉下來,跑gatsby build再放到s3,更新cloudfront dist
所以不需要自己先build再push,git repo也不需要放public asset