- 博客(150)
- 资源 (5)
- 收藏
- 关注
原创 window.atob and window.btoa
解码和解码https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/atob
2017-12-21 13:46:09
483
原创 ployfill
Polyfill for browsers.Object.assign() 在ie上面不支持需要用到polyfill,自己实现对象属性的copy也是可以的。https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
2017-12-19 09:58:38
454
原创 sql
sql 三目运算Update table_name set column = case when clumn='test' then 'test1' else 'test2' end
2017-09-25 16:16:43
340
转载 ie scrollbar
-ms-overflow-style: auto | none | scrollbar | -ms-autohiding-scrollbarProperty valuesOne or more of the following scrolling method values, in the order of preference.autoInitial value.
2017-08-24 00:10:18
432
原创 gradle
cordova plugin add https://github.com/apache/cordova-plugin-test-framework.git
2017-05-22 15:12:24
319
原创 https for tomcat
https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.htmlReference
2017-03-16 15:37:19
299
转载 Angular find controller from element or no element
var scope= angular.element($(".classselector")[0]).scope();var scope = angular.element($('[ng-controller=myController]')).scope();
2016-08-24 18:19:24
425
原创 grunt error $injector module is not available
Karma 没有按照顺序import js 文件,需要添加确定顺序 'app/**/*.module.js', 'app/**/*.js',
2016-08-10 18:26:46
325
转载 转载的code网站
http://www.codewars.com/ http://codeforces.com/ https://www.hackerrank.com/ https://projecteuler.net/archives http://www.spoj.com/ http://boolan.com/ http://www.fre
2016-07-08 14:28:06
1033
原创 class diagram for java
比较符合eclipse 风格的插件发现两个objectid 和 AmaterasUML UMLet 很强大AmaterasUML_1.3.4.zip✕
2016-06-03 18:25:07
408
原创 jsonp
Jsonp是什么?json padding通过创建js元素在dom 中,获得跨域的能力。因为src 的属性的标签有跨域能力。本地js 定义函数,服务器端调用定义的函数并且带有返回值。这样就成功将数据传过来了。
2016-06-03 14:21:59
265
原创 sublime text
快捷键:ctrl + p查找anything 查function : somefile @ function in jsctrl + shift + pinput "ss" can set syntax like js karma set global.$ npm install -g karma@~* --save-dev
2016-05-18 11:48:23
363
原创 create source map
java -jar compiler.jar \ --js script.js \ --create_source_map ./script-min.js.map \ --source_map_format=V3 \ --js_output_file script-min.js
2016-05-10 16:13:11
545
原创 vitrualbox
VBoxManage modifyvm macname --cpuidset ######## ######## ######## ######## ########
2016-05-10 14:31:34
678
原创 stax
Down load stax-1.2.0.jarStAX is a PULL API where as SAX is a PUSH API
2016-05-04 09:50:23
329
原创 adb devices error
Windows ADB ConfigurationThe first step in configuring a Windows based development system to connect to an Android device using ADB is to install the appropriate USB drivers on the system. In the
2016-04-29 18:36:58
552
原创 git save jenkens
git config --global credential.helper store --file=demotest.credentialsgit config --global credential.username aaa
2016-04-27 19:19:09
436
原创 IE cookie
Security patch MS01-055 prevents servers with improper name syntax from setting cookies names. Domains that use cookies must use only alphanumeric characters ("-" or ".") in the domain name and the
2016-04-22 09:59:13
278
原创 Get paramter
String value = request.getHeader(parameter); value = request.getParameter(parameter); value = (String) request.getSession().getAttribute(parameter); value = (Str
2016-03-18 10:02:18
532
转载 获得getLocalIP
public static String getLocalIP() { InetAddress addr; String localIP = null; try { addr = InetAddress.getLocalHost(); localIP = addr.getHostAddress
2016-03-17 19:58:04
2228
原创 Custom cxf log
beansxmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://cxf.apache.org/core" xsi:schemaLocation=
2016-03-17 15:43:21
323
转载 Get entity inputstream which type is EofSensorInputStream
File targetFile = new File("foo.pdf");if (entity != null) { InputStream inputStream = entity.getContent(); OutputStream outputStream = new FileOutputStream(targetFile); IOUtils.copy(inpu
2016-03-17 13:21:34
1920
转载 Http client
org\apache\httpcomponents\httpclient\4.4-beta1\httpclient-4.4-beta1.jar org\apache\httpcomponents\httpclient-cache\4.4-beta1\httpclient-cache-4.4-beta1.jar org\apache\httpcomponents\httpcore\4.4-b
2016-03-16 19:23:46
409
原创 tomcat manager the Cross Origin Resource Sharing
CorsFilter org.apache.catalina.filters.CorsFilter CorsFilter /* cors.allowed.origins * cors.allowed.methods GET,POST,HEAD,OPTIONS,PUT cors.allowed.header
2016-03-16 10:37:26
479
原创 Frontend maven plugin
plugins> plugin> groupId>com.github.eirslettgroupId> artifactId>frontend-maven-pluginartifactId> https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-
2016-03-08 14:32:54
5440
原创 Maven skip unit test and build to directory
1. Skip unit test-Dmaven.test.skip=true 2.Build to directoryorg.apache.maven.pluginsmaven-war-plugin2.3pinpoint-serverC:/Program Files (x86)/apache-tomcat-7.0.67/webapps/
2016-02-29 17:13:35
417
原创 tomcat server for the webapp can be custom defined.
创建tomcat server 的时候可以自定义应用的输出路径。不必到default里面。但是不如应经有应用在里面是不能自定义设置的。Server LocationsSpecify the server path (i.e. catalina.base) and deploy path. Server must be published with no modules present
2016-02-25 17:29:56
348
原创 typescript 编译后的 extends
var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.pro
2015-04-29 16:59:01
2148
转载 JavaScript的执行顺序
通常状况下,javascript作为一种解释性的脚本,都是从上而下顺序执行的,但是JavaScript还允许在其语句中嵌套,也就是这个样子:document.write("alert(t);");注意:不能写作,要用字符串连接的形式来表述,否则会有语法错误,估计是因为JavaScript遇到就以为脚本结束了。在这种情况下,正常的脚本和嵌入的脚本的执行顺序就需要研究一下了。
2014-07-24 15:38:50
679
转载 Robomongo
Robomongo 是一个基于 Shell 的跨平台开源 MongoDB 管理工具。嵌入了 JavaScript 引擎和 MongoDB.
2014-07-09 08:51:17
990
Java 网络编程 飞鸽传书的研究与实现
2009-03-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人