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
class TabBarViewPagerAdapter( | |
fm: FragmentManager, | |
private var fragments: List<Fragment>) | |
: FragmentStatePagerAdapter(fm) { | |
init { | |
fragments = fragments.map { | |
TabPageFragment.newInstance(it) | |
} | |
} |
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
DECLARE @UserList TABLE (USERNAME NVARCHAR(255)) | |
INSERT INTO @UserList VALUES ('user.name') | |
/*add additional | |
INSERT INTO @UserList VALUES ('<user name here>') | |
statement to batch remove multiple users | |
*/ | |
DECLARE @COUNTER INT = 0 | |
DECLARE @USERCOUNT INT = (SELECT COUNT(*) FROM @UserList) |
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
package com.example.gist.ResponseHandler | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import java.io.IOException; | |
import retrofit2.Call; | |
import retrofit2.Callback; | |
import retrofit2.Response; |