This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Options { | |
upperCase: boolean | |
intervalMs: number | |
} | |
// Props que serão passadas para o WrappedComponent | |
interface InjectedProps { | |
name: string | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { compose } from 'redux' | |
const ensureLoggedIn = (next) => (obj, args, ctx) => { | |
if (!ctx.user) { | |
throw new Error('Not authorized') | |
} | |
return next(obj, args, ctx) | |
} | |
const intersection = (array1, array2) => array1.filter((n) => array2.includes(n)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type User @model { | |
id: ID! @isUnique | |
name: String! | |
dateOfBirth: DateTime | |
} | |
type Sector @model { | |
id: ID! @isUnique | |
name: String! @isUnique | |
companies: [Company!]! @relation(name: "SectorCompanies") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |