Skip to content

Instantly share code, notes, and snippets.

View rafaelcorreiapoli's full-sized avatar
🎯
Focusing

Rafael Ribeiro rafaelcorreiapoli

🎯
Focusing
View GitHub Profile
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../../salesforce/s1-elements/scaffold/s1AppScaffold.html">
<link rel="import" href="../../salesforce/s1-elements/scaffold/s1PageContainer.html">
<link rel="import" href="../../salesforce/s1-elements/s1StagedNavigationStageLeft.html">
<link rel="import" href="../../salesforce/s1-elements/s1StagedNavigationNotifications.html">
<link rel="import" href="../../salesforce/s1-elements/s1AnchorLightDefault.html">
<link rel="import" href="../../salesforce/s1-elements/s1ListWithLabels.html">
<link rel="import" href="../../salesforce/s1-elements/s1AnchorDark.html">
<link rel="import" href="../../salesforce/s1-elements/s1IndicatorDotsLightBackground.html">
<link rel="import" href="../../salesforce/s1-elements/s1ButtonGroups.html">
<link rel="import" href="../../salesforce/s1-elements/scaffold/s1DetailView.html">
<link rel="import" href="../../salesforce/mobile-ui-elements/elements/force-ui-app/force-ui-app.html">
<link rel="import" href="../../salesforce/s1-elements/scaffold/s1AppScaffold.html">
<link rel="import" href="../../salesforce/s1-elements/scaffold/s1PageContainer.html">
<link rel="import" href="../../salesforce/s1-elements/s1StagedNavigationStageLeft.html">
<link rel="import" href="../../salesforce/s1-elements/s1StagedNavigationNotifications.html">
<link rel="import" href="../../salesforce/s1-elements/s1AnchorLightDefault.html">
<link rel="import" href="../../salesforce/s1-elements/s1ListWithLabels.html">
<link rel="import" href="../../salesforce/s1-elements/s1AnchorDark.html">
<link rel="import" href="../../salesforce/s1-elements/s1IndicatorDotsLightBackground.html">
<link rel="import" href="../../salesforce/s1-elements/s1ButtonGroups.html">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@rafaelcorreiapoli
rafaelcorreiapoli / LoginContainer.js
Created July 10, 2017 06:11
Auth0 and E-mail authentication with Graphcool
/* global alert */
import { reduxForm } from 'redux-form';
import { compose } from 'redux';
import { AccessToken } from 'react-native-fbsdk';
import { AsyncStorage } from 'react-native';
import { graphql, gql, withApollo } from 'react-apollo';
import axios from 'axios';
import { withState } from 'recompose';
import LoginForm from '../../components/LoginForm';
(ns vbank.controller
(:require [vbank.db :as db]
[vbank.logic.utils :as utils]
[vbank.logic.operations :as l-o]))
(defn create-operation
[account-number type timestamp amount]
(db/insert-operation account-number type timestamp amount)
{:account-number account-number :type type :timestamp timestamp :amount amount}) ; TODO: Refactor
type User @model {
id: ID! @isUnique
name: String!
dateOfBirth: DateTime
}
type Sector @model {
id: ID! @isUnique
name: String! @isUnique
companies: [Company!]! @relation(name: "SectorCompanies")
(ns dataloader.dataloader
(:refer-clojure :exclude [load flush])
(:require [graphql-facade.db.monger :refer [db find-all]]
[monger.operators :refer [$in]]))
(defprotocol Loader
(load [this key])
(flush [this]))
(def log clojure.pprint/pprint)