Skip to content

Instantly share code, notes, and snippets.

View aratakokubun's full-sized avatar

aratakokubun aratakokubun

  • Hitachi Info&Tech
  • Totsuka, Yokohama City, Kanazawa
View GitHub Profile
ArrayList<String> arr1 = new ArrayList<String>() {
private static final long serialVersionUID = 1L;
{
add("a");
add("b");
add("c");
add("d");
add("e");
}
};
@aratakokubun
aratakokubun / file0.txt
Created August 29, 2015 05:15
Android AnnotationでNullPointerException ref: http://qiita.com/aratakokubun/items/fde977b4ef12b05a188e
@EActivity(R.layout.test)
public class Test extends Activity {
@ViewById(R.id.mySurfaceView)
TestSurfaceView tsv;
@Click(R.id.leftButton)
protected void leftButtonClick(final View view) {
// TODO
}
client = Client(url_name = self.user_name, password = self.user_pass)
token = client.token # post等はここで取得したtokenを使用
users = Users()
user_items = users.user_items(url_name=self.user_name, params={'page':1, 'per_page':100})
// Unique UUID for this application
private static final UUID MY_UUID = UUID.fromString("fa87c0d0-afac-11de-8a39-0800200c9a66");
@aratakokubun
aratakokubun / file0.bat
Last active August 29, 2015 14:07
Eclipse Android SDK Content Loader hangs at 0% 対応のbat作ってみた ref: http://qiita.com/aratakokubun/items/dfe61304dea01d3ce228
@echo off
rem This bat file works to resolve Eclipse Android SDK Content Loader hanging problem.
rem Change directory to userprofile.android
cd %USERPROFILE%\.android%
echo %CD%
rem search and delete file "ddms.cfg"
set DEL_FILE="ddms.cfg"
:~/.ssh$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/art/.ssh/id_rsa): id_rsa_file_name
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
...