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
from sheetsDb.sheetsDb import sheetsDb | |
creds = { | |
"type": "XXXXXXXXXXXXXXXXXXX", | |
"project_id": "XXXXXXXXXXXXXXXXXXX", | |
"private_key_id": "XXXXXXXXXXXXXXXXXXX", | |
"private_key": "XXXXXXXXXXXXXXXXXXX", | |
"client_email": "XXXXXXXXXXXXXXXXXXX", | |
"client_id": "XXXXXXXXXXXXXXXXXXX", | |
"auth_uri": "XXXXXXXXXXXXXXXXXXX", |
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
from __future__ import print_function | |
import numpy as np | |
import argparse | |
import imutils | |
import glob | |
import cv2 | |
import os | |
MAX_FEATURES = 500 | |
GOOD_MATCH_PERCENT = 0.15 |
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
export PATH="$HOME/bin:$HOME/.local/bin:$PATH" | |
export PATH="$PATH:/mnt/c/Program\ Files/Docker/Docker/resources/bin" | |
alias docker=docker.exe | |
alias docker-compose=docker-compose.exe |
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 { withData } from 'next-apollo' | |
import { HttpLink } from 'apollo-link-http' | |
const config = { | |
link: new HttpLink({ | |
uri: 'https://<herokuapp-url>/v1alpha1/graphql' | |
}) | |
} | |
export default withData(config) |
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 from 'react' | |
import { InstantSearch, Hits,SearchBox} from 'react-instantsearch-dom'; | |
import gql from 'graphql-tag' | |
import { Mutation } from "react-apollo"; | |
import withData from '../config'; | |
import Head from 'next/head'; | |
import { Button,PageHeader,Tabs,Tab,Panel,Row,Col } from 'react-bootstrap'; |
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
const express = require('express') | |
const next = require('next') | |
const bodyParser = require('body-parser') | |
const dev = process.env.NODE_ENV !== 'production' | |
const app = next({ dev }) | |
const handle = app.getRequestHandler() | |
const algoliasearch = require('algoliasearch'); | |
//Add ALGOLIA APP_ID and ADMIN_API_KEY below |
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
{ | |
"name": "etl-demo", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"dependencies": { | |
"algoliasearch": "*", | |
"apollo-client": "^2.4.12", | |
"apollo-client-preset": "^1.0.8", | |
"apollo-link": "*", |
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 {withRouter} from 'next/router' | |
import withData from '../config'; | |
const Order = withRouter((props) => ( | |
<div> | |
.......... | |
{props.router.query.id} | |
........... | |
</div> | |
)) |
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
server.get('/Order/:id', (req, res) => { | |
const actualPage = '/Order' | |
const queryParams = { id: req.params.id } | |
app.render(req, res, actualPage, queryParams) | |
}) |
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 gql from 'graphql-tag' | |
import { Query } from 'react-apollo' | |
import withData from '../config'; | |
import Link from 'next/link' | |
import React from 'react'; | |
import {Button, Grid, Jumbotron, | |
FormControl, FormGroup, ControlLabel, | |
HelpBlock} from 'react-bootstrap'; |
NewerOlder