Skip to content

Instantly share code, notes, and snippets.

View 117503445's full-sized avatar
👨‍💻
Coding

HaoTian Qi 117503445

👨‍💻
Coding
View GitHub Profile
@117503445
117503445 / main.md
Created April 21, 2020 07:45
Python selenium 控制已打开的 Chrome
  1. 使用 chrome.exe --remote-debugging-port=9222 打开浏览器

  2. Python 中添加 chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct
{
unsigned int size;
//子字符串数量
char **list;
//用字符串数组来存放字符串列表
@117503445
117503445 / utf8.c
Created May 31, 2020 09:57
C : read and write UTF-8 file
/* fgetwc example */
#include <stdio.h>
#include <wchar.h>
int main()
{
FILE *fin;
FILE *fout;
wint_t wc;
fin = fopen("in.txt", "r");
fout = fopen("out.txt", "w");
// C program for Huffman Coding
#include <stdio.h>
#include <stdlib.h>
// This constant can be avoided by explicitly
// calculating height of Huffman Tree
#define MAX_TREE_HT 100
// A Huffman tree node
struct MinHeapNode {
@117503445
117503445 / LaTeX Figure.tex
Last active August 30, 2020 12:29
LaTeX Figure
\begin{figure}[htbp]
\centering
\includegraphics[width=13cm]{figures/1-1.png}
\caption{image caption}
\label{image label}
\end{figure}
@117503445
117503445 / wjx.py
Created February 26, 2021 02:28
Python 问卷星模拟登陆获取 SojumpSurvey
import requests
from lxml import etree
def get_SojumpSurvey(username: str, password: str) -> str:
'''
模拟问卷星登录,获得 SojumpSurvey
多次调用需间隔 40 s
'''
SERVERID = requests.get(