Skip to content

Instantly share code, notes, and snippets.

John D. Pope wwe-johndpope

Block or report user

Report or block wwe-johndpope

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
wwe-johndpope / all-videos-mock.json
Created Oct 18, 2017
qa vs mock - all videos. qa - playbackurl - > href - FAILING!!
View all-videos-mock.json
This file has been truncated, but you can view the full file.
json: ["VideoAll": <__NSArrayI 0x7fb58ca64e00>(
actorsDisplay = "asperiores debitis quia commodi et";
appears = "2017-08-07T07:53:35Z";
assetName = distinctio;
billingID = "b553bde9-7b79-4805-a075-7a47cbbd52da";
calendarEventId = "a2c081c4-1934-4b07-bb4a-027f156ece7b";
closedCaptioning = 1;
contentId = "ec61de1f-6339-4cd3-884c-230f5cc05a94";
View media.json
"data": {
"query": {
"hits": [
"hit": {
"type": "Video",
"contentId": "43f7cfeb-4f0e-4018-b536-723d03095aab",
"appears": "2017-05-24T16:59:00Z",
"milestoneStart": null,
package com.wwe.universe.ui.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
View linkToTestWatchList.html
wwe-johndpope /
Last active Oct 3, 2017
generate swift files.
git clone
cd graphql_swift_gen
mkdir BAM
cd BAM
mkdir Source
cd ..
# optional - install RVM for ruby version managing.
curl -sSL
rvm install ruby --latest
gem install bundler
View Airings.graphql
query Airings {
Airings(channelId: $channelId) @paginate(startIndex: 1, maxResults: 5) {
contentId, mediaId, eventId, programId, partnerProgramId
startDate, endDate, expires
linear, runTime
playbackUrls {
titles {
View Airings.scala
// This file was automatically generated and should not be edited.
import Apollo
public final class SomestringQuery: GraphQLQuery {
public static let operationString =
"query SOMESTRING {" +
" Airings(channelId: \"MTV1\") @paginate(startIndex: 1, maxResults: 5) {" +
" __typename" +
" contentId" +
wwe-johndpope / API.scala
Created Sep 29, 2017
apollo generated code.
View API.scala
// This file was automatically generated and should not be edited.
import Apollo
/// The episodes in the Star Wars trilogy
public enum Episode: String {
case newhope = "NEWHOPE" /// Star Wars Episode IV: A New Hope, released in 1977.
case empire = "EMPIRE" /// Star Wars Episode V: The Empire Strikes Back, released in 1980.
case jedi = "JEDI" /// Star Wars Episode VI: Return of the Jedi, released in 1983.
wwe-johndpope / IndicatorInfo.swift
Created May 8, 2017
simple overloading functions
View IndicatorInfo.swift
public struct IndicatorInfo {
public var title: String
public var image: UIImage?
public var highlightedImage: UIImage?
public init(title: String) {
self.title = title
wwe-johndpope /
Last active Apr 5, 2017
save out json to files.
// chomd +x
curl -X GET -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > channels.json
curl -X GET -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > channel1092.json
curl -X GET -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > channel1701.json
curl -X GET -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > channel1408.json
curl -X GET -H "access-contro
You can’t perform that action at this time.