Vai ser necessário gerar uma chave ssh para se conectar na instância criada, para gerar a chave é só seguir esse tutorial do google
ssh ubuntu@{{ ip da maquina }}
Vai ser necessário gerar uma chave ssh para se conectar na instância criada, para gerar a chave é só seguir esse tutorial do google
ssh ubuntu@{{ ip da maquina }}
| const Landing = () => { | |
| const { config: alertMessage } = useConfiguration('Landing:Alert'); // The config key from App Config | |
| const { enabled: showLandingAlert } = useFeatureFlag('ShowLandingAlert'); // The feature flag key from App Config | |
| const showAlert = showLandingAlert && alertMessage.toString().trim().length; | |
| return ( | |
| <> | |
| {showAlert && <TopAlert color="success">{alertMessage}</TopAlert>} | 
| const models = require('../app/models') | |
| const Sequelize = require('sequelize') | |
| const fs = require('fs') | |
| const path = require('path') | |
| const sequelize = new Sequelize('', '', '', { | |
| host: '', | |
| dialect: 'postgres' | |
| }) | 
| const data = [ | |
| { | |
| name: "Alexandre", | |
| city: "MG", | |
| age: "45" | |
| }, | |
| { | |
| name: "Ricardo", | |
| city: "MG", | |
| age: "32" | 
| package com.your.package | |
| import android.app.Dialog | |
| import android.os.Bundle | |
| import com.your.package.R | |
| import com.google.android.material.bottomsheet.BottomSheetDialog | |
| import com.google.android.material.bottomsheet.BottomSheetDialogFragment | |
| /** | |
| * BottomSheetDialog fragment that uses a custom | 
| (function () { | |
| 'use strict' | |
| const QUOTES = ['', "'", '"'] | |
| // const THRESHOLD = 0.95 | |
| // function levenstein(a, b) { | |
| // const d = (i, j) => 0 === Math.min(i, j) ? Math.max(i, j) : Math.min(d(i - 1, j) + 1, d(i, j - 1) + 1, d(i - 1, j - 1) + (a[i - 1] === b[j - 1] ? 0 : 1)) | |
| // return d(a.length, b.length) | |
| // } | |
| // levenstein('kitten', 'sitting') | |
| // function ratio(a, b) { | 
| /* | |
| * Below is a bare functioning example of how I made a React-Native Chat messaging component that shifts the input up when | |
| * the keyboard is active, and scrolls back down when the keyboard is inactive from a TextInput blur. | |
| * | |
| * The only thing I haven't been able to figure out yet is getting the ListView to render from the bottom, not sure if it's | |
| * possible yet via styles. | |
| * | |
| * NOTE: This uses from iOS-only properties | |
| */ | 
| var getPosition = function (options) { | |
| return new Promise(function (resolve, reject) { | |
| navigator.geolocation.getCurrentPosition(resolve, reject, options); | |
| }); | |
| } | |
| getPosition() | |
| .then((position) => { | |
| console.log(position); | |
| }) | 
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # | |
| # The above copyright notice and this permission notice shall be included in | |
| # all copies or substantial portions of the Software. | |
| # | 
| /*************************************************** | |
| * Simple and elegant, no code complexity | |
| * Disadvantages: Requires warming all data into server memory (could take a long time for MBs of data or millions of records) | |
| * (This disadvantage should go away as we add optimizations to the core product) | |
| ***************************************************/ | |
| var fb = firebase.database.ref(); | |
| /** | |
| * @param {string} emailAddress |