This file contains hidden or 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 ctx; | |
| var canvasObj; | |
| var fps = 30; | |
| var stars = []; | |
| var starCount = 30; | |
| var Animation = { | |
| init : function(id) { | |
| canvasObj = document.getElementById(id); |
This file contains hidden or 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.junit.Test; | |
| import java.util.Date; | |
| import static org.junit.Assert.assertEquals; | |
| public class StringFormatTest { | |
| @Test public void basicInteger() { | |
| assertEquals("123456", String.format("%d", 123456)); | |
| } |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans> | |
| <bean id="applicationConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> | |
| <property name="locations"> | |
| <list> | |
| <value>classpath:app-dev.properties</value> | |
| <value>${app.properties}</value> | |
| </list> | |
| </property> | |
| <property name="ignoreUnresolvablePlaceholders" value="true"/> |
This file contains hidden or 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
| -- new table for simple entity | |
| create table SimpleEntity ( | |
| id bigint not null auto_increment, | |
| age integer not null, | |
| isEternal bit not null, | |
| name varchar(255), | |
| primary key (id) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
This file contains hidden or 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 play.modules.migrate; | |
| import org.hibernate.dialect.MySQL5Dialect; | |
| import org.hibernate.ejb.Ejb3Configuration; | |
| import org.hibernate.tool.hbm2ddl.DatabaseMetadata; | |
| import play.Play; | |
| import play.db.DB; | |
| import play.db.DBPlugin; | |
| import play.utils.Utils; |
NewerOlder