06 2017 档案

摘要:Data Types Primitive data types in the Swagger Specification are based on the types supported by the JSON-Schema Draft 4. Models are described using t 阅读全文
posted @ 2017-06-29 12:29 cdongyang 阅读(1112) 评论(0) 推荐(0)
摘要:ubuntu(linux)下谷歌浏览器跨域问题 今天在使用谷歌浏览器实时调试代码的时候遇到这样的错误: XMLHttpRequest cannot load http://localhost:8080/ No ‘Access-Control-Allow-Origin’ header is prese 阅读全文
posted @ 2017-06-29 00:31 cdongyang 阅读(461) 评论(0) 推荐(0)
摘要:官方网站 In addition to simply finding the rows to be returned by a query, an index may be able to deliver them in a specific sorted order. This allows a 阅读全文
posted @ 2017-06-28 16:27 cdongyang 阅读(3189) 评论(0) 推荐(0)
摘要:官网文档 Since a DELETE of a row from the referenced table or an UPDATE of a referenced column will require a scan of the referencing table for rows match 阅读全文
posted @ 2017-06-28 14:42 cdongyang 阅读(2119) 评论(0) 推荐(0)
摘要:vim处理字符的大小写转换 ~ 将光标下的字母改变大小写3~ 将光标位置开始的3个字母改变其大小写g~~ 改变当前行字母的大小写U 将可视模式下选择的字母全改成大写字母u 将可视模式下选择的字母全改成小写gUU 将当前行的字母改成大写guu 将当前行的字母全改成小写 3gUU 将从光标开始到下面3行 阅读全文
posted @ 2017-06-25 20:47 cdongyang 阅读(271) 评论(0) 推荐(0)
摘要:原文:一般优化linux的内核,需要优化什么参数 阅读全文
posted @ 2017-06-23 17:51 cdongyang 阅读(229) 评论(0) 推荐(0)
摘要:百度百科-关于爬虫在网站上爬取的内容 User-agent: Baiduspider Disallow: /baidu Disallow: /s? Disallow: /ulink? Disallow: /link? User-agent: Googlebot Disallow: /baidu Di 阅读全文
posted @ 2017-06-23 14:39 cdongyang 阅读(352) 评论(0) 推荐(0)
摘要:1.输入"uname -a ",可显示电脑以及操作系统的相关信息。 2.输入"cat /proc/version",说明正在运行的内核版本。 3.输入"cat /etc/issue", 显示的是发行版本信息 4.lsb_release -a (适用于所有的linux,包括Redhat、SuSE、De 阅读全文
posted @ 2017-06-23 14:25 cdongyang 阅读(227) 评论(0) 推荐(0)
摘要:Linux进程管理及while循环 目录 进程的相关概念 进程查看及管理工具的使用 Linux系统作业控制 调整进程优先级 网络客户端工具 bash之while循环 20.1、进程类型 守护进程 daemon,在系统引导过程中启动的进程;跟终端无关的进程; 前台进程 跟终端相关,通过终端启动的进程; 阅读全文
posted @ 2017-06-22 16:17 cdongyang 阅读(1013) 评论(0) 推荐(0)
摘要:1 ## 2 # You should look at the following URL's in order to grasp a solid understanding 3 # of Nginx configuration files in order to fully unleash the 阅读全文
posted @ 2017-06-21 01:49 cdongyang 阅读(543) 评论(0) 推荐(0)
摘要:git reset HEAD^^^... git commit -m "..." git push origin --force 阅读全文
posted @ 2017-06-18 21:47 cdongyang 阅读(1098) 评论(0) 推荐(0)
摘要://wsRouter_test.gopackage Network import ( "encoding/json" "io/ioutil" "logs" "net/http" "net/url" "strings" "testing" "time" ) type testData struct { id string data interface{} ... 阅读全文
posted @ 2017-06-16 15:14 cdongyang 阅读(513) 评论(0) 推荐(0)
摘要:https://blog.golang.org/cover http://blog.csdn.net/liumiaocn/article/details/54922487 Documents Packages The Project Help Blog </form> Documents Packa 阅读全文
posted @ 2017-06-15 16:13 cdongyang 阅读(461) 评论(0) 推荐(0)
摘要:上面是一个数据分流处理的函数,然后每个分流函数处理完后的数据都调用了writeResponseToClient,但这样在对某个分流函数进行分流测试时无法将数据返回到调用处,单元测试时就无法得到测试返回值,所以应统一将结果返回到函数调用处进行处理 修改后: 阅读全文
posted @ 2017-06-15 16:00 cdongyang 阅读(306) 评论(0) 推荐(0)
摘要:J - 砝码称重 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit Status J - 砝码称重 Time Limit: 2000/1000 MS (Java/Othe 阅读全文
posted @ 2017-06-14 19:22 cdongyang 阅读(184) 评论(0) 推荐(0)
摘要:I - 2048 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit Status Problem Description 《2048》是一款比较流行的数字游戏,最早于20 阅读全文
posted @ 2017-06-14 19:17 cdongyang 阅读(343) 评论(0) 推荐(0)
摘要:H - 扑克牌 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit Status H - 扑克牌 Time Limit: 2000/1000 MS (Java/Others 阅读全文
posted @ 2017-06-14 19:15 cdongyang 阅读(421) 评论(0) 推荐(0)
摘要:G - EXCEL排序 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit Status G - EXCEL排序 Time Limit: 2000/1000 MS (Jav 阅读全文
posted @ 2017-06-14 19:13 cdongyang 阅读(293) 评论(0) 推荐(0)
摘要:F - Prime Independence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit Status F - Prime Independence Time Li 阅读全文
posted @ 2017-06-14 19:11 cdongyang 阅读(310) 评论(0) 推荐(0)
摘要:E - Fantasy of a Summation Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit Status E - Fantasy of a Summation 阅读全文
posted @ 2017-06-14 19:08 cdongyang 阅读(178) 评论(0) 推荐(0)
摘要:D - Pyramid of Glasses Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit Status Problem Description Mary has j 阅读全文
posted @ 2017-06-14 19:05 cdongyang 阅读(250) 评论(0) 推荐(0)
摘要:C - 字典序最小的子序列 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 1280000/640000 KB (Java/Others) Submit Status Problem Description 给出一个由a-z组成的字符串S,求 阅读全文
posted @ 2017-06-14 19:03 cdongyang 阅读(622) 评论(0) 推荐(0)
摘要:B - Subsequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit Status B - Subsequence Time Limit: 2000/1000 阅读全文
posted @ 2017-06-14 19:00 cdongyang 阅读(222) 评论(0) 推荐(0)
摘要:function setCookie(cname,cvalue) { document.cookie=cname+"="+cvalue; } function getCookie(cname) { var cookie=document.cookie; var beg=cookie.indexOf(cname+"="); if(beg<0) return ""... 阅读全文
posted @ 2017-06-08 00:14 cdongyang 阅读(125) 评论(0) 推荐(0)
摘要:// 文件为大小文件的依据是ParseMultipartForm的maxMemory参数的大小 // 获取文件大小的接口,上传小文件时,文件类型为:multipart.sectionReadCloser type Size interface { Size() int64 } // 获取文件信息的接口,上传大文件时,文件类型为: *os.File type Stat interface { ... 阅读全文
posted @ 2017-06-05 17:59 cdongyang 阅读(370) 评论(0) 推荐(0)
摘要:css("width")返回的是字符串,..px width()返回的是浮点数,可用于运算,所以要将控件居中时需要用width()而不能用css("width") 1 function setCenter(tag){ 2 tag.css({"margin-left":parseFloat(tag.p 阅读全文
posted @ 2017-06-05 02:44 cdongyang 阅读(295) 评论(0) 推荐(0)
摘要:1 <form method="post" enctype="multipart/form-data" id="fileinfo" name="fileinfo" > 2 <input class="input" type="file" name="file"></input> 3 </form> 阅读全文
posted @ 2017-06-04 19:10 cdongyang 阅读(664) 评论(0) 推荐(0)
摘要:A - 圆环出列 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit Status A - 圆环出列 Time Limit: 2000/1000 MS (Java/Othe 阅读全文
posted @ 2017-06-04 01:32 cdongyang 阅读(228) 评论(0) 推荐(0)
摘要:2017 计蒜之道 初赛 第四场 rank 178 题解 1A 1 #include <bits/stdc++.h> 2 using namespace std; 3 int n,m,k,v[110][110]; 4 void setrow(int c) 5 { 6 for(int j=1;j<=m 阅读全文
posted @ 2017-06-04 01:23 cdongyang 阅读(211) 评论(0) 推荐(0)
摘要:funname(event)会将事件传到函数参数里,调用时一定要是event,然后函数处的名就不一定要是event funname(this)也是一样,会将当前DOM元素传到函数里,调用时一定要是this ev.stopPropagation()阻止事件向父元素冒泡 jQuery 事件 方法 jQu 阅读全文
posted @ 2017-06-03 00:23 cdongyang 阅读(4567) 评论(0) 推荐(0)
摘要:.message .text { display: block; border-radius:10px; width: 223px; height: auto; padding: 11px 20px 19px 17px; font-size:14px; color:#4a4a4a; float: l 阅读全文
posted @ 2017-06-01 21:07 cdongyang 阅读(331) 评论(0) 推荐(0)
摘要:????????????????????????????????????????? akldjsfasklsdajflkasdjflksadjflksadjfsadkljfasjdkl dy ??????? ????????????????????????????????????????? akld 阅读全文
posted @ 2017-06-01 01:31 cdongyang 阅读(7525) 评论(0) 推荐(1)