This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var xmlhttp = new XMLHttpRequest(); | |
| var obj_list = document.getElementsByName('main')[0].contentDocument.getElementsByTagName('tr'); | |
| var len_list = obj_list.length; | |
| var list_todo = []; | |
| var num_list = 0; | |
| for (var i = 2; i < len_list; i++) | |
| { | |
| if (obj_list[i].cells[4].innerText != '查看') | |
| { | |
| list_todo.push(obj_list[i].cells[4].firstChild.href); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var list_link = []; | |
| var npage = document.getElementsByClassName('num-all')[0].innerText; | |
| for (var i_page = 1; i_page <= npage; i_page++) | |
| { | |
| var rdm = Math.random(); | |
| var obj = JSON.stringify({"channelCode":["fixed_disc"],"pageSize":30,"pageNum":i_page,"stock":[]}); | |
| var ret = $.ajax | |
| ( | |
| { | |
| url : 'http://www.szse.cn/api/disc/announcement/annList?random=' + rdm, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import struct | |
| import cv2 | |
| # 输入的训练数据数量 | |
| n_Trained = 100 | |
| # 训练数据向量集 | |
| trained = [] | |
| # 训练数据标签集 | |
| label = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| :start | |
| cls | |
| echo 请确保电脑与安卓设备可以正常进行ADB调试 | |
| echo 启用/禁用 包: adb shell pm enable/disable [package name] | |
| echo 禁用某用户 包: adb shell pm disable-user --user x [package name] | |
| echo 卸载 包: adb shell pm uninstall (--user x) [package name] | |
| echo 1. 查看所有包 | |
| echo 2. 查看已禁用包 | |
| echo 3. 查看当前获取焦点的包 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>flv流播放</title> | |
| </head> | |
| <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script> | |
| <script src="https://cdn.bootcss.com/flv.js/1.5.0/flv.min.js"></script> | |
| <body> | |
| <div style="margin: auto;text-align: center;"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #图片透射变换 | |
| import numpy as np | |
| import cv2 | |
| import math | |
| import sys | |
| global pt | |
| global src, img | |
| global t | |
| global fname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var courseURLList = []; | |
| var index_ID = -1; | |
| var lastHour = 0; | |
| var lastMinute = 0; | |
| var lastSecond = 0; | |
| getCourseList(); | |
| nextVideo(); | |
| var _timer = setInterval | |
| ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //JS获取table列 | |
| var str = null; | |
| var obj = document.getElementById(123) | |
| var len = obj.rows.length | |
| for (var i = 1;i<len;i++) | |
| { | |
| str += "\""; | |
| str += obj.rows.item(i).cells.item(0).innerHTML; | |
| str += "\","; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| df = pd.read_csv('population.csv',skiprows=3) | |
| df.set_index('Country Code',inplace=True) | |
| excep = ['EAP','SAS','TEA','TEC','TLA','TMN','TSA','TSS', | |
| 'IBT','IDA','IDB','OED','HIC','LTE','PRE','PST', | |
| 'IDX','SSA','LDC','ECS','HPC','LIC','LCN','LAC', | |
| 'EUU','FCS','LMY','MIC','IBD','EAR','LMC','UMC', | |
| 'EAS','SSF','MEA','ECA','ARB','MNA','NAC','EMU', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Segment 1 - Open All Folders to show file trees | |
| FolderNum = document.getElementsByClassName("ml").length | |
| for (var i=0;i<FolderNum;i++) | |
| { | |
| document.getElementsByClassName("ml")[i].click() | |
| } | |
| document.getElementsByClassName("ml")[FolderNum-1].click() | |
| #Segment 2 - Find download URLs textfile and download | |
| var reg = /ys-.\.ys168\.com\/\S*\.doc[x]?/g; | |
| src = document.getElementById("mainMenu").innerHTML |