Skip to content

Instantly share code, notes, and snippets.

View ryugoo's full-sized avatar

Ryutaro Miyashita ryugoo

View GitHub Profile
@ryugoo
ryugoo / ErrorLog.txt
Created September 16, 2017 11:30
Permissions Dispatcher 3.0.0 / Android Studio 3.0.0 beta-6 / Kotlin 1.1.4-3
e: /Users/ryugoo/Workspace/GitHub/Personal/PD3Test/app/build/generated/source/kapt/debug/com/r384ta/android/pd3test/MainActivityPermissionsDispatcher.kt: (21, 12): Expecting an expression
e: /Users/ryugoo/Workspace/GitHub/Personal/PD3Test/app/build/generated/source/kapt/debug/com/r384ta/android/pd3test/MainActivityPermissionsDispatcher.kt: (21, 12): Expecting ')'
e: /Users/ryugoo/Workspace/GitHub/Personal/PD3Test/app/build/generated/source/kapt/debug/com/r384ta/android/pd3test/MainActivityPermissionsDispatcher.kt: (21, 14): Unexpected tokens (use ';' to separate expressions on the same line)
e: /Users/ryugoo/Workspace/GitHub/Personal/PD3Test/app/build/generated/source/kapt/debug/com/r384ta/android/pd3test/MainActivityPermissionsDispatcher.kt: (23, 64): Expecting an expression
e: /Users/ryugoo/Workspace/GitHub/Personal/PD3Test/app/build/generated/source/kapt/debug/com/r384ta/android/pd3test/MainActivityPermissionsDispatcher.kt: (23, 64): Expecting ')'
e: /Users/ryugoo/Workspace/GitHub/Personal/PD3Test/app/buil
@ryugoo
ryugoo / DroidKaigi day.2 - Fireside Chat.md
Last active March 11, 2017 14:33
DroidKaigi day.2 - Fireside Chat

DroidKaigi day.2 - Fireside Chat

参加者

  • 松山 さん
  • @KeithYokomaku さん
  • @konifar さん
  • 藤崎 さん
  • @operandoOS さん
  • @mhidaka さん
@ryugoo
ryugoo / Either.java
Last active October 1, 2017 14:42
Either class using Lightweight Stream API
public final class Either<Left, Right> {
private final Optional<Left> left;
private final Optional<Right> right;
private Either(Optional<Left> left, Optional<Right> right) {
this.left = left;
this.right = right;
}
public static <Left, Right> Either<Left, Right> left(@NonNull Left value) {
@ryugoo
ryugoo / StringUtils.java
Created March 13, 2016 09:38
String utility for Android
package com.r384ta.android.betterstructure.util;
import android.support.annotation.IntDef;
import android.support.annotation.Nullable;
public class StringUtils {
public static final int DEFAULT = 0;
public static final int ASCII_TRIM = 1;
public static final int FULL_TRIM = 2;
@ryugoo
ryugoo / (app) build.gradle
Last active October 25, 2018 04:53
My build.gradle Boilerplate
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
}
repositories {
google()
@ryugoo
ryugoo / MainActivity.java
Last active August 29, 2015 14:20
Realm encryption test
package net.imthinker.android.realmenctyption;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@ryugoo
ryugoo / Files.java
Created March 13, 2015 18:37
Bytes and file convert methods
import android.content.Context;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class Files {
@ryugoo
ryugoo / MyActivity.java
Created October 24, 2014 16:47
AppCompat v21
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.view.MenuItemCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.widget.SearchView;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
@ryugoo
ryugoo / ti_install.sh
Created September 21, 2014 14:28
Install Titanium 3.4.0.RC
# http://builds.appcelerator.com.s3.amazonaws.com/index.html#3.4.0
# RC2
ti sdk install http://builds.appcelerator.com/mobile/3.4.0/mobilesdk-3.4.0.RC2-osx.zip
# RC1
ti sdk install http://builds.appcelerator.com/mobile/3.4.0/mobilesdk-3.4.0.RC-osx.zip
@ryugoo
ryugoo / hello.swift
Created June 8, 2014 11:53
Swift closure
class MyClass {
// Instance variables
var myStr: String
// Constructor
init() {
myStr = "Hello "
}
// Method