Todo.
MIT Algorithm - 7.1.基本数据结构_栈、队列、链表、有根树
Todo.
MIT Algorithm - 3.分治法实例_二分查找 和求a^b
Todo.
MIT Algorithm - 2.渐近符号、递归及解法_和连续子数组的最大和、主方法/主定理求时间复杂度
Todo.
MIT Algorithm - 1.算法分析: 插入排序 vs 二路归并排序
Sort algorithm All kinds of sort algorithms. Insertion sort CLICK ME: [code] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 #include <iostream>#include <vector>#include <string> using namespace
(Hu)go Template Primer
Hugo uses the excellent go html/template library for its template engine. It is an extremely lightweight engine that provides a very small amount of logic. In our experience that it is just the right amount of logic to be able to create a good static website. If you have used other template systems from different languages or frameworks you will find a lot of similarities in go templates.
This document is a brief primer on using go templates.
Getting Started with Hugo
Step 1. Install Hugo Goto hugo releases and download the appropriate version for your os and architecture.
Save it somewhere specific as we will be using it in the next step.
More complete instructions are available at installing hugo
Step 2. Build the Docs Hugo has its own example site which happens to also be the documentation site you are reading right now.
Follow the following steps:
Clone the hugo repository Go into the repo Run hugo in server mode and build the docs Open your browser to http://localhost:1313 Corresponding pseudo commands:
Migrate to Hugo from Jekyll
Move static content to static Jekyll has a rule that any directory not starting with _ will be copied as-is to the _site output. Hugo keeps all static content under static. You should therefore move it all there. With Jekyll, something that looked like
1 2 3 ▾ <root>/ ▾ images/ logo.png should become
1 2 3 4 ▾ <root>/ ▾ static/ ▾ images/ logo.png Additionally, you’ll want any files that should reside at the root (such as CNAME) to be moved to static.
Syntax Highlighting
More detail: Syntax Highlighting | Hugo
|
|