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
{ | |
"Custom Directory" : "Advanced", | |
"Working Directory" : "~\/Projects\/", | |
"Prompt Before Closing 2" : false, | |
"Selected Text Color" : { | |
"Red Component" : 1, | |
"Color Space" : "sRGB", | |
"Blue Component" : 0.99999994039535522, | |
"Alpha Component" : 1, | |
"Green Component" : 0.99999994039535522 |
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
'use strict' | |
const https = require('https') | |
const path = require('path') | |
const API_BASE = `api.typeform.com` | |
const CLIENT_ID = process.env.TYPEFORM_CLIENT_ID | |
const CLIENT_SECRET = process.env.TYPEFORM_CLIENT_SECRET | |
function postRequest (host, path, body) { |
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
'use strict' | |
const callback = (event, context, callback) => { | |
const response = { | |
statusCode: 200, | |
headers: { | |
'Access-Control-Allow-Origin': '*', | |
'Access-Control-Allow-Credentials': true | |
}, | |
body: JSON.stringify({ |
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
service: oauth | |
app: helpful-oauth | |
tenant: alexbass | |
provider: | |
name: aws | |
runtime: nodejs8.10 | |
profile: serverless |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:CreateFunction", | |
"s3:Get*", | |
"iam:CreateRole", |
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 { StyleSheet, Text, View, | |
TouchableOpacity, Linking, ActivityIndicator } from 'react-native' | |
import Api from './api' | |
export default class App extends React.Component { | |
state = { | |
loading: true, | |
loggedIn: false, | |
loginError: 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
// src/api.js | |
require('dotenv') | |
const { API_CLIENT_ID, API_CLIENT_SECRET } = process.env | |
const API_BASE = 'https://api.typeform.com' | |
class Api { | |
} |
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
// SettingsController.test.js | |
import { SettingsController } from '../SettingsController' | |
const defaultOptions = [{ | |
name: 'Enable sunshine', | |
value: false | |
}, { | |
name: 'Enable moonlight', | |
value: true |
NewerOlder