Skip to content

Instantly share code, notes, and snippets.

View rajinwonderland's full-sized avatar
🛰️
Exploring

Raj K Singh rajinwonderland

🛰️
Exploring
View GitHub Profile
@rajinwonderland
rajinwonderland / Top Headlines Request Params.md
Last active January 29, 2019 22:04
Top Headlines Request Params – NestJS GraphQL Example
Name Type Description Required/Default
q `string string[]` Keywords or a phrase to search for.
@rajinwonderland
rajinwonderland / query.graphql
Created January 28, 2019 18:33
Query – NestJS GraphQL Example
type Query {
everything(q: String!, options: EverythingInput): ArticleResponse
topHeadlines(q: String!, options: HeadlineInput): ArticleResponse
sources(options: SourceInput!): SourceResponse
temp__: Boolean
}
@rajinwonderland
rajinwonderland / enums.graphql
Created January 28, 2019 18:33
Enums – NestJS GraphQL Example
enum SortBy {
relevancy
popularity
publishedAt
}
enum Category {
all
business
entertainment
@rajinwonderland
rajinwonderland / inputs.graphql
Created January 28, 2019 18:31
Inputs – NestJS GraphQL Example
input EverythingInput {
sources: [String]
domains: [String]
excludeDomains: [String]
from: Date
to: Date
language: Language
sortBy: SortBy
pageSize: Int!
page: Int!
@rajinwonderland
rajinwonderland / types.graphql
Last active January 28, 2019 18:32
Types – NestJS GraphQL Example
type Article {
source: Source
author: String
title: String
description: String
url: String
urlToImage: String
publishedAt: Date
content: String
}
@rajinwonderland
rajinwonderland / enums.graphql
Last active January 27, 2019 21:07
News API Schema
enum SortBy {
relevancy
popularity
publishedAt
}
enum Category {
all
business
entertainment
const puppeteer = require('puppeteer');
function pageLoaded(page) {
return new Promise(async resolve => {
await page.exposeFunction('__puppeteer__', () => {
if (resolve) {
resolve();
}
});
@rajinwonderland
rajinwonderland / index.html
Created September 14, 2016 18:45
OpenCasting Onboard Tips
<div class="gradients">
<div class="gradient-7">
<div class="content">
<div class="title">
<h1>Congrats on getting the audition!</h1></div>
<div class="image"> <img src="https://cdn2.iconfinder.com/data/icons/circle-icons-1/64/clapboard-256.png"/><br/></div>
<div class="bottom"><p>
We've put together a few tips to help you get that role using our app!
</p></div>
</div>