^

Young Anything I do that may help others, I'll post it here.

Long-term Investment

长期投资

将手中资金分为4类管理:

  • 活钱管理:20%,日常支出用钱,可以放在余额宝之类的货币基金中;
  • 稳健理财:40%,在一定期限后需要用到的钱,譬如买车旅游装修之类,可以放在稳健的定期理财里;
  • 保险保障:10%,不可或缺的一部分,提高资金整体抗风险水平;
  • 长期投资:30%,留给未来的钱。
...
more »

Business Writing

商务英语写作范式

BusinessWriting

...
more »

JS Note

原理示意图

...
more »

Build TF on win

准备工作

win:windows server 2016(win10应该也没问题,成功build和系统关系不大)

cMake:latest

TF源码:master -> 1.10(until 2018.9.1)

eigen:latest

python:3.5.0

visual studio:2015

可供参考的视频

...
more »

My Memo Note

C# Call RESTful

public class RestAPICall
{
    public static string MakeCall(string method, string endpoint, string content, string contentType = "application/json")
    {
        string result = string.Empty;
        try
        {
            var request = (HttpWebRequest)WebRequest.Create(endpoint);
            request.ContentType = contentType;
            request.Method = method;
            request.Headers["authorization"] = "Basic";
            request.Headers["X-Anchormailbox"] = "ipat";
            request.Headers["X-CallerFileNameLin"] = "mytest.cs";
            request.Headers["X-ProcessName"] = "test.powershell.exe";
            request.Headers["X-ClientRequestId"] = "c03b981a";
            request.Headers["X-ActivityId"] = "c03b981a-3";
            request.Headers["X-CallerFileNameLine"] = "Mypowershell.ps1,line 3";

            //using (var streamWriter = new System.IO.StreamWriter(request.GetRequestStream()))
            //{
            //    string json = content;

            //    streamWriter.Write(json);
            //}

            var response = (HttpWebResponse)request.GetResponse();
            using (var streamReader = new System.IO.StreamReader(response.GetResponseStream()))
            {
                result = streamReader.ReadToEnd();
            }
        }
        catch (Exception e)
        {
            return e.ToString();
        }

        return result;
    }
}

tmux 操作

“start”: “webpack-dev-server –mode development –config ./webpack.dev.js –https –cert ./certs/server.crt –key ./certs/server.key”,

...
more »