Skip to content

Instantly share code, notes, and snippets.

View linw1995's full-sized avatar
🎯
Focusing

林玮 (Jade Lin) linw1995

🎯
Focusing
View GitHub Profile
@linw1995
linw1995 / settings.xml
Last active August 18, 2017 14:52
ConEmu Settings
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2017-08-09 23:40:40" build="161022">
<value name="ColorTable00" type="dword" data="00e7fdfd"/>
<value name="ColorTable01" type="dword" data="00ffe5d4"/>
<value name="ColorTable02" type="dword" data="0000af00"/>
<value name="ColorTable03" type="dword" data="0087af00"/>
<value name="ColorTable04" type="dword" data="000000dd"/>
<value name="ColorTable05" type="dword" data="00ff089a"/>
@linw1995
linw1995 / tasks.json
Created August 4, 2017 05:45
VSCode Task.json for Python Traceback.
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [{
"taskName": "Run Python",
"group": {
"kind": "build",
"isDefault": true
},
@linw1995
linw1995 / .jsbeautifyrc
Created August 11, 2017 04:39
VSCode React Development Workplace Settings
// this file should place in you project root.
{
"e4x": true,
"brace_style": "collapse,preserve-inline",
"break_chained_methods": true,
"max_preserve_newlines": 2,
"indent_size": 2
}
@linw1995
linw1995 / hfm.py
Created September 24, 2017 13:32
Huffman Encoding and Data Compression.
from collections import Counter
import argparse
from heapq import heapify, heappop, heappush
from itertools import count
from six import int2byte, byte2int
def huffman_tree(seq: list, frq: list) -> list:
''' 哈夫曼树 '''
@linw1995
linw1995 / README.md
Last active December 18, 2017 07:48
如何安装 Python openCV 环境

如何安装 Python openCV 环境

  1. 首先安装 Anaconda ,推荐安装Python3.x版本。 使用清华镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
@linw1995
linw1995 / LZW.py
Last active January 3, 2019 16:37
LZW Encoding and Data Compression.
# python version 3.7
# author: linw1995
# website: linw1995.com
import argparse
import io
import math
from typing import Dict, List
from six import int2byte
@linw1995
linw1995 / README.md
Created November 17, 2017 05:35
ubuntu如何启用IPv6。ubuntu how to enable IPv6.

ubuntu how to enable IPv6

sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 net.ipv6.conf.default.disable_ipv6=0 net.ipv6.conf.all.disable_ipv6=0
@linw1995
linw1995 / MinGW64 + MSYS2.md
Created December 4, 2017 06:16
window development 环境配置

MinGW64 + MSYS2 环境

下载地址,官网

www.msys2.org

pacman

安装完成后,可以用pacman命令安装程序,类似于ubuntu的apt-get命令

@linw1995
linw1995 / README.md
Last active April 17, 2018 07:28
Install pyenv on Ubuntu

install-dep

apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev

install

@linw1995
linw1995 / README.md
Created December 12, 2017 02:32
NSSM exe转系统服务

NSSM exe转系统服务

使用过程(示例)

nssm install ServiceName ExecutePath [ExecuteParams]
nssm start ServiceName