Skip to content

Instantly share code, notes, and snippets.

View iamclaytonray's full-sized avatar
:shipit:
Working

clay iamclaytonray

:shipit:
Working
View GitHub Profile
import clsx from 'rn-clsx';
export const spacing = {
xs: 4,
sm: 8,
md: 16,
lg: 24,
xlg: 32,
};
import React, { useState, createContext } from "react"
import { useTranslation } from "react-i18next"
export const AppProvider = createContext()
export const Provider = ({ children }) => {
const { i18n } = useTranslation()
const [cookie, setCookie] = useState(false)
const [language, setLanguage] = useState("ENGLISH")
@iamclaytonray
iamclaytonray / example.md
Last active March 21, 2019 06:44
GraphQL Pseudo Code

Pseudo Code

type Example {
  first: String
  second: String!
  third: [String]
  fourth: [String!]
  fifth: [String!]!
}
@iamclaytonray
iamclaytonray / introspection-query.graphql
Created December 26, 2018 23:31 — forked from craigbeck/introspection-query.graphql
Introspection query for GraphQL
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
@iamclaytonray
iamclaytonray / introspected.json
Last active December 27, 2018 01:44
Results from introspecting the Github GraphQL API
This file has been truncated, but you can view the full file.
{
"data": {
"__schema": {
"queryType": {
"name": "Query"
},
"mutationType": {
"name": "Mutation"
},
"subscriptionType": null,
@iamclaytonray
iamclaytonray / tslint.json
Last active August 29, 2018 01:53
Every single rule for a tslint.json file
{
"defaultSeverity": "error",
"rules": {
"adjacent-overload-signatures": true,
"align": true,
"array-type": true,
"arrow-parens": true,
"arrow-return-shorthand": true,
"await-promise": true,
"ban": true,
@iamclaytonray
iamclaytonray / forks.md
Last active January 12, 2018 10:37
Working with git

Clone your fork.

git clone git@github.com:YOUR_USERNAME/FORKED_REPO.git

Add the remote upstream to git

git remote add upstream git://github.com/ORIGIN_USERNAME/ORIGIN_REPO.git