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
{ | |
"Profiles": [ | |
{ | |
"Ansi 1 Color" : { | |
"Green Component" : 0.3315432667732239, | |
"Red Component" : 0.8398278951644897, | |
"Blue Component" : 0.3842783868312836 | |
}, | |
"Tags" : [ |
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
Android Studio 2 Mapping: bit.ly/eddie-as2 | |
AS 3.0 Preview: bit.ly/eddie-as3 | |
build.gradle | |
https://gist.github.com/eddieberklee/dcb5606496f5bd0cbe12b55d2332661e | |
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
private void init() { | |
mAllEntriesAdapter = new AllEntriesRecyclerAdapter(AllEntriesActivity.this, mEntries, mAllEntriesRecyclerView); | |
mAllEntriesLayoutManager = new StaggeredGridLayoutManager(mNumColumns, StaggeredGridLayoutManager.VERTICAL); | |
mAllEntriesRecyclerView.setLayoutManager(mAllEntriesLayoutManager); | |
mAllEntriesRecyclerView.setAdapter(mAllEntriesAdapter); | |
RealmQuery<Entry> entriesQuery = mRealm.where(Entry.class); | |
RealmResults<Entry> entriesResults = entriesQuery.findAll(); |
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
// app/build.gradle | |
// place this before other dependencies | |
compile 'com.jakewharton:butterknife:8.6.0' | |
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.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
/* | |
Paint strokePaint = new Paint(); | |
strokePaint.setStyle(Paint.Style.STROKE); | |
strokePaint.setStrokeWidth(Etils.dpToPx(1)); | |
strokePaint.setColor(Color.RED); | |
canvas.drawRect(innerRectHump, strokePaint); | |
canvas.drawRect(outerRectHump, strokePaint); | |
canvas.drawPath(humpCirclePath, strokePaint); | |
*/ |
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 static final int BASE_REQUEST_CODE = 100; | |
public static final int CAMERA_PERMISSIONS_REQUEST = BASE_REQUEST_CODE + 1; | |
public static final int RECORD_AUDIO_PERMISSIONS_REQUEST = BASE_REQUEST_CODE + 2; | |
public static final int WRITE_EXTERNAL_STORAGE_PERMISSIONS_REQUEST = BASE_REQUEST_CODE + 3; | |
private boolean hasPermission(String permissionName) { | |
int permissionCheck = ContextCompat.checkSelfPermission(CameraActivity.this, permissionName); | |
return (permissionCheck == PackageManager.PERMISSION_GRANTED); | |
} |
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.compscieddy.meetinthemiddle.ui; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.widget.FrameLayout; | |
import com.compscieddy.eddie_utils.Lawg; | |
/** | |
* Created by elee on 6/8/16. |
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> | |
<!-- | |
TODO: Before you run your application, you need a Google Maps API key. | |
To get one, follow this link, follow the directions and press "Create" at the end: | |
https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=99:2F:C8:F5:F0:C4:DA:61:BC:95:69:B0:53:36:E1:5C:CD:65:D2:37%3Bcom.compscieddy.meetinthemiddle | |
You can also add your credentials to an existing key, using this line: | |
99:2F:C8:F5:F0:C4:DA:61:BC:95:69:B0:53:36:E1:5C:CD:65:D2:37;com.compscieddy.meetinthemiddle |
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
<color name="white">#FFFFFFFF</color> | |
<color name="black">#FF000000</color> | |
<color name="transparent">#00000000</color> | |
<!-- flat ui colors--> | |
<color name="flatui_lightgrey_1">#ecf0f1</color> | |
<color name="flatui_lightgrey_2">#bdc3c7</color> | |
<color name="flatui_grey_1">#95a5a6</color> | |
<color name="flatui_grey_2">#7f8c8d</color> | |
<color name="flatui_red_1">#e74c3c</color> |
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
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
testCompile 'junit:junit:4.12' | |
compile 'com.android.support:appcompat-v7:23.1.1' | |
compile 'com.android.support:design:23.1.1' | |
compile 'com.jakewharton:butterknife:8.6.0' | |
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0' | |
compile 'com.squareup.retrofit2:retrofit:2.3.0' |