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
<?xml version="1.0" encoding="UTF-8"?> | |
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="https://kiegroup.org/dmn/_005046A8-D92D-4955-9B5D-64181AD2F137" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="_8D675920-0F53-4F0C-958F-529524842933" name="Untitled" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_005046A8-D92D-4955-9B5D-64181AD2F137"> | |
<dmn:extensionElements/> | |
<dmn:decision id="_ADD466C4-4297-43E3-B2FA-243BA3463520" name="Decide amount to use per wallet"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_DED16D64-2B38-48AF-AAE5-1BD8E29E4610" name="Decide amount to use per wallet"/> | |
<dmn:informationRequirement id="_D5D3F0C7-7FB5-4A8A-9AED-96ACC329ABF7"> | |
<dmn:requiredDecision href="#_6B37BF4D-7EF4-4 |
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 React, { Component, MouseEvent } from "react" | |
import { AnyChildren } from "react" | |
import { isServer } from "../../platform" | |
import { SliderArrows } from "./SliderArrows" | |
interface IProps<ItemType> { | |
children: (props: { item: ItemType }) => AnyChildren | |
items: ItemType[] | |
} |
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 { | |
FieldNode, | |
FragmentSpreadNode, | |
GraphQLResolveInfo, | |
ResponsePath, | |
SelectionSetNode, | |
} from "graphql" | |
import { flatMap } from "lodash" | |
function instanceOfFieldNode(object: any): object is FieldNode { |
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
#!/usr/bin/env bash | |
NODE_ENV=development | |
outdated_dependencies=$(npm outdated --long | tail -n +2 | grep -v beta | grep -v git | grep -v webpack-dev-server) | |
if [[ ${outdated_dependencies} ]]; then | |
echo "Dependencies outdated" | |
echo "$outdated_dependencies" | |
exit 1 | |
else |
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
# .codegen/generate_typings.sh | |
#!/bin/sh | |
set -e # exit on error | |
SCRIPT=$(dirname "$0") # Absolute path to this script, e.g. /home/user/bin/foo.sh | |
BASE_DIR=$(dirname "$SCRIPT") # Absolute path this script is in, thus /home/user/bin | |
BIN_DIR=$BASE_DIR/node_modules/.bin | |
CODEGEN_DIR=$BASE_DIR/.codegen |
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 { ApolloError } from "apollo-boost"; | |
import gql from "graphql-tag"; | |
import { graphql } from "react-apollo"; | |
///////////////////////////////////////////////////////////////////// | |
// somehow generate these interfaces based on the query and schema // | |
///////////////////////////////////////////////////////////////////// | |
interface IPost { | |
id: number; |