This file contains hidden or 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, { useState, useEffect } from "react"; | |
| import * as Yup from "yup"; | |
| import { Button } from "primereact/button"; | |
| import { InputText } from "primereact/inputtext"; | |
| import { Password } from "primereact/password"; | |
| import { useFormik } from "formik"; | |
| import { Card } from "primereact/card"; | |
| import { useAuthContext } from "../auth-provider"; | |
| import { Link } from "react-router-dom"; | |
| import { useHistory } from "react-router"; |
This file contains hidden or 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
| 'use strict' | |
| var split = require('split'); | |
| var fs = require('fs'); | |
| var csv = require('fast-csv'); | |
| var csvStream = csv.createWriteStream({headers: true}) | |
| .on("finish", function(){ | |
| console.log("DONE!"); | |
| }), | |
| outputStream = fs.createWriteStream("output.csv"); |
This file contains hidden or 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
| // This just checks if Dynamo is running, returns 1 if so. | |
| ps aux | grep -c "java -Djava.library.path=./dynamo-java/DynamoDBLocal_lib -jar dynamo-java/DynamoDBLocal.jar -inMemory -port 2035" | |
| // run this in the directory with the DynamoDBLocal.jar file. | |
| java -Djava.library.path=./dynamo-java/DynamoDBLocal_lib -jar dynamo-java/DynamoDBLocal.jar -inMemory -port 2035 & |