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 FlagUtils { | |
/** | |
* Packs booleans into an integer | |
* | |
* This does not check if the number of booleans is less then the number of bits in the integer | |
* | |
* @param params the booleans | |
* | |
* @return the packed integer |
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
/** | |
* Resolve id | |
* | |
* @param context the context | |
* @param id the id | |
* @return the resolved id | |
*/ | |
public static String resolveId( Context context, int id ) { | |
StringBuilder out = new StringBuilder(); | |
out.append(" #"); |
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
private static final int NOT_UNIQUE = -1; | |
/** | |
* Adds an item in a list using it's comparable sort | |
* | |
* @param item the item to add | |
* @param list the list to add to | |
* @param uniq if true, reject duplicates | |
* @param <A> if | |
* @param <I> |
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
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers | |
Africa/Asmara | |
Africa/Asmera | |
Africa/Bamako | |
Africa/Bangui | |
Africa/Banjul | |
Africa/Bissau |
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
apply plugin: 'com.android.application' | |
dependencies { | |
compile fileTree(dir: 'libs', include: '*.jar') | |
compile [...] | |
} | |
android { | |
// Add a gradle.properties to your root to make this workd: |
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
<div itemscope itemtype="http://schema.org/Order"> | |
<div itemprop="merchant" itemscope itemtype="http://schema.org/Organization"> | |
<meta itemprop="name" content="Amazon.com"/> | |
</div> | |
<meta itemprop="orderNumber" content="123-4567890-1234567"/> | |
<meta itemprop="priceCurrency" content="USD"/> | |
<meta itemprop="price" content="539.00"/> | |
<div itemprop="acceptedOffer" itemscope itemtype="http://schema.org/Offer"> | |
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/Product"> | |
<meta itemprop="name" content="Samsung Chromebook"/> |
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
<div itemscope itemtype="http://schema.org/EmailMessage"> | |
<div itemprop="action" itemscope itemtype="http://schema.org/SaveAction"> | |
<meta itemprop="name" content="Save Offer"/> | |
<div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler"> | |
<link itemprop="url" href="https://offers-everywhere.com/save?offerId=xyz789"/> | |
</div> | |
</div> | |
<meta itemprop="description" content="$5 meal at Joe's Diner"/> | |
</div> |
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
<div itemscope itemtype="http://schema.org/EmailMessage"> | |
<div itemprop="action" itemscope itemtype="http://schema.org/ConfirmAction"> | |
<meta itemprop="name" content="Approve XXX"/> | |
<div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler"> | |
<link itemprop="url" href="https://SOMEURLTOAPPROVE"/> | |
</div> | |
</div> | |
<meta itemprop="description" content="Approval request for John's $10.13 expense for office supplies OR SOMETHING ELSE"/> | |
</div> |
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
<div itemscope itemtype="http://schema.org/EmailMessage"> | |
<meta itemprop="description" content="DESCRIPTION"/> | |
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction"> | |
<link itemprop="url" href="https://evergive.com/redirect_to/posts/organization/xxx/group/yyy"/> | |
<meta itemprop="name" content="Show community"/> | |
</div> | |
<div itemprop="publisher" itemscope itemtype="http://schema.org/Organization"> | |
<meta itemprop="name" content="Evergive"/> | |
<link itemprop="url" href="https://evergive.com"/> | |
</div> |
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
Verifying that +sleeplessbyte is my openname (Bitcoin username). https://onename.io/sleeplessbyte |