This is just stuff that I have put down that I find I use a lot of the time for my own reference.
$ git pull| query IntrospectionQuery { | |
| __schema { | |
| queryType { name } | |
| mutationType { name } | |
| subscriptionType { name } | |
| types { | |
| ...FullType | |
| } | |
| directives { |
| public class RxSearch { | |
| public static Observable<String> fromSearchView(@NonNull final SearchView searchView) { | |
| final BehaviorSubject<String> subject = BehaviorSubject.create(""); | |
| searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() { | |
| @Override | |
| public boolean onQueryTextSubmit(String query) { | |
| subject.onCompleted(); |
| <html> | |
| <body bgcolor=000000> | |
| <table boder=0 cellpadding=0 cellspacing=0> | |
| <tr height=3> | |
| <td width=3 bgcolor=888888 rowspan=105></td> | |
| <td bgcolor=888888 colspan=54></td> | |
| <td width=3 bgcolor=888888 rowspan=105></td> | |
| </tr> |
| /* | |
| * Copyright 2017 Google Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | |
| * except in compliance with the License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software distributed under the | |
| * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ##################### | |
| # | |
| # Use this with or without the .gitattributes snippet with this Gist | |
| # create a fixle.sh file, paste this in and run it. | |
| # Why do you want this ? Because Git will see diffs between files shared between Linux and Windows due to differences in line ending handling ( Windows uses CRLF and Unix LF) | |
| # This Gist normalizes handling by forcing everything to use Unix style. | |
| ##################### | |
| # Fix Line Endings - Force All Line Endings to LF and Not Windows Default CR or CRLF |
| public class ResourceProvider { | |
| private final Context context; | |
| @Inject | |
| public ResourceProvider(Context context) { | |
| this.context = context; | |
| } | |
| @NonNull |
$ ssh [email protected]
$ mkdir test
$ cd test