View webvr.js
var krpanoplugin = function () { | |
function vs(e) { | |
return ".yes.on.true.1" [a](("." + e)[m]()) >= 0 | |
} | |
function gs() { | |
ns = 0; | |
if (oi[nr] || Ei) ns = 2; | |
if (ns > 0) { | |
if (ji == 1 && oi[M] && oi[Bn] && (oi[I] | 0) == 65) { | |
var e = r, |
View krpano.js
/* | |
krpano Embedding Script | |
krpano 1.19-pr4 (build 2016-04-07) | |
*/ | |
function createPanoViewer(e) { | |
function ut(e) { | |
return ("" + e).toLowerCase() | |
} | |
function at(e, t) { |
View lombok.pom
<dependency> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
<version>1.16.6</version> | |
</dependency> |
View tool.js
//添加数组的移除函数 | |
Array.prototype.remove = function(from, to) { | |
var rest = this.slice((to || from) + 1 || this.length); | |
this.length = from < 0 ? this.length + from : from; | |
return this.push.apply(this, rest); | |
}; | |
//添加 indexOf 函数功能 | |
Array.prototype.indexOf = function(val,name) { | |
for (var i = 0; i < this.length; i++) { |
View snippet.java
ThreadGroup group = Thread.currentThread().getThreadGroup(); | |
ThreadGroup topGroup = group; | |
// 遍历线程组树,获取根线程组 | |
while (group != null) { | |
topGroup = group; | |
group = group.getParent(); | |
} | |
// 激活的线程数再加一倍,防止枚举时有可能刚好有动态线程生成 | |
int slackSize = topGroup.activeCount() * 2; | |
Thread[] slackThreads = new Thread[slackSize]; |
View snippet.java
public static String getYearBegin(){ | |
Calendar calendar = Calendar.getInstance(); | |
calendar.set(Calendar.MONTH,calendar.getMinimum(Calendar.MONTH)); | |
calendar.set(Calendar.DAY_OF_MONTH,calendar.getMinimum(Calendar.DAY_OF_MONTH)); | |
return DateUtils.getDateStrByFormat(calendar.getTime(),"yyyy-MM-dd"); | |
} | |
public static String getYearEnd(){ |
View jquery.pjax.2.js
/*! | |
* pjax(ajax + history.pushState) for jquery | |
* | |
* by welefen | |
*/ | |
(function($) { | |
var Util = { | |
support : { | |
pjax : window.history && window.history.pushState && window.history.replaceState && !navigator.userAgent.match(/(iPod|iPhone|iPad|WebApps\/.+CFNetwork)/), | |
storage : !!window.localStorage |
View replaceAll.js
String.prototype.replaceAll = function(search, replacement) { | |
var target = this; | |
return target.replace(new RegExp(search, 'g'), replacement); | |
}; |
View sh-thread-kill.sh
#!/bin/sh | |
if [ $(lsof -t -i:6000) ]; then | |
echo 'stop' | |
kill -9 $(lsof -t -i:6000) fi |
View formdata.js
var formData = new FormData(excelForm[0]); | |
$.ajax({ | |
url: 'upload.jhtml', | |
type: 'POST', | |
cache: false, | |
data: formData, | |
processData: false, | |
contentType: false | |
}) | |
NewerOlder