Skip to content

Instantly share code, notes, and snippets.

View leo-mao's full-sized avatar
:octocat:
Coding like writing slides

Yang Mao leo-mao

:octocat:
Coding like writing slides
  • lmu
  • Munich
View GitHub Profile
@leo-mao
leo-mao / shadowsocks-client.services
Last active March 17, 2019 14:54 — forked from ygmpkk/sslocal.service
/etc/systemd/user/shadowsocks-client
[Unit]
Description=Daemon to start ShadowsocksR Client
Wants=network-online.target
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/python /home/Mao/workspace/shadowsocksr/shadowsocks/local.py -d start -c /home/Mao/workspace/shadowsocksr/chen-1.json --pid-file /var/run/sslocal.pid --log-file /var/log/sslocal.log
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
name: python36-SOTC
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
- conda-forge
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- r
- defaults
dependencies:
- absl-py=0.6.1=py36_1000
- cairo=1.14.12=h276e583_5
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: linux-64
@EXPLICIT
https://repo.anaconda.com/pkgs/main/linux-64/blas-1.0-mkl.tar.bz2
https://repo.anaconda.com/pkgs/main/linux-64/ca-certificates-2018.03.07-0.tar.bz2
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/intel-openmp-2019.0-118.tar.bz2
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/libgcc-ng-8.2.0-hdf63c60_1.tar.bz2
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/libgfortran-3.0.0-1.tar.bz2
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/libgfortran-ng-7.3.0-hdf63c60_0.tar.bz2
@leo-mao
leo-mao / remove_from_pip.sh
Last active November 15, 2018 03:01
remove all pkg installed by pip but in conflict with conda pkg management
sudo pip uninstall `conda list | grep -F '<pip>' | awk -F " " '{print $1}' | paste -s -d ' '`
@leo-mao
leo-mao / chinese.condarc
Last active November 17, 2018 02:28
sample .condarc files, based on sample from conda.io
channels:
# channels from THU 清华源
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/
Layer (type) Output Shape Param #
=================================================================
input_1 (InputLayer) (None, None, None, 3) 0
_________________________________________________________________
block1_conv1 (Conv2D) (None, None, None, 64) 1792
_________________________________________________________________
block1_conv2 (Conv2D) (None, None, None, 64) 36928
_________________________________________________________________
block1_pool (MaxPooling2D) (None, None, None, 64) 0
_________________________________________________________________
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
input_1 (InputLayer) (None, None, None, 3) 0
_________________________________________________________________
block1_conv1 (Conv2D) (None, None, None, 64) 1792
_________________________________________________________________
block1_conv2 (Conv2D) (None, None, None, 64) 36928
_________________________________________________________________
block1_pool (MaxPooling2D) (None, None, None, 64) 0
@leo-mao
leo-mao / scene_clustering.gist
Last active August 3, 2018 21:14
top_enable
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
input_1 (InputLayer) (None, 224, 224, 3) 0
_________________________________________________________________
block1_conv1 (Conv2D) (None, 224, 224, 64) 1792
_________________________________________________________________
block1_conv2 (Conv2D) (None, 224, 224, 64) 36928
_________________________________________________________________
block1_pool (MaxPooling2D) (None, 112, 112, 64) 0
@leo-mao
leo-mao / article-style.css
Last active May 12, 2018 21:51 — forked from Tvangeste/article-style.css
compact-golden-dict-style
#.dsl_headwords
#{
# white-space: nowrap;
#}
#.gddictname
#{
# width: 50%;
# white-space: nowrap;
# text-overflow: ellipsis;
# overflow: hidden;
@leo-mao
leo-mao / cmu_course.md
Created May 8, 2018 21:29 — forked from bumfo/cmu_course.md
CMU CS Course Info

#CMU Course Info 整理自一亩三分地

##08722 – Data Structurefor application programmers 这门课主要是开给EBIZ和MISM的,在MISM那边的课号是95772. 但是很多ECE, INI的同学,以及咱ME转CS帮都在上这门课。这门课只有半学期,一共6个credits,相当于1.5学分。内容非常基础,但是我觉得帮助挺大的,对于非CS科班出身想转CS的同学非常建议上一下, 基础越弱收获越大,要是基础比较硬的话就不用上了。LZ上的其它CS的课几乎都是各种牛校的PHD出身,这门课的老师好像都没有PHD学位,肯定没法去上15的课,但是讲课挺用心,讲的也很清楚。讲课这东西真的不是老师自己越牛就讲的越好。尤其数据结构这种比较基础的内容。这门课从最简单的内容讲起,包括array, arraylist, linked list, stack, queue,sorting(bubble, selection, insertion, merge, quick, heap), hashTable, hashMap,hashSet, BST, TreeMap, TreeSet, Huffman coding, Heap. 每周一次quiz, lab, homework。讲的时候内容都围绕Java Collection 来讲,还涉及与collection有关的comparator, iterator 等内容。这门课完全就是针对面试的,作业要求先手写代码(虽然大部分时候都是先ECLIPSE敲好再抄到纸上的)。

6次homework,前面的非常简单,后面稍微麻烦一点,难度都不大,就是让你去熟悉这些数据结构能自己implement,也能用JAVA COLLECTION。

  1. 自己implement 一个 arraylist 实现各种要求
  2. Queue, stack 的implement和应用