Skip to content

Instantly share code, notes, and snippets.

View syllabix's full-sized avatar

Tom Stoepker syllabix

  • Miro
  • Amsterdam, Netherlands
View GitHub Profile
class TabBarViewPagerAdapter(
fm: FragmentManager,
private var fragments: List<Fragment>)
: FragmentStatePagerAdapter(fm) {
init {
fragments = fragments.map {
TabPageFragment.newInstance(it)
}
}
@syllabix
syllabix / remove_jira_users.sql
Last active August 29, 2017 17:21
Remove Jira Users from MSSQL Backed Instance
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)
@syllabix
syllabix / ResponseHandler.java
Last active May 17, 2017 02:54
A very simple opinionated subclass of a Retrofit.Callback
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;