Skip to content

Instantly share code, notes, and snippets.

View Rainboylvx's full-sized avatar
💭
c++ maga

Rainboy Rainboylvx

💭
c++ maga
View GitHub Profile
@Rainboylvx
Rainboylvx / express.md
Created June 14, 2016 07:21 — forked from dlutwuwei/express.md
express4.2源码解析

title: express4.2源码解析 date: 2014-05-18 15:00:50 categories: express tags: [nodejs, node, js, express]

express是nodejs平台上一个非常流行的框架,4.2.0是最新的版本,相比3.x版本优化了代码和api,去除了connect模块,自己实现了一个router组件,实现http请求的顺序流程处理,去除了很多绑定的中间件,使代码更清晰。

##1.使用express 如何使用express在官网有很好的讲解,只用experssjs实例app的几个函数,就可以构建构建web程序。

#!/usr/bin/env bash
#
# Free Pascal installation script for Unixy platforms.
# Copyright 1996-2004 Michael Van Canneyt, Marco van de Voort and Peter Vreman
#
# Don't edit this file.
# Everything can be set when the script is run.
#
# Release Version will be replaced by makepack
body {
background: url(bk.png);
background-image: url(bk.png);
background-position-x: initial;
background-position-y: initial;
background-size: initial;
background-repeat-x: initial;
background-repeat-y: initial;
background-attachment: initial;
background-origin: initial;
@Rainboylvx
Rainboylvx / .block
Last active May 31, 2018 03:05
how_use_link
license: mit
@Rainboylvx
Rainboylvx / .block
Created May 31, 2018 08:46
simple tree
license: mit
@Rainboylvx
Rainboylvx / .block
Last active June 4, 2018 02:44
animate line with arrow
license: mit
@Rainboylvx
Rainboylvx / .block
Created June 4, 2018 02:36
transition learn
license: mit
@Rainboylvx
Rainboylvx / .block
Created June 4, 2018 02:36
transition learn
license: mit
@Rainboylvx
Rainboylvx / sametail
Last active January 27, 2019 15:02
graphviz样例
digraph g{
rankdir=LR;
edge[samehead=h1, sametail=t1];
a1->b->c1;
a2->b->c2;
edge[samehead=h2, sametail=t2];
a3->b->c3;
a4->b->c4;
}