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 default [ | |
{ | |
type: 'component', | |
component: 'TitlePage', | |
extraProps: { | |
title: | |
'Resource Consent Application & Assessment of Environmental Effects', | |
}, | |
}, | |
{ |
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
from functools import partial | |
from stringcase import snakecase | |
def recursively_convert_keys(conversion_fun, data): | |
""" | |
The first major change we're making is pulling the type check out of the loop. This reduces the number of cases | |
which we need to handle, and allows us to run the conversion with a dictionary or a list. | |
The second change is that we're not mutating the original input. This simplifies things because we don't have | |
to delete the old keys, and we don't need to worry about breaking things in code elsewhere. | |
""" |
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 { | |
compose, | |
propOr, | |
curry, | |
append, | |
reject, | |
over, | |
lens, | |
assoc, | |
eqProps, |
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 { createContext } from 'react'; | |
export default createContext(); |
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
ember_distribution = template.add_resource(Distribution( | |
'EmberDistribution', | |
DistributionConfig=DistributionConfig( | |
Enabled=True, | |
DefaultRootObject='index.html', | |
# Allow us to have nice urls (without #) | |
CustomErrorResponses=[ | |
CustomErrorResponse( | |
ErrorCachingMinTTL=5, | |
ErrorCode=404, |
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 default { | |
'ASB Showgrounds': ['I301'], | |
'ASB Tennis Arena': ['I302'], | |
'AUT Millennium Institute of Sport': ['I503'], | |
'Akoranga 1': ['I549'], | |
'Albany 3': ['I500'], | |
'Albany 3 sub-precinct A': ['I500'], | |
'Albany 3 sub-precinct B': ['I500'], | |
'Albany 3 sub-precinct C': ['I500'], | |
'Albany 9 sub-precinct A': ['I501'], |
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 string | |
import ipaddress | |
from troposphere import ( | |
AWS_REGION, | |
Join, | |
Ref, | |
GetAtt, | |
Output, | |
Template, | |
Export, |
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
# How long CloudFront caches for. When the origin adds a Cache-Control max-age directive: | |
# CloudFront caching depends on the values of the CloudFront minimum TTL and maximum TTL, | |
# and the Cache-Control max-age directive: | |
# Minimum TTL < max-age < maximum TTL: | |
# CloudFront caches objects for the value of the Cache-Control max-age directive. | |
# max-age < minimum TTL: | |
# CloudFront caches objects for the value of the CloudFront minimum TTL. | |
# max-age > maximum TTL: | |
# CloudFront caches objects for the value of the CloudFront maximum TTL. |
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
stages: | |
- test | |
- build | |
- deploy | |
variables: | |
AWS_DEFAULT_REGION: ap-southeast-2 | |
# Environment specific variables | |
PROD_ACCOUNT: 596868952451 |
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
(async function() { | |
const chrome = window.chrome; | |
async function readBlob(blob, readerFun) { | |
return new Promise((fulfill, reject) => { | |
const reader = new FileReader(); | |
reader.onerror = reject; | |
reader.onload = (e) => fulfill(reader.result); | |
readerFun(reader, blob); | |
}); |