Skip to content

Instantly share code, notes, and snippets.

View willnewii's full-sized avatar

诗人的咸鱼 willnewii

  • luoyang
View GitHub Profile
@willnewii
willnewii / gist:949b3b61b0fe934a02ccf3192ff9b6af
Last active September 17, 2019 17:18
tampermonkey 倍速播放
// ==UserScript==
// @name 优酷/腾讯/爱奇艺 倍速播放
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://v.qq.com/x/cover*
// @match https://v.youku.com/v_show*
// @match https://www.iqiyi.com/v_*
// @require https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js
@willnewii
willnewii / java:getDistance
Last active December 27, 2015 15:59
根据坐标获取两点见距离
public class DistanceUtil {
private static final double EARTH_RADIUS = 6378137;
private static double rad(double d)
{
return d * Math.PI / 180.0;
}
/** *//**
* 根据两点间经纬度坐标(double值),计算两点间距离,单位为米
* @param lng1
@willnewii
willnewii / java
Last active December 27, 2015 12:59
Map遍历
/*
* 方式1
*/
Iterator iterator = hm.keySet().iterator();
while(iterator.hasNext()) {
System.out.println(hm.get(iterator.next()));
}
/*
* 方式2