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 { CloudFormationClient, DescribeStacksCommand } from '@aws-sdk/client-cloudformation' | |
let cachedOutputs: any | undefined | |
export const getStackOutputs = async () => { | |
if (cachedOutputs) { | |
return cachedOutputs | |
} | |
const cfnClient = new CloudFormationClient({ | |
region: process.env.STACK_REGION, | |
}) |
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 { DatabaseCluster, CfnGlobalCluster, DatabaseClusterProps, CfnDBCluster } from 'aws-cdk-lib/aws-rds' | |
import { Construct } from 'constructs' | |
export class GlobalDatabaseCluster extends DatabaseCluster { | |
public readonly globalCluster: CfnGlobalCluster | |
constructor(scope: Construct, id: string, props: DatabaseClusterProps) { | |
super(scope, id, props) | |
this.globalCluster = new CfnGlobalCluster(this, 'global-cluster', { |
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
{ | |
"key": "random-key", | |
"name": "Example App", | |
"description": "An example app for Bitbucket", | |
"vendor": { | |
"name": "Angry Nerds", | |
"url": "https://www.atlassian.com/angrynerds" | |
}, | |
"baseUrl": "populated-at-runtime", | |
"authentication": { |
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
const fs = require('fs') | |
const path = require('path') | |
const fse = require('fs-extra') | |
const code = fs.readFileSync('app.code.json', 'utf-8') | |
const obj = JSON.parse(code) | |
Object.entries(obj).forEach(([loc, contents]) => { | |
const absPath = path.resolve('.', 'output', loc) |
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 PropTypes from 'prop-types' | |
import ReactNative from 'react-native' | |
const audio = ReactNative.NativeModules.RNStreamingAudioPlayer | |
const audioEvent = new ReactNative.NativeEventEmitter(ReactNative.NativeModules.RNStreamingAudioPlayer) | |
import { | |
View, |
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
const { graphqlKoa, graphiqlKoa } = require('graphql-server-koa') | |
module.exports = { | |
graphqlKoa: options => function *(){ | |
const context = this | |
return yield graphqlKoa(Object.assign({}, options, { | |
context | |
}))(context) | |
}, | |
graphiqlKoa: options => function (){ |
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
//load site | |
[wview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://192.168.105.137:19000/workspace/index.jsp"]]]; |