Skip to content

Instantly share code, notes, and snippets.

🤙
Forever coding

Mitch Tabian mitchtabian

🤙
Forever coding
Block or report user

Report or block mitchtabian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:fillViewport="true"
>
View MainActivity.kt
package com.codingwithmitch.coroutineexamples
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
import kotlinx.coroutines.*
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.Dispatchers.Main
class MainActivity : AppCompatActivity() {
View MainActivity.kt
package com.codingwithmitch.coroutineexamples
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
import kotlinx.coroutines.*
class MainActivity : AppCompatActivity() {
@mitchtabian
mitchtabian / update_success.json
Created Jul 16, 2019
https://<your-domain>/api/account/properties/update
View update_success.json
{
"response": "Account update success"
}
@mitchtabian
mitchtabian / account_properties.json
Last active Aug 3, 2019
https://<your-domain>/api/account/properties
View account_properties.json
{
"pk": 1,
"email": "mitch@tabian.ca",
"username": "mitch"
}
@mitchtabian
mitchtabian / detail_blog.json
Created Jul 9, 2019
https://<your-domain>/api/blog/<slug>/
View detail_blog.json
{
"title": "I'm switching to Kotlin",
"body": "Kotlin fdskgfdg dfgdfg dgdfgd fgdf\nfdg dfg dfgd",
"image": "/media/blog/1/Im_switching_to_Kotlin-Im_switching_to_Kotlin_eXPxce7.png",
"date_updated": "2019-07-09T16:02:19.170321Z",
"username": "mitch"
}
@mitchtabian
mitchtabian / update_blog.json
Created Jul 9, 2019
https://<your-domain>/api/blog/<slug>/update
View update_blog.json
{
"response": "updated"
}
@mitchtabian
mitchtabian / delete_blog.json
Created Jul 9, 2019
https://<your-domain>/api/blog/<slug>/delete
View delete_blog.json
{
"response": "deleted"
}
@mitchtabian
mitchtabian / create_blog.json
Created Jul 9, 2019
https://<your-domain>/api/blog/create
View create_blog.json
{
"title": "New Title!",
"body": "this is new body \ncool.\nstuff.",
"image": "/media/blog/1/New_Title-REST_API_Retrofit2_MVVM_Course_SUMMARY.png",
"date_updated": "2019-07-09T15:19:33.095626Z",
"username": "mitch"
}
View blog_list.json
{
"count": 6,
"next": null,
"previous": null,
"results": [
{
"title": "This is a title",
"body": "This is a body",
"image": "/media/blog/1/Second_Blog_post-4.png",
"date_updated": "2019-06-26T18:24:31.489343Z",
You can’t perform that action at this time.