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
| public class Generics { | |
| public static void main(String[] args) { | |
| List<String> oldList = new ArrayList<String>(); | |
| List<String> newlist = newList(); | |
| Map<String, String> oldMap = new HashMap<String, String>(); | |
| Map<String, String> newMap = newMap(); | |
| } | |
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 org.seasar.extension.jdbc.JdbcManager; | |
| import org.seasar.extension.unit.S2TestCase; | |
| public class IndexActionTest extends S2TestCase { | |
| // DIされる | |
| public JdbcManager jdbcManager; | |
| protected void setUp() throws Exception { |
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 java.io.IOException; | |
| import java.io.InputStream; | |
| import java.net.HttpURLConnection; | |
| import java.net.MalformedURLException; | |
| import java.net.ProtocolException; | |
| import java.net.URL; | |
| import android.graphics.Bitmap; | |
| import android.graphics.BitmapFactory; |
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 java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| /** | |
| * ProcessBroker pb = new ProcessBroker("ps -ef | grep java".split(" ")); |
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
| /* CSS Mini Reset */ | |
| /* see http://www.vcarrer.com/2010/05/css-mini-reset.html */ | |
| html, body, div, form, fieldset, legend, label | |
| { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| table |
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 elm1 = "てすてす"; | |
| // 無名関数の即時実行 | |
| (function(){ | |
| var elm2 = "テステス"; | |
| alert("無名関数が実行されました"); | |
| alert(elm1); // => てすてす | |
| alert(elm2); // => テステス |
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
| // UTF-8 | |
| /** | |
| * @namespace | |
| * @private | |
| */ | |
| window.MAPION=window.MAPION||{}; | |
| /** | |
| * @namespace | |
| * @private |
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
| /** | |
| * 配列ならそのまま、非配列なら要素1の配列として返す | |
| */ | |
| MAPION.lang.Snippets.asArray=function(o){ | |
| if(o===null||o===void 0)return []; | |
| if(o instanceof Array)return o; | |
| else return [o]; | |
| }; |
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
| /** | |
| * 関数遅延実行 | |
| */ | |
| deferred=(function(){ | |
| var _w=window,_d=window.document; | |
| var deferred_default=function(func){_w.setTimeout(function(){func()},0);}; | |
| var deferred_faster_way_readystatechange=((location.protocol==="http:")&&!_w.opera&&/\bMSIE\b/.test(navigator.userAgent))&&function(func){ | |
| var script = _d.createElement("script"); | |
| script.type = "text/javascript"; | |
| script.src = "javascript:"; |
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
| /** | |
| * HTMLエスケープ(replace方式) | |
| * @param {String} str 処理対象文字列 | |
| * @returns {String} エスケープ済み文字列 | |
| * @private | |
| */ | |
| escapeHTML1=function(str){ | |
| return str.replace(/&/g,"&") | |
| .replace(/</g,"<") | |
| .replace(/>/g,">") |
NewerOlder