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
| data = [ | |
| { | |
| description: 'Taxa de Juros', | |
| value: '1.35', | |
| }, | |
| { | |
| description: 'Parcela', | |
| value: '450.05', | |
| }, | |
| ]; |
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
| // ... code wharever. | |
| return ( | |
| <View style={styles.Item}> | |
| <Circle | |
| width={50} | |
| strokeColor="#F00" | |
| /> | |
| <Icon /> | |
| </View> | |
| ); |
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
| /* @flow */ | |
| import React, { Component } from 'react'; | |
| import { ART, View } from 'react-native'; | |
| type Props = { | |
| strokeWidth: number, | |
| strokeColor: string, | |
| width: number, | |
| }; |
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 from 'react'; | |
| import { Redirect, Route } from 'react-router-dom'; | |
| type Props = { | |
| authed: boolean, | |
| component: React.Component, | |
| }; | |
| class PrivateRoute extends React.Component<void, Props, void> { | |
| state = {}; |
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
| window.onload = function() { | |
| var fileInput = document.getElementById('fileInput'); | |
| var fileDisplayArea = document.getElementById('fileDisplayArea'); | |
| fileInput.addEventListener('change', function(e) { | |
| var file = fileInput.files[0]; | |
| var textType = /csv.*/; | |
| if (file.type.match(textType)) { |
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
| /** | |
| * @param {*} obj - Objeto a ser rastreado. | |
| * @param {*} key - Percurso a ser traçado. | |
| * | |
| * Exemplo: | |
| * const obj = { a: { b: c: 100 } }; | |
| * get(obj, 'a.b.c'); // return 100. | |
| */ | |
| export default function Get(obj, key) { |
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
| .Blogo { | |
| background-color: rgba(240, 240, 240, 1); | |
| font-family: sans-serif; | |
| margin: 25px 10px; | |
| padding: 1em; | |
| &__Toolbar { | |
| padding: 0 .3em .8em; | |
| } | |
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
| const request = require('request-promise'); | |
| const parseString = require('xml2js').parseString; | |
| const q = require('q'); | |
| const _ = require('underscore'); | |
| const moment = require('moment'); | |
| // Em algum framework com funcionamento por middleware onde | |
| // hook oferece informações da requisição. | |
| const find = function (hook) { |
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
| { | |
| Categorias: [ | |
| { | |
| name: "Assist. Técnica", | |
| profissoes: [ | |
| { | |
| name | |
| } | |
| ] |
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 _ from 'underscore'; | |
| import s from 'underscore.string'; | |
| function renderMarker(markers) { | |
| // Se Educação Física... | |
| return _.each(markers, (marker) => { | |
| // ... na lista ele retorna educacao_fisica.svg. | |
| return returns.slugify(marker) + ".svg"; | |
| }); |