Tux


KISS

quick sort based on double linked list

```python
"""Quick Sort based on double linkedlist
"""
import collections
import random

class DataNode:
def init(self, ...

Algorithms_4th #quick sort #double linked list #算法 #algs-4th 1 comment 31

listing files

```python
"""1.3.43 Listing files.
A folder is a list of files and folders. Write a program that takes the
name of a folder as a comma...

Algorithms_4th #listing files #算法 #algs-4th 0 comments 30

Linux Performance Tools Set 小记

7b1c050cf39246a2.png

Networks

  • ss/netstat

    ```bash
    $ ss -antpu
    ...

Linux #Linux-Performance-Tools #port-used 0 comments 40

Move To Front

```Python
"""1.3.40 Move-to-front.
Read in a sequence of characters from standard input and
maintain the characters in a linked list w...

Algorithms_4th #algs-4th #move-to-front-python 0 comments 39

环形缓冲区(ring buffer)

```Python
"""1.3.39 Ring ring_buffer
A ring ring_buffer, or circular queue, is a FIFO data structure of a fixed size N.
It is useful f...

Algorithms_4th #algs-4th #ring-buffer #算法 0 comments 39

使用Docker部署站点,文件操作编码错误小记

碰到的问题如下

UnicodeEncodeError: 'ascii' codec can't encode characters in position xx-xxx: ordinal not in range(128)

因为要进行文件操作,而文件名含有中文的...

Docker #PYTHONIOENCODING #Docker #Python3 0 comments 60