Skip to content

Instantly share code, notes, and snippets.

@jihao
jihao / DateFormat in java
Created January 4, 2012 15:09 — forked from haizhe-cto/DateFormat in java
DateFormat in java
public static void main(String[] args) throws IOException, ParseException {
String strDate = "2011-01-12 07:50:00";
DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date date = formatter.parse(strDate);
System.out.println("Date="+date);
}
@jihao
jihao / github.css
Created August 14, 2012 02:45 — forked from theconektd/github.css
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@jihao
jihao / tomcat.sh
Last active August 29, 2015 14:15 — forked from valotas/tomcat.sh
#!/bin/bash
#
# tomcat7 This shell script takes care of starting and stopping Tomcat
#
# chkconfig: - 80 20
#
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network $syslog
# Required-Stop: $network $syslog