I hereby claim:
- I am xsota on github.
- I am xsota (https://keybase.io/xsota) on keybase.
- I have a public key whose fingerprint is 96DB 9933 297D 76CF D805 2249 5638 1FCF A357 23EA
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
version: '2' | |
services: | |
db: | |
image: postgres | |
web: | |
build: . | |
command: bundle exec rails s -p 3000 -b '0.0.0.0' | |
volumes: | |
- .:/myapp | |
ports: |
default: &default | |
adapter: postgresql | |
encoding: unicode | |
pool: 5 | |
username: postgres | |
password: | |
host: db | |
development: | |
<<: *default |
source 'https://rubygems.org' | |
gem 'rails', '4.2.0' |
FROM ruby:2.2.0 | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | |
RUN mkdir /myapp | |
WORKDIR /myapp | |
ADD Gemfile /myapp/Gemfile | |
ADD Gemfile.lock /myapp/Gemfile.lock | |
RUN bundle install | |
ADD . /myapp |
class ActivityEditMemo : AppCompatActivity() { | |
private val id : String by lazy { | |
intent.getStringExtra("id") ?: UUID.randomUUID().toString() | |
} | |
} |
// 地図 | |
final MapView map = (MapView) findViewById(R.id.map); | |
// map.setTileSource(TileSourceFactory.MAPNIK); | |
map.setBuiltInZoomControls(true); // ズームとかのコントローラ表示 | |
map.setMultiTouchControls(true); // マルチタッチ有効 | |
final ArrayList<OverlayItem> overlayItems = new ArrayList<>(); | |
overlayItems.add(new OverlayItem("ふじやま","ここがふじやま",new GeoPoint(35.360556,138.727778))); |
// 地図 | |
final MapView map = (MapView) findViewById(R.id.map); | |
// map.setTileSource(TileSourceFactory.MAPNIK); | |
map.setBuiltInZoomControls(true); // ズームとかのコントローラ表示 | |
map.setMultiTouchControls(true); // マルチタッチ有効 | |
final ArrayList<OverlayItem> overlayItems = new ArrayList<>(); | |
overlayItems.add(new OverlayItem("ふじやま","ここがふじやま",new GeoPoint(35.360556,138.727778))); | |
// icon用overlay |
package com.xsota.osmdroidtest; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import org.osmdroid.tileprovider.tilesource.TileSourceFactory; | |
import org.osmdroid.views.MapView; | |
public class MainActivity extends AppCompatActivity { |
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" |