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
/** | |
* Created by togu on 2013/07/23. | |
*/ | |
public class HogeActivity extends Activity { | |
EditText editText1; | |
EditText editText2; | |
Button bomb; | |
@Override |
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
/** | |
* Created by togu on 2013/07/23. | |
*/ | |
public class HogeActivity extends Activity { | |
EditText editText1; | |
EditText editText2; | |
Button bomb; | |
@Override |
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
/** | |
* Created by togu on 2013/07/23. | |
*/ | |
public class HogeActivity extends Activity { | |
EditText editText1; | |
EditText editText2; | |
Button bomb; | |
@Override |
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
/** | |
* Created by togu on 2013/07/25. | |
*/ | |
public class CommonDialogFragment extends DialogFragment { | |
private DialogListener listener = null; | |
public static CommonDialogFragment newInstance(String title, String message) { | |
return setCommonDialogFragment(0, title, message); | |
} |
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
#include <stdio.h> | |
int main(void) { | |
int c; | |
while (c = getchar()) | |
{ | |
printf("%d 0x%02X\n", c, c); | |
} | |
return 0; | |
} |
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.util.ArrayList; | |
public class Hoge { | |
public static void main(String[] args){ | |
int num = Integer.parseInt(args[0]); | |
ArrayList<Integer> list = new ArrayList<Integer>(); | |
for(int i=2;i<=num;i++){ | |
boolean isPrime=true; | |
for(int j=2;j<=i;j++){ |
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
set -g default-shell /bin/zsh | |
setw -g utf8 on | |
setw -g mode-keys vi | |
setw -g automatic-rename off | |
set -s escape-time 0 | |
setw -g window-status-current-attr underscore | |
# 256色ターミナル |
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
# 標準の補完設定 | |
autoload -U compinit | |
compinit | |
autoload -Uz add-zsh-hook | |
autoload -Uz colors | |
colors | |
autoload -Uz vcs_info | |
# 補完をつめて表示 |
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 void main(String[] args) { | |
// 世界のナベアツ | |
for (int i = 1; i <= 40; i++) { | |
if (i % 3 == 0 || Integer.toString(i).contains("3")) { | |
System.out.println("アホ"); | |
} else { | |
System.out.println(Integer.toString(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
//------------------------------------------------------------------- | |
// JScript(WSH)でメール送信 | |
//------------------------------------------------------------------- | |
// Gmailのアカウントを設定 (★以下を書き換えてください★) | |
var gmail_user = "[email protected]"; // Gmailのメールアドレス | |
var gmail_pass = "fuga"; // Gmailのパスワード | |
//------------------------------------------------------------------- | |
// 送信内容の設定(★以下を書き換えてください★) | |
var msg = WScript.CreateObject("CDO.Message"); | |
msg.From = "[email protected]"; // 自分のメールアドレス |