Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View yamacraft's full-sized avatar

yamacraft yamacraft

View GitHub Profile
@yamacraft
yamacraft / android_wear_sample.markdown
Last active August 29, 2015 13:59
Android Wearの通知メモ
@yamacraft
yamacraft / file0.txt
Created April 23, 2014 07:43
BEAR.sundayメモ#1 - vagrant(DigitalOcean)+Ubuntu13.10+PHP5.5.3でBEAR.sundayのインストール ref: http://qiita.com/yamacraft/items/c6eca1e602754a55f8c6
agrant.configure('2') do |config|
config.vm.hostname = 'root'
config.vm.provider :digital_ocean do |provider, override|
override.ssh.private_key_path = '~/.ssh/id_rsa'
provider.ssh_key_name = 'xxx'
override.vm.box = 'digital_ocean'
override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
provider.client_id = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
provider.api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
@yamacraft
yamacraft / GsonRequest.java
Last active August 29, 2015 14:08
多分これが一番汎用性がある気がするGsonRequest
import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.android.volley.toolbox.HttpHeaderParser;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
@yamacraft
yamacraft / linker.log
Created July 5, 2016 02:18
FirebaseCrashとParseCrashReportで重複エラー疑惑
duplicate symbol _BreakpadUploadReportWithParametersAndConfiguration in:
/Users/yamacraft/xxx/Pods/FirebaseCrash/Frameworks/FirebaseCrash.framework/FirebaseCrash(Breakpad_05db9f18bf48e68163defbe5ffd8dec3.o)
/Users/yamacraft/xxx/external/Parse/ParseCrashReporting.framework/ParseCrashReporting(Breakpad.o)
duplicate symbol _BreakpadGetNextReportConfiguration in:
/Users/yamacraft/xxx/Pods/FirebaseCrash/Frameworks/FirebaseCrash.framework/FirebaseCrash(Breakpad_05db9f18bf48e68163defbe5ffd8dec3.o)
/Users/yamacraft/xxx/external/Parse/ParseCrashReporting.framework/ParseCrashReporting(Breakpad.o)
duplicate symbol _BreakpadHandleNetworkResponse in:
/Users/yamacraft/xxx/Pods/FirebaseCrash/Frameworks/FirebaseCrash.framework/FirebaseCrash(Breakpad_05db9f18bf48e68163defbe5ffd8dec3.o)
/Users/yamacraft/xxx/external/Parse/ParseCrashReporting.framework/ParseCrashReporting(Breakpad.o)
ld: 3 duplicate symbols for architecture x86_64
@yamacraft
yamacraft / Logcat.log
Created July 7, 2016 09:37
GooglePlayServiceのない端末でFirebaseCrashが入った端末を起動させた際にでるイニシャルエラー
07-07 18:29:59.835 2728-2728/io.github.yamacraft.firebasecrashsample D/FirebaseApp: Initialized class com.google.firebase.iid.FirebaseInstanceId.
07-07 18:29:59.851 2728-2728/io.github.yamacraft.firebasecrashsample W/GooglePlayServicesUtil: Cannot find Google Play services package name.
android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:114)
at com.google.android.gms.internal.zzpv.getPackageInfo(Unknown Source)
at com.google.android.gms.common.zze.zzap(Unknown Source)
@yamacraft
yamacraft / app-sample-0.md
Created August 5, 2016 10:11
アプリ汎用研修課題 草案

Androidアプリ汎用研修課題

『Androidアプリ汎用研修課題』とは

主に業務でアプリ開発を行う予定にある方達が「最低限の基礎知識を学んだ上で、実務にとりかかる前に挑戦しておきたい」を目的に作成した、アプリ開発の課題集です。

作成に至った背景

世の中には「アプリを作るための基礎知識」を学ぶための資料は有償無償で数多く存在しています。 個人的に、Androidでの最たる例はmixiのAndroid Trainingです。

@yamacraft
yamacraft / update.md
Created February 1, 2017 03:05
怪文書(macの各種の定期アップデート)

nvm、node.js、npm関連

$ nvm --version

$ cd ~/.nvm
$ git pull origin master
$ source ~/.nvm/nvm.sh
$ nvm --version
@yamacraft
yamacraft / 2017-03-09-droidkaigi2017.md
Created March 13, 2017 10:12
DroidKaigi 2017 参加メモ

DroidKaigi 2017 参加メモ

カンファレンス情報

  • 開催日時:2017年3月9日〜10日
  • 開催場所:ベルサール新宿グランド5F コンファレンスセンター
  • URL:DroidKaigi 2017

当日のメモ

@yamacraft
yamacraft / GoogleIO2017-Day1-GoogleKeynote-memo.md
Last active May 18, 2017 01:52
Google I/O 2017 Day1 個人的メモ

Google Keynote

まとめ

  • Kotlinが正式サポートされたので、そろそろ業務で使いはじめて良いタイミングになったと思った
    • とはいえ、全てをKotlin化するのはちょっと怖いなあという印象、あくまで個人的印象
  • Google Homeがようやう日本発売するので嬉しい
  • AI周り(特に今回は画像認識系)の進化は未来感がある
  • Youtubeが怖いぐらいに現実的な機能拡張の話しかなかった印象がある
  • Android O周りの細かい話はDeveloper Keynote待ちかなあ
@yamacraft
yamacraft / Authentication.md
Last active June 22, 2017 10:36
2017-06-23 Otemachi Firebase #2 サンプルコード集

現在はFirebaseのサンプルをそのまま使っているので特に解説できることはない…。 https://github.com/firebase/quickstart-android/blob/master/auth/app/src/main/java/com/google/firebase/quickstart/auth/GoogleSignInActivity.java

Authenticationはあくまでも「認証後のtokenなどの情報を代わりに保管してくれる」機能の提供。認証そのものは自前で用意する必要がある(もしくはFirebase-UIを使うという手もある)。 今回は簡易的なUIで認証処理を用意したかったこともあり、Firebase-UIでは実装していない。

認証後はインスタンスを生成した時点で認証情報が取得できている。

mAuth = FirebaseAuth.getInstance();