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 final class Pair { | |
public int firstValue; | |
public int secondValue; | |
// Reference to next object in the pool | |
private Pair next; | |
// The lock used for synchronization | |
private static final Object sPoolSync = new Object(); |
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
/** | |
* A lifecycle-aware observable that sends only new updates after subscription, used for events like | |
* navigation and Snackbar messages. | |
* <p> | |
* This avoids a common problem with events: on configuration change (like rotation) an update | |
* can be emitted if the observer is active. This LiveData only calls the observable if there's an | |
* explicit call to setValue() or call(). | |
* <p> | |
* Note that only one observer is going to be notified of changes. | |
*/ |
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
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
public final class BenchmarkUtil { | |
private static final List<Long> TIMES = new ArrayList<>(10); | |
private static long startNanos; |
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
{ | |
"feeds": [ | |
"https://medium.com/feed/android-news", | |
"http://akarnokd.blogspot.com/feeds/posts/default", | |
"http://feeds.feedburner.com/GoogleOpenSourceBlog", | |
"http://feeds.feedburner.com/BenNorthrop", | |
"http://os.phil-opp.com/atom.xml", | |
"http://dev.cheremin.info/feeds/posts/default", | |
"http://feeds.feedburner.com/blogspot/hsDu", | |
"http://ruhaskell.org/feed.xml", |
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
{ | |
"feeds": [ | |
"http://umneem.org/index.xml", | |
"https://nplus1.ru/rss", | |
"https://nplusonemag.com/feed/", | |
"http://disgustingmen.com/feed/", | |
"http://gorky.media/feed/", | |
"https://thenextweb.com/feed/" | |
] | |
} |
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
____________ | |
| itty | | |
| android | | |
| peerlab | | |
| ./sh | | |
‾‾‾‾‾‾‾‾‾‾‾‾ |
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
#!/usr/bin/env bash | |
set -x | |
rm -rv .idea/caches | |
rm -rv .idea/libraries | |
rm -v .idea/gradle.xml | |
rm -v .idea/modules.xml |
OlderNewer