摘要: 这些天学着使用Github去搭建个人博客, 纯属娱乐, 下面把步骤和一些注意的地方写下来, 免得忘了.开发准备1. 注册Github账号, 例如: TonnyYi2. 安装git3. 新建一个仓库, 例如: blog使用Github Pages搭建1. 进入你的仓库的admin页面, 例如:https://github.com/tonnyyi/blog/admin2. 向下滚动找到Github pages选项卡, 点击"Automatic Page Generator"3. 在新页面底部点击"Continue to Layouts"4. 在打开的页面选择 阅读全文
posted @ 2012-10-20 23:05 堂哥 阅读(1938) 评论(1) 推荐(0) 编辑
摘要: Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe]"WindowSize"=dword:00170058"ScreenBufferSize"=dword:01900... 阅读全文
posted @ 2014-08-26 21:16 堂哥 阅读(318) 评论(0) 推荐(0) 编辑
摘要: project --> Generate JavaDoc 第三个窗口填入 -encoding UTF-8 -charset UTF-8 阅读全文
posted @ 2014-08-25 17:55 堂哥 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.cnblogs.com/stephenykk/archive/2013/06/09/3129200.html顏色名稱代碼顏色maroon#800000 darkred#8B0000 brown#A52A2A firebrick#B22222 crimson#DC143C... 阅读全文
posted @ 2014-06-18 11:58 堂哥 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 整理自阮一峰的网络日志123456a心跳cdefgh AB. 1 /* IE 10和Firefox(>= 16)支持没有前缀的animation,而chrome不支持,所以必须使用webkit前缀。 */ 2 3 .hov div{ 4 ... 阅读全文
posted @ 2014-06-09 20:44 堂哥 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 项目用到spring data jpa 和 hibernate, 正常情况下会在src/resources下创建META-INF目录, 并在其中创建persistence.xml 1 2 6 7 8 org.hibernate.jpa.HibernatePersist... 阅读全文
posted @ 2014-04-16 20:31 堂哥 阅读(938) 评论(0) 推荐(0) 编辑
摘要: 初始配置 1 2 3 4 5 6 7 8 9 10 ... 阅读全文
posted @ 2014-04-16 19:59 堂哥 阅读(7088) 评论(0) 推荐(1) 编辑
摘要: 手机(特别是Android)浏览器中点击元素 a, input, div中的文字时, 还有一个边框要去除边框, 可以为元素添加如下css/* 来自Pure.css http://purecss.io/*/-webkit-user-drag: none;-webkit-user-select: non... 阅读全文
posted @ 2014-04-10 15:36 堂哥 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 1 // 转载自: https://gist.github.com/iwillwen/8732729 2 3 'use strict'; 4 5 var arr = [ 1, 2, 3, 4, 5 ]; 6 var fnArr = []; 7 8 // Wrong 1 9 for (var i = 0; i < arr.length; i++) {10 fnArr[i] = function() {11 return arr[i];12 };13 }14 15 fnArr.forEach(function(fn) {16 console.log(fn());1... 阅读全文
posted @ 2014-03-30 11:41 堂哥 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 表test中现有数据idscore11025315执行sqlselect id,score,(@rowno:=@rowno+1) as rowno from test,(select (@rowno:=0)) b order by score desc; 获得如下结果idscorerowno31511102253然后在此基础上查询某条记录的位置select rowno from (select id,score,(@rowno:=@rowno+1) as rowno from test,(select (@rowno:=0)) b order by score desc) c where id 阅读全文
posted @ 2014-03-25 20:03 堂哥 阅读(4327) 评论(1) 推荐(0) 编辑
摘要: 当使用angularjs发送post请求时:1 $http({2 method : "post",3 url : "./account/add",4 data : {name:"123",passwd:123}5 })后台springMVC接受不到参数public String add(@RequestParam String name, @RequestParam String passwd) {}因为angularjs发送post请求时参数列表类型是 Payload(可以通过chrome调试工具的network查看), 而后台想要 阅读全文
posted @ 2014-02-20 18:37 堂哥 阅读(1609) 评论(0) 推荐(0) 编辑