I hereby claim:
- I am oldergod on github.
- I am oldergod (https://keybase.io/oldergod) on keybase.
- I have a public key whose fingerprint is 8B6C 86DC 67D8 0CE9 B1C8 2822 AADC 8990 FC32 3E48
To claim this, I am signing this object:
| const regexp = /\[(.*?)\]\((.+?)\)/g | |
| const editor = document.querySelector('.ql-editor') | |
| editor.addEventListener( | |
| 'keydown', | |
| (e) => { | |
| if (e.metaKey && e.shiftKey && e.key == 9) { | |
| let innerHtml = editor.innerHTML | |
| const matches = innerHtml.matchAll(regexp); | |
| for (const match of matches) { |
| import com.jakewharton.rxrelay2.PublishRelay | |
| import io.reactivex.Observable | |
| import io.reactivex.Observer | |
| import org.junit.rules.TestRule | |
| import org.junit.runner.Description | |
| import org.junit.runners.model.Statement | |
| /** | |
| * [PublishRelay]-like [Observable] enforcing: | |
| * 1. a unique observer at a time, and |
| /** | |
| * Many things are omitted to focus on the relevant data. | |
| */ | |
| public class Activity extends AppCompatActivity { | |
| Binder binder; | |
| @Override protected void onCreate(@Nullable Bundle savedInstanceState) { | |
| Object lastCustomNonConfigInstance = getLastCustomNonConfigurationInstance(); | |
| if (lastCustomNonConfigInstance != null) { | |
| binder = (Binder) lastCustomNonConfigInstance; |
| /** | |
| * Many things are omitted to focus on the relevant data. | |
| */ | |
| public class Activity extends AppCompatActivity { | |
| Binder binder; | |
| @Override protected void onCreate(@Nullable Bundle savedInstanceState) { | |
| bind(); | |
| } |
| public class DataBindingAdapters { | |
| @BindingAdapter("visible") public static void setVisibility(View view, boolean isVisible) { | |
| view.setVisibility(isVisible ? VISIBLE : GONE); | |
| } | |
| } |
| public class XmlOrJsonConverterFactory extends Converter.Factory { | |
| final Converter.Factory xml = SimpleXmlConverterFactory.create(); | |
| final Converter.Factory gson = GsonConverterFactory.create(); | |
| @Override | |
| public Converter<ResponseBody, ?> responseBodyConverter( | |
| Type type, Annotation[] annotations, Retrofit retrofit) { | |
| // Retrofit gives us all the annotations so we just need to check | |
| for (Annotation annotation : annotations) { |
| public class LoginContextUnwrappingConverter extends Converter.Factory { | |
| @Override | |
| public Converter<ResponseBody, LoginContext> | |
| responseBodyConverter(Type type, | |
| Annotation[] annotations, | |
| Retrofit retrofit) { | |
| if (type != LoginContext.class) { | |
| return null; | |
| } |
I hereby claim:
To claim this, I am signing this object: