Skip to content

Instantly share code, notes, and snippets.

Andrew AndrewChanChina

  • shenzhen
Block or report user

Report or block AndrewChanChina

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AndrewChanChina
AndrewChanChina / js.html
Created Jul 7, 2017
js scheme打开app
View js.html
<html>
<head>
<script type="text/javascript">
function open_discovery()
{
window.open("mqqapi://qstory/opendiscovery?one_page=0&key_form=web&src_type=type&version=1&parter_api=tribe", '_blank')
// window.open('mqqapi://huayang', '_blank')
//window.location.href = 'mqqapi://qstory/open?src_type=1&version=1&parter_api=1&default_label=dd';
}
View java get object size
class Memory {
/**
* Function that get the size of an object.
*
* @param object
* @return Size in bytes of the object or -1 if the object
* is null.
* @throws IOException
*/
View curl help
上传文件
curl -i -d "type=1" http://upload.buluo.qq.com/cgi-bin/bar/upload/image --data-binary @""
@AndrewChanChina
AndrewChanChina / 性能优化
Last active Aug 29, 2015
文件拷贝的性能优化
View 性能优化
Like other have said, use FileChannel.transferTo() or FileChannel.transferFrom(). The key advantage here is that the JVM uses the OS's access to DMA (Direct Memory Access)
You can’t perform that action at this time.