Skip to content

Instantly share code, notes, and snippets.

View keima's full-sized avatar
🐔
WINNER WINNER CHICKEN DINNER!

Kouta Imanaka keima

🐔
WINNER WINNER CHICKEN DINNER!
View GitHub Profile
public class HistoryActivity extends ExpandableListActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
// Calendarクラス生成
Calendar currentTime = Calendar.getInstance();
// データベースからリスト生成のもととなるデータを抽出
machines:
0:
agent-state: running
dns-name: ec2-54-248-138-217.ap-northeast-1.compute.amazonaws.com
instance-id: i-06a10405
instance-state: running
1:
agent-state: running
dns-name: ec2-54-248-23-117.ap-northeast-1.compute.amazonaws.com
instance-id: i-62a00561

How to use Model

github.com/knightso/base/gae/model を組み込むと、 痒い所に手が届くdatastoreEntityを作成することが出来ます。

この使い方をまとめておきます。

structの定義方法

type Greeting struct {
    Meta // ←
@keima
keima / .gitignore
Last active August 29, 2015 14:08
google/material_design_icons choose helper script
output/
package com.example
import de.greenrobot.daogenerator.DaoGenerator
import de.greenrobot.daogenerator.Entity
import de.greenrobot.daogenerator.Schema
public class MyDaoGenerator {
static int SCHEMA_VERSION = 1;
static String SCHEMA_PACKAGE_NAME = "net.pside.android.example.mostpowerfulorminandroid";
@keima
keima / output.txt
Created December 9, 2014 02:29
Directory structure of /Users/keima/android-sdk/extras/google/m2repository
MacBook-Pro:m2repository keima$ tree -d
.
└── com
└── google
└── android
├── gms
│   ├── play-services
│   │   ├── 3.1.36
│   │   ├── 3.1.59
│   │   ├── 3.2.25
package discipline
import (
"github.com/gorilla/securecookie"
"github.com/hnakamur/gaesessions"
"github.com/ChimeraCoder/anaconda"
"net/http"
"appengine"
"github.com/garyburd/go-oauth/oauth"
)
@keima
keima / inkscape.patch
Last active August 29, 2015 14:25
Mac版Inkscapeで日本語にするとクラッシュするのを治す
--- inkscape-original 2015-07-23 17:20:22.000000000 +0900
+++ inkscape 2015-07-23 17:19:02.000000000 +0900
@@ -149,6 +149,12 @@
else
[ $_DEBUG ] && echo "Setting LANG from /usr/share/locale/locale.alias" 1>&2
export LANG="$tmpLANG.UTF-8"
+
+ # PATCH: if $tmpLANG is "sjis", Inkscape is suddenly death!
+ if [ "$tmpLANG" == "sjis" ]
+ then
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
public class NoopFragment extends Fragment {
@Nullable
@keima
keima / API.java
Created September 7, 2015 10:25
現状。
/*
* main に置いてある
*/
public class API extends APIBase {
public static final String API_PREFIX = "/v1"
public static final String API_POST_NEW = API_HOST + API_PREFIX + "/post/new"
public static final String API_POST_EDIT = API_HOST + API_PREFIX + "/post/edit"
}