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
for (int i = 1; i <= 100; i++) { | |
System.out.println(i % 3 == 0 ? i % 5 == 0 ? "FizzBuzz" : "Fizz" : i % 5 == 0 ? "Buzz" : 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
* Copyright (C) 2007 The Android Open Source Project | |
package jp.co.fttx.rakuphotomail.activity; | |
import jp.co.fttx.rakuphotomail.R; | |
import jp.co.fttx.rakuphotomail.service.HogeService; | |
import android.app.Activity; | |
import android.content.BroadcastReceiver; | |
import android.content.ComponentName; | |
import android.content.Context; |
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 | |
# 補完をつめて表示 | |
setopt list_packed | |
# プロンプト設定 | |
PROMPT="%B%{^[[1;36m%}%n#%{^[m%}%b " | |
RPROMPT="%B%{^[[1;33m%}%/#%{^[m%}%b " | |
PROMPT2="%B%{^[[1;31m%}%_#%{^[m%}%b " | |
SPROMPT="%B%{^[[1;35m%}%r is correct? [n,y,a,e]:%{^[m%}%b " |
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
#!/bin/sh | |
sudo /home/tooru.oguri/dev/android-sdk/platform-tools/adb kill-server | |
sudo /home/tooru.oguri/dev/android-sdk/platform-tools/adb start-server | |
sudo /home/tooru.oguri/dev/android-sdk/platform-tools/adb devices |
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
//------------------------------------------------------------------- | |
// JScript(WSH)でメール送信 | |
//------------------------------------------------------------------- | |
// Gmailのアカウントを設定 (★以下を書き換えてください★) | |
var gmail_user = "[email protected]"; // Gmailのメールアドレス | |
var gmail_pass = "fuga"; // Gmailのパスワード | |
//------------------------------------------------------------------- | |
// 送信内容の設定(★以下を書き換えてください★) | |
var msg = WScript.CreateObject("CDO.Message"); | |
msg.From = "[email protected]"; // 自分のメールアドレス |
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
# 標準の補完設定 | |
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
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
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++){ |
OlderNewer