This file contains 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
#include "JsonHelper.h" | |
#include <bb/data/JsonDataAccess> | |
using namespace bb::data; | |
JsonHelper::JsonHelper() | |
{ | |
} |
This file contains 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
#include "NetworkHelper.h" | |
#include <QDebug> | |
#include <QUrl> | |
#include <QNetworkRequest> | |
#include <QNetworkReply> | |
NetworkHelper::NetworkHelper(QObject* parent, const QString& url) : | |
QObject(parent), |
This file contains 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
package com.bradleycurran.droidquery.adapter; | |
import java.util.List; | |
import android.content.Context; | |
import android.util.SparseArray; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ArrayAdapter; |
This file contains 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
// Needless to say, don't use this with an adapter with a lot of items. | |
// Use a list view instead | |
public static void ram(ViewGroup parent, BaseAdapter adapter) { | |
for (int i = 0; i < adapter.getCount(); i++) { | |
View view = adapter.getView(i, null, parent); | |
parent.addView(view); | |
} | |
} |
This file contains 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
const { buildSchema } = require('graphql'); | |
const express = require('express'); | |
const { graphqlHTTP } = require('express-graphql'); | |
const makeExecutableSchema = (schema, resolverMap) => { | |
const executableSchema = buildSchema(schema); | |
Object.keys(resolverMap).forEach(typeKey => { | |
const fields = executableSchema.getType(typeKey).getFields(); | |
Object.keys(resolverMap[typeKey]).forEach(fieldKey => { |