This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.content.ContentValues; | |
| import android.database.Cursor; | |
| import android.os.Parcel; | |
| import android.os.Parcelable; | |
| import net.cattaka.util.cathandsgendroid.accessor.Accessors; | |
| import net.cattaka.util.cathandsgendroid.accessor.IAccessor; | |
| import net.cattaka.util.cathandsgendroid.accessor.ParcelableAccessor; | |
| import java.io.ByteArrayInputStream; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.wantedly.android.namecard_scanner.utils; | |
| import android.support.v4.view.OnApplyWindowInsetsListener; | |
| import android.support.v4.view.ViewCompat; | |
| import android.support.v4.view.WindowInsetsCompat; | |
| import android.view.View; | |
| import rx.Observable; | |
| import rx.subjects.BehaviorSubject; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <resources> | |
| <dimen name="element_spacing_x0.5">4dp</dimen> | |
| <dimen name="element_spacing_x1">8dp</dimen> | |
| <dimen name="element_spacing_x1.5">12dp</dimen> | |
| <dimen name="element_spacing_x2">16dp</dimen> | |
| <dimen name="element_spacing_x2.5">20dp</dimen> | |
| <dimen name="element_spacing_x3">24dp</dimen> | |
| <dimen name="element_spacing_x4">32dp</dimen> | |
| <dimen name="element_spacing_x5">40dp</dimen> | |
| <dimen name="element_spacing_x6">48dp</dimen> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class StringUtilsTest { | |
| @Test | |
| public void testSplit() { | |
| assertThat(StringUtils.split(null, ',', '"'), is(Collections.EMPTY_LIST)); | |
| assertThat(StringUtils.split("", ',', '"'), is(Collections.<String>singletonList(null))); | |
| assertThat(StringUtils.split("\"\"", ',', '"'), is(Collections.singletonList(""))); | |
| assertThat(StringUtils.split("\"\",,\"\"", ',', '"'), is(Arrays.asList("", null, ""))); | |
| assertThat(StringUtils.split("a,b,c", ',', '"'), is(Arrays.asList("a", "b", "c"))); | |
| assertThat(StringUtils.split("a\"b,c", ',', '"'), is(Arrays.asList("a\"b", "c"))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import net.vvakame.util.jsonpullparser.JsonFormatException; | |
| import net.vvakame.util.jsonpullparser.JsonPullParser; | |
| import net.vvakame.util.jsonpullparser.util.JsonUtil; | |
| import net.vvakame.util.jsonpullparser.util.OnJsonObjectAddListener; | |
| import net.vvakame.util.jsonpullparser.util.TokenConverter; | |
| import java.io.IOException; | |
| import java.io.Writer; | |
| import io.realm.RealmList; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import rx.functions.Action1; | |
| import rx.schedulers.Schedulers; | |
| import rx.subjects.PublishSubject; | |
| import java.util.concurrent.LinkedBlockingQueue; | |
| import java.util.concurrent.ThreadPoolExecutor; | |
| import java.util.concurrent.TimeUnit; | |
| /** | |
| * Created by cattaka on 16/09/24. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Section "ServerLayout" | |
| Identifier "layout" | |
| Screen 0 "nvidia" | |
| Inactive "intel" | |
| EndSection | |
| Section "Device" | |
| Identifier "nvidia" | |
| Driver "nvidia" | |
| # Change BusID if necessary. Tips: (lspci | grep 3D) (Change 01:00.0 to 1:0:0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def dump_values(obj) | |
| results = "" | |
| obj.keys.each do |key| | |
| results += key.to_s + "\t" + obj[key].to_s + "\n" | |
| end | |
| results | |
| end | |
| def dump_tsv(rows) | |
| keys = rows.map do |row| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.wantedly.android.profile.utils; | |
| import java.util.Comparator; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| /** | |
| * Created by cattaka on 2016/08/03. | |
| */ | |
| public class ClassOrderComparator implements Comparator<Object> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -v `pwd`/article:/article vvakame/review /bin/bash -c "cd article && rm -r TechBook-pdf TechBook.pdf ; review-pdfmaker config.yml" |