Skip to content

Instantly share code, notes, and snippets.

@gmccreight
gmccreight / master.vim
Last active September 23, 2023 08:41
A script that gives you a playground for mastering vim
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
@erasin
erasin / webtest.go
Created August 26, 2013 09:36
golang 构建简单的服务器,和静态文件
package main
import (
"io"
"log"
"net/http"
"os"
)
func Hello(w http.ResponseWriter, r *http.Request) {