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 CryptoJS = await altair.importModule('crypto-js'); | |
const b64Decode = await altair.importModule('atob'); | |
const collectEnvironmentVariables = () => { | |
const clientId = altair.helpers.getEnvironment('AwsCognitoClientId') | |
const clientSecret = altair.helpers.getEnvironment('AwsCognitoClientSecret') | |
const region = altair.helpers.getEnvironment('AwsCognitoRegion') | |
const username = altair.helpers.getEnvironment('AwsCognitoUsername') | |
const password = altair.helpers.getEnvironment('AwsCognitoPassword') |
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
# If you come from bash you might have to change your $PATH. | |
export PATH="/usr/local/bin:$PATH" | |
export PATH="/usr/local/sbin:$PATH" | |
export PATH="/opt/homebrew/opt/mysql-client/bin:$PATH" | |
export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH" | |
# You may need to manually set your language environment | |
export LANG=en_US.UTF-8 | |
export LC_CTYPE=en_US.UTF-8 |
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
<?php | |
$account = $this->client->accounts->create( | |
[ | |
'type' => 'express', | |
'email' => $user->email, | |
'business_profile' => [ | |
'mcc' => '7392', | |
'url' => 'happyconsults.com' | |
], |
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 { withRouter } from 'next/router' | |
export const AuthContext = React.createContext({ | |
isAuthenticated: false, | |
token: null, | |
user: null, | |
}) | |
/** |
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 styled from 'styled-components' | |
import { version } from '../../../../package.json' | |
import { FlexContainerPositionable } from '../../../components/common/Layout' | |
import { SmallLightBoldText } from '../../../components/common/Text' | |
import * as Mixins from '../../../styles/Mixins' | |
const VersionContainer = styled(FlexContainerPositionable)` | |
${Mixins.Shadow} | |
${Mixins.BackgroundColor} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
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 const axios = Axios.create({ | |
baseURL: `${window.location.protocol}//${Connection().PREPSMITH_HOST}`, | |
withCredentials: true | |
}) | |
// axios errors | |
export const ERRORS = { | |
AUTH_ERROR: new Error('User not logged in'), | |
NETWORK_ERROR: new Error('Network error'), | |
SERVER_ERROR: new Error('Server error'), |
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
// demo https://codesandbox.io/s/pymqjk7nkj | |
import React, { Component } from 'react'; | |
class One extends Component { | |
constructor(props) { | |
super(props); | |
this.methodOne = this.methodOne.bind(this); | |
this.state = { | |
clicked: false |
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
#pbcopy < ~/.ssh/id_rsa.pub | |
#or | |
cat ~/.ssh/id_rsa.pub | pbcopy |
NewerOlder