This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pub.platform.utils; | |
import org.apache.log4j.*; | |
import java.io.InputStream; | |
import java.util.*; | |
/** | |
* <p>Title: 基础框架</p> | |
* <p>Description: 日志</p> | |
* <p>Copyright: Copyright (c) 2004</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.poi.xssf.usermodel.XSSFCell; | |
import org.apache.poi.xssf.usermodel.XSSFSheet; | |
import org.apache.poi.xssf.usermodel.XSSFWorkbook; | |
import org.springframework.mail.SimpleMailMessage; | |
import org.springframework.mail.javamail.JavaMailSenderImpl; | |
import java.io.*; | |
/** | |
* User: Lichao.W |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tables; | |
import java.sql.*; | |
/** | |
* Created by lenovo on 2014-04-30. | |
*/ | |
public class JdbcClasses11Test { | |
static final String driver_class = "oracle.jdbc.driver.OracleDriver"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: UTF-8 -*- | |
for x in xrange(1,10) | |
for y in xrange(1,x+1) | |
print y,'*',x,'=',x*y,'\t', | |
print '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var FormData = require('form-data'); | |
var fs = require('fs'); | |
var form = new FormData(); | |
form.append('my_field', 'my value'); | |
form.append('my_buffer', new Buffer(10)); | |
form.append('my_file', fs.createReadStream('/foo/bar.jpg')); | |
var http = require('http'); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: UTF-8 -*- | |
import requests | |
def getLang(user): | |
re = requests.get('https://api.github.com/users/'+user+'/repos') | |
if 200 == re.status_code: | |
for k,v in enumerate(re.json()): | |
print v['name'],v['language'] | |
if __name__ == '__main__': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String onExpExcel() { | |
try { | |
if (dataList == null || dataList.size() == 0) { | |
MessageUtil.addWarn("未查询数据!"); | |
return null; | |
} | |
Map beansMap = new HashMap(); | |
String excelFilename = "SBS损益表" + ".xls"; | |
JxlsManager jxls = new JxlsManager(); | |
beansMap.put("records", dataList); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2010 by LongTop Corporation. | |
* | |
* All rights reserved. | |
* | |
* This software is the confidential and proprietary information of | |
* LongTop Corporation ("Confidential Information"). You | |
* shall not disclose such Confidential Information and shall use | |
* it only in accordance with the terms of the license agreement | |
* you entered into with LongTop. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void onExpExcel() { | |
String[] excelHeader4 = {"代号", "名称", "金额", "代号", "名称", "金额"}; | |
String[] excelHeader3 = {"支出项目", "收入项目"}; | |
List<T623.Bean> dataList6 = new ArrayList<>(); | |
List<T623.Bean> dataList5 = new ArrayList<>(); | |
BigDecimal totexp = null;//支出合计 | |
BigDecimal totrev = null;//收入合计 | |
BigDecimal bene = null;//结益 | |
BigDecimal loss = null;//结损 | |
for (T623.Bean datas : dataList) { |