Skip to content

Instantly share code, notes, and snippets.

@molouh
molouh / how-to-download-from-pan-baidu.md
Created August 16, 2024 05:23
How to download from pan.baidu without account

How to download from pan.baidu.com

Disclaimer:

  • This methods uses a 3rd party website: https://baidu.kinh.cc/.
  • I don't know chinese and after one day of searching for a method I finally found this. I don't know how safe this website is but it does the job.
  • Do it on your own responsibility. I have no idea about possible copyright (if there is such a thing in China) and other stuff regarding to this.

Steps

1. Open the website mentioned above and fill out fields as following:

@molouh
molouh / bspline.py
Created February 23, 2022 14:52 — forked from soulslicer/bspline.py
B Spline Pure Numpy
import numpy as np
import matplotlib.patches as patches
class BSpline():
def __init__(self):
pass
self.warp = 4.
self.count = 26*2
@molouh
molouh / parametrizer.py
Created February 23, 2022 10:41 — forked from lhchavez/parametrizer.py
Reads an .svg with a single path made only of cubic Bezier curves and generates a parametric equation to graph it.
#!/usr/bin/python
import Image
import ImageDraw
import math
from xml.dom.minidom import parse
import sys
from mpmath import mp
divisions = 2
import arcade
"""
A silly demo with the python arcade library
"""
SCREEN_WIDTH = 640
SCREEN_HEIGHT = 480
HALF_SQUARE_WIDTH = 2.5
@molouh
molouh / maze.py
Created December 29, 2020 21:09 — forked from timurbakibayev/maze.py
from PIL import Image, ImageDraw
images = []
a = [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0 ,0, 0, 0, 1, 0, 1, 1, 1, 1],
[1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0 ,0, 0, 0, 1, 0, 0, 0, 0, 0],