Skip to content

Instantly share code, notes, and snippets.

export default [
{
type: 'component',
component: 'TitlePage',
extraProps: {
title:
'Resource Consent Application & Assessment of Environmental Effects',
},
},
{
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.
"""
import {
compose,
propOr,
curry,
append,
reject,
over,
lens,
assoc,
eqProps,
import { createContext } from 'react';
export default createContext();
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,
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'],
import string
import ipaddress
from troposphere import (
AWS_REGION,
Join,
Ref,
GetAtt,
Output,
Template,
Export,
# 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.
stages:
- test
- build
- deploy
variables:
AWS_DEFAULT_REGION: ap-southeast-2
# Environment specific variables
PROD_ACCOUNT: 596868952451
(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);
});