cndavy

导航

 

2014年5月5日

摘要: var grid=Ext.getCmp("GridPanel1"); var store = grid.getStore(); Ext.Ajax.request({ url:"server/grid.json", par... 阅读全文
posted @ 2014-05-05 09:26 cndavy 阅读(295) 评论(0) 推荐(0) 编辑
 

2014年4月9日

摘要: grammar CSV;@member{}@header{import java.util.*;}filelocals [int i=0]: hdr ( rows+=row[$hdr.text.split(",")] {$i++;} )+{System.out.println($i+" rows");for (RowContext r : $rows) {System.out.println("row token interval: "+r.getSourceInterval());}};hdr : row[null] {System 阅读全文
posted @ 2014-04-09 10:59 cndavy 阅读(770) 评论(0) 推荐(0) 编辑
 

2014年3月26日

摘要: JPA SPING AOP 阅读全文
posted @ 2014-03-26 16:14 cndavy 阅读(713) 评论(0) 推荐(0) 编辑
 
摘要: package com;/** * Created by han on 14-3-26. */import java.awt.*;import java.io.*;import org.jfree.data.*;import org.jfree.chart.*;import org.jfree.chart.plot.*;import org.jfree.data.category.CategoryDataset;import org.jfree.data.category.DefaultCategoryDataset;/** * 该类用于演示最简单的柱状图生成 * @author Winter 阅读全文
posted @ 2014-03-26 16:03 cndavy 阅读(407) 评论(0) 推荐(0) 编辑
 

2014年3月11日

摘要: 使用 hSQLDBCREATE TABLE HIBERNATE_SEQUENCES( SEQUENCE_NAME VARCHAR(255) NOT NULL, SEQUENCE_NEXT_HI_VALUE BIGINT NOT NULL);@GeneratedValue(strategy = GenerationType.TABLE)默写要建立缺省表 1 package com.hantongchao.entity; 2 3 import javax.persistence.*; 4 import java.util.HashSet; 5 import java.util.Set... 阅读全文
posted @ 2014-03-11 16:33 cndavy 阅读(326) 评论(0) 推荐(0) 编辑
 

2014年1月24日

摘要: 下载 antlrWorks 2.1 和 antlr4.1从网上找了个例子grammar LabeledExpr; // prog: stat+ ;stat: expr NEWLINE # printExpr | ID '=' expr NEWLINE # assign | NEWLINE # blank ;expr: expr op=('*'|'/') expr # MulDiv | expr op=('+'|'-') expr # Add... 阅读全文
posted @ 2014-01-24 11:28 cndavy 阅读(482) 评论(0) 推荐(0) 编辑
 

2014年1月16日

摘要: 依据实际工艺试验和有关参考文献的数据,运用数理统计方法计算和修正,得出部分常用钢种的回火方程。实践证明,这些经验公式具有重要的适用价值。钢 号 淬火温度/淬火介质 回火方程 45 840/水 H = 62 -(1/9000)T 2 20Cr 890/油 H = 50 -(2/45)T 38CrMoAl 930/油 H = 64 -(1/25)T(T<550) H = 95 -(1/10)T(T>550) 40Cr 850/油 H = 75 -(3/40)T 0CrVA 850/油 H = 73 -(1/14)T 60Si2Mn 860/油 H = 68 -(1/11 阅读全文
posted @ 2014-01-16 11:09 cndavy 阅读(383) 评论(0) 推荐(0) 编辑
 

2014年1月14日

摘要: java 在使用getresource获取中午目录时,出现乱码的处理String inputFileName = BufferedDataSetSample.class.getResource("data/iris_data_normalised.txt").getFile();try { inputFileName= java.net.URLDecoder.decode(inputFileName,"utf-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); //To 阅读全文
posted @ 2014-01-14 10:11 cndavy 阅读(659) 评论(0) 推荐(0) 编辑
 

2013年11月30日

摘要: /*** Example Arduino sketch for SainSmart I2C LCD Screen 16x2** based on https://bitbucket.org/celem/sainsmart-i2c-lcd/src/3adf8e0d2443/sainlcdtest.ino** by** Edward Comer** LICENSE: GNU General Public License, version 3 (GPL-3.0)** This example uses F Malpartida's NewLiquidCrystal library. Obta 阅读全文
posted @ 2013-11-30 09:05 cndavy 阅读(881) 评论(0) 推荐(0) 编辑
 

2013年8月20日

摘要: excel vba 常用语句集合(非原创)Excel VBA语句集(300句)定制模块行为(1) Option Explicit '强制对模块内所有变量进行声明Option Private Module '标记模块为私有,仅对同一工程中其它模块有用,在宏对话框中不显示Option Compare Text '字符串不区分大小写Option Base 1 '指定数组的第一个下标为1(2) On Error Resume Next '忽略错误继续执行VBA代码,避免出现错误消息(3) On Error GoTo ErrorHandler '当错误发生 阅读全文
posted @ 2013-08-20 22:26 cndavy 阅读(620) 评论(0) 推荐(0) 编辑