Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Coding

Jason Werner TrillCyborg

👨‍💻
Coding
View GitHub Profile
@TrillCyborg
TrillCyborg / apollo.ts
Created Nov 14, 2019
Next.js / Accounts.js
View apollo.ts
import fetch from 'isomorphic-unfetch'
import { ApolloClient } from 'apollo-client'
import { ApolloLink } from 'apollo-link'
import { createHttpLink } from 'apollo-link-http'
import { InMemoryCache, NormalizedCacheObject } from 'apollo-cache-inmemory'
import { AccountsGraphQLClient } from '@accounts/graphql-client'
import { AccountsClientPassword } from '@accounts/client-password'
import { AccountsClient } from '@accounts/client'
import { accountsLink } from '@accounts/apollo-link'
import { tokenStorage } from './token-storage'
View mastodon-docker-setup.md

Mastodon Docker Setup

Setting up

Clone Mastodon's repository.

# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live

cd ~/live

@TrillCyborg
TrillCyborg / scatter.ts
Created Oct 20, 2018
Scatter EOS Login
View scatter.ts
import ScatterJS from 'scatterjs-core'
import ScatterEOS from 'scatterjs-plugin-eosjs'
import EOS from 'eosjs'
const isDev = process.env.NODE_ENV === 'development'
const APP_NAME = 'Test App'
const NETWORK = {
protocol: "http",
blockchain: "eos",
host: "127.0.0.1",
@TrillCyborg
TrillCyborg / apollo-accounts.js
Created Oct 7, 2018
Accounts.js / Apollo Client Boilerplate for authenticated resolvers
View apollo-accounts.js
import { ApolloClient } from "apollo-client";
import { ApolloLink } from "apollo-link";
import { createHttpLink } from "apollo-link-http";
import { InMemoryCache } from "apollo-cache-inmemory";
import { AccountsClient } from "@accounts/client";
import { AccountsClientPassword } from "@accounts/client-password";
import GraphQLClient from "@accounts/graphql-client";
import { accountsLink } from "@accounts/apollo-link";
let uri = /* gql endpoint */;
View keybase.md

Keybase proof

I hereby claim:

  • I am trillcyborg on github.
  • I am trillcyborg (https://keybase.io/trillcyborg) on keybase.
  • I have a public key ASCpx2rnBqJN3wbVjz0INJDcqsj0NGRU4B-C9F_ze8Bjpwo

To claim this, I am signing this object: