Skip to content

Instantly share code, notes, and snippets.

View GabrielAraujo's full-sized avatar

Gabriel Araujo GabrielAraujo

View GitHub Profile
@GabrielAraujo
GabrielAraujo / main.dart
Created February 8, 2023 10:54
CameraAwesome changed main to open/close camera widget
import 'dart:io';
import 'package:better_open_file/better_open_file.dart';
import 'package:camerawesome/camerawesome_plugin.dart';
import 'package:flutter/material.dart';
import 'package:path_provider/path_provider.dart';
void main() {
runApp(const CameraAwesomeApp());
}
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView android:layout_width="match_parent"
<?xml version="1.0" encoding="utf-8"?>
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="50dp"
android:stretchColumns="1"
tools:context=".MainActivity">
@GabrielAraujo
GabrielAraujo / fiap-shift-kotlin-aula2-framelinearlayout
Created June 19, 2021 23:22
Exemplo FrameLayout e LinearLayout
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<LinearLayout android:layout_width="match_parent"
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
@GabrielAraujo
GabrielAraujo / append_cognito_ses.tf
Created June 14, 2020 17:58
Append ses to cognito
email_configuration {
email_sending_account = "DEVELOPER"
source_arn = "{{SES_EMAIL_ARN}}"
}
@GabrielAraujo
GabrielAraujo / ses.tf
Created June 14, 2020 17:37
SES email configuration
// Variables
variable "aws_region" {
type = string
description = "The region in which the resources will be created"
default = "us-east-1"
}
variable "access_key" {
type = string
description = "The aws development account access key"
@GabrielAraujo
GabrielAraujo / cognito_user_pool.tf
Last active February 2, 2022 15:38
Cognito User Pool Terraform Script
// Gist of resource https://github.com/GabrielAraujo/medium/blob/exploring_cognito_user_pools/cognito_user_pool.tf
// Variables
variable "aws_region" {
type = string
description = "The region in which the resources will be created"
default = "us-east-1"
}
variable "access_key" {