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.java
private boolean checkMapServices(){
if(isServicesOK()){
if(isMapsEnabled()){
return true;
}
}
return false;
}
private void buildAlertMessageNoGps() {
@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"
}
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() {
View login.json
{
"response": "Successfully authenticated.",
"pk": 1,
"email": "mitch@tabian.ca",
"token": "0333ec24e30766df2e1e413874664723d3c62172"
}
View OnDrag.java
switch(dragEvent.getAction()) {
case DragEvent.ACTION_DRAG_STARTED:
Log.d(TAG, "onDrag: drag started.");
return true;
case DragEvent.ACTION_DRAG_ENTERED:
Log.d(TAG, "onDrag: drag entered.");
return true;
@mitchtabian
mitchtabian / error_email.json
Last active Jul 24, 2019
Url: https://<your-domain>/api/account/register
View error_email.json
{
"email": "That email is already in use.",
"response": "Error"
}
@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 / 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"
}
You can’t perform that action at this time.