- 原因:部屬自動部屬環境,需要可以自動pull git 資料,不需密碼。
- 潛在風險:可能有安全性的疑慮(
.netrc
中的密碼為明碼,要設定好.netrc
的讀取權險,目前只在測試server上使用。 - git:使用bit。
- 參考: https://stackoverflow.com/questions/31609203/git-netrc-file-authentication-issue
# 到根目錄下
cd ~
``` | |
轉自網路文章,原文已被刪除 | |
``` | |
email:pianopan@beeship.com | |
[版本] -0.13 | |
[介紹] | |
gcc and g++分別是gnu的c & c++編譯器 gcc/g++在執行編譯工作的時候,總共需要4步 |
.netrc
中的密碼為明碼,要設定好.netrc
的讀取權險,目前只在測試server上使用。# 到根目錄下
cd ~
module.exports = { | |
siteMetadata: { | |
title: `Blog`, | |
description: `serve my blog post`, | |
author: `@Howard`, | |
}, | |
plugins: [ | |
`gatsby-plugin-react-helmet`, | |
{ | |
resolve: `gatsby-source-filesystem`, |
runningSum :: [ Int ] -> Maybe [ Int ]
runningSum x = Just (sum' x a)
where a = 0; sum' [] a = []
sum' (x:xs) a = (a+x) : sum' xs (a+x)
main = do
putStrLn "1480. Running Sum of 1d Array"
putStrLn "https://leetcode.com/problems/running-sum-of-1d-array/"
function 有分 declare 跟 invoke 對吧
type 也有
對 term level 來講 type 不管是 declare 還是 invoke ,都是宣告
我大概理解這個問題了。我會有這樣錯誤的觀念,是我之前在寫 ts 版本的 redux saga的時候,遇到這個問題。
當時我的解決方式,是將 takeLatest
加上 any, error訊息就消失了。
// Import stylesheets | |
import './style.css'; | |
// Write TypeScript code! | |
const appDiv: HTMLElement = document.getElementById('app'); | |
appDiv.innerHTML = `<h1>TypeScript Starter</h1>`; | |
// const id = x => x | |
// const a = 1 | |
// create a Box which turns this |
針對提到的第一點,我想要針對我的觀念做一點釐清跟討論。
我今天認真的看了一下 讀書會 第二場,跟一些 Learn You a Haskell for Great Good
的內容。
我發現 haskell 裡的所有的 function 都只接受一個 param,並回傳一個function 接受下一個 param。
其實在 oo 中,可以 combine 起來,變成一個 function,接受兩個 parameter。
<?php
namespace App\Services;
use GuzzleHttp\Psr7;
use GuzzleHttp\Psr7\Uri;
abstract class OauthRequestBase
{
// Http testing module and mocking controller
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
// Other imports
import { TestBed } from '@angular/core/testing';
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { HttpHeaders } from '@angular/common/http';