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
=====HOC==== | |
AddFoo.js | |
const AddFoo = props => | |
<Button onClick={() => props.onAdd(props.data)} title={props.title} /> | |
export default graphql(CreateFoo, { | |
props: props => ({ | |
onAdd: foo => props.mutate({ |
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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
precomposeunicode = true | |
[credential "https://git-codecommit.us-east-1.amazonaws.com/v1/repos/<project-name>-dev/"] | |
UseHttpPath = true | |
helper = !aws --profile <project-name>-devdeveloper codecommit credential-helper $@ |
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
while :; echo $(aws iam list-policies --no-only-attached --scope Local --output text --query 'Policies[?AttachmentCount==`0`]|[0:1].Arn'); do aws iam delete-policy --policy-arn $(aws iam list-policies --no-only-attached --scope Local --output text --query 'Policies[?AttachmentCount==`0`]|[0:1].Arn') || true; done |
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 | |
REGION=$(aws configure get region) | |
REST_APIS=$(aws apigateway get-rest-apis --query items[*].id --output text) | |
for i in $(echo $REST_APIS | tr " " "\n") | |
do | |
STAGES=$(aws apigateway get-stages --rest-api-id $i --query item[*].stageName --output text) | |
for j in $(echo $STAGES | tr " " "\n") | |
do |
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
Root Account - AWS Account #A | |
- IAM | |
- Users | |
- cody | |
- Groups: | |
- Client1Project1StagingGroup | |
- Policy: CanAssumeRoleForClient1Project1Staging | |
- Client1Project1DevGroup | |
- Policy: CanAssumeRoleForClient1Project1Dev | |
- Client1Project1ProdGroup |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:CreatePolicy", | |
"iam:CreateGroup", | |
"iam:AddUserToGroup", |
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
// (Collect Amount - Bet Amount) / Bet Amount | |
// Ex: If the Collect Amount is $1,000 and the Bet Amount is $100, then the Odds are 9.00/1 | |
// IF the Odds are less than 1.00, then there is a different formula of: | |
// (1/((Collect Amount - Bet Amount) / Bet Amount)) * -100.00 | |
// Ex: If the Collect Amount is $900 and the Bet Amount is $600, then the Odds are -200.00 | |
const formatOdds = (collectAmount, betAmount) => { | |
const collect = parseFloat(collectAmount) |
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
<img width="320" height="66" src="https://imgur.com/5znmEJ3.png" /> | |
<img width="320" height="80" src="https://i.imgur.com/kQCBprn.png" /> | |
<p>By filling out this form, you are agreeing to be contacted by a member of Friends of the Everglades and/or bullsugar.org.</p> | |
<p>Please make sure you fill out all the form fields so we can properly process your submission</p> |
OlderNewer