Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Danyliuk Actine

  • Uzhhorod, Ukraine
View GitHub Profile
View richtext.js
{
"type": "ranges", // Means it's a rich text object
"ranges": {
"text": "1 pinch sugar\n2 pounds salt \n3 oz flour", // Character data. See how it's just text with newlines, no formatting
"objects": [ // If the text contains any links (row references, URLs, images, pages etc),
// those will appear in the "objects" array
{
"start": 28, // e.g. this one means there's a page link to a page "Uncheck" (/_suvou)
"end": 29, // inserted in place of characters 28-29 of the "text" above (where the space is)
View Analytics.java
package com.actinarium.materialcue.analytics;
import android.app.Application;
import android.support.annotation.NonNull;
import android.util.Log;
import com.actinarium.materialcue.dto.Overlay;
import com.actinarium.materialcue.iab.PremiumStatus;
import com.actinarium.materialcue.iab.PremiumStatusChangeListener;
import com.google.android.gms.analytics.HitBuilders;
import com.google.android.gms.analytics.Tracker;
View OverflowTextView.java
package com.actinarium.sample.overflow;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;
/**
* <p></p>
*
* @author Paul Danyliuk