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
package com.codetrixstudio.capacitor.GoogleAuth; | |
import android.accounts.Account; | |
import android.accounts.AccountManager; | |
import android.accounts.AccountManagerFuture; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.util.Log; | |
import androidx.activity.result.ActivityResult; |
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
`{ | |
"version": "2017-02-28", | |
"operation": "GetItem", | |
"key": { | |
"pk": $util.dynamodb.toDynamoDBJson($ctx.args.devId), | |
"sk": $util.dynamodb.toDynamoDBJson("A") | |
} | |
}` |
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 * as cdk from "@aws-cdk/core"; | |
import * as s3deploy from "@aws-cdk/aws-s3-deployment"; | |
import { | |
CloudFrontToS3, | |
CloudFrontToS3Props, | |
} from "@aws-solutions-constructs/aws-cloudfront-s3"; | |
import { Bucket } from "@aws-cdk/aws-s3"; | |
export class TanzeelStack extends cdk.Stack { | |
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { |
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
// This is just a slightly modified version of the post here: https://medium.com/@guillac124/create-your-custom-apollo-client-for-aws-appsync-to-use-hooks-2d5cbce29db5 | |
import fetch from "cross-fetch" | |
import { | |
ApolloClient, | |
InMemoryCache, | |
ApolloLink, | |
createHttpLink, | |
} from "@apollo/client" | |
import { createAuthLink } from "aws-appsync-auth-link" | |
import AppSyncConfig from "../../aws-exports" |
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 PySide2 import QtWidgets, QtGui,QtCore | |
import sys | |
class MyCell(QtWidgets.QWidget): | |
def __init__(self): | |
super().__init__() | |
self.top = 'NOT SET' | |
self.bot = 'NOT SET' | |
layout = QtWidgets.QVBoxLayout() | |
top = QtWidgets.QLineEdit() |