class App extends React.Component {
constructor(props) {
super(props);
this.state = { value: 0 };
}
incrementValue() {
this.setState({
value: this.state.value + 1
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 React, { | |
AppRegistry, // Registrador de aplicativo | |
StyleSheet, // Gerador de folha de estilos | |
Text, // Enclosure de textos | |
TextInput, // Input de textos | |
Image, // Objeto de imagem | |
TouchableNativeFeedback,// Objeto clicável para Android | |
View, // Caixa genérica, tipo div | |
Component, // Componente do React Native | |
PropTypes // Propriedades |
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 React, { | |
AppRegistry, // Registrador de aplicativo | |
StyleSheet, // Gerador de folha de estilos | |
Text, // Enclosure de textos | |
TextInput, // Input de textos | |
Image, // Objeto de imagem | |
TouchableHighlight, // Objeto clicável | |
View, // Caixa genérica, tipo div | |
Component, // Componente do React Native | |
PropTypes // Propriedades |
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
(ns sphynx.core | |
(:use [amazonica.aws.kms :as kms] | |
[amazonica.core :as aws] | |
[nio.core :as nio] | |
[clojure.data.codec.base64 :as b64])) | |
(aws/defcredential ...) | |
(defn toBase64' [content] | |
(b64/encode (.getBytes content))) |
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
class Fetch { | |
create(store : object) { | |
if(!window.__fetch) { | |
window.__fetch = new Fetch() | |
} | |
Object.defineProperty(window.__fetch, 'state', { | |
get() { | |
return store.getState().login | |
} | |
}); |
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
0x00955BB3e2D63c8e76b4AAB30bC76cCAFf3099aF |
- meu monolito funciona bem em uma máquina barata
- meu monolito todas as funcionalidades do meu monolito consomem a mesma quantidade de recursos
- meu monolito tem uma arquitetura limpa e não me dá trabalho pra manter
- tenho um time muito especializado na linguagem que usamos e nao queremos usar outras tecnologias
- minha equipe é de coders, eles não monitoram plataforma nem tem conhecimento de devops
- quero ter apenas um banco de dados para ficar fazendo query de noite, vendo tudo em tempo real
- quero ter muitas funcionalidades centralizadas em uma plataforma
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
// Criado por Octávio Turra em 05/12/2019 | |
import Foundation | |
// Função que peguei para fazer o match | |
// e devolver o que bateu com a regex | |
func matches(for regex: String, in text: String) -> [String] { | |
// referência: https://stackoverflow.com/questions/27880650/swift-extract-regex-matches | |
do { | |
let regex = try NSRegularExpression(pattern: regex) |
OlderNewer