Skip to content

Instantly share code, notes, and snippets.

View kaueDM's full-sized avatar

Kauê kaueDM

View GitHub Profile
import React from 'react'
import ButtonIcon from './ButtonIcon'
import ButtonLabel from './ButtonLabel'
import styled from 'styled-components/native'
import ButtonInterface from './ButtonInterface'
import { TouchableWithoutFeedback } from 'react-native'
const ButtonContainer = styled.View<ButtonInterface>`
align-items: center
justify-content: center
import React from 'react'
import Thumbnail from './Thumbnail'
import { withTheme } from 'styled-components'
import styled from 'styled-components/native'
import Animated from 'react-native-reanimated'
import ImageLoaderInterface from './ImageLoaderInterface'
import { coverParent, roundImageEdges } from '@utils/styleBuilder'
const imageOpacity = new Animated.Value(0)
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/kauedm/.oh-my-zsh"
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
import Text from '@Text'
import React from 'react'
import Icon from '@Icons'
import { getColor } from '@Colors'
import SearchBar from './SearchBar'
import styled from 'styled-components'
import { TouchableWithoutFeedback, StatusBar } from 'react-native'
const Header = ({ ...props }) => (
<HeaderContainer>
//ComponentDidMount
this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this._keyboardDidShow)
this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this._keyboardDidHide)
//Keyboard handlers
_keyboardDidShow = () => {
return this.setState({ logoOpacity: 0, addPaddingBottom: true })
}
_keyboardDidHide = () => {
render() {
const { fabrics, loading, alert } = this.state
return (
<div className='main-content'>
{alert}
{this.fabricModal()}
<Card content={
<Grid fluid>
<Row>
<Col md={12}>
import Compress from 'compress.js';
export const compress = image => (
new Promise((resolve, reject) => {
const cmp = new Compress()
const byteString = atob(image.split(',')[1]);
const mimeType = image.split(',')[0].split(':')[1].split(';')[0];
let ab = new ArrayBuffer(byteString.length);
let ia = new Uint8Array(ab);
for (let i = 0; i < byteString.length; i++) { ia[i] = byteString.charCodeAt(i) };
return Promise.all(PromiseStack)
.then(() => {
console.log('Data sent to Firestore')
let taskList = {}
// isEmpty(taskList) ? Promise.resolve('vazio') : Promise.reject('cheio')
db.collection('tasks')
.where('user', '==', userUID)
import React from 'react';
import { connect } from 'react-redux';
import { BrowserRouter, Switch, Route, Redirect } from 'react-router-dom';
import { Login, Dashboard, Wrapper, Products, RoutineBuilder, RoutineOverview } from '../views';
class Router extends React.Component {
render() {
return <BrowserRouter>{this._handleAuthentication()}</BrowserRouter>
01-03 10:30:50.791 29460-29460/? D/dalvikvm: Late-enabling CheckJNI
01-03 10:30:50.851 29460-29460/? E/Zygote: Zygote: error closing descriptor
libcore.io.ErrnoException: close failed: EBADF (Bad file number)
at libcore.io.Posix.close(Native Method)
at libcore.io.BlockGuardOs.close(BlockGuardOs.java:75)
at com.android.internal.os.ZygoteInit.closeServerSocket(ZygoteInit.java:198)
at com.android.internal.os.ZygoteConnection.handleChildProc(ZygoteConnection.java:879)
at com.android.internal.os.ZygoteConnection.runOnce(ZygoteConnection.java:242)
at com.android.internal.os.ZygoteInit.runSelectLoop(ZygoteInit.java:663)
at com.android.internal.os.Zyg