Skip to content

Instantly share code, notes, and snippets.

Avatar

Jordan Koncz jordanmkoncz

  • Digital Creators
  • Sydney, Australia
View GitHub Profile
@jordanmkoncz
jordanmkoncz / Profile.js
Created Sep 4, 2019
Apollo Client Hooks + Hasura
View Profile.js
import React from "react";
import { useSubscription, useQuery } from "@apollo/react-hooks";
import gql from "graphql-tag";
const PROFILE_QUERY = gql`
query Profile($id: String!) {
Person(where: { id: { _eq: $id } }) {
id
firstName
lastName
View slack2html.php
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@jordanmkoncz
jordanmkoncz / auth-interceptor.service.js
Last active Oct 28, 2015
Avoid AngularJS circular dependency error when using $state in a HTTP interceptor
View auth-interceptor.service.js
angular
.module('app')
.factory('AuthInterceptor', AuthInterceptor);
function AuthInterceptor($injector, $q) {
var $state;
var service = {
responseError: responseError
};