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 re | |
from openpyxl import load_workbook | |
from pprint import pprint | |
from datetime import datetime | |
from utils.helpers import write_to_file | |
def process_coffee_shops(food_data): | |
coffee_shops = [ | |
"Starbucks", "Dunkin Donuts", "Pickup Coffee", "Coffee Project", | |
"Tim Hortons", "Dean & Deluca", "Cafe Amazon", "Highlands", "Bo's" |
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 gspread | |
from oauth2client.service_account import ServiceAccountCredentials | |
import argparse | |
from PyPDF2 import PdfReader | |
import re | |
from gspread_formatting import format_cell_range, CellFormat, TextFormat | |
#TODO: | |
# - Integrate moneymanager which is a backup |
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
from dotenv import load_dotenv | |
import os | |
import googlemaps | |
import argparse | |
import requests | |
from pprint import pprint | |
load_dotenv() | |
def get_coordinates(location): |
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 nodemailer from 'nodemailer' | |
import Env from '@ioc:Adonis/Core/Env' | |
export const emailConfig = { | |
rootUrl: Env.getOrFail('PUBLIC_URL') as string, | |
service: Env.getOrFail('SMPT_SERVICE') as string, | |
user: Env.getOrFail('SMPT_USER') as string, | |
pass: Env.getOrFail('SMPT_PASSWORD') as string, | |
} |
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 * as AWS from 'aws-sdk' | |
import Env from '@ioc:Adonis/Core/Env' | |
import { v4 as uuid } from 'uuid' | |
import { ManagedUpload } from 'aws-sdk/clients/s3' | |
const AWS_BUCKET_NAME = Env.getOrFail('AWS_BUCKET_NAME') as string | |
const AWS_REGION = Env.getOrFail('AWS_REGION') as string | |
const AWS_SECRET_ACCESS_KEY = Env.getOrFail('AWS_SECRET_ACCESS_KEY') as string | |
const AWS_ACCESS_KEY_ID = Env.getOrFail('AWS_ACCESS_KEY_ID') as string |
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
<FormControl | |
{...otherProps} | |
variant="outlined" | |
fullWidth | |
> | |
<Field name={name}> | |
{({ input, meta: { touched, error, submitError } }) => ( | |
<Fragment> | |
<FormLabel>{label}</FormLabel> | |
{/* |
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
const isInitialMount = useRef(true); | |
const [search, setSearch] = useState<string>(); | |
// https://stackoverflow.com/questions/55075604/react-hooks-useeffect-only-on-update | |
useEffect(() => { | |
let debounceFunc: NodeJS.Timeout; | |
if (isInitialMount.current) { | |
isInitialMount.current = false; | |
} else { |
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 { Backdrop, CircularProgress, Typography, Box } from '@material-ui/core'; | |
import { makeStyles, createStyles, Theme } from '@material-ui/core/styles'; | |
const useStyles = makeStyles((theme: Theme) => createStyles({ | |
backdrop: { | |
zIndex: theme.zIndex.drawer + 1, | |
background: '#0000001f', | |
}, | |
title: { |
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 'providers/message'; | |
import 'core-js/stable'; | |
import 'regenerator-runtime/runtime'; | |
import 'raf/polyfill'; | |
import 'scss/index.scss'; | |
import 'providers/sentry'; | |
import React from 'react'; | |
import { hydrate } from 'react-dom'; | |
import { Provider as ReduxProvider } from 'react-redux'; | |
import Providers from 'providers'; |
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
$font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
$font-family: "Poppins", $font-system; |
NewerOlder