This file contains hidden or 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
| awk 'FNR==NR {hash[$0]; next} !($0 in hash)' file-piccolo file-grande |
This file contains hidden or 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
| sed -n 100,200p filename |
This file contains hidden or 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
| Reports.find( { _id: { $in : ids_array } }, (err, found) => {}); |
This file contains hidden or 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
| List<Observable<String>> list = new ArrayList<>(); | |
| list.add(Observable.just("one", "two")); | |
| list.add(Observable.just("three", "four", "five")); | |
| list.add(Observable.just("six", "seven", "eight")); | |
| list.add(Observable.just("nine", "ten")); | |
| Observable.concat(list).subscribe(new Consumer<String>() { | |
| @Override | |
| public void accept(String s) throws Exception { |
This file contains hidden or 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
| /* | |
| In the App | |
| */ | |
| public class GithubApp extends Application implements HasActivityInjector { | |
| @Inject | |
| DispatchingAndroidInjector<Activity> dispatchingAndroidInjector; | |
| @Override |
This file contains hidden or 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
| <activity | |
| android:name=".DetailActivity" | |
| android:parentActivityName=".MainActivity"> | |
| <meta-data | |
| android:name="android.support.PARENT_ACTIVITY" | |
| android:value=".MainActivity" /> | |
| </activity> |
This file contains hidden or 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
| public class MyApp extends Application { | |
| @Override | |
| public void onCreate() { | |
| super.onCreate(); | |
| if (BuildConfig.DEBUG) { | |
| Timber.plant(new Timber.DebugTree() { | |
| @Override | |
| protected String createStackElementTag(StackTraceElement element) { |
This file contains hidden or 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
| //LOAD CSV script for GFTS data | |
| create constraint on (a:Agency) assert a.id is unique; | |
| create constraint on (r:Route) assert r.id is unique; | |
| create constraint on (t:Trip) assert t.id is unique; | |
| create index on :Trip(service_id); | |
| create constraint on (s:Stop) assert s.id is unique; | |
| create index on :Stoptime(stop_sequence); | |
| create index on :Stop(name); | |
| //add the agency |
This file contains hidden or 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
| public class MainActivity extends AppCompatActivity { | |
| static { | |
| AppCompatDelegate.setCompatVectorFromResourcesEnabled(true); | |
| } | |
| ... | |
| } |
This file contains hidden or 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
| -- TABLET -- | |
| values-sw720dp 10.1” tablet 1280x800 mdpi | |
| values-sw600dp 7.0” tablet 1024x600 mdpi | |
| -- PHONE -- | |
| values-sw480dp 5.4” 480x854 mdpi | |
| values-sw480dp 5.1” 480x800 mdpi | |
| values-xhdpi 4.7” 1280x720 xhdpi | |
| values-xhdpi 4.65” 720x1280 xhdpi | |
| values-hdpi 4.0” 480x800 hdpi |