码迷,mamicode.com
首页 >  
搜索关键字:tr    ( 4510个结果
spark1.1.0源码阅读-executor
1. launchTask1 def launchTask(2 context: ExecutorBackend, taskId: Long, taskName: String, serializedTask: ByteBuffer) {3 val tr = new Task...
分类:其他好文   时间:2014-12-11 23:54:50    阅读次数:228
Path Sum II
Path Sum IIGiven a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tr...
分类:其他好文   时间:2014-12-11 20:36:17    阅读次数:205
第二章 创建对话框
2.1 Q_OBJECT宏tr()翻译成其他语言的标记, 字符串中使用“&”来表示快捷键。eg:findButton = new QPushButton(tr(“&Find”)); 通过Alt + F激活 setBuddy()设置“伙伴”,所谓“伙伴”就是一个窗口部件,它可以再按下标签快捷键时接收焦...
分类:其他好文   时间:2014-12-11 17:11:19    阅读次数:167
html5本地存储之indexedDb
对于以下需求:离线存储读取数据允许用户对数据进行增删改操作数据存储在本地,不依赖后端数据支持索引查询我们可以考虑使用html5新特性的本地存储,主要有以下几种:WebSql(IE,FF都不支持,http://www.w3.org/TR/webdatabase/)IndexedDBLocalStorage(轻松存储简单的数据结构,..
分类:数据库   时间:2014-12-11 16:07:53    阅读次数:275
JAVA:在0-99间产生100个不重复的随机数
Random rand = new Random(); boolean[] bool = new boolean[100]; int[] number = new int[100]; int randINT; for(int i = 0;i<100;i++){ do{ randI...
分类:编程语言   时间:2014-12-11 15:20:54    阅读次数:152
用的特多的Js
//根据单独的值切换所有复选框$("input[type='checkbox']").prop("checked", function( i, val ) { return !val;});//操作复选框$("input[type='checkbox']").prop({ disabled: tr....
分类:Web程序   时间:2014-12-10 15:46:35    阅读次数:137
【转】SQL注入和XSS bypass waf 测试向量
原文 http://www.cnblogs.com/r00tgrok/articles/3860093.html1. 识别脆弱点 http://www.site.com.tr/uyg.asp?id=123'+union+selec+1,2,3-- http://www.site.com.tr/uyg...
分类:数据库   时间:2014-12-10 01:44:59    阅读次数:443
linux cat,tac,more,less,head,tail,cut,sort,uniq,wc,tr命令的使用
cat:连接并显示,比如:[root@localhost~]#cat/tmp/sort.test 111 324 567 324 890 890 567 abc加上选项-n会显示行号:[root@localhost~]#cat-n/tmp/sort.test 1111 2324 3567 4324 5890 6890 7567 8abc加上-E选项会显示行尾符$:(linux中行尾符是$)root@localhost~]#cat-E/tmp..
分类:系统相关   时间:2014-12-09 01:57:25    阅读次数:272
使用jquery-qrcode生成二维码
<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">?? <html?xmlns="http://www.w3.org/1999/xhtml">?? <head>?? ?<...
分类:Web程序   时间:2014-12-08 15:55:37    阅读次数:255
去除windows下换行符^M
tr-d"\r"<file.txt>out.txt tr-d"\015"<file.txt>out.txt#^M八进制形式是015 stringsfile.txt>out.txt sed-i‘s/^M//g‘file.txt#^M不是shift+^再加上M,应该是ctrl+v加上ctrl+m vi文件下执行:%s/^M//g替换为空 dos2unixfile.txt
分类:Windows程序   时间:2014-12-08 15:45:09    阅读次数:299
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!