github.com/knightso/base/gae/model を組み込むと、
痒い所に手が届くdatastoreEntityを作成することが出来ます。
この使い方をまとめておきます。
type Greeting struct {
Meta // ←| 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 |
| 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"; |
| MacBook-Pro:m2repository keima$ tree -d | |
| . | |
| └── com | |
| └── 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" | |
| ) |
| --- 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 |
| /* | |
| * 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" | |
| } |