- Retrofit http://square.github.io/retrofit/
- Simple HTTP with Retrofit 2 https://realm.io/news/droidcon-jake-wharton-simple-http-retrofit-2/
- Consuming APIs with Retrofit https://github.com/codepath/android_guides/wiki/Consuming-APIs-with-Retrofit
- Retrofit - YouTube: https://www.youtube.com/watch?v=3WONuRSUHmw
- Retrofit 2.0: The biggest update yet on the best HTTP Client Library for Android http://inthecheesefactory.com/blog/retrofit-2.0/en
- Retrofit Tutorial for Android: https://www.youtube.com/watch?v=3cN6aJmwMAg
- CONSUMING REST API WITH RETROFIT 2.0 IN ANDROID http://www.iayon.com/consuming-rest-api-with-retrofit-2-0-in-android/
- Retrofit 2 — Upgrade Guide from 1.9 https://futurestud.io/blog/retrofit-2-upgrade-guide-from-1-9
- Retrofit — Getting Started and Create an Android Client https://futurestud.io/blog/retrofit-getting-started-and-android-client
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
defaultConfig { | |
resValue "string", "app_name", "MyApp" | |
} | |
buildTypes { | |
debug { | |
applicationIdSuffix = ".debug" | |
testCoverageEnabled = "true" | |
resValue "string", "app_name", "MyApp DEBUG" | |
} |
- http://brianattwell.com/distributing-android-libs-via-jcenter/
- http://choosealicense.com/
- https://github.com/dcendents/android-maven-gradle-plugin
- https://github.com/bintray/gradle-bintray-plugin/blob/master/README.md
- https://bintray.com/
- http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en
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
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
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
/** | |
**================================================================================================================** | |
* Rewrite Root Rules | |
**================================================================================================================** | |
**================================================================================================================** | |
**/ | |
add_action('generate_rewrite_rules', 'roots_add_rewrites'); | |
function roots_add_rewrites($content) { | |
$theme_name = next(explode('/themes/', get_stylesheet_directory())); | |
global $wp_rewrite; |
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
SqlConnection con = new SqlConnection(); | |
SqlCommand cmd = new SqlCommand(); | |
cmd.Connection=con; | |
cmd.CommandType=CommandType.Text; | |
cmd.CommandText="select column from table where condition;"; |
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
UPDATE `database`.`wp_options` SET `option_value` = 'http://localhost/wp' WHERE `wp_options`.`option_id` = 1; | |
UPDATE `database`.`wp_options` SET `option_value` = 'http://localhost/wp' WHERE `wp_options`.`option_id` = 2; |
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
<?php | |
<!-- Logout and redirect to home --> | |
echo wp_logout_url( home_url() ); | |
<!-- Get Page Title --> | |
echo get_the_title(); | |
<!-- Redirect --> | |
wp_redirect(''); |
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
void openWhatsappContact(String number) { | |
Uri uri = Uri.parse("smsto:" + number); | |
Intent i = new Intent(Intent.ACTION_SENDTO, uri); | |
i.setPackage("com.whatsapp"); | |
startActivity(Intent.createChooser(i, "")); | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |