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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "ESNext", | |
"useDefineForClassFields": true, | |
"lib": ["DOM", "DOM.Iterable", "ESNext"], | |
"allowJs": false, | |
"skipLibCheck": true, | |
"esModuleInterop": false, | |
"allowSyntheticDefaultImports": true, | |
"strict": true, |
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 * as cdk from 'aws-cdk-lib'; | |
import * as ec2 from 'aws-cdk-lib/aws-ec2'; | |
import * as fs from 'fs'; | |
import { Construct } from 'constructs'; | |
// import * as sqs from 'aws-cdk-lib/aws-sqs'; | |
export class PlatformPortalUnrealTSXBroadwayStack extends cdk.Stack { | |
constructor(scope: Construct, id: string, props?: cdk.StackProps) { | |
super(scope, id, props); |
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, { useState, useEffect } from "react"; | |
export const useForm = (callback, initialValues) => { | |
const [values, setValues] = useState(initialValues || {}); | |
const [isSubmitting, setIsSubmitting] = useState(false); | |
const handleSubmit = event => { | |
if (event) event.preventDefault(); | |
setIsSubmitting(true); | |
Promise.resolve(callback(values)).then(setIsSubmitting(false)); |
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 Foundation | |
import UIKit | |
import RealmSwift | |
/** | |
* @param image - A UIImage probably taken from a UIImagePickerController | |
* @param fileName - The File Name you might want to have it stored in repo | |
* @param appUser - The currently logged in Realm User | |
*/ | |
func functionImageUpload(image: UIImage, fileName: String = "test_file_upload", appUser: User) { |
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
exports = async (bsonFileData, fileName, venueId) => { | |
// Define dependencies | |
const axios = require('axios'); | |
const crypto = require('crypto'); | |
// Define Variables from context | |
const cloud_name = context.values.get("cloudinaryAccount"); // <-- Cloudinary Account Name | |
const api_key = context.values.get("cloudinaryApiKey"); // <-- Cloudinary Public API Key | |
const api_secret = context.values.get("cloudinarySecretApiKey"); // <-- Links to Secret: Cloudinary Secret API Key |