Mark White Personal Wiki

Table of Contents

1 Emacs

1.1 spacemacs

1.1.2 tags

1.2 vim shortcut

1.2.1 o 在下一行插入

1.2.2 O 在上一行插入

1.2.3 A 到行尾插入

1.2.4 :%s/old/new/g 全局替换

1.2.5 :line number 跳到某一行

1.2.6 cw 替换到 word 结尾

1.2.7 R 替换到结尾

1.2.8 c$ 替换到 line 结尾

1.3 org mode

1.4 magit

2 Linux

2.2 shell

2.4 memory

3 Database

3.1 mysql

3.2 mongoDB

3.2.1 db.collection.drop()

3.2.2 in python you must from bson import ObjectId to initialization a primry key

4 Python

4.1 syntax

4.2 django

4.3 flask

4.4 celery

4.5 library

5 Internets

5.1 having sex with gfw

5.1.1 homebrew fix

brew 支持全局 socks 代理使用前加上这一句: export ALL_PROXY=socks5://127.0.0.1:portnumber http://leegorous.net/blog/2012/08/10/how-to-skip-download-in-brew-install/

5.2 proxychains

  1. proxychains
  2. git

6 Scala

6.1 material

6.1.1 sbt template generator with new command

  1. this is official guide

6.2 sbt slow problem

6.2.1 replace ~/.sbt/repositories with my file in blackmagic please:)!

6.3 traning site

6.4 knowledge

6.4.1 understanding type keyword

  1. type is alas of type signature

6.4.2 the difference between class and object

  1. A class is a definition, a description. It defines a type in terms of methods and composition of other types.
  2. An object is a singleton – an instance of a class which is guaranteed to be unique. For every object in the code, an anonymous class is created, which inherits from whatever classes you declared object to implement. This class cannot be seen from Scala source code – though you can get at it through reflection.

6.4.4 scala map flatmap 的区别 flatmap 就是把 map 拍平 也可以理解为对子结构递归 map 然后展开为 list

6.4.5 scala fold foldleft foldright

  1. foldleft cumulate a single result using a start value and this operation start with most left in sequence
    val numbers = 1 until 10
    numbers.foldLeft(0) { (m: Int, n: Int) => println("m: " + m + " n: " + n); m + n }
    

    m: 0 n: 1 m: 1 n: 2 m: 3 n: 3 m: 6 n: 4 m: 10 n: 5 m: 15 n: 6 m: 21 n: 7 m: 28 n: 8 m: 36 n: 9 m: 45 n: 10 res0: Int = 55

  2. foldright cumulate a single result using a start value and this operation start with most right in sequence
    numbers.foldright(0){ (m: Int, n: Int) => println("m: " + m + " n: " + n); m + n }
    

    m: 9 n: 10 m: 8 n: 19 m: 7 n: 27 m: 6 n: 34 m: 5 n: 40 m: 4 n: 45 m: 3 n: 49 m: 2 n: 52 m: 1 n: 54 res0: Int = 55

7 Algorithms

7.2 algorithms

7.3 text book and website

7.4 data structure

7.4.1 一个有趣的数据结构 bloom filter

它可以在有限的内存空间内存储无限的数据,你添加数据增加的是查询时候返回错误答案的概率。 bloom filter

8 Machine Learning

8.1 ensembling is very important !!!(at least for kaggle)

8.1.1 this is why

8.2 random forest

8.2.1 wiki

8.2.2 sklearn

8.3 activation function

8.3.1 Rectifier

8.4 npl

8.6 scientific notation

8.6.1 so link

8.6.2

9 Life

9.1 what worth fighting for

9.2 good youtube vedio

10 Scheme

10.1 list

11 Math

11.1 Euclidean Distance

11.1.1 常用与 svm 的 kernel,还有 perceptron 的计算中

11.1.2 本质就是向量对自己点乘法然后开根号

11.2 horner's rule

說白了就是瘋狂對 x 提取公因子

11.3 多项式公式

12 font end

12.1 html boilerplateo

12.1.1 github link

12.2 jQuery material

12.2.1 w3schools

13 Coursera

13.1 to learn list

13.1.3 https://www.coursera.org/learn/progfun2 function design pattern in scala

14 uncollected

14.2 zhihu

15 just in mind

15.1 看视频累了的时候可以看看后面讲义

16 good quotes

“If you learn only methods, you’ll be tied to your methods. But if you learn principles, you can devise your own methods.” —Ralph Waldo Emerson

Author: mark

Created: 2017-04-11 Tue 08:34

Validate