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
/** | |
* | |
* | |
*/ | |
protected void showDialogFragment(int code) { | |
FragmentManager manager = getSupportFragmentManager(); | |
switch(code){ | |
case 100: | |
Confirm_exit dialog = new Confirm_exit(); | |
dialog.show(manager, "hoge"); |
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
# /etc/hosts | |
# ----------- | |
127.0.0.1 dummy.local localhost.localdomain localhost dti-vps-srv28 | |
# 127.0.0.1 localhost.localdomain localhost dti-vps-srv28 |
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 NG(){ | |
// 1000 ms 毎に出力したい! | |
setInterval(console.log(new Date()),1000); | |
} |
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 callbacks(value, key, ar){ | |
console.log(key +":"+ value); | |
} | |
var hash = { hoge:'foo', fuga:'vaa' }; | |
hash.forEach(callbacks); | |
/* | |
// JavaScript 1.5 以下はこんな感じ | |
for (var i in hash) { |
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
<?php | |
echo <<<EOF | |
<script type="text/javascript"> | |
(中略) | |
</script> | |
EOF; | |
?> |
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 static String getHttps(CookieStore arg_0, HttpContext arg_1) { | |
String targetUrl = "https://hoge.hoge"; | |
CookieStore cookieStore = arg_0; | |
HttpContext httpContext = arg_1; | |
httpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); | |
HttpGet httpGet = new HttpGet(targetUrl); | |
HttpParams httpParams = new BasicHttpParams(); |
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 しちゃうと情報が引き継げないので、引数で連れてきている。<br> | |
* 自分ちでやる場合はクラスでも作成するといいよ。 | |
* | |
*/ | |
public static String getHttps(CookieStore arg_0, HttpContext arg_1) { | |
String targetUrl = "https://hoge.hoge"; | |
HttpGet httpGet = new HttpGet(targetUrl); |
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
@SuppressWarnings("serial") | |
HashMap<String,String> hashMap = new HashMap<String,String>(){{ | |
put("foo", "baa"); | |
put("HOGE", "FUGA"); | |
}}; | |
for(Entry<String,String> entry: hashMap.entrySet()){ | |
System.out.println(entry.getKey() + " : " +entry.getValue()); | |
} |
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 org.example.hoge; | |
public class Activity_Main extends Activity { | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
this.getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN) | |
setContentView(R.layout.main); | |
} |
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 org.example.test.ssl; | |
import android.os.Bundle; | |
import android.app.Activity; | |
import android.view.Menu; | |
public class Activity_Main extends Activity { | |
@Override |