Skip to content

Instantly share code, notes, and snippets.

View aneasystone's full-sized avatar

Desmond Stonie aneasystone

View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by aneasystone on 2018/3/13
import pylab as pl
# https://github.com/gdsmith/jquery.easing/blob/master/jquery.easing.js
def ease_in_quad(x):
return x * x
import pylab
import bs4
def get_mcd_content():
path = 'C:/Users/aneasystone/Desktop/11.mcd'
mcd = ''
with open(path, 'rb') as file:
mcd = file.read()
return str(mcd)
import net.lightbody.bmp.BrowserMobProxy;
import net.lightbody.bmp.BrowserMobProxyServer;
import net.lightbody.bmp.client.ClientUtil;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
public class Test {
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
.container {
width: 340px;
background: #fff;
border: 1px solid #37c249;
}