Skip to content

Instantly share code, notes, and snippets.

View rafaelcorreiapoli's full-sized avatar
🎯
Focusing

Rafael Ribeiro rafaelcorreiapoli

🎯
Focusing
View GitHub Profile
interface IArgDescription {
name: string;
type: () => any;
}
interface IResolverDescription {
name: string;
resolver: Function;
decorator: MethodDecorator;
methodArgs: IArgDescription[];
import React, { useState } from 'react'
import { StyleSheet, View, ViewStyle } from 'react-native'
import { TextInput, RadioButton } from 'react-native-paper'
import { Text } from '@ds/Typography'
import { RadioSelect } from '@ds/RadioSelect'
import { Button } from '@ds/Button'
import { Colors } from '@resources/Colors'
export interface IUserStoryProps {
name: string
import React, { useRef, useState } from 'react'
import {
StyleSheet,
Text,
View,
ViewStyle,
Animated,
Button,
Easing,
Alert,
@rafaelcorreiapoli
rafaelcorreiapoli / HttpClient.ts
Last active September 13, 2019 13:20
HttPClient
import async_hooks from 'async_hooks'
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'
import { inject, injectable, optional } from 'inversify'
import { IClock, IClockTypes } from '../../../clock'
import { IHashMap } from '../../../common'
import { IJsonConfig, IJsonConfigTypes } from '../../../config'
import { ContextManagerTypes, IContextManager } from '../../../context'
import { ILogger, ILoggerTypes } from '../../../logs'
import {
HttpClientMode,
import async_hooks from 'async_hooks'
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'
import { inject, injectable, optional } from 'inversify'
import { IClock, IClockTypes } from '../../../clock'
import { IHashMap } from '../../../common'
import { IJsonConfig, IJsonConfigTypes } from '../../../config'
import { ContextManagerTypes, IContextManager } from '../../../context'
import { ILogger, ILoggerTypes } from '../../../logs'
import {
HttpClientMode,
#! /bin/bash
set -exo pipefail
[[ -z "$ACCESS_TOKEN" ]] && (echo "Please set ACCESS_TOKEN" && exit 1;)
migrate_repo() {
repo=$1
curl https://api.github.com/orgs/livup/repos?access_token=${ACCESS_TOKEN} -d "{\"name\": \"${repo}\", \"description\": \"\", \"private\": true, \"has_issues\": true, \"has_downloads\": true, \"has_wiki\": false}"
import React, {Fragment, Component} from 'react';
import {PanResponder, Dimensions, Animated, Button, TouchableOpacity, FlatList, StyleSheet, Text, View} from 'react-native';
const CONTACTS = [{
key: 'c1',
name: 'contact1'
}, {
key: 'c2',
name: 'contact2'
}, {

Namespace

Descrição alto nível

Um namespace é uma divisão lógica de recursos no cluster, que torna todos os componentes dentro de um namespace (Pods, Services, Deployments, Ingresses) isolados de outros namespaces.

Workspaces

Descrição alto nível

Um workspace é um conjunto de configurações salvas pelo desenvolvedor que descrevem um cenário de trabalho que ele configurou e que vai querer ser retomado no futuro, seja por ele ou por outros engenheiros. Exemplo: O desenvolvedor está trabalhando no fluxo de pagamento de boletos e, para isto, precisa dos seguintes serviços:

  • Blackleach v1.0.5
  • Stormshield v2.0.2
  • Griswold v1.0.5
  • Horadric v5.0.1

Unleash - React Native

O desenvolvedor executa

$ unleash project seed react-native -n "Bro Challenge"

É criado um arquivo json onde o desenvolvedor irá inputar diversas configurações do app (algumas coisas ja vem preenchidas pela opção -n). Atualmente, este arquivo está assim: