Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block MrTact

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
MrTact / RetrofitClient.kt
Last active Apr 29, 2019
Object wrapper to easily create a retrofit client in Kotlin
View RetrofitClient.kt
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.module.SimpleModule
import com.fasterxml.jackson.module.kotlin.KotlinModule
import retrofit2.Retrofit
import retrofit2.converter.jackson.JacksonConverterFactory
* @return A callable instance of a retrofit client based on the provided API class
* @param baseUrl: The base URL for the api host
MrTact / LogText.kt
Last active Jan 11, 2019
Easily log some text to a file in Kotlin
View LogText.kt
File("log.txt").printWriter().use { out ->
#!/usr/bin/env python
# Linux usage: ./ "/home/<USER>/.config/<BROWSER>/Default/Local Extension Settings/<EXTENSION_ID>"
# i.e.: ./ "/home/foo/.config/google-chrome-beta/Default/Local Extension Settings/gcalenpjmijncebpfijmoaglllgpjagf"
# Mac usage: ./ "/Users/<USER>/Library/Application Support/Google/Chrome/Default/Local Extension Settings/<EXTENSION_ID>/"
# i.e.: ./ "/Users/foo/Library/Application Support/Google/Chrome/Default/Local Extension Settings/dhdgffkkebhmkfjojejmpbldmpobfkfo/"
import leveldb
import sys
import re
You can’t perform that action at this time.