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 Notifications from 'expo-notifications'; | |
import { useEffect, useRef } from "react"; | |
import { Platform } from "react-native"; | |
import * as Device from "expo-device"; | |
import { useDispatch, useSelector } from 'react-redux'; | |
import { UserSlice } from '../state/reducers/UserReducer'; | |
import { navigateWhenReady } from '../navigation'; | |
import { RootState } from '../state/store'; | |
import { remindersList, RemindersSlice } from '../state/reducers/RemindersReducer'; | |
import { DEFAULT_THOUGHT_EXCERCISE_REMINDER } from '../state/middleware/NotificationsMiddleware'; |
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 { PayloadAction } from "@reduxjs/toolkit"; | |
import * as Notifications from "expo-notifications"; | |
export type ReminderType = "daily" | "weekly" | "every_other_day"; | |
export type Reminder = { | |
type: ReminderType; | |
title: string; | |
subTitle: string; | |
optionKey: 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
from __future__ import print_function | |
import boto3 | |
from botocore.client import Config | |
import os | |
import sys | |
import uuid | |
from PIL import Image | |
import PIL.Image |
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
xmlToJson(xml) { | |
// Create the return object | |
let obj = {}; | |
let attribute; | |
let item; | |
if (xml.nodeType == 1) { | |
// element | |
// do attributes | |
if (xml.attributes.length > 0) { |