Skip to content

Instantly share code, notes, and snippets.

stdout[info] [phantom] Starting...
[info] [phantom] Running suite: 2 steps
[debug] [phantom] opening url: http://localhost/creatives/5371388c575e08ce26000002/preview?screenshot=1, HTTP GET
[debug] [phantom] Navigation requested: url=http://localhost/creatives/5371388c575e08ce26000002/preview?screenshot=1, type=Other, willNavigate=true, isMainFrame=true
[warning] [phantom] Loading resource failed with status=fail: http://localhost/creatives/5371388c575e08ce26000002/preview?screenshot=1
[debug] [phantom] Successfully injected Casper client-side utilities
Adslot frames: 0
[info] [phantom] Step anonymous 2/2: done in 50ms.
[info] [phantom] Step _step 3/3: done in 69ms.
[info] [phantom] waitFor() finished in 43ms.
E/AndroidRuntime(1328): java.lang.IllegalStateException: No activity
E/AndroidRuntime(1328): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1075)
E/AndroidRuntime(1328): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1070)
E/AndroidRuntime(1328): at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1861)
E/AndroidRuntime(1328): at android.support.v4.app.Fragment.performActivityCreated(Fragment.java:1474)
E/AndroidRuntime(1328): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:931)
E/AndroidRuntime(1328): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1088)
E/AndroidRuntime(1328): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
E/AndroidRuntime(1328): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1444)
E/AndroidRuntime(1328): at android.support.v4.app.FragmentManagerImpl$1.run
public class CustomPageIndicator extends HorizontalScrollView implements PageIndicator {
/** Title text used when no title is provided by the adapter. */
private static final CharSequence EMPTY_TITLE = "";
/**
* Interface for a callback when the selected tab has been reselected.
*/
public interface OnTabReselectedListener {
/**
* Callback when the selected tab has been reselected.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_gravity="center">
<TextView
android:id="@+id/textViewTexTitle"
android:layout_width="wrap_content"
@pzagor2
pzagor2 / gist:5108651
Created March 7, 2013 15:04
Wish code
public class Wish implements Parcelable {
public String name;
public Wish(){};
public Wish(String name)
{
this.name = name;
}
protected Wish(Parcel in) {
name = in.readString();
//# sourceURL=RAD.js
var radWrapper = document.getElementById('rad-wrapper');
var inEditor = window.location.href.indexOf('edit-loader.html') > -1 ? true : false;
var inScreenshot = window.location.href.indexOf('preview?screenshot=1') > -1 ? true : false;
var ad = Radical.getAdByContainer(window.frameElement);
if (inEditor) {
radWrapper.style.opacity = '1';
}
if (!inEditor) {
(function () {
var matchBreakPoint = debounce(function(size) {
breakPointCallback(size);
}, 50, false);
//debounde implementation
function debounce(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
var later = function() {
timeout = null;
//# sourceURL=RAD.js
var radWrapper = document.getElementById('rad-wrapper');
var inEditor = window.location.href.indexOf('edit-loader.html') > -1 ? true : false;
//Use 'inScreenshot' to change behavior when the creative is loaded for fullbacks (Usually we don't run the animation)
var inScreenshot = window.location.href.indexOf('preview?screenshot=1') > -1 ? true : false;
var ad = Radical.getAdByContainer(window.frameElement);
if (!inEditor) {
(function () {
//get DOM references to elements inside creative
var backgroundElement = document.getElementById('a1');
@pzagor2
pzagor2 / RAD_parallax_whole_image_height.js
Created April 5, 2017 06:33
Example on how to make image parallax
//# sourceURL=RAD.js
var radWrapper = document.getElementById('rad-wrapper');
var inEditor = window.location.href.indexOf('edit-loader.html') > -1 ? true : false;
//Use 'inScreenshot' to change behavior when the creative is loaded for fullbacks (Usually we don't run the animation)
var inScreenshot = window.location.href.indexOf('preview?screenshot=1') > -1 ? true : false;
var ad = Radical.getAdByContainer(window.frameElement);
if (inEditor) {
radWrapper.style.opacity = '1';
}
if (!inEditor) {
function createSlideShowTimeline(group, overlap, delay) {
overlap = overlap || 0.5;
delay = delay || 1;
var leftTimeline = new TimelineMax();
var TIME = 0;
for (var j = 0; j < 20; j++) {
for (var i = group.length - 1; i >= 0; i--) {
var toSHow = group[i];
var toHide = group[i+1] || group[0];