├── playground
├── test_jupyter.ipynb
└── install-graphviz.ipynb
└── README.md
/playground/test_jupyter.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "cells": [
3 | {
4 | "cell_type": "code",
5 | "execution_count": 1,
6 | "metadata": {
7 | "collapsed": false
8 | },
9 | "outputs": [
10 | {
11 | "data": {
12 | "text/plain": [
13 | "3/5"
14 | ]
15 | },
16 | "execution_count": 1,
17 | "metadata": {},
18 | "output_type": "execute_result"
19 | }
20 | ],
21 | "source": [
22 | "(+ 1 (- 2 (* 3 (/ 4 5))))"
23 | ]
24 | },
25 | {
26 | "cell_type": "code",
27 | "execution_count": null,
28 | "metadata": {
29 | "collapsed": true
30 | },
31 | "outputs": [],
32 | "source": []
33 | }
34 | ],
35 | "metadata": {
36 | "kernelspec": {
37 | "display_name": "Calysto Scheme 3",
38 | "language": "scheme",
39 | "name": "calysto_scheme"
40 | },
41 | "language_info": {
42 | "codemirror_mode": {
43 | "name": "scheme"
44 | },
45 | "mimetype": "text/x-scheme",
46 | "name": "scheme",
47 | "pygments_lexer": "scheme"
48 | }
49 | },
50 | "nbformat": 4,
51 | "nbformat_minor": 0
52 | }
53 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # [Notes lite](https://github.com/rainyear/lolita/issues)
2 |
3 | > _Quick notes & reminders_
4 |
5 | 23. [sed & grep 批量替换多个文件中的文字](https://git.io/lo32)
6 | 22. [Let’s Encrypt + Nginx + Tornado 开启 HTTPS ](https://git.io/lo31)
7 | 21. [在 Jupyter 中使用 Graphviz](https://git.io/lo30)
8 | 20. [Tornado+MongoDB 实现微信公众号自动回复](https://git.io/lo28)
9 | 19. [快速制作一个有创意的捐赠页面](https://git.io/lo27)
10 | 18. [用 conda 管理 Python 开发环境](https://git.io/lo26)
11 | 17. [为Jupyter添加Vim绑定](https://git.io/lo25)
12 | 16. [Ghost + LaTex](https://git.io/lo24)
13 | 15. [Safari 的开发者模式](https://git.io/lo23)
14 | 14. [自定义 GitHub 短网址服务](https://git.io/lo22)
15 | 13. [pip 镜像设定](https://git.io/lo20)
16 | 12. [为不同域名下的Git远程仓库分配不同的SSH key](https://git.io/lo19)
17 | 11. [Install OpenCV 3.0 with Python 3.4 on OSX & Ubuntu](https://git.io/lo18)
18 | 10. [Effective Go 摘记](https://git.io/lo16)
19 | 9. [Install Deepdream(Caffe-python) on Mac OS X Yosemite 10.10.3](https://git.io/lo10)
20 | 8. [Hand posture detection with OpenCV](https://git.io/lo08)
21 | 7. [Homebrew fk my opencv up?](https://git.io/lo07)
22 | 6. [Mongodb & Go 项目部署](https://git.io/lo06)
23 | 5. [Vim as Golang IDE](https://git.io/lo05)
24 | 3. [JAVA_HOME does not point to the JDK](https://git.io/lo03)
25 | 2. [Intel HAXM 为 Android 模拟器加速](https://git.io/lo02)
26 | 1. [科学上网](https://git.io/lo01)
27 |
28 | ---
29 |
30 | :bookmark: [Tags](https://github.com/rainyear/lolita/labels?sort=count-desc)
31 |
32 | ---
33 |
--------------------------------------------------------------------------------
/playground/install-graphviz.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "cells": [
3 | {
4 | "cell_type": "code",
5 | "execution_count": 1,
6 | "metadata": {
7 | "collapsed": false
8 | },
9 | "outputs": [
10 | {
11 | "data": {
12 | "image/svg+xml": [
13 | "\n",
14 | "\n",
16 | "\n",
18 | "\n",
19 | "\n"
91 | ],
92 | "text/plain": [
93 | ""
94 | ]
95 | },
96 | "execution_count": 1,
97 | "metadata": {},
98 | "output_type": "execute_result"
99 | }
100 | ],
101 | "source": [
102 | "from graphviz import Digraph\n",
103 | "\n",
104 | "dot = Digraph(comment='Tree')\n",
105 | "heap = \"ABCDEFG\"\n",
106 | "\n",
107 | "for i in heap:\n",
108 | " dot.node(str(i), str(i))\n",
109 | "def draw(heap):\n",
110 | " for parent in range(int(len(heap)/2)+1):\n",
111 | " left = parent*2+1\n",
112 | " right = parent*2+2\n",
113 | " if left < len(heap):\n",
114 | " dot.edge(str(heap[parent]), str(heap[left]))\n",
115 | " if right < len(heap):\n",
116 | " dot.edge(str(heap[parent]), str(heap[right]))\n",
117 | "\n",
118 | "draw(heap)\n",
119 | "dot"
120 | ]
121 | },
122 | {
123 | "cell_type": "code",
124 | "execution_count": 2,
125 | "metadata": {
126 | "collapsed": false
127 | },
128 | "outputs": [
129 | {
130 | "data": {
131 | "image/svg+xml": [
132 | "\n",
133 | "\n",
135 | "\n",
137 | "\n",
138 | "\n"
175 | ],
176 | "text/plain": [
177 | ""
178 | ]
179 | },
180 | "execution_count": 2,
181 | "metadata": {},
182 | "output_type": "execute_result"
183 | }
184 | ],
185 | "source": [
186 | "from graphviz import Source\n",
187 | "\n",
188 | "src = Source('digraph {A->B->C->A}')\n",
189 | "src"
190 | ]
191 | }
192 | ],
193 | "metadata": {
194 | "kernelspec": {
195 | "display_name": "Python 3",
196 | "language": "python",
197 | "name": "python3"
198 | },
199 | "language_info": {
200 | "codemirror_mode": {
201 | "name": "ipython",
202 | "version": 3
203 | },
204 | "file_extension": ".py",
205 | "mimetype": "text/x-python",
206 | "name": "python",
207 | "nbconvert_exporter": "python",
208 | "pygments_lexer": "ipython3",
209 | "version": "3.5.1"
210 | }
211 | },
212 | "nbformat": 4,
213 | "nbformat_minor": 0
214 | }
215 |
--------------------------------------------------------------------------------