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
| <?php | |
| /* | |
| (in this version, I added support for more message types and offer both plaintext and HTML message format) | |
| This is a function that transforms the JSON you get from Google Takeout when you export your Hangouts history | |
| into a PHP array which can be used to further manipulate the data. | |
| A use case is my hangouts parser at http://hangoutparser.jay2k1.com/ -- a description can be seen at | |
| http://blog.jay2k1.com/2014/11/10/how-to-export-and-backup-your-google-hangouts-chat-history/ |
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 PropTypes from 'prop-types' | |
| import { checkIsAuthenticated, authSignUp, authLogin, authLogout } from '../../services/auth' | |
| export const AuthContext = React.createContext({}) | |
| export default function Auth({ children }) { | |
| const [isAuthenticated, setIsAuthenticated] = useState(false) | |
| const [isLoading, setIsLoading] = useState(true) |
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 React from "react"; | |
| import { | |
| AuthenticationDetails, | |
| CognitoUserPool, | |
| CognitoUserAttribute, | |
| CognitoUser, | |
| CognitoUserSession, | |
| } from "amazon-cognito-identity-js"; | |
| import moment from "moment"; | |
| /** Utils */ |
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
| ln -s "/Users/`whoami`/Google Drive/alfred/snippets" "/Users/`whoami`/Library/Application Support/Alfred/Alfred.alfredpreferences/snippets" | |
| ln -s "/Users/`whoami`/Google Drive/alfred/themes" "/Users/`whoami`/Library/Application Support/Alfred/Alfred.alfredpreferences/themes" |
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
| # Run this in the same directory as the Hangouts.json file generated by Google Takeout / Data Export tool. | |
| # python3 hangouts.py | |
| import json | |
| import datetime | |
| import os | |
| import shutil | |
| import re | |
| chat_dir = "hangouts" |
OlderNewer