Skip to content

Instantly share code, notes, and snippets.

@yanqian
yanqian / gist:47fce977e603f74de89a97439c847596
Last active May 29, 2024 04:07
Benchmark on Go Http Server VS Python Flask

Prerequirement

Both run on my local machine.

Source Go

package main

import (
    "fmt"
@yanqian
yanqian / macbook-setup.md
Created April 11, 2018 10:43 — forked from antiagainst/macbook-setup.md
Set Up Zsh, Presto, Homebrew, Ruby, Powerline, and Vim on Mac OS X

blog about these tools

Setup Zsh and Prezto

  • Change default shell to Zsh
chsh -s $(which zsh)
  • Clone Presto and install it according to README.md
@yanqian
yanqian / tree.md
Created May 31, 2017 07:19 — forked from hrldcpr/tree.md
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

here everyone.
glad to be here!