Skip to content

Instantly share code, notes, and snippets.

View zhaobenx's full-sized avatar
🐟
摸鱼

Ben Zhao zhaobenx

🐟
摸鱼
  • NYU
View GitHub Profile
@zhaobenx
zhaobenx / printer.cfg
Created December 18, 2022 10:50
KP3s pro Klipper configuration | 启庞 KP3s pro 的 klipper 配置文件
# This file contains common pin mappings for MKS Robin Nano (v1.2.004)
# boards. To use this config, the firmware should be compiled for the
# STM32F103. When running "make menuconfig", enable "extra low-level
# configuration setup", select the 28KiB bootloader, disable "USB for
# communication", and select USART3 for the "Serial Port".
# Note that the "make flash" command does not work with MKS Robin
# boards. After running "make", run the following command:
# ./scripts/update_mks_robin.py out/klipper.bin out/Robin_nano.bin
# Copy the file out/Robin_nano.bin to an SD card and then restart the
@zhaobenx
zhaobenx / Fake data generator.py
Created October 18, 2019 02:38
给傻逼的Database作业填一些fake的data。
# -*- coding: utf-8 -*-
"""
Created on 2019-10-17 20:09:09
@Author: ZHAO Lingfeng
@Version : 0.0.1
"""
import random
from faker import Faker
# pylint: disable=maybe-no-member
@zhaobenx
zhaobenx / XiamiSpider-gui.pyw
Last active August 13, 2017 09:20
python3.6 requested
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 30 13:59:19 2017
@author: 凌丰
"""
import sys
import os
from urllib.parse import unquote, quote