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
""" | |
THIS IS BASICALLY A MONKEY-PATCH OF BROKEN BEHAVIOR IN ZAPPA | |
Zappa sends bytes to boto instead of a string. | |
Zappa Async Tasks | |
Example: | |
``` | |
from zappa.async import task |
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
=> Compling assets in current project directory | |
=> Copying current project directory to temporary build area: /tmp/jets/ut-search/stage/code | |
=> Reconfiguring webpacker development settings for AWS Lambda. | |
Jets sends data about your gems to your specified lambda build service **lambdagems.com** so that it can compile and generate the necessary Lambda layers. Lambdagems only collects anonymous non-identifiable data. |
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
#!/bin/bash -e | |
bundle exec rspec $(git status | grep spec | grep "modified:" | cut -b 14-) |
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
#!/bin/bash -e | |
card_branch_name() { | |
if [ ! -n "${UT_TEAM}" ]; then | |
echo "\$UT_TEAM not set!" && return 1; | |
fi | |
project=$1 | |
url=$2 |
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
# 397 results | |
query { | |
searchProducts(q:"Xl" fields:"title,size") { | |
total | |
edges { | |
node { | |
source | |
} | |
} | |
} |
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
# Query | |
query { | |
synonyms { | |
id | |
text | |
} | |
} | |
# Response |
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 { compose, graphql } from 'react-apollo'; | |
// i actually recommend .graphql files with the webpack loader from this library | |
import { gql } from 'graphql-tag'; | |
import TextField from '@material-ui/core/TextField'; | |
import Button from '@material-ui/core/Button'; | |
import CircularProgress from '@material-ui/core/CircularProgress'; | |
const entryQuery = gql` | |
query lookupEntry($key: String!) { |
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
"Mappings": { | |
"EnvironmentMap": { | |
"qa": { | |
"lambdaSubnets": "subnet-1c6a4634,subnet-aadf34dd" , | |
"lambdaSecurityGroups": "sg-b58c1ad0,sg-007b3e50d822ab4b6" | |
}, | |
"prod": { | |
"lambdaSubnets": "subnet-076822f8311733aa2,subnet-01be8dd54e536738b", | |
"lambdaSecurityGroups": "sg-015d3589ebaddb5ef", | |
} |
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
query crowdAggBuckets($q:String! $crowdAgg:String! { | |
crowdAggBuckets(params:{ | |
q:$q | |
agg:$crowdAgg | |
}) { | |
aggs{ | |
buckets { | |
key | |
} | |
} |
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
query getCrowdFacets($q:String) | |
aggBuckets(params:{ | |
q: $q | |
agg: "front_matter_keys" | |
}) { | |
aggs { | |
buckets { | |
key | |
} | |
} |