-
Edit the Apache2 plist file with whatever editor you like (example using vim):
$ sudo vim /System/Library/LaunchDaemons/org.apache.httpd.plist
I hereby claim:
- I am srayhunter on github.
- I am srayhunter (https://keybase.io/srayhunter) on keybase.
- I have a public key whose fingerprint is BC4A 7F1D 19EF F5A9 D37E D7D9 A48E 7049 D73A B026
To claim this, I am signing this object:
This file contains 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
100% — FF | |
95% — F2 | |
90% — E6 | |
85% — D9 | |
80% — CC | |
75% — BF | |
70% — B3 | |
65% — A6 | |
60% — 99 | |
55% — 8C |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:state_checked="true"> | |
<shape> | |
<solid android:color="@android:color/white"/> | |
<corners android:radius="5dp"/> | |
</shape> | |
</item> | |
<item android:drawable="@drawable/vector"/> | |
</layer-list> |
This file contains 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
# project gradle.properties by srayhunter@github | |
# run the daemon on builds | |
org.gradle.daemon=true | |
org.gradle.jvmargs=-Djava.awt.headless=true -Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 |
// notice the callback here
git.getFeed(new Callback<String>() {
@Override
public void success(String result, Response response) {
Log.d("success" , "Data received: " + result);
}
@Override
public void failure(RetrofitError error) {
This file contains 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 class FetchContacts extends AsyncTask<Void, Void, ArrayList<Contact>> { | |
private final String DISPLAY_NAME = Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB ? | |
ContactsContract.Contacts.DISPLAY_NAME_PRIMARY : ContactsContract.Contacts.DISPLAY_NAME; | |
private final String FILTER = DISPLAY_NAME + " NOT LIKE '%@%'"; | |
private final String ORDER = String.format("%1$s COLLATE NOCASE", DISPLAY_NAME); | |
@SuppressLint("InlinedApi") |