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
| private static void test(Boolean b, String testname){ | |
| System.out.format("\n---- %s -----\n : %s", testname, (b ? "success" : "false")); | |
| } |
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
| (function(window, $, undefined) { | |
| var myFunc = function() { | |
| // ... | |
| } | |
| window.myFunc = myFuc; | |
| }) (window, jQuery); |
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
| <link rel="stylesheet" type="text/css" href="css/uploadify.css"> | |
| <script type="text/javascript" src="jquery/jquery-1.7.js"></script> | |
| <script type="text/javascript" src="jquery/jquery.uploadify.min.js"></script> | |
| <script type="text/javascript" src="jquery/swfobject2.2.js"></script> | |
| <script> | |
| $(document).ready(function() { | |
| $("#uploadify").uploadify({ | |
| //开启调试 | |
| 'debug' : false, | |
| //是否自动上传 |
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 o = {}; | |
| for(var i = 0; i < 10; i++){ | |
| o['id['+ i +']'] = i; | |
| } |
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
| SELECT o where A o IN(o.members) m WHERE m.key = ? and m.value = ? |
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
| /** | |
| 在app的根目录下新一个Global类继承自GlobalSettings。 | |
| 这样,可以覆盖GlobalSettings类中的方法,以达到修改应用程序的行为:包括启动,停止等 | |
| **/ | |
| import play.*; | |
| import play.libs.*; | |
| import com.avaje.ebean.Ebean; |
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
| Math.floor(Math.random()*10000) |
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
| (function(){ //匿名函数 | |
| //模块代码 | |
| }());//结束函数定义并立即调用它 |
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 strict = (function(){ return !this; }()); |
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
| @Override | |
| public boolean equals(Object other) { | |
| if (this == other) { | |
| return true; | |
| } | |
| if (!(other instanceof TaskAssignment)) { | |
| return false; | |
| } | |
| TaskAssignment that = (TaskAssignment) other; | |
| return new EqualsBuilder().append(this.getAcount(), that.getAcount()).append(this.getTask(), that.getTask()).isEquals(); |