Skip to content

Instantly share code, notes, and snippets.

View vegetablesalad's full-sized avatar

Valts vegetablesalad

View GitHub Profile
@vegetablesalad
vegetablesalad / merge graphql schemas
Last active October 1, 2018 10:58
package.json for merging local and remote schemas + generate typings for typescript
{
"graphql": "yarn merge-graphql-schema;yarn generate-graphql-schema-json;yarn generate-graphql-schema-typings",
"merge-graphql-schema": "cd graphql;rm final.schema.graphql;get-graphql-schema http://my.remote.schema:3030/graphql > remote.merge.schema.graphql;gql merge **/*.graphql > final.schema.graphql",
"generate-graphql-schema-json": "cd graphql;apollo-codegen introspect-schema final.schema.graphql --output schema.json",
"generate-graphql-schema-typings": "cd graphql;gql-gen --schema schema.json --template typescript --out ../typings/graphql.d.ts;rm schema.json",
}
@vegetablesalad
vegetablesalad / MainActivityTest.java
Created January 19, 2016 15:29 — forked from ChuckJHardy/MainActivityTest.java
Android MainActivityTest Example
package co.uk.myapp.beachroidtest;
import android.app.Fragment;
import android.app.Instrumentation;
import android.test.ActivityInstrumentationTestCase2;
import android.test.TouchUtils;
import android.test.ViewAsserts;
import android.view.View;
public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActivity> {