Full Thread | Original Author | Original document |
---|---|---|
@tdpauw - thread link | @nico_mommaerts - tweet link | Pastebin link |
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
... | |
handleClick = () => { | |
this.setState({ | |
activePlan: this.props.planPrice | |
}); | |
}; | |
... | |
<Button onClick={this.handleClick}> | |
{this.props.buttonLabel} | |
</Button> |
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
<StyledServicePlanCard | |
planPrice={2} | |
buttonLabel="Buy Now" | |
/> | |
<StyledServicePlanCard | |
planPrice={5} | |
buttonLabel="Buy Now" | |
/> |
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
<StripeCheckout | |
amount={this.props.planPrice * 100} | |
token={token => console.log(token)} | |
stripeKey={process.env.REACT_APP_STRIPE_KEY} | |
> | |
<Button> | |
{this.props.buttonLabel} | |
</Button> | |
</StripeCheckout> |
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 StyledTypography = styled(Typography)` | |
flex: 1; | |
`; | |
const StyledButton = styled(Button)` | |
background: linear-gradient(45deg, #fe6b8b 30%, #ff8e53 90%); | |
border-radius: 3px; | |
border: 0; | |
color: white; | |
height: 48px; |
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
#!/bin/bash | |
sudo yum update -y | |
sudo yum install -y docker | |
sudo service docker start | |
sudo usermod -a -G docker ec2-user | |
# log out and log in to pickup the added group | |
# Also install some common sense stuff | |
sudo yum install -y git |
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
export GIT_SSH_COMMAND="ssh -o IdentitiesOnly=yes -i ~/Keys/my_other_key.pem |
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
{ | |
"configurations" : [ | |
{ | |
"zoo.cfg" : { | |
"properties_attributes" : { }, | |
"properties" : { | |
"autopurge.purgeInterval" : "24", | |
"dataDir" : "/hadoop/zookeeper", | |
"autopurge.snapRetainCount" : "30", | |
"clientPort" : "2181", |
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
export const fetchUser = () => async dispatch => | |
dispatch({ type: FETCH_USER, payload: await axios.get("/api/current_user") }); |